Function at 0x40d850
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, 0x408
mov esi, esp
mov dword [esi + 0x168], 0x440fc8
mov dword [esi + 0x10], 0
mov eax, dword [str.ecf1236909c49a73c6a1502a1f7614b9]
mov dword [esi + 0x124], eax
mov al, byte [esi + 0x24]
mov byte [esi + 0x28], al
mov byte [esi + 0xe8], 0x40
mov byte [esi + 0xe9], 0x83
mov byte [esi + 0xea], 0xb7
mov byte [esi + 0xeb], 0x7b
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xec], 0
mov dword [esi], 0
mov eax, dword [esi]
cmp eax, 0x10
jae 0x40d92f
jmp 0x40d8cc
mov eax, dword [esi]
mov ecx, dword [esi]
movzx ecx, byte [esi + ecx + 0xe8]
mov edx, eax
and edx, 0x136bc8af
xor eax, 0x136bc8af
lea edx, [eax + edx*2]
mov edi, edx
and edi, ecx
mov eax, edx
add eax, ecx
mov ebx, edx
not ebx
or ebx, ecx
add edx, edi
lea ecx, [ebx + edx + 1]
mov edx, eax
not edx
mov edi, ecx
and edi, edx
not ecx
and eax, ecx
sub eax, edi
mov dword [esi + 0x16c], eax
mov eax, dword [esi + 0x16c]
add al, 0x37
mov ecx, dword [esi]
mov byte [esi + ecx + 0xe8], al
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0x10
jb 0x40d8cc
jmp 0x40d92f
mov edi, dword [str.MhMcwl__BEM]
mov al, byte [esi + 0x20]
mov byte [esi + 0x2c], al
mov byte [esi + 0xa8], 0x61
mov byte [esi + 0xa9], 0x62
mov byte [esi + 0xaa], 0x76
mov byte [esi + 0xab], 0x3e
mov byte [esi + 0xac], 0x76
mov byte [esi + 0xad], 0x60
mov byte [esi + 0xae], 0x65
mov byte [esi + 0xaf], 0x6e
mov byte [esi + 0xb0], 0x7e
mov byte [esi + 0xb1], 0x6c
mov byte [esi + 0xb2], 0x55
mov byte [esi + 0xb3], 0x66
mov byte [esi + 0xb4], 0x69
mov byte [esi + 0xb5], 0x7e
mov byte [esi + 0xb6], 0x7d
mov byte [esi + 0xb7], 0x6e
mov byte [esi + 0xb8], 0x77
mov byte [esi + 0xb9], 0x74
mov byte [esi + 0xba], 0x34
mov byte [esi + 0xbb], 0x65
mov byte [esi + 0xbc], 0x71
mov byte [esi + 0xbd], 0x67
mov byte [esi + 0xbe], 0x2b
mov byte [esi + 0xbf], 0x23
mov byte [esi + 0xc0], 0x36
mov byte [esi + 0xc1], 0x29
mov byte [esi + 0xc2], 0x3c
mov byte [esi + 0xc3], 0x77
mov byte [esi + 0xc4], 0x75
mov byte [esi + 0xc5], 0x79
mov byte [esi + 0xc6], 0x23
mov byte [esi + 0xc7], 0x1f
mov byte [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
cmp eax, 0x25
jae 0x40da82
jmp 0x40da3d
mov eax, dword [esi + 4]
mov ecx, dword [esi + 4]
movzx ecx, byte [esi + ecx + 0xa8]
mov edx, eax
add edx, ecx
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xb670cb00
mov dword [esi + 0x170], edx
mov eax, dword [esi + 0x170]
mov ecx, dword [esi + 4]
mov byte [esi + ecx + 0xa8], al
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0x25
jb 0x40da3d
jmp 0x40da82
sub esp, 8
lea eax, [esi + 0xa8]
mov dword [esp + 4], eax
lea ebx, [esi + 0x17c]
mov dword [esp], ebx
call fcn.00409820
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00409820
lea ecx, [esi + 0xe8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00409820
mov ecx, dword [esi + 0x124]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00409820
add esp, 8
mov dword [esi + 0x160], eax
mov eax, dword [esi + 0x160]
sub eax, ebx
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x15c]
mov cl, byte [esi + 0x18]
mov byte [esi + 0x30], cl
mov byte [esi + 0x38], 0x93
mov byte [esi + 0x39], 0xcd
mov byte [esi + 0x3a], 0x79
mov byte [esi + 0x3b], 0xcb
mov byte [esi + 0x3c], 0x7a
mov byte [esi + 0x3d], 0xc9
mov byte [esi + 0x3e], 0x4a
mov byte [esi + 0x3f], 0xc7
mov byte [esi + 0x40], 0x79
mov byte [esi + 0x41], 0xc5
mov byte [esi + 0x42], 0x70
mov byte [esi + 0x43], 0xc3
mov byte [esi + 0x44], 0x4c
mov byte [esi + 0x45], 0xc1
mov byte [esi + 0x46], 0xab
mov byte [esi + 0x47], 0xdf
mov byte [esi + 0x48], 0x70
mov byte [esi + 0x49], 0xdd
mov byte [esi + 0x4a], 0x53
mov byte [esi + 0x4b], 0xdb
mov byte [esi + 0x4c], 0x68
mov byte [esi + 0x4d], 0xd9
mov byte [esi + 0x4e], 0x6b
mov byte [esi + 0x4f], 0xd7
mov byte [esi + 0x50], 0x92
mov byte [esi + 0x51], 0xd5
mov byte [esi + 0x52], 0xb2
mov byte [esi + 0x53], 0xd3
mov byte [esi + 0x54], 0x71
mov byte [esi + 0x55], 0xd1
mov byte [esi + 0x56], 0x9e
mov byte [esi + 0x57], 0x2f
mov byte [esi + 0x58], 0x9c
mov byte [esi + 0x59], 0x2d
mov byte [esi + 0x5a], 0x9e
mov byte [esi + 0x5b], 0x2b
mov byte [esi + 0x5c], 0x91
mov byte [esi + 0x5d], 0x29
mov byte [esi + 0x5e], 0x99
mov byte [esi + 0x5f], 0x27
mov byte [esi + 0x60], 0x85
mov byte [esi + 0x61], 0x25
mov byte [esi + 0x62], 0xae
mov byte [esi + 0x63], 0x23
mov byte [esi + 0x64], 0x99
mov byte [esi + 0x65], 0x21
mov byte [esi + 0x66], 0x8d
mov byte [esi + 0x67], 0x3f
mov byte [esi + 0x68], 0x8e
mov byte [esi + 0x69], 0x3d
mov byte [esi + 0x6a], 0x49
mov byte [esi + 0x6b], 0x3b
mov byte [esi + 0x6c], 0xb0
mov byte [esi + 0x6d], 0x39
mov byte [esi + 0x6e], 0x43
mov byte [esi + 0x6f], 0x37
mov byte [esi + 0x70], 0xbf
mov byte [esi + 0x71], 0x35
mov byte [esi + 0x72], 0xb9
mov byte [esi + 0x73], 0x33
mov byte [esi + 0x74], 0xbb
mov byte [esi + 0x75], 0x31
mov byte [esi + 0x76], 0x7b
mov byte [esi + 0x77], 0xf
mov byte [esi + 0x78], 0xb6
mov byte [esi + 0x79], 0xd
mov byte [esi + 0x7a], 0xb9
mov byte [esi + 0x7b], 0xb
mov byte [esi + 0x7c], 0x86
mov byte [esi + 0x7d], 9
mov byte [esi + 0x7e], 0xb3
mov byte [esi + 0x7f], 7
mov byte [esi + 0x80], 0x71
mov byte [esi + 0x81], 5
mov byte [esi + 0x82], 0x8f
mov byte [esi + 0x83], 3
mov byte [esi + 0x84], 0x8e
mov byte [esi + 0x85], 1
mov byte [esi + 0x86], 0xaa
mov byte [esi + 0x87], 0x1f
mov byte [esi + 0x88], 0xa1
mov byte [esi + 0x89], 0x1d
mov byte [esi + 0x8a], 0xa8
mov byte [esi + 0x8b], 0x1b
mov byte [esi + 0x8c], 0xa7
mov byte [esi + 0x8d], 0x19
mov byte [esi + 0x8e], 0xa5
mov byte [esi + 0x8f], 0x17
mov byte [esi + 0x90], 0xa8
mov byte [esi + 0x91], 0x15
mov byte [esi + 0x92], 0xaf
mov byte [esi + 0x93], 0x13
mov byte [esi + 0x94], 0xac
mov byte [esi + 0x95], 0x11
mov byte [esi + 0x96], 0x7b
mov byte [esi + 0x97], 0x6f
mov byte [esi + 0x98], 0x7a
mov byte [esi + 0x99], 0x6d
mov byte [esi + 0x9a], 0x6a
mov byte [esi + 0x9b], 0x6b
mov byte [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
cmp ecx, 0x6d
jae 0x40dd4f
jmp 0x40dd00
mov ecx, dword [esi + 8]
mov edx, dword [esi + 8]
movzx edx, byte [esi + edx + 0x38]
mov edi, ecx
add edi, 0x62
add ecx, edx
and edi, edx
add edi, edi
sub ecx, edi
add ecx, 0x2baa0562
mov dword [esi + 0x174], ecx
mov ecx, dword [esi + 0x174]
mov edx, ecx
xor edx, 0x51
and ecx, 0x51
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esi + 8]
mov byte [esi + edx + 0x38], cl
mov ecx, dword [esi + 8]
inc ecx
mov dword [esi + 8], ecx
mov ecx, dword [esi + 8]
cmp ecx, 0x6d
jb 0x40dd00
jmp 0x40dd4f
mov cl, byte [esi + 0x14]
mov byte [esi + 0x34], cl
mov byte [esi + 0xd0], 0x67
mov byte [esi + 0xd1], 0x39
mov byte [esi + 0xd2], 0x5b
mov byte [esi + 0xd3], 0x3b
mov byte [esi + 0xd4], 0xaa
mov byte [esi + 0xd5], 0x3d
mov byte [esi + 0xd6], 0x57
mov byte [esi + 0xd7], 0x3f
mov byte [esi + 0xd8], 0x3e
mov byte [esi + 0xd9], 0x21
mov word [esi + 0xe2], 0
mov dword [esi + 0xde], 0
mov dword [esi + 0xda], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0xc]
cmp ecx, 0x14
jae 0x40de1c
jmp 0x40ddc9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0xc]
movzx edx, byte [esi + edx + 0xd0]
mov edi, ecx
and edi, 0xc27e42a7
xor ecx, 0xc27e42a7
lea ecx, [ecx + edi*2]
mov edi, ecx
add edi, edx
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esi + 0x178], edi
mov ecx, dword [esi + 0x178]
add cl, 0x6f
mov edx, dword [esi + 0xc]
mov byte [esi + edx + 0xd0], cl
mov ecx, dword [esi + 0xc]
inc ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0xc]
cmp ecx, 0x14
jb 0x40ddc9
jmp 0x40de1c
sub esp, 0x1c
lea ecx, [esi + 0x158]
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
lea eax, [esi + 0x38]
mov dword [esp + 8], eax
lea eax, [esi + 0xd0]
mov dword [esp + 4], eax
mov dword [esp], 0x449818
call fcn.0040b9a0
add esp, 0x1c
movzx eax, al
mov dword [esi + 0x164], eax
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x164]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x440fd0]
xor ecx, 0x49b884ff
sub eax, ecx
push eax
mov ecx, esp
mov dword [esi + 0x100], ecx
mov dword [ecx], 0x440fd4
push eax
mov dword [esi + 0xfc], esp
push eax
mov ecx, esp
mov dword [esi + 0x120], ecx
mov dword [ecx], 0x440fe0
push eax
mov dword [esi + 0x118], esp
push eax
mov ecx, esp
mov dword [esi + 0x110], ecx
mov dword [ecx], 0x440b30
mov ecx, dword [0x440fec]
mov dword [esi + 0x10c], ecx
push eax
mov ecx, esp
mov dword [esi + 0x11c], ecx
mov dword [ecx], 0x440ff4
push eax
mov dword [esi + 0x114], esp
push eax
mov ecx, esp
mov dword [esi + 0x13c], ecx
mov dword [ecx], 0x441000
push eax
mov dword [esi + 0x138], esp
push eax
mov ecx, esp
mov dword [esi + 0x134], ecx
mov dword [ecx], 0x440b30
mov ecx, dword [0x44100c]
mov dword [esi + 0x12c], ecx
push eax
mov edx, esp
mov dword [edx], 0x440b30
mov ecx, dword [0x441014]
mov dword [esi + 0x140], ecx
push eax
mov ecx, esp
mov dword [esi + 0x14c], ecx
mov dword [ecx], 0x44101c
push eax
mov dword [esi + 0x148], esp
push eax
mov ecx, esp
mov dword [esi + 0x154], ecx
mov dword [ecx], 0x441028
push eax
mov dword [esi + 0x150], esp
push eax
mov ebx, esp
mov dword [ebx], 0x440b30
mov edi, dword [0x441034]
push eax
mov ecx, esp
mov dword [esi + 0x108], ecx
mov dword [ecx], 0x440b30
mov ecx, dword [0x44103c]
mov dword [esi + 0x104], ecx
push eax
mov ecx, esp
mov dword [esi + 0x130], ecx
mov dword [ecx], 0x440b30
mov ecx, dword [0x441044]
mov dword [esi + 0x128], ecx
jmp eax