Function at 0x40a920
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
call fcn.00409200
push eax
mov edi, esp
push eax
mov ebx, esp
sub esp, 0xc
mov dword [esi + 0x3c], esp
sub esp, 0x20
mov ecx, esp
and ecx, 0xfffffff0
mov esp, ecx
push eax
mov dword [esi + 0x70], esp
push eax
push eax
mov dword [esi + 0x2c], esp
sub esp, 0x80
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
mov dword [esi + 0x74], esp
push eax
sub esp, 0x20
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x38], edx
mov esp, edx
push eax
mov dword [esi + 0x78], esp
push eax
sub esp, 0x20
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x84], edx
mov esp, edx
push eax
mov dword [esi + 0x7c], esp
push eax
sub esp, 0x20
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x40], edx
mov esp, edx
push eax
mov dword [esi + 0x80], esp
push eax
sub esp, 0x14
mov dword [esi + 0x98], esp
sub esp, 0x30
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x94], edx
mov esp, edx
push eax
mov dword [esi + 0x8c], esp
push eax
push eax
mov dword [esi + 0x44], esp
push eax
mov dword [esi + 0x9c], esp
sub esp, 0x20
mov edx, esp
and edx, 0xfffffff0
mov dword [esi + 0x28], edx
mov esp, edx
push eax
mov dword [esi + 0x90], esp
push eax
mov dword [esi + 0x88], edi
mov edx, dword [ebp + 8]
mov dword [edi], edx
mov edi, ebx
mov ebx, ecx
mov byte [edi], 0
mov ecx, dword [esi + 0x70]
mov cl, byte [ecx]
mov byte [esi + 0x48], cl
mov byte [ebx], 0xad
mov byte [ebx + 1], 0xaa
mov byte [ebx + 2], 0x66
mov byte [ebx + 3], 0x2e
mov byte [ebx + 4], 0x5c
mov byte [ebx + 5], 0x58
mov byte [ebx + 6], 0x5c
mov byte [ebx + 7], 0x52
mov byte [ebx + 8], 0xf4
mov dword [ebx + 0x11], 0
mov dword [ebx + 0xd], 0
mov dword [ebx + 9], 0
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
cmp ecx, 0x15
jae 0x40aa6f
jmp 0x40aa47
mov ecx, dword [esi + 8]
mov edx, dword [esi + 8]
mov dl, byte [ebx + edx]
add cl, 0x7e
xor cl, dl
add cl, 0x8e
mov edx, dword [esi + 8]
mov byte [ebx + edx], cl
mov ecx, dword [esi + 8]
inc ecx
mov dword [esi + 8], ecx
mov ecx, dword [esi + 8]
cmp ecx, 0x15
jb 0x40aa47
jmp 0x40aa6f
mov dword [esi + 0x68], eax
mov dword [esi + 0x30], edi
mov edi, dword [esi + 0x3c]
mov ecx, 2
mov edx, ebx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, dword [esi + 0x3c]
add edi, 8
mov dword [esi + 0x34], edi
add ebx, 8
xor ecx, ecx
mov edx, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, 1
mov edi, ebx
mov edx, dword [esi + 0x34]
add ecx, 0xffffffff
add edi, 1
mov bl, byte [ebx]
mov byte [esi + 0x27], bl
add edx, 1
mov ebx, dword [esi + 0x34]
mov al, byte [esi + 0x27]
mov byte [ebx], al
cmp ecx, 0
mov ebx, edi
mov dword [esi + 0x34], edx
jne 0x40aaa6
mov ecx, dword [esi + 0x74]
mov cl, byte [ecx]
mov byte [esi + 0x4c], cl
mov eax, dword [esi + 0x68]
mov byte [eax], 0x83
mov byte [eax + 1], 0xf9
mov byte [eax + 2], 0x69
mov byte [eax + 3], 0xfb
mov byte [eax + 4], 0x64
mov byte [eax + 5], 0xfd
mov byte [eax + 6], 0x68
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x99
mov byte [eax + 9], 0xf1
mov byte [eax + 0xa], 0x6e
mov byte [eax + 0xb], 0xf3
mov byte [eax + 0xc], 0x66
mov byte [eax + 0xd], 0xf5
mov byte [eax + 0xe], 0xab
mov byte [eax + 0xf], 0xf7
mov byte [eax + 0x10], 0x82
mov byte [eax + 0x11], 0xe9
mov byte [eax + 0x12], 0x63
mov byte [eax + 0x13], 0xeb
mov byte [eax + 0x14], 0x7a
mov byte [eax + 0x15], 0xed
mov byte [eax + 0x16], 0x8b
mov byte [eax + 0x17], 0xef
mov byte [eax + 0x18], 0xa4
mov byte [eax + 0x19], 0xe1
mov byte [eax + 0x1a], 0xc0
mov byte [eax + 0x1b], 0xe3
mov byte [eax + 0x1c], 0x81
mov byte [eax + 0x1d], 0xe5
mov byte [eax + 0x1e], 0x74
mov byte [eax + 0x1f], 0xe7
mov byte [eax + 0x20], 0x76
mov byte [eax + 0x21], 0x19
mov byte [eax + 0x22], 0x84
mov byte [eax + 0x23], 0x1b
mov byte [eax + 0x24], 0x81
mov byte [eax + 0x25], 0x1d
mov byte [eax + 0x26], 0x79
mov byte [eax + 0x27], 0x1f
mov byte [eax + 0x28], 0x7d
mov byte [eax + 0x29], 0x11
mov byte [eax + 0x2a], 0x84
mov byte [eax + 0x2b], 0x13
mov byte [eax + 0x2c], 0x89
mov byte [eax + 0x2d], 0x15
mov byte [eax + 0x2e], 0x85
mov byte [eax + 0x2f], 0x17
mov byte [eax + 0x30], 0x88
mov byte [eax + 0x31], 9
mov byte [eax + 0x32], 0x59
mov byte [eax + 0x33], 0xb
mov byte [eax + 0x34], 0x82
mov byte [eax + 0x35], 0xd
mov byte [eax + 0x36], 0x53
mov byte [eax + 0x37], 0xf
mov byte [eax + 0x38], 0x87
mov byte [eax + 0x39], 1
mov byte [eax + 0x3a], 0x89
mov byte [eax + 0x3b], 3
mov byte [eax + 0x3c], 0x8b
mov byte [eax + 0x3d], 5
mov byte [eax + 0x3e], 0x5b
mov byte [eax + 0x3f], 7
mov byte [eax + 0x40], 0x60
mov byte [eax + 0x41], 0x39
mov byte [eax + 0x42], 0xa9
mov byte [eax + 0x43], 0x3b
mov byte [eax + 0x44], 0xa8
mov byte [eax + 0x45], 0x3d
mov byte [eax + 0x46], 0xa3
mov byte [eax + 0x47], 0x3f
mov byte [eax + 0x48], 0x61
mov byte [eax + 0x49], 0x31
mov byte [eax + 0x4a], 0xa7
mov byte [eax + 0x4b], 0x33
mov byte [eax + 0x4c], 0xa0
mov byte [eax + 0x4d], 0x35
mov byte [eax + 0x4e], 0xa8
mov byte [eax + 0x4f], 0x37
mov byte [eax + 0x50], 0x51
mov byte [eax + 0x51], 0x29
mov byte [eax + 0x52], 0xb6
mov byte [eax + 0x53], 0x2b
mov byte [eax + 0x54], 0x4f
mov byte [eax + 0x55], 0x2d
mov byte [eax + 0x56], 0xbd
mov byte [eax + 0x57], 0x2f
mov byte [eax + 0x58], 0x4a
mov byte [eax + 0x59], 0x21
mov byte [eax + 0x5a], 0x47
mov byte [eax + 0x5b], 0x23
mov byte [eax + 0x5c], 0x46
mov byte [eax + 0x5d], 0x25
mov byte [eax + 0x5e], 0x1b
mov byte [eax + 0x5f], 0x27
mov byte [eax + 0x60], 0x1c
mov byte [eax + 0x61], 0x59
mov byte [eax + 0x62], 0x58
mov byte [eax + 0x63], 0x5b
mov word [eax + 0x7c], 0
mov dword [eax + 0x78], 0
mov dword [eax + 0x74], 0
mov dword [eax + 0x70], 0
mov dword [eax + 0x6c], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x64], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0xc]
cmp ecx, 0x7e
mov ebx, dword [esi + 0x30]
jae 0x40acf4
jmp 0x40aca4
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0xc]
movzx edi, byte [eax + edx]
mov edx, ecx
add edx, 0xa4fd48df
lea ecx, [ecx + edi - 0x5b02b721]
and edx, edi
add edx, edx
mov edi, edx
xor edi, ecx
not edx
and ecx, edx
add ecx, ecx
sub ecx, edi
mov edx, ecx
xor edx, 0xe6
and ecx, 0x66
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esi + 0xc]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0xc]
cmp ecx, 0x7e
jb 0x40aca4
jmp 0x40acf4
mov ecx, dword [esi + 0x78]
mov cl, byte [ecx]
mov byte [esi + 0x50], cl
mov ecx, dword [esi + 0x38]
mov byte [ecx], 0xc7
mov byte [ecx + 1], 0x39
mov byte [ecx + 2], 0x9b
mov byte [ecx + 3], 0x3b
mov byte [ecx + 4], 0x8a
mov byte [ecx + 5], 0x3d
mov byte [ecx + 6], 0x97
mov byte [ecx + 7], 0x3f
mov byte [ecx + 8], 0x3e
mov byte [ecx + 9], 1
mov dword [ecx + 0xe], 0
mov dword [ecx + 0xa], 0
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x12
mov edi, dword [esi + 0x2c]
jae 0x40ad7a
mov edi, ebx
jmp 0x40ad4a
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x38]
mov dl, byte [ebx + edx]
add cl, 0xd7
xor cl, dl
add cl, 0x1f
mov edx, dword [esi + 0x10]
mov byte [ebx + edx], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x12
jb 0x40ad4a
mov ebx, edi
mov edi, dword [esi + 0x2c]
jmp 0x40ad7a
mov ecx, dword [esi + 0x88]
mov ecx, dword [ecx]
xor edx, edx
sub esp, 0x1c
mov dword [esp], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0
call fcn.0040b210
add esp, 0x1c
test al, 1
mov edx, dword [esi + 0x84]
jne 0x40adc7
jmp 0x40b1ba
mov eax, dword [esi + 0x7c]
mov al, byte [eax]
mov byte [esi + 0x54], al
mov byte [edx + 0x14], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0xc], 0
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov dword [edx], 0
mov byte [edx], 0xa7
mov byte [edx + 1], 0xa0
mov byte [edx + 2], 0x34
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x14]
cmp eax, 0x15
jae 0x40ae37
jmp 0x40ae11
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov cl, byte [edx + ecx]
add al, 0x89
xor al, cl
add al, 0x41
mov ecx, dword [esi + 0x14]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x15
jb 0x40ae11
jmp 0x40ae37
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040e4c0
add esp, 8
cmp eax, 0
jne 0x40ae5a
mov byte [ebx], 1
jmp 0x40ae55
jmp 0x40b1aa
jmp 0x40ae5c
mov eax, dword [esi + 0x80]
mov al, byte [eax]
mov byte [esi + 0x58], al
mov eax, dword [esi + 0x40]
mov byte [eax], 0xf3
mov byte [eax + 1], 0x84
mov byte [eax + 2], 0x81
mov byte [eax + 3], 0xf7
mov byte [eax + 4], 0x8d
mov byte [eax + 5], 0x8a
mov byte [eax + 6], 0x88
mov byte [eax + 7], 0x67
add eax, 8
xor ecx, ecx
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x11
call fcn.00408b50
add esp, 0xc
jmp 0x40aeae
jmp 0x40aeb0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
cmp eax, 0x19
jae 0x40aef7
jmp 0x40aec1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x40]
movzx ecx, byte [ebx + ecx]
mov edx, eax
add edx, 0x30
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0xe0
mov ecx, dword [esi + 0x18]
mov byte [ebx + ecx], al
mov eax, dword [esi + 0x18]
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
cmp eax, 0x19
jb 0x40aec1
mov ebx, dword [esi + 0x30]
jmp 0x40aef7
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 4], eax
call fcn.0040e4f0
add esp, 8
cmp eax, 0
je 0x40b1a8
mov edi, dword [esi + 0x94]
jmp 0x40af1f
mov eax, dword [esi + 0x8c]
mov al, byte [eax]
mov byte [esi + 0x5c], al
mov byte [edi], 0x18
mov byte [edi + 1], 0x1a
mov byte [edi + 2], 7
mov byte [edi + 3], 0x1c
mov byte [edi + 4], 0x35
mov byte [edi + 5], 0x5f
mov byte [edi + 6], 0x1f
mov byte [edi + 7], 0xb
mov byte [edi + 8], 0xf
mov byte [edi + 9], 0xc
mov byte [edi + 0xa], 0x52
mov byte [edi + 0xb], 0x53
mov byte [edi + 0xc], 4
mov byte [edi + 0xd], 0x16
mov byte [edi + 0xe], 8
mov byte [edi + 0xf], 0
mov byte [edi + 0x10], 0x11
mov byte [edi + 0x11], 0xc6
mov byte [edi + 0x12], 0xaa
mov byte [edi + 0x13], 0x8b
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x1c]
cmp eax, 0x28
jae 0x40afdd
jmp 0x40afad
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [edi + ecx]
mov edx, eax
add edx, 0x6f
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0x66
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, 0x28
jb 0x40afad
jmp 0x40afdd
mov eax, edi
mov edx, dword [esi + 0x98]
mov ebx, edi
mov edi, edx
mov ecx, 5
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edi, edx
add edi, 0x14
add ebx, 0x14
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esi + 0x2c]
mov eax, dword [edi]
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040e4f0
add esp, 8
mov ecx, dword [esi + 0x44]
mov dword [ecx], eax
cmp dword [ecx], 0
mov ebx, dword [esi + 0x30]
je 0x40b1a4
mov eax, dword [ecx]
add eax, 0x13
mov dword [ecx], eax
mov eax, dword [esi + 0x90]
mov al, byte [eax]
mov byte [esi + 0x60], al
mov eax, dword [esi + 0x28]
mov dword [eax + 0x17], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov byte [eax], 0xb4
mov byte [eax + 1], 0x97
mov byte [eax + 2], 0xd0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x20]
cmp eax, 0x1b
jae 0x40b0cd
jmp 0x40b08c
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
movzx ecx, byte [edx + ecx]
mov edx, eax
add edx, 0xc56a8263
lea eax, [eax + ecx - 0x3a957d9d]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x4b
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x20]
inc eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
cmp eax, 0x1b
jb 0x40b08c
mov ecx, dword [esi + 0x44]
jmp 0x40b0cd
mov eax, dword [ecx]
sub esp, 8
mov dword [esp], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 4], eax
call fcn.0040e4f0
add esp, 8
mov edx, dword [esi + 0x9c]
mov dword [edx], eax
mov eax, dword [edx]
mov ecx, dword [esi + 0x44]
jmp 0x40b0f3
cmp eax, 0
setne al
test al, 1
jne 0x40b102
jmp 0x40b1a4
mov byte [0x44486c], 1
mov ebx, dword [edx]
jmp 0x40b10d
mov edi, dword [ecx]
cmp ebx, 0
jne 0x40b12a
mov ecx, edi
jmp 0x40b118
mov eax, ecx
mov dl, byte [eax]
add ecx, 1
cmp dl, 0
jne 0x40b118
sub eax, edi
mov ebx, edi
add ebx, eax
mov dword [esi + 0x64], 0
lea eax, [0x44486e]
cmp ebx, edi
jbe 0x40b194
lea ecx, [0x44486e]
jmp 0x40b143
cmp byte [edi], 0
jne 0x40b14c
mov eax, ecx
jmp 0x40b194
sub esp, 0xc
lea eax, [esi + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esi + 0x6c], ecx
call fcn.004111b0
add esp, 0xc
add edi, eax
mov cx, word [esi + 0x64]
mov edx, dword [esi + 0x6c]
mov eax, edx
add eax, 2
mov word [edx], cx
mov ecx, eax
sub ecx, 0x444a6c
setb cl
mov edx, edi
sub edx, ebx
setb dl
and cl, dl
test cl, 1
mov ecx, eax
jne 0x40b143
mov word [eax], 0
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
jmp 0x40b1a1
mov byte [ebx], 1
jmp 0x40b1a6
jmp 0x40b1a8
jmp 0x40b1aa
mov eax, dword [edi]
sub esp, 4
mov dword [esp], eax
call fcn.00431bd0
add esp, 4
mov al, byte [ebx]
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret