Function at 0x10003240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a3f4
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x1002d008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x43d], dl
mov ebx, ecx
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c8]
push 3
push dword [ebp + 8]
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 0x4cc], eax
call fcn.100036b0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4cc]
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
cmp byte [edx], 0
jne 0x100032d1
xor ecx, ecx
jmp 0x100032df
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100032d6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x43c]
call fcn.10002e00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c8]
mov eax, dword [ebp - 0x4cc]
cmp eax, ecx
je 0x10003309
push eax
call fcn.10008651
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
lea edx, [ebp - 0x43c]
movq qword [ebp - 0x420], xmm0
lea ecx, [ebp - 0x420]
call fcn.10002870
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x420]
sub esi, edi
cmp esi, 0x400
jbe 0x100033e9
push 0x10023454
mov ecx, ebx
call fcn.10001980
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x1000338a
push eax
call fcn.1000834f
add esp, 4
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp - 0x428], 0x10
jb 0x100033a1
push dword [ebp - 0x43c]
call fcn.1000834f
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100035d6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x100035d6
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1000aff0
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.1000b080
mov ecx, dword [ebp - 0x414]
mov eax, 4
add esp, 0x18
cmp esi, eax
jbe 0x10003434
lea esp, [esp]
xor dword [ebp + eax - 0x414], ecx
add eax, 4
add ecx, 0x20200428
cmp eax, esi
jb 0x10003420
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp - 0x414]
add eax, esi
push 0
push eax
call fcn.1000aff0
add esp, 0xc
call fcn.100014f0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x1000346b
push 0x80004005
call fcn.10001230
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
cmp byte [ebp - 0x43d], 0
mov byte [ebp - 4], 5
je 0x100034b5
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003491
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.10001e00
jmp 0x100034c7
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
call fcn.10003600
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x100034f3
cmp ecx, dword [esi]
jne 0x100034f3
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10003530
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x10003507
call fcn.10001cb0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.10008b24
add esp, 0x10
lea eax, [edi + 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov dword [ebx], eax
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10003552
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x10003583
push eax
call fcn.1000834f
add esp, 4
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
cmp dword [ebp - 0x428], 0x10
jb 0x1000359a
push dword [ebp - 0x43c]
call fcn.1000834f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], 0
mov byte [ebp - 0x43c], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100035d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10008354
mov esp, ebp
pop ebp
ret