Function at 0x40a330
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, 0xfffffff0
sub esp, 0xb0
mov esi, esp
push eax
sub esp, 8
mov dword [esi + 0x64], esp
sub esp, 0x20
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
mov dword [esi + 0x70], esp
push eax
push eax
mov dword [esi + 0x34], esp
sub esp, 0x80
mov ebx, esp
and ebx, 0xfffffff0
mov esp, ebx
push eax
mov dword [esi + 0x74], esp
push eax
sub esp, 0x20
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 0x2c], eax
mov esp, eax
push eax
mov dword [esi + 0x78], esp
push eax
sub esp, 0x10
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 0x30], eax
mov esp, eax
push eax
mov dword [esi + 0x7c], esp
jmp 0x40a392
jmp 0x40a394
call fcn.00408c70
push eax
jmp 0x40a39c
sub esp, 0x20
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 0x88], eax
mov esp, eax
jmp 0x40a3ae
jmp 0x40a3b0
call fcn.00408c70
push eax
mov dword [esi + 0x80], esp
push eax
sub esp, 0x14
mov dword [esi + 0x90], esp
sub esp, 0x30
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 0x38], eax
mov esp, eax
jmp 0x40a3d5
push eax
mov dword [esi + 0x84], esp
push eax
push eax
mov dword [esi + 0x98], esp
push eax
mov dword [esi + 0x94], esp
sub esp, 0x10
mov eax, esp
and eax, 0xfffffff0
mov dword [esi + 0x3c], eax
mov esp, eax
push eax
mov dword [esi + 0x8c], esp
push eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x9c], eax
mov byte [esi + 0xf], 0
mov eax, dword [esi + 0x70]
mov al, byte [eax]
mov byte [esi + 0x40], al
mov byte [edi], 0x61
mov byte [edi + 1], 0x62
mov byte [edi + 2], 0x76
mov byte [edi + 3], 0xbe
mov byte [edi + 4], 0x68
mov byte [edi + 5], 0x6c
mov byte [edi + 6], 0x60
mov byte [edi + 7], 0x62
mov byte [edi + 8], 0x88
mov dword [edi + 0x10], 0
mov dword [edi + 0xd], 0
mov dword [edi + 9], 0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x10]
cmp eax, 0x14
jae 0x40a484
jmp 0x40a45e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov cl, byte [edi + ecx]
add al, 0x40
xor al, cl
add al, 0x40
mov ecx, dword [esi + 0x10]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
cmp eax, 0x14
jb 0x40a45e
jmp 0x40a484
mov eax, edi
mov dword [esi + 0x60], edi
mov edx, dword [esi + 0x64]
mov edi, edx
mov ecx, 2
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edi, edx
add edi, 8
mov eax, dword [esi + 0x60]
add eax, 8
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esi + 0x60]
mov al, byte [eax + 8]
mov byte [edx + 8], al
mov eax, dword [esi + 0x74]
mov al, byte [eax]
mov byte [esi + 0x44], al
mov byte [ebx], 3
mov byte [ebx + 1], 0xc1
mov byte [ebx + 2], 0x6d
mov byte [ebx + 3], 0xc3
mov byte [ebx + 4], 0x6a
mov byte [ebx + 5], 0xc5
mov byte [ebx + 6], 0x72
mov byte [ebx + 7], 0xc7
mov byte [ebx + 8], 0x6d
mov byte [ebx + 9], 0xc9
mov byte [ebx + 0xa], 0x64
mov byte [ebx + 0xb], 0xcb
mov byte [ebx + 0xc], pe_nt_image_headers32
mov byte [ebx + 0xd], 0xcd
mov byte [ebx + 0xe], 0x23
mov byte [ebx + 0xf], 0xcf
mov byte [ebx + 0x10], 4
mov byte [ebx + 0x11], 0xd1
mov byte [ebx + 0x12], 0x6b
mov byte [ebx + 0x13], 0xd3
mov byte [ebx + 0x14], 0x64
mov byte [ebx + 0x15], 0xd5
mov byte [ebx + 0x16], 0x73
mov byte [ebx + 0x17], 0xd7
mov byte [ebx + 0x18], 0x22
mov byte [ebx + 0x19], 0xd9
mov byte [ebx + 0x1a], 0x3a
mov byte [ebx + 0x1b], 0xdb
mov byte [ebx + 0x1c], 0x7d
mov byte [ebx + 0x1d], 0xdd
mov byte [ebx + 0x1e], 0x6e
mov byte [ebx + 0x1f], 0xdf
mov byte [ebx + 0x20], 0x10
mov byte [ebx + 0x21], 0xa1
mov byte [ebx + 0x22], 0xe
mov byte [ebx + 0x23], 0xa3
mov byte [ebx + 0x24], 0xd
mov byte [ebx + 0x25], 0xa5
mov byte [ebx + 0x26], 5
mov byte [ebx + 0x27], 0xa7
mov byte [ebx + 0x28], 9
mov byte [ebx + 0x29], 0xa9
mov byte [ebx + 0x2a], 0x1e
mov byte [ebx + 0x2b], 0xab
mov byte [ebx + 0x2c], 5
mov byte [ebx + 0x2d], 0xad
mov byte [ebx + 0x2e], 1
mov byte [ebx + 0x2f], 0xaf
mov byte [ebx + 0x30], 0x1e
mov byte [ebx + 0x31], 0xb1
mov byte [ebx + 0x32], 0x5d
mov byte [ebx + 0x33], 0xb3
mov byte [ebx + 0x34], 0xc
mov byte [ebx + 0x35], 0xb5
mov byte [ebx + 0x36], 0x5b
mov byte [ebx + 0x37], 0xb7
mov byte [ebx + 0x38], 0xf
mov byte [ebx + 0x39], 0xb9
mov byte [ebx + 0x3a], 0xd
mov byte [ebx + 0x3b], 0xbb
mov byte [ebx + 0x3c], 0xb
mov byte [ebx + 0x3d], 0xbd
mov byte [ebx + 0x3e], 0x53
mov byte [ebx + 0x3f], 0xbf
mov byte [ebx + 0x40], 0x26
mov byte [ebx + 0x41], 0x81
mov byte [ebx + 0x42], 0x2d
mov byte [ebx + 0x43], 0x83
mov byte [ebx + 0x44], 0x36
mov byte [ebx + 0x45], 0x85
mov byte [ebx + 0x46], 0x2b
mov byte [ebx + 0x47], 0x87
mov byte [ebx + 0x48], 0x65
mov byte [ebx + 0x49], 0x89
mov byte [ebx + 0x4a], 0x3f
mov byte [ebx + 0x4b], 0x8b
mov byte [ebx + 0x4c], 0x3e
mov byte [ebx + 0x4d], 0x8d
mov byte [ebx + 0x4e], 0x22
mov byte [ebx + 0x4f], 0x8f
mov byte [ebx + 0x50], 0x35
mov byte [ebx + 0x51], 0x91
mov byte [ebx + 0x52], 0x3c
mov byte [ebx + 0x53], 0x93
mov byte [ebx + 0x54], 0x37
mov byte [ebx + 0x55], 0x95
mov byte [ebx + 0x56], 0x39
mov byte [ebx + 0x57], 0x97
mov byte [ebx + 0x58], 0x3c
mov byte [ebx + 0x59], 0x99
mov byte [ebx + 0x5a], 0x3f
mov byte [ebx + 0x5b], 0x9b
mov byte [ebx + 0x5c], 0x38
mov byte [ebx + 0x5d], 0x9d
mov byte [ebx + 0x5e], 0x93
mov byte [ebx + 0x5f], 0x9f
mov byte [ebx + 0x60], 0x6a
mov byte [ebx + 0x61], 0x61
mov byte [ebx + 0x62], 0x62
mov byte [ebx + 0x63], 0x63
mov byte [ebx + 0x70], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x71
jae 0x40a699
jmp 0x40a673
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov cl, byte [ebx + ecx]
add al, 0x20
xor al, cl
add al, 0x20
mov ecx, dword [esi + 0x14]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x71
jb 0x40a673
jmp 0x40a699
mov eax, dword [esi + 0x78]
mov al, byte [eax]
mov byte [esi + 0x48], al
mov eax, dword [esi + 0x2c]
mov byte [eax], 0x9f
mov byte [eax + 1], 0x4d
mov byte [eax + 2], 0xe3
mov byte [eax + 3], 0x43
mov byte [eax + 4], 0xd0
mov byte [eax + 5], 0x41
mov byte [eax + 6], 0xdf
mov byte [eax + 7], 0x47
mov byte [eax + 8], 0x44
mov byte [eax + 9], 0x45
mov dword [eax + 0xe], 0
mov dword [eax + 0xa], 0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x12
jae 0x40a738
jmp 0x40a6ea
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x2c]
movzx ecx, byte [edx + ecx]
mov dword [esi + 0x5c], ecx
mov ecx, eax
add ecx, 0xc32aecb6
mov edx, eax
add edx, 0xb6
mov edi, ecx
and edi, dword [esi + 0x5c]
or edx, ecx
mov ecx, dword [esi + 0x5c]
and edx, ecx
add eax, ecx
add edi, edx
sub eax, edi
add al, 0xbc
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x2c]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x12
jb 0x40a6ea
jmp 0x40a738
mov eax, dword [esi + 0x9c]
xor ecx, ecx
sub esp, 0x1c
mov dword [esp], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov eax, dword [esi + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
mov edi, dword [esi + 0x34]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.0040abd0
add esp, 0x1c
test al, 1
jne 0x40a780
jmp 0x40ab75
mov eax, dword [esi + 0x7c]
mov al, byte [eax]
mov byte [esi + 0x4c], al
mov eax, dword [esi + 0x30]
mov byte [eax], 0x8f
mov byte [eax + 1], 0xb2
mov byte [eax + 2], 0x1a
mov byte [eax + 0xf], 0
mov dword [eax + 0xb], 0
mov dword [eax + 7], 0
mov dword [eax + 3], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
mov ebx, dword [esi + 0x88]
jae 0x40a80a
jmp 0x40a7c6
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x30]
movzx edx, byte [edx + eax]
mov eax, ecx
add eax, 0x2c
mov edi, edx
not edi
or eax, edi
mov edi, 0xd3
sub edi, ecx
or edi, edx
add eax, edi
mov cl, 0xca
sub cl, al
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x30]
mov byte [edx + eax], cl
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0x10
jb 0x40a7c6
mov edi, dword [esi + 0x34]
jmp 0x40a80a
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 4], eax
call fcn.0040c750
add esp, 8
cmp eax, 0
jne 0x40a82f
mov byte [esi + 0xf], 1
jmp 0x40ab65
mov eax, dword [esi + 0x80]
mov al, byte [eax]
mov byte [esi + 0x50], al
mov byte [ebx], 0xe3
mov byte [ebx + 1], 0xf0
mov byte [ebx + 2], 0xf5
mov byte [ebx + 3], 0xe7
mov byte [ebx + 4], 0xf1
mov byte [ebx + 5], 0xfa
mov byte [ebx + 6], 0xf4
mov byte [ebx + 7], 0x67
mov dword [ebx + 0x17], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x20]
cmp eax, 0x1b
jae 0x40a8cf
jmp 0x40a88d
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x20]
movzx ecx, byte [ebx + ecx]
mov edx, eax
add edx, 0x9ccab4f2
lea eax, [eax + ecx - 0x63354b0e]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x62
mov ecx, dword [esi + 0x20]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x20]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
cmp eax, 0x1b
jb 0x40a88d
jmp 0x40a8cf
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0040c780
add esp, 8
cmp eax, 0
je 0x40ab63
mov eax, dword [esi + 0x84]
mov al, byte [eax]
mov byte [esi + 0x54], al
mov eax, dword [esi + 0x38]
mov byte [eax], 0xb0
mov byte [eax + 1], 0xa2
mov byte [eax + 2], 0xb7
mov byte [eax + 3], 0xbc
mov byte [eax + 4], 0x45
mov byte [eax + 5], 0x7f
mov byte [eax + 6], 0xbf
mov byte [eax + 7], 0x93
mov byte [eax + 8], 0xaf
mov byte [eax + 9], 0xac
mov byte [eax + 0xa], 0x7a
mov byte [eax + 0xb], 0x7b
mov byte [eax + 0xc], 0x94
mov byte [eax + 0xd], 0xb6
mov byte [eax + 0xe], 0xa0
mov byte [eax + 0xf], 0x98
mov byte [eax + 0x10], 0xa9
mov byte [eax + 0x11], 0x56
mov byte [eax + 0x12], 0x72
mov byte [eax + 0x13], 0x13
mov dword [eax + 0x20], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x24]
cmp eax, 0x24
jae 0x40a9ba
jmp 0x40a976
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x38]
movzx edx, byte [ebx + eax]
mov eax, ecx
add eax, 0xe140602b
add ecx, 0x2b
mov edi, eax
or edi, ecx
and edi, edx
or eax, edx
sub eax, edi
add al, 0xd3
mov ecx, dword [esi + 0x24]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x24]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0x24
jb 0x40a976
jmp 0x40a9ba
mov eax, dword [esi + 0x38]
mov ebx, eax
mov edx, dword [esi + 0x90]
mov edi, edx
mov ecx, 5
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov edi, edx
add edi, 0x14
add eax, 0x14
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esi + 0x34]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040c780
add esp, 8
mov edi, dword [esi + 0x98]
mov dword [edi], eax
cmp dword [edi], 0
je 0x40ab60
call fcn.00408c70
mov eax, dword [edi]
add eax, 0x13
mov dword [edi], eax
mov eax, dword [esi + 0x8c]
mov al, byte [eax]
mov byte [esi + 0x58], al
mov eax, dword [esi + 0x3c]
mov byte [eax], 0x7a
mov byte [eax + 1], 0x5f
mov byte [eax + 2], 0x1a
mov byte [eax + 0xf], 0
mov dword [eax + 0xb], 0
mov dword [eax + 7], 0
mov dword [eax + 3], 0
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x28]
cmp eax, 0x10
jae 0x40aa93
jmp 0x40aa58
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x3c]
movzx ecx, byte [ebx + ecx]
mov edx, eax
add edx, 0x149fcd2c
lea eax, [eax + ecx + 0x149fcd2c]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xcc
mov ecx, dword [esi + 0x28]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
cmp eax, 0x10
jb 0x40aa58
jmp 0x40aa93
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], eax
call fcn.0040c780
add esp, 8
mov ecx, dword [esi + 0x94]
mov dword [ecx], eax
cmp dword [ecx], 0
setne al
test al, 1
jne 0x40aac1
jmp 0x40ab5c
mov byte [0x44973c], 1
mov ebx, dword [ecx]
mov edi, dword [edi]
cmp ebx, 0
jne 0x40aae7
mov ecx, edi
jmp 0x40aad5
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40aad5
sub eax, edi
mov ebx, edi
add ebx, eax
mov dword [esi + 0x68], 0
lea eax, [0x44973e]
cmp ebx, edi
jbe 0x40ab51
lea ecx, [0x44973e]
jmp 0x40ab00
cmp byte [edi], 0
jne 0x40ab09
mov eax, ecx
jmp 0x40ab51
sub esp, 0xc
lea eax, [esi + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esi + 0x6c], ecx
call fcn.0040f300
add esp, 0xc
add edi, eax
mov cx, word [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov eax, edx
add eax, 2
mov word [edx], cx
mov ecx, eax
sub ecx, 0x44993c
setb cl
mov edx, edi
sub edx, ebx
setb dl
and cl, dl
test cl, 1
mov ecx, eax
jne 0x40ab00
mov word [eax], 0
mov byte [esi + 0xf], 1
jmp 0x40ab5c
jmp 0x40ab5e
jmp 0x40ab60
mov edi, dword [esi + 0x34]
jmp 0x40ab65
mov eax, dword [edi]
sub esp, 4
mov dword [esp], eax
call fcn.00436510
add esp, 4
mov al, byte [esi + 0xf]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret