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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x100a1040]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xbc]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb8]
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x68]
push 0x34
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
call fcn.10005890
lea eax, [esp + 0x3c]
push 0x34
push eax
call fcn.10005890
add esp, 0x10
cmp dword [esp + 0xd4], 2
jne 0x1001fb41
mov eax, edi
shl eax, 4
add eax, esi
mov dword [esp + 0x20], eax
jmp 0x1001fb47
mov eax, esi
mov dword [esp + 0x20], esi
mov dword [esi + 0x268], 0
xor ecx, ecx
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0x3e8
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0x3e8
mov dword [ebx + edi*4], 0
mov eax, dword [ebp + 0x48]
mov dword [ebx + edi*4 + 0x20], eax
cmp dword [ebp + 0x44], ecx
jle 0x1001fba7
lea eax, [edi + edi*2]
shl eax, 5
add eax, 0x140
add eax, ebx
nop
mov dword [eax + 0x30], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0
inc ecx
cmp ecx, dword [ebp + 0x44]
jl 0x1001fb90
mov dword [ebx + edi*8 + 0x44], 0
mov dword [ebx + edi*8 + 0x40], 0
mov dword [ebx + edi*8 + 0x84], 0
mov dword [ebx + edi*8 + 0x80], 0
cmp dword [ebp + 0x40], 0
je 0x10020059
mov ecx, dword [ebp + 0x44]
test ecx, ecx
jle 0x10020059
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [ebp + 0x28]
push eax
push ecx
push dword [ebp + 0xe0]
lea eax, [ebp + 0xd4]
push eax
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x3c]
push dword [esp + 0x30]
call fcn.1001ede0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x68]
push 0
push eax
call fcn.1002cd80
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x50]
push eax
push 0x3e8
push dword [esp + 0x5c]
call fcn.1000e4e0
mov ecx, dword [esp + 0x5c]
add esp, 0x48
add ecx, esi
push ecx
push eax
call fcn.100066c0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0xc], eax
lea eax, [edi + edi*2]
push dword [ebp + 0x48]
shl eax, 5
push dword [ebp + 0x18]
add eax, ebx
mov dword [esp + 0x2c], eax
add eax, 0x140
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.1001f7e0
mov ecx, dword [ebp + 0x18]
add esp, 0x18
sub ecx, 1
js 0x1001fcad
lea eax, [edi + 5]
lea eax, [edi + eax*2]
lea eax, [ecx + eax*8]
lea eax, [ebx + eax*4]
nop dword [eax]
cmp dword [eax], 0
jne 0x1001fcad
sub eax, 4
sub ecx, 1
jns 0x1001fca0
xor edx, edx
lea esi, [ecx + 1]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [ebx + edi*8 + 0x80], esi
mov dword [esp + 0x10], edx
test ecx, ecx
js 0x1001fd27
cmp esi, 2
jl 0x1001fe9b
lea eax, [edi + edi*2]
shr esi, 1
lea eax, [eax*8 + 0x4f]
add eax, ecx
lea edx, [ebx + eax*4]
mov eax, esi
neg eax
lea ecx, [ecx + eax*2]
nop word [eax + eax]
mov eax, dword [edx + 4]
lea edx, [edx - 8]
imul eax, eax
add dword [esp + 0x18], eax
mov eax, dword [edx + 8]
imul eax, eax
add dword [esp + 0x14], eax
sub esi, 1
jne 0x1001fcf0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test ecx, ecx
jns 0x1001fe9d
xor ecx, ecx
lea eax, [esi + edx]
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [ebx + edi*8 + 0xc0], eax
mov eax, dword [esp + 0xc8]
sub eax, dword [ebp + 0xcc]
mov dword [ebx + edi*8 + 0x40], eax
mov eax, dword [ecx + 0xc]
cmp eax, dword [ebp + 8]
jg 0x1001fd63
mov eax, dword [ebp + 0x18]
cdq
sub eax, edx
sar eax, 1
add eax, 2
cmp dword [esp + 0x10], eax
jle 0x10020059
mov dword [ecx + 4], 1
inc dword [ebx + edi*4]
cmp dword [esp + 0xd4], 2
je 0x10020059
cmp dword [ebp + 4], 0
je 0x10020059
cmp dword [ebp + 0x38], 0
je 0x10020059
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x1c]
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x78]
push 0
push eax
call fcn.1002cd80
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push 0x3e8
push dword [esp + 0x38]
call fcn.1000e4e0
mov ecx, dword [esp + 0x38]
add ecx, esi
push ecx
push eax
call fcn.100066c0
push dword [ebp + 0x48]
mov ecx, dword [esp + 0x4c]
push dword [ebp + 0x1c]
add ecx, 0x170
mov dword [esp + 0x4c], eax
push ecx
lea eax, [esp + 0xd4]
push eax
call fcn.1001f7e0
mov ecx, dword [ebp + 0x1c]
add esp, 0x3c
sub ecx, 1
js 0x1001fe1d
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x5c]
add eax, ecx
lea eax, [ebx + eax*4]
cmp dword [eax], 0
jne 0x1001fe1d
sub eax, 4
sub ecx, 1
jns 0x1001fe10
xor edx, edx
lea eax, [ecx + 1]
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [ebx + edi*8 + 0x84], eax
mov dword [esp + 0x14], edx
test ecx, ecx
js 0x1001fec9
cmp eax, 2
jl 0x1001feb2
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x5b]
add eax, ecx
lea edx, [ebx + eax*4]
mov ebx, dword [esp + 0x1c]
shr ebx, 1
mov eax, ebx
neg eax
xor ebp, ebp
lea ecx, [ecx + eax*2]
nop
mov eax, dword [edx + 4]
lea edx, [edx - 8]
imul eax, eax
add esi, eax
mov eax, dword [edx + 8]
imul eax, eax
add ebp, eax
sub ebx, 1
jne 0x1001fe60
mov ebx, dword [esp + 0x24]
mov edx, ebp
mov dword [esp + 0x10], ebp
mov eax, esi
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
test ecx, ecx
jns 0x1001feb2
mov ecx, dword [esp + 0x14]
lea eax, [edx + esi]
add ecx, eax
jmp 0x1001fecb
mov esi, edx
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8]
mov ecx, dword [ebx + eax*4 + 0x140]
imul ecx, ecx
jmp 0x1001fd1e
lea eax, [edi + edi*2]
lea eax, [ecx + eax*8]
mov ecx, dword [ebx + eax*4 + 0x170]
lea eax, [edx + esi]
imul ecx, ecx
add ecx, eax
jmp 0x1001fecb
mov ecx, edx
mov eax, dword [ebp + 0x24]
mov dword [ebx + edi*8 + 0xc4], eax
mov eax, dword [ebp + 0xcc]
sub eax, dword [ebp + 0xd0]
mov dword [ebx + edi*8 + 0x44], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ebp + 0xc]
jle 0x1001fefb
imul eax, dword [ebp + 0x1c], 0x3e80
cmp dword [esp + 0x18], eax
jl 0x1001ff10
cmp ecx, 9
jle 0x1002004e
imul eax, dword [ebp + 0x1c], 0x16
cmp ecx, eax
jge 0x1002004e
mov ecx, dword [esp + 0x20]
xor esi, esi
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [ecx + 8], 1
xor ecx, ecx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
cmp edx, 2
jl 0x1001ff91
lea esi, [edi + edi*2]
lea eax, [edx - 2]
shl esi, 5
shr eax, 1
add esi, 0x140
inc eax
add esi, ebx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ebp, eax
xor edi, edi
lea ecx, [eax + eax]
mov eax, dword [esi]
lea esi, [esi + 8]
sub eax, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [esi - 4]
sub eax, dword [esi + 0x2c]
cdq
xor eax, edx
sub eax, edx
add edi, eax
sub ebp, 1
jne 0x1001ff52
mov ebp, dword [esp + 0x28]
xor eax, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x2c]
cmp ecx, edx
jge 0x1001ffaf
lea eax, [edi + edi*2]
lea edx, [ecx + eax*8]
mov eax, dword [ebx + edx*4 + 0x140]
sub eax, dword [ebx + edx*4 + 0x170]
cdq
xor eax, edx
sub eax, edx
inc ecx
mov edx, dword [esp + 0x10]
add edx, esi
add edx, eax
cmp edx, 2
jge 0x1002004b
mov eax, dword [ebx + edi*8 + 0xc4]
cmp eax, dword [ebx + edi*8 + 0xc0]
jne 0x1002004b
mov eax, dword [esp + 0x30]
mov dword [eax + 0x268], 1
mov eax, dword [esp + 0xc8]
sub eax, dword [ebp + 0xd0]
mov ebp, dword [ebx + edi*8 + 0x80]
mov dword [ebx + edi*8 + 0x40], eax
cmp ecx, ebp
jge 0x1002001a
lea esi, [edi + 5]
lea esi, [edi + esi*2]
lea esi, [ecx + esi*8]
lea esi, [ebx + esi*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x1002001a
inc ecx
add esi, 4
cmp ecx, ebp
jl 0x10020006
sub ecx, 1
js 0x1002003d
lea eax, [edi + 5]
lea eax, [edi + eax*2]
lea eax, [ecx + eax*8]
lea eax, [ebx + eax*4]
nop dword [eax + eax]
cmp dword [eax], 0
jne 0x1002003d
sub eax, 4
sub ecx, 1
jns 0x10020030
cmp ecx, ebp
jge 0x1002004e
inc ecx
mov dword [ebx + edi*8 + 0x80], ecx
jmp 0x1002004e
inc dword [ebx + edi*4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xb4]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003b025
add esp, 0xa8
ret