Function at 0x1002c320
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x100a9040]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov eax, edx
mov dword [esp + 0x2c], eax
mov esi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 3
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x3c], ecx
mov edi, eax
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 4]
sub edi, ecx
mov dword [esp + 0x5c], edx
add edx, ecx
mov eax, edi
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0x6c], edx
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov dword [esp + 0x24], edi
sub edi, edx
cmp eax, edx
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0x54]
cmovbe edi, ecx
cmp dword [esi + 0x18], 0
push 0xcf1bbcdc
cmovne edi, ecx
mov dword [esp + 0x4c], edx
mov ecx, 6
mov dword [esp + 0x50], edi
cmp eax, ecx
mov dword [esp + 0x78], edx
push 0xbf9b0000
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x48], eax
mov edi, dword [eax + 0x5c]
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
push dword [eax + 4]
push dword [eax]
call fcn.10071fd0
mov edi, dword [esp + 0x40]
mov ecx, 0x38
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
sub ecx, dword [edi + 0x24]
call fcn.100950f0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x50], eax
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x1c], 0x3f
lea ecx, [eax + esi]
lea eax, [edi + eax*4]
mov dword [esp + 0x60], ecx
mov edi, dword [esp + 0x28]
mov dword [esp + 0x64], eax
cmp dword [edi + 0xdc], 0
jne 0x1002c6ad
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0x1c]
sub eax, esi
cmp eax, 0x180
jbe 0x1002c5b1
lea eax, [esi + 0x60]
mov dword [esp + 0x44], eax
cmp esi, eax
jae 0x1002c52e
mov eax, 0x38
sub eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esp + 0x70], eax
nop dword [eax]
nop word [eax + eax]
push 0xcf1bbcdc
push 0xbf9b0000
push dword [eax + esi + 4]
push dword [eax + esi]
call fcn.10071fd0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x14]
call fcn.100950f0
mov ecx, eax
mov eax, esi
and eax, 7
mov edx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], ecx
mov edi, edx
shr edi, 2
mov eax, 0
and edi, 0x3fffffc0
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x18]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov dword [ecx + eax*4], esi
inc esi
mov eax, dword [esp + 0x70]
cmp esi, dword [esp + 0x44]
jb 0x1002c4b0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esi, 0xffffffe0
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x18], esi
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x1002c54d
xor ecx, ecx
jmp 0x1002c552
sub ecx, edx
sub ecx, esi
inc ecx
mov eax, 8
cmp ecx, eax
cmova ecx, eax
add ecx, esi
mov dword [esp + 0x14], ecx
cmp esi, ecx
jae 0x1002c5b1
mov eax, 0x38
sub eax, dword [edi + 0x24]
mov dword [esp + 0x44], eax
push 0xcf1bbcdc
push 0xbf9b0000
push dword [esi + edx + 4]
push dword [esi + edx]
call fcn.10071fd0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x44]
call fcn.100950f0
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, esi
inc esi
and eax, 7
mov dword [edi + eax*4 + 0x2c], ecx
cmp esi, dword [esp + 0x14]
jb 0x1002c572
mov esi, dword [esp + 0x18]
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], ecx
cmp esi, dword [esp + 0x24]
jae 0x1002c666
mov eax, 0x38
sub eax, dword [edi + 0x24]
mov dword [esp + 0x70], eax
nop
push 0xcf1bbcdc
push 0xbf9b0000
push dword [esi + ecx + 0xc]
push dword [esi + ecx + 8]
call fcn.10071fd0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x70]
call fcn.100950f0
mov ecx, eax
mov eax, esi
and eax, 7
mov edx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], ecx
mov edi, edx
shr edi, 2
mov eax, 0
and edi, 0x3fffffc0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x14]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov dword [ecx + eax*4], esi
inc esi
mov ecx, dword [esp + 0x80]
cmp esi, dword [esp + 0x24]
jb 0x1002c5e0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
push 0xcf1bbcdc
push 0xbf9b0000
mov dword [edi + 0x1c], esi
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.10071fd0
xor eax, dword [esp + 0x58]
mov ecx, 0x38
xor edx, dword [esp + 0x48]
sub ecx, dword [esp + 0x10]
call fcn.100950f0
mov ecx, eax
mov eax, esi
and eax, 7
mov edx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], ecx
jmp 0x1002c6db
movq xmm0, qword [esp + 0x70]
mov eax, 0x38
sub eax, dword [esp + 0x10]
movq xmm1, qword [esp + 0x80]
xorps xmm1, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x24]
psrlq xmm1, xmm0
mov dword [edi + 0x1c], eax
movd edx, xmm1
add dword [edi + 0x58], edx
mov eax, edx
movzx ecx, dl
mov edx, dword [esp + 0x3c]
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
movzx esi, byte [edx]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x18]
movsx eax, al
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov dword [esp + 0x58], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 4
jl 0x1002c740
mov eax, dword [esp + 0x7c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x78]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x74]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x70]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x3c], ecx
or edi, eax
mov edx, dword [esp + 0x3c]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.100950d0
mov dword [esp + 0x48], eax
mov ecx, esi
mov dword [esp + 0x10], edx
mov eax, edi
mov edx, dword [esp + 0x3c]
call fcn.100950f0
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
or esi, eax
or ecx, edx
mov dword [esp + 0x10], ecx
ja 0x1002c7d5
test esi, esi
je 0x1002c839
mov edi, dword [esp + 0x54]
nop dword [eax]
test edi, edi
je 0x1002c835
push ecx
push esi
call fcn.100218d0
add eax, dword [esp + 0x60]
add esp, 8
and eax, 0x3f
je 0x1002c815
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x4c]
jb 0x1002c835
mov eax, dword [esp + 0x1c]
mov dword [esp + eax*4 + 0x98], ecx
inc eax
mov dword [esp + 0x1c], eax
dec edi
mov edx, dword [esp + 0x10]
mov ecx, esi
add ecx, 0xffffffff
adc edx, 0xffffffff
and esi, ecx
mov ecx, dword [esp + 0x10]
and ecx, edx
mov dword [esp + 0x10], ecx
ja 0x1002c7e0
jb 0x1002c835
test esi, esi
jne 0x1002c7e0
mov dword [esp + 0x54], edi
mov edx, dword [esp + 0x80]
mov esi, 0x3f
mov eax, 0
movzx ecx, byte [edx]
dec ecx
and ecx, 0x3f
cmove eax, esi
mov esi, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x18]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [esp + 0x1c], 0
jbe 0x1002c8f0
mov edi, dword [esp + 0x2c]
mov esi, 3
mov ecx, dword [esp + 0x1c]
xor eax, eax
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0x98]
mov edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0x1002c8df
push dword [esp + 0x34]
mov ecx, edi
call fcn.1001b5f0
mov ecx, eax
add esp, 4
cmp ecx, esi
jbe 0x1002c8db
mov eax, dword [esp + 0x24]
mov esi, ecx
sub eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
add eax, 3
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x34]
je 0x1002c8ec
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x1002c890
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
sub ecx, eax
add dword [esp + 0x5c], ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
movzx esi, byte [edx]
movsx eax, al
mov dword [esp + 0x60], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
nop
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 4
jl 0x1002c950
mov eax, dword [esp + 0x8c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x88]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x84]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x80]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x40], ecx
or edi, eax
mov edx, dword [esp + 0x40]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.100950d0
mov dword [esp + 0x50], eax
mov ecx, esi
mov dword [esp + 0x10], edx
mov eax, edi
mov edx, dword [esp + 0x40]
call fcn.100950f0
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
or esi, eax
or ecx, edx
mov dword [esp + 0x10], ecx
ja 0x1002c9f8
test esi, esi
je 0x1002cb37
mov edi, dword [esp + 0x54]
nop dword [eax]
test edi, edi
je 0x1002ca55
push ecx
push esi
call fcn.100218d0
add eax, dword [esp + 0x68]
add esp, 8
and eax, 0x3f
je 0x1002ca35
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x4c]
jb 0x1002ca55
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x98], ecx
inc eax
mov dword [esp + 0x20], eax
dec edi
mov edx, dword [esp + 0x10]
mov ecx, esi
add ecx, 0xffffffff
adc edx, 0xffffffff
and esi, ecx
mov ecx, dword [esp + 0x10]
and ecx, edx
mov dword [esp + 0x10], ecx
ja 0x1002ca00
jb 0x1002ca55
test esi, esi
jne 0x1002ca00
cmp dword [esp + 0x20], 0
jbe 0x1002cb37
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0x98]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
add esi, eax
mov dword [esp + 0x50], eax
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1002cb0a
lea edi, [ecx + 4]
add esi, 4
mov ecx, dword [esp + 0x34]
mov eax, edi
sub eax, esi
mov dword [esp + 0x64], edi
add eax, dword [esp + 0x14]
mov edx, esi
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, edi
call fcn.1001b5f0
mov edi, eax
add esp, 4
lea ecx, [edi + esi]
mov esi, dword [esp + 0x34]
cmp ecx, dword [esp + 0x14]
jne 0x1002cad8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
push esi
lea ecx, [edi + ecx]
call fcn.1001b5f0
add esp, 4
add edi, eax
mov ecx, dword [esp + 0x30]
add edi, 4
cmp edi, ecx
jbe 0x1002cb0e
mov eax, dword [esp + 0x24]
mov ecx, edi
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
add eax, 3
mov dword [esp + 0x30], ecx
mov dword [edx], eax
mov eax, dword [esp + 0x2c]
add eax, edi
cmp eax, esi
je 0x1002cb21
jmp 0x1002cb0e
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jb 0x1002ca70
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret