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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1026d48c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
mov ebx, ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ecx
je 0x1017bee1
test ebp, ebp
je 0x1017bee5
push edi
call fcn.1001d220
test eax, eax
mov dword [esp + 0x4c], eax
je 0x1017bee5
cmp byte [ebx + 0x88], 0
je 0x1017b4df
add dword [ebx + 0x90], edi
adc dword [ebx + 0x94], 0
cmp byte [esp + 0x120], 0
jne 0x1017b4df
push edi
push ebp
lea ecx, [ebx + 0x98]
call fcn.1018bf50
test al, al
je 0x1017bee5
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x448]
mov edx, dword [esi + 0x44c]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x450]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x454]
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x458]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x45c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 0x460]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x464]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x468]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0x46c]
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0x470]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x474]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x478]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x47c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x480]
mov dword [esp + 0x94], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], eax
nop
cmp edi, 0x40
jae 0x1017b5ca
xor eax, eax
test edi, edi
jbe 0x1017b5c3
lea ecx, [esp + 0xd8]
sub ebp, ecx
jmp 0x1017b5b0
lea ecx, [esp + eax + 0xd8]
mov dl, byte [ecx + ebp]
add eax, 1
cmp eax, edi
mov byte [ecx], dl
jb 0x1017b5b0
lea ebp, [esp + 0xd8]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], 0x14
jmp 0x1017b650
add eax, edi
mov ecx, dword [esp + 0x38]
xor ecx, eax
rol ecx, 0x10
add edx, ecx
add esi, dword [esp + 0x24]
mov edi, edx
xor edi, dword [esp + 0x34]
rol edi, 0xc
add eax, edi
xor ecx, eax
rol ecx, 8
add edx, ecx
mov dword [esp + 0x38], ecx
mov ecx, edx
xor ecx, edi
mov edi, dword [esp + 0x3c]
xor edi, esi
rol ecx, 7
rol edi, 0x10
add ebx, edi
mov dword [esp + 0x34], ecx
mov ecx, ebx
xor ecx, dword [esp + 0x24]
rol ecx, 0xc
add esi, ecx
xor edi, esi
rol edi, 8
add ebx, edi
mov dword [esp + 0x3c], edi
mov edi, ebx
xor edi, ecx
mov ecx, dword [esp + 0x18]
rol edi, 7
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
add edi, dword [esp + 0x10]
xor ecx, edi
rol ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x1c]
add edi, ecx
mov ecx, edi
xor ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x28]
rol ecx, 0xc
add edi, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
xor ecx, edi
rol ecx, 8
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x1c]
add edi, ecx
mov dword [esp + 0x18], ecx
mov ecx, edi
xor ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x14]
rol ecx, 7
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
xor ecx, edi
rol ecx, 0x10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
add edi, ecx
mov dword [esp + 0x30], ecx
mov ecx, edi
xor ecx, dword [esp + 0x14]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
rol ecx, 0xc
add edi, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
xor ecx, edi
rol ecx, 8
add eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add edi, ecx
mov dword [esp + 0x30], ecx
mov ecx, edi
xor ecx, dword [esp + 0x14]
add esi, dword [esp + 0x10]
rol ecx, 7
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
xor ecx, eax
rol ecx, 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x1c]
add edi, ecx
mov ecx, edi
xor ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
rol ecx, 0xc
mov dword [esp + 0x24], ecx
add eax, ecx
mov ecx, dword [esp + 0x30]
xor ecx, eax
rol ecx, 8
add edi, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
xor ecx, esi
mov dword [esp + 0x1c], edi
xor edi, dword [esp + 0x24]
rol edi, 7
rol ecx, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
add edi, ecx
mov ecx, edi
xor ecx, dword [esp + 0x10]
mov dword [esp + 0x20], edi
rol ecx, 0xc
mov dword [esp + 0x10], ecx
add esi, ecx
mov ecx, dword [esp + 0x38]
xor ecx, esi
rol ecx, 8
add edi, ecx
mov dword [esp + 0x20], edi
xor edi, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
rol edi, 7
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
add edi, dword [esp + 0x14]
xor ecx, edi
rol ecx, 0x10
add edx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, edx
xor ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
rol ecx, 0xc
add edi, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
xor ecx, edi
rol ecx, 8
add edx, ecx
mov dword [esp + 0x3c], ecx
mov ecx, edx
xor ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x34]
rol ecx, 7
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
xor ecx, edi
rol ecx, 0x10
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, ebx
xor ecx, dword [esp + 0x34]
rol ecx, 0xc
add edi, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
xor ecx, edi
rol ecx, 8
add ebx, ecx
mov dword [esp + 0x18], ecx
mov ecx, ebx
xor ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
rol ecx, 7
sub dword [esp + 0x48], 2
mov edi, ecx
mov dword [esp + 0x34], edi
jne 0x1017b650
xor ecx, ecx
mov ch, byte [ebp + 3]
movzx edi, byte [ebp + 1]
mov cl, byte [ebp + 2]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [ebp]
or ecx, edi
mov edi, dword [esp + 0x58]
add eax, edi
xor eax, ecx
xor ecx, ecx
mov ch, byte [ebp + 7]
movzx edi, byte [ebp + 5]
mov cl, byte [ebp + 6]
shl ecx, 8
or ecx, edi
movzx edi, byte [ebp + 4]
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x50]
add esi, edi
xor ecx, esi
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov ch, byte [ebp + 0xb]
movzx esi, byte [ebp + 9]
mov edi, dword [esp + 0x88]
mov cl, byte [ebp + 0xa]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 8]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x28]
add esi, edi
xor ecx, esi
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov ch, byte [ebp + 0xf]
movzx esi, byte [ebp + 0xd]
mov edi, dword [esp + 0x60]
mov cl, byte [ebp + 0xe]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0xc]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x2c]
add esi, edi
xor ecx, esi
movzx esi, byte [ebp + 0x11]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov ch, byte [ebp + 0x13]
mov edi, dword [esp + 0x84]
mov cl, byte [ebp + 0x12]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0x10]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x34]
add esi, edi
xor ecx, esi
movzx esi, byte [ebp + 0x15]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov ch, byte [ebp + 0x17]
mov edi, dword [esp + 0x68]
mov cl, byte [ebp + 0x16]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0x14]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x24]
add esi, edi
xor ecx, esi
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov ch, byte [ebp + 0x1b]
movzx esi, byte [ebp + 0x19]
mov edi, dword [esp + 0x7c]
mov cl, byte [ebp + 0x1a]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0x18]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x10]
add esi, edi
xor ecx, esi
movzx esi, byte [ebp + 0x1d]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov ch, byte [ebp + 0x1f]
mov edi, dword [esp + 0x70]
mov cl, byte [ebp + 0x1e]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0x1c]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x14]
add esi, edi
xor ecx, esi
movzx esi, byte [ebp + 0x21]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov ch, byte [ebp + 0x23]
mov edi, dword [esp + 0x54]
mov cl, byte [ebp + 0x22]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 0x20]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x80]
add edx, esi
movzx esi, byte [ebp + 0x25]
xor ecx, edx
xor edx, edx
mov dh, byte [ebp + 0x27]
mov dl, byte [ebp + 0x26]
shl edx, 8
or edx, esi
movzx esi, byte [ebp + 0x24]
shl edx, 8
or edx, esi
mov esi, dword [esp + 0x78]
add ebx, esi
xor edx, ebx
movzx esi, byte [ebp + 0x29]
xor ebx, ebx
mov bh, byte [ebp + 0x2b]
mov bl, byte [ebp + 0x2a]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x28]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x1c]
add esi, edi
xor ebx, esi
movzx esi, byte [ebp + 0x2d]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov bh, byte [ebp + 0x2f]
mov edi, dword [esp + 0x5c]
mov bl, byte [ebp + 0x2e]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x2c]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x20]
add esi, edi
xor ebx, esi
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov bh, byte [ebp + 0x33]
movzx esi, byte [ebp + 0x31]
mov edi, dword [esp + 0x40]
mov bl, byte [ebp + 0x32]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x30]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x38]
add esi, edi
xor ebx, esi
mov dword [esp + 0x38], ebx
xor ebx, ebx
mov bh, byte [ebp + 0x37]
movzx esi, byte [ebp + 0x35]
mov edi, dword [esp + 0x44]
mov bl, byte [ebp + 0x36]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x34]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x3c]
add esi, edi
xor ebx, esi
movzx esi, byte [ebp + 0x39]
mov dword [esp + 0x3c], ebx
xor ebx, ebx
mov bh, byte [ebp + 0x3b]
mov edi, dword [esp + 0x64]
mov bl, byte [ebp + 0x3a]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x38]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x18]
add esi, edi
xor ebx, esi
movzx esi, byte [ebp + 0x3d]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov bh, byte [ebp + 0x3f]
mov edi, dword [esp + 0x6c]
mov bl, byte [ebp + 0x3e]
shl ebx, 8
or ebx, esi
movzx esi, byte [ebp + 0x3c]
shl ebx, 8
or ebx, esi
mov esi, dword [esp + 0x30]
add esi, edi
xor ebx, esi
mov esi, 1
add dword [esp + 0x40], esi
mov dword [esp + 0x30], ebx
jne 0x1017bb37
add dword [esp + 0x44], esi
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x99], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0x9a], bl
mov byte [esp + 0x98], al
shr eax, 0x18
mov byte [esp + 0x9b], al
mov eax, dword [esp + 0x48]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x9d], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0x9e], bl
mov byte [esp + 0x9c], al
shr eax, 0x18
mov byte [esp + 0x9f], al
mov eax, dword [esp + 0x28]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xa1], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0xa2], bl
mov byte [esp + 0xa0], al
shr eax, 0x18
mov byte [esp + 0xa3], al
mov eax, dword [esp + 0x2c]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xa5], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0xa6], bl
mov byte [esp + 0xa4], al
shr eax, 0x18
mov byte [esp + 0xa7], al
mov eax, dword [esp + 0x34]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xa9], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0xa8], al
mov byte [esp + 0xaa], bl
shr eax, 0x18
mov byte [esp + 0xab], al
mov eax, dword [esp + 0x24]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xad], bl
mov ebx, eax
shr ebx, 0x10
mov byte [esp + 0xac], al
shr eax, 0x18
mov byte [esp + 0xae], bl
mov byte [esp + 0xaf], al
mov eax, dword [esp + 0x10]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xb1], bl
mov ebx, eax
mov byte [esp + 0xb0], al
shr ebx, 0x10
shr eax, 0x18
mov byte [esp + 0xb3], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0xb2], bl
mov ebx, eax
shr ebx, 8
mov byte [esp + 0xb5], bl
mov ebx, eax
mov byte [esp + 0xb4], al
shr ebx, 0x10
shr eax, 0x18
mov byte [esp + 0xb7], al
mov byte [esp + 0xb6], bl
mov byte [esp + 0xb8], cl
mov eax, ecx
shr eax, 8
mov byte [esp + 0xb9], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0xba], al
mov eax, edx
mov byte [esp + 0xbb], cl
mov ecx, edx
shr eax, 0x10
mov byte [esp + 0xbc], dl
shr ecx, 8
shr edx, 0x18
mov byte [esp + 0xbe], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xbd], cl
mov byte [esp + 0xbf], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xc0], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xc3], al
mov eax, dword [esp + 0x20]
mov byte [esp + 0xc1], cl
mov byte [esp + 0xc2], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xc4], al
shr eax, 0x18
mov ebx, dword [esp + 0x12c]
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xc7], al
mov eax, dword [esp + 0x38]
mov byte [esp + 0xc5], cl
mov byte [esp + 0xc6], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xc8], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xcb], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xc9], cl
mov byte [esp + 0xca], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xcc], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xcf], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0xcd], cl
mov byte [esp + 0xce], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xd0], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xd3], al
mov eax, dword [esp + 0x30]
mov byte [esp + 0xd1], cl
mov byte [esp + 0xd2], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0xd4], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
cmp ebx, 0x40
mov byte [esp + 0xd5], cl
mov byte [esp + 0xd6], dl
mov byte [esp + 0xd7], al
jbe 0x1017be6a
mov eax, dword [esp + 0x4c]
mov edi, eax
add eax, 0x40
mov ecx, 0x10
lea esi, [esp + 0x98]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
cmp byte [eax + 0x88], 0
je 0x1017be56
cmp byte [esp + 0x120], 0
je 0x1017be56
push 0x40
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [eax + 0x98]
call fcn.1018bf50
test al, al
je 0x1017bee5
sub ebx, 0x40
mov dword [esp + 0x12c], ebx
add ebp, 0x40
mov edi, ebx
jmp 0x1017b590
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x474], edx
push ebx
lea edx, [esp + 0x9c]
mov dword [eax + 0x478], ecx
mov eax, dword [esp + 0x50]
push edx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp byte [eax + 0x88], 0
je 0x1017becd
cmp byte [esp + 0x120], 0
je 0x1017becd
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [eax + 0x98]
call fcn.1018bf50
test al, al
je 0x1017bee5
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push edx
call fcn.10018010
mov al, 1
jmp 0x1017bee7
xor al, al
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1018f87e
add esp, 0x10c
ret 0x18