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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x190
mov esi, esp
mov eax, dword [ebp + 8]
push eax
sub esp, 0xc
mov edi, esp
and edi, 0xfffffff8
mov esp, edi
push eax
mov dword [esi + 0x140], esp
mov dword [esi + 0x148], eax
mov byte [esi + 3], 0
mov al, byte [esi + 0xb0]
mov byte [esi + 0xb4], al
mov byte [esi + 0x108], 0x8d
mov byte [esi + 0x109], 0x82
mov byte [esi + 0x10a], 0xb6
mov byte [esi + 0x10b], 0xee
mov byte [esi + 0x10c], 0xbc
mov byte [esi + 0x10d], 0x80
mov byte [esi + 0x10e], 0xbc
mov byte [esi + 0x10f], 0xba
mov byte [esi + 0x110], 0x14
mov byte [esi + 0x119], 0
mov dword [esi + 0x115], 0
mov dword [esi + 0x111], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
cmp eax, 0x12
jae 0x40b26e
jmp 0x40b217
mov eax, dword [esi + 4]
mov ecx, dword [esi + 4]
movzx ecx, byte [esi + ecx + 0x108]
mov edx, eax
add edx, 0xf0bc7a5a
add eax, 0x5a
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esi + 0x14c], edx
mov ecx, dword [esi + 0x14c]
mov eax, ecx
or eax, 0x89
and ecx, 0x89
add eax, ecx
inc al
mov ecx, dword [esi + 4]
mov byte [esi + ecx + 0x108], al
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0x12
jb 0x40b217
jmp 0x40b26e
mov dword [esi + 0x144], edi
lea eax, [esi + 0x16b]
lea edx, [esi + 0x108]
mov edi, eax
mov ecx, 2
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 8
lea edx, [esi + 0x108]
add edx, 8
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov al, byte [esi + 0x110]
mov byte [esi + 0x173], al
call fcn.0040ee40
mov al, byte [esi + 0xac]
mov byte [esi + 0xb8], al
mov byte [esi + 0x30], 0xf3
mov byte [esi + 0x31], 0xb9
mov byte [esi + 0x32], 0xc9
mov byte [esi + 0x33], 0xbb
mov byte [esi + 0x34], 0xd4
mov byte [esi + 0x35], 0xbd
mov byte [esi + 0x36], 0xc8
mov byte [esi + 0x37], 0xbf
mov byte [esi + 0x38], 0xd9
mov byte [esi + 0x39], 0xc1
mov byte [esi + 0x3a], 0xae
mov byte [esi + 0x3b], 0xc3
mov byte [esi + 0x3c], 0xb6
mov byte [esi + 0x3d], 0xc5
mov byte [esi + 0x3e], 0xeb
mov byte [esi + 0x3f], 0xc7
mov byte [esi + 0x40], 0x92
mov byte [esi + 0x41], 0xc9
mov byte [esi + 0x42], 0xb3
mov byte [esi + 0x43], 0xcb
mov byte [esi + 0x44], 0xba
mov byte [esi + 0x45], 0xcd
mov byte [esi + 0x46], 0xab
mov byte [esi + 0x47], 0xcf
mov byte [esi + 0x48], 0xf4
mov byte [esi + 0x49], 0xd1
mov byte [esi + 0x4a], 0xf0
mov byte [esi + 0x4b], 0xd3
mov byte [esi + 0x4c], 0xb1
mov byte [esi + 0x4d], 0xd5
mov byte [esi + 0x4e], 0xa4
mov byte [esi + 0x4f], 0xd7
mov byte [esi + 0x50], 0xa6
mov byte [esi + 0x51], 0xd9
mov byte [esi + 0x52], 0xb4
mov byte [esi + 0x53], 0xdb
mov byte [esi + 0x54], 0xb1
mov byte [esi + 0x55], 0xdd
mov byte [esi + 0x56], 0xb9
mov byte [esi + 0x57], 0xdf
mov byte [esi + 0x58], 0xbd
mov byte [esi + 0x59], 0xe1
mov byte [esi + 0x5a], 0x94
mov byte [esi + 0x5b], 0xe3
mov byte [esi + 0x5c], 0x89
mov byte [esi + 0x5d], 0xe5
mov byte [esi + 0x5e], 0x95
mov byte [esi + 0x5f], 0xe7
mov byte [esi + 0x60], 0x88
mov byte [esi + 0x61], 0xe9
mov byte [esi + 0x62], 0xd9
mov byte [esi + 0x63], 0xeb
mov byte [esi + 0x64], 0x92
mov byte [esi + 0x65], 0xed
mov byte [esi + 0x66], 0xc3
mov byte [esi + 0x67], 0xef
mov byte [esi + 0x68], 0x97
mov byte [esi + 0x69], 0xf1
mov byte [esi + 0x6a], 0x89
mov byte [esi + 0x6b], 0xf3
mov byte [esi + 0x6c], 0x8b
mov byte [esi + 0x6d], 0xf5
mov byte [esi + 0x6e], 0xdb
mov byte [esi + 0x6f], 0xf7
mov byte [esi + 0x70], 0x90
mov byte [esi + 0x71], 0xf9
mov byte [esi + 0x72], 0x89
mov byte [esi + 0x73], 0xfb
mov byte [esi + 0x74], 0x88
mov byte [esi + 0x75], 0xfd
mov byte [esi + 0x76], 0x93
mov byte [esi + 0x77], 0xff
mov byte [esi + 0x78], 0xd1
mov byte [esi + 0x79], 1
mov byte [esi + 0x7a], 0x77
mov byte [esi + 0x7b], 3
mov byte [esi + 0x7c], 0x70
mov byte [esi + 0x7d], 5
mov byte [esi + 0x7e], 0x68
mov byte [esi + 0x7f], 7
mov byte [esi + 0x80], 0x61
mov byte [esi + 0x81], 9
mov byte [esi + 0x82], 0x66
mov byte [esi + 0x83], 0xb
mov byte [esi + 0x84], 0x6f
mov byte [esi + 0x85], 0xd
mov byte [esi + 0x86], 0x7d
mov byte [esi + 0x87], 0xf
mov byte [esi + 0x88], 0x6a
mov byte [esi + 0x89], 0x11
mov byte [esi + 0x8a], 0x77
mov byte [esi + 0x8b], 0x13
mov byte [esi + 0x8c], 0x76
mov byte [esi + 0x8d], 0x15
mov byte [esi + 0x8e], 0x1b
mov byte [esi + 0x8f], 0x17
mov byte [esi + 0x90], 0x1c
mov byte [esi + 0x91], 0x19
mov byte [esi + 0x92], 0x18
mov byte [esi + 0x93], 0x1b
mov dword [esi + 0x94], 0
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x68
jae 0x40b4ec
jmp 0x40b4a8
mov ecx, dword [esi + 8]
mov eax, dword [esi + 8]
movzx eax, byte [esi + eax + 0x30]
mov edx, ecx
add edx, 0x37
and edx, eax
add ecx, eax
add edx, edx
sub ecx, edx
add ecx, 0x9c3a0837
mov dword [esi + 0x150], ecx
mov eax, dword [esi + 0x150]
add al, 0x7f
mov ecx, dword [esi + 8]
mov byte [esi + ecx + 0x30], al
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0x68
jb 0x40b4a8
jmp 0x40b4ec
mov al, byte [esi + 0xa8]
mov byte [esi + 0xbc], al
mov byte [esi + 0x120], 0x1f
mov byte [esi + 0x121], 0x2d
mov byte [esi + 0x122], 0x43
mov byte [esi + 0x123], 0x23
mov byte [esi + 0x124], 0x50
mov byte [esi + 0x125], 0x21
mov byte [esi + 0x126], 0x5f
mov byte [esi + 0x127], 0x27
mov byte [esi + 0x128], 0x24
mov byte [esi + 0x129], 0x25
mov dword [esi + 0x131], 0
mov dword [esi + 0x12e], 0
mov dword [esi + 0x12a], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
cmp eax, 0x15
jae 0x40b5c0
jmp 0x40b56d
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
movzx ebx, byte [esi + eax + 0x120]
mov edi, edx
add edi, 0x26
mov ecx, edx
add ecx, ebx
and edi, ebx
mov eax, 0xeb00cfd9
sub eax, edx
or eax, ebx
add eax, edx
add eax, edi
not eax
add ecx, eax
mov dword [esi + 0x154], ecx
mov eax, dword [esi + 0x154]
add al, 0xf6
mov ecx, dword [esi + 0xc]
mov byte [esi + ecx + 0x120], al
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x15
jb 0x40b56d
jmp 0x40b5c0
jmp 0x40b5c2
mov eax, dword [esi + 0x148]
lea ecx, [esi + 0x120]
lea edx, [esi + 0x30]
lea edi, [esi + 0x24]
xor ebx, ebx
sub esp, 0x1c
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea eax, [esi + 0x16b]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.0040c360
add esp, 0x1c
jmp 0x40b60c
test al, 1
jne 0x40b615
jmp 0x40ba7b
mov al, byte [esi + 0xa4]
mov byte [esi + 0xc0], al
mov byte [esi + 0x28], 0x97
mov byte [esi + 0x29], 0x88
mov byte [esi + 0x2a], 0x24
mov byte [esi + 0x2f], 0
mov dword [esi + 0x2b], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x10]
cmp eax, 8
jae 0x40b6a2
jmp 0x40b649
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
movzx ecx, byte [esi + ecx + 0x28]
mov edx, eax
add edx, 0xe178685
mov edi, ecx
not edi
mov ebx, edx
or ebx, edi
and edx, ecx
add ebx, edx
neg ebx
lea eax, [eax + ebx + 0xe178684]
mov dword [esi + 0x158], eax
mov eax, dword [esi + 0x158]
mov ecx, eax
xor ecx, 0x5c
and eax, 0x5c
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esi + 0x10]
mov byte [esi + ecx + 0x28], al
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
cmp eax, 8
jb 0x40b649
jmp 0x40b6a2
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x28]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040da60
add esp, 8
cmp eax, 0
jne 0x40b6c8
mov byte [esi + 3], 1
jmp 0x40ba6a
mov al, byte [esi + 0xa0]
mov byte [esi + 0xc4], al
mov byte [esi + 0xf0], 0x53
mov byte [esi + 0xf1], 0x1e
mov byte [esi + 0xf2], 0x1d
mov byte [esi + 0xf3], 0x6f
mov byte [esi + 0xf4], 0x61
mov byte [esi + 0xf5], 0x6c
mov byte [esi + 0xf6], 0x62
mov byte [esi + 0xf7], 0xff
mov byte [esi + 0xf8], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
cmp eax, 9
jae 0x40b76c
jmp 0x40b724
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
movzx ecx, byte [esi + ecx + 0xf0]
mov edx, eax
add edx, 0x3d0f1e1f
add eax, 0x1f
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esi + 0x15c], edx
mov eax, dword [esi + 0x15c]
add al, 0x27
mov ecx, dword [esi + 0x14]
mov byte [esi + ecx + 0xf0], al
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, 9
jb 0x40b724
jmp 0x40b76c
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0xf0]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c300
add esp, 8
cmp eax, 0
je 0x40ba68
mov al, byte [esi + 0x9c]
mov byte [esi + 0xc8], al
mov byte [esi + 0xd0], 0x2e
mov byte [esi + 0xd1], 0x10
mov byte [esi + 0xd2], 0x2f
mov byte [esi + 0xd3], 0x16
mov byte [esi + 0xd4], 0x79
mov byte [esi + 0xd5], 0x57
mov byte [esi + 0xd6], 0x17
mov byte [esi + 0xd7], 0x23
mov byte [esi + 0xd8], 0x37
mov byte [esi + 0xd9], 0x32
mov byte [esi + 0xda], 0x48
mov byte [esi + 0xdb], 0x4b
mov byte [esi + 0xdc], 0x3a
mov byte [esi + 0xdd], 0xc
mov byte [esi + 0xde], 0x32
mov byte [esi + 0xdf], 0x3a
mov byte [esi + 0xe0], 5
mov byte [esi + 0xe1], 0x6c
mov byte [esi + 0xe2], 0x40
mov byte [esi + 0xe3], 0xa3
mov byte [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x19
jae 0x40b89d
jmp 0x40b84a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
movzx ecx, byte [esi + ecx + 0xd0]
mov edx, eax
add edx, 0x5cea4148
add eax, 0x48
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esi + 0x160], edx
mov eax, dword [esi + 0x160]
mov ecx, eax
xor ecx, 7
and eax, 7
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esi + 0x18]
mov byte [esi + ecx + 0xd0], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x19
jb 0x40b84a
jmp 0x40b89d
lea eax, [esi + 0x174]
lea edx, [esi + 0xd0]
mov edi, eax
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
add eax, 0x14
lea edx, [esi + 0xd0]
add edx, 0x14
xor ecx, ecx
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea eax, [esi + 0x174]
mov ecx, dword [esi + 0x24]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c300
add esp, 8
mov dword [esi + 0x20], eax
cmp dword [esi + 0x20], 0
je 0x40ba68
mov eax, dword [esi + 0x20]
add eax, 0x13
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x140]
mov al, byte [eax]
mov byte [esi + 0xcc], al
mov edi, dword [esi + 0x144]
mov byte [edi], 8
mov byte [edi + 1], 0xf7
mov byte [edi + 2], 0x34
mov byte [edi + 0xf], 0
mov dword [edi + 0xb], 0
mov dword [edi + 7], 0
mov dword [edi + 3], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jae 0x40b989
jmp 0x40b947
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [edi + ecx]
mov edx, eax
add edx, 0x828403f9
add eax, 0xf9
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esi + 0x164], edx
mov eax, dword [esi + 0x164]
add al, 0x31
mov ecx, dword [esi + 0x1c]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jb 0x40b947
jmp 0x40b989
mov eax, dword [esi + 0x20]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040c300
add esp, 8
mov dword [esi + 0x100], eax
cmp dword [esi + 0x100], 0
setne al
test al, 1
jne 0x40b9b7
jmp 0x40ba64
mov byte [0x448a78], 1
mov ebx, dword [esi + 0x100]
mov edi, dword [esi + 0x20]
cmp ebx, 0
jne 0x40b9e2
mov ecx, edi
jmp 0x40b9d0
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40b9d0
sub eax, edi
mov ebx, edi
add ebx, eax
mov dword [esi + 0x104], 0
lea eax, [0x448a7a]
cmp ebx, edi
jbe 0x40ba5b
lea ecx, [0x448a7a]
jmp 0x40b9fe
cmp byte [edi], 0
jne 0x40ba07
mov eax, ecx
jmp 0x40ba5b
sub esp, 0xc
lea eax, [esi + 0x104]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esi + 0x13c], ecx
call fcn.0040eca0
add esp, 0xc
add edi, eax
mov cx, word [esi + 0x104]
mov edx, dword [esi + 0x13c]
mov eax, edx
add eax, 2
mov word [edx], cx
mov ecx, eax
sub ecx, 0x448c78
setb cl
mov edx, edi
sub edx, ebx
setb dl
and cl, dl
test cl, 1
mov ecx, eax
jne 0x40b9fe
mov word [eax], 0
mov byte [esi + 3], 1
jmp 0x40ba66
jmp 0x40ba68
jmp 0x40ba6a
mov eax, dword [esi + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.00438e10
add esp, 4
mov al, byte [esi + 3]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret