Function at 0x40ca30
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, 0x260
mov esi, esp
mov dword [esi + 0x19c], 0x440950
mov dword [esi + 0x1c], 0
mov eax, dword [str.8bac644166cdd2204d0fa306172b0254]
mov dword [esi + 0x13c], eax
mov al, byte [esi + 0x2c]
mov byte [esi + 0x30], al
mov word [esi + 0x1b4], 0
mov dword [esi + 0x1b0], 0
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1a0], 0xe6
mov byte [esi + 0x1a1], 0xa3
mov byte [esi + 0x1a2], 0x2f
mov byte [esi + 0x1a3], 0xf3
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x16
jae 0x40cb0b
jmp 0x40cacb
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
movzx ecx, byte [esi + ecx + 0x1a0]
mov edx, eax
add edx, 0xba4327e
lea eax, [eax + ecx + 0xba4327e]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x8e
mov ecx, dword [esi + 8]
mov byte [esi + ecx + 0x1a0], al
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0x16
jb 0x40cacb
jmp 0x40cb0b
mov edi, dword [str.swg5EG__3]
mov al, byte [esi + 0x28]
mov byte [esi + 0x34], al
mov byte [esi + 0xc0], 0xa9
mov byte [esi + 0xc1], 0xa8
mov byte [esi + 0xc2], 0xb8
mov byte [esi + 0xc3], 0x70
mov byte [esi + 0xc4], 0xbc
mov byte [esi + 0xc5], 0xaa
mov byte [esi + 0xc6], 0xad
mov byte [esi + 0xc7], 0xb8
mov byte [esi + 0xc8], 0xa4
mov byte [esi + 0xc9], 0xb6
mov byte [esi + 0xca], 0x4d
mov byte [esi + 0xcb], 0xb8
mov byte [esi + 0xcc], 0xb1
mov byte [esi + 0xcd], 0xa4
mov byte [esi + 0xce], 0xa5
mov byte [esi + 0xcf], 0xb8
mov byte [esi + 0xd0], 0xbf
mov byte [esi + 0xd1], 0xbe
mov byte [esi + 0xd2], 0x7e
mov byte [esi + 0xd3], 0xa9
mov byte [esi + 0xd4], 0xb9
mov byte [esi + 0xd5], 0xaf
mov byte [esi + 0xd6], 0x63
mov byte [esi + 0xd7], 0x13
mov byte [esi + 0xd8], 0xc
mov byte [esi + 0xd9], 0xd
mov byte [esi + 0xda], 6
mov byte [esi + 0xdb], 0xcf
mov byte [esi + 0xdc], 0xcd
mov byte [esi + 0xdd], 0xc5
mov byte [esi + 0xde], 0x1b
mov byte [esi + 0xdf], 0x57
mov dword [esi + 0xeb], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
cmp eax, 0x2f
jae 0x40cc70
jmp 0x40cc30
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
movzx ecx, byte [esi + ecx + 0xc0]
mov edx, eax
add edx, 0x7e312029
lea eax, [eax + ecx + 0x7e312029]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xe1
mov ecx, dword [esi + 0xc]
mov byte [esi + ecx + 0xc0], al
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x2f
jb 0x40cc30
jmp 0x40cc70
sub esp, 8
lea eax, [esi + 0xc0]
mov dword [esp + 4], eax
lea ebx, [esi + 0x1cc]
mov dword [esp], ebx
call fcn.00408de0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00408de0
lea ecx, [esi + 0x1a0]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00408de0
mov ecx, dword [esi + 0x13c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00408de0
add esp, 8
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x194]
mov ecx, eax
xor ecx, ebx
mov edx, ebx
not edx
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x190]
mov cl, byte [esi + 0x24]
mov byte [esi + 0x38], cl
mov byte [esi + 0x40], 0xa3
mov byte [esi + 0x41], 0x61
mov byte [esi + 0x42], 0x8d
mov byte [esi + 0x43], 0x63
mov byte [esi + 0x44], 0x8a
mov byte [esi + 0x45], 0x65
mov byte [esi + 0x46], 0xf2
mov byte [esi + 0x47], 0x67
mov byte [esi + 0x48], 0x8d
mov byte [esi + 0x49], 0x69
mov byte [esi + 0x4a], 0x84
mov byte [esi + 0x4b], 0x6b
mov byte [esi + 0x4c], 0xf8
mov byte [esi + 0x4d], 0x6d
mov byte [esi + 0x4e], 0x43
mov byte [esi + 0x4f], 0x6f
mov byte [esi + 0x50], 0xe4
mov byte [esi + 0x51], 0x11
mov byte [esi + 0x52], 0x8b
mov byte [esi + 0x53], 0x13
mov byte [esi + 0x54], 0x84
mov byte [esi + 0x55], 0x15
mov byte [esi + 0x56], 0xf3
mov byte [esi + 0x57], 0x17
mov byte [esi + 0x58], 0xc2
mov byte [esi + 0x59], 0x19
mov byte [esi + 0x5a], 0x3a
mov byte [esi + 0x5b], 0x1b
mov byte [esi + 0x5c], 0xfd
mov byte [esi + 0x5d], 0x1d
mov byte [esi + 0x5e], 0x8e
mov byte [esi + 0x5f], 0x1f
mov byte [esi + 0x60], 0x90
mov byte [esi + 0x61], 1
mov byte [esi + 0x62], 0xee
mov byte [esi + 0x63], 3
mov byte [esi + 0x64], 0xed
mov byte [esi + 0x65], 5
mov byte [esi + 0x66], 0xe5
mov byte [esi + 0x67], 7
mov byte [esi + 0x68], 0xe9
mov byte [esi + 0x69], 9
mov byte [esi + 0x6a], 0x9e
mov byte [esi + 0x6b], 0xb
mov byte [esi + 0x6c], 0xe5
mov byte [esi + 0x6d], 0xd
mov byte [esi + 0x6e], 0xe1
mov byte [esi + 0x6f], 0xf
mov byte [esi + 0x70], 0xde
mov byte [esi + 0x71], 0x31
mov byte [esi + 0x72], 0x1d
mov byte [esi + 0x73], 0x33
mov byte [esi + 0x74], 0xac
mov byte [esi + 0x75], 0x35
mov byte [esi + 0x76], 0x1b
mov byte [esi + 0x77], 0x37
mov byte [esi + 0x78], 0xaf
mov byte [esi + 0x79], 0x39
mov byte [esi + 0x7a], 0xad
mov byte [esi + 0x7b], 0x3b
mov byte [esi + 0x7c], 0xab
mov byte [esi + 0x7d], 0x3d
mov byte [esi + 0x7e], 0x13
mov byte [esi + 0x7f], 0x3f
mov byte [esi + 0x80], 0xc6
mov byte [esi + 0x81], 0x21
mov byte [esi + 0x82], 0xcd
mov byte [esi + 0x83], 0x23
mov byte [esi + 0x84], 0xb6
mov byte [esi + 0x85], 0x25
mov byte [esi + 0x86], 0xcb
mov byte [esi + 0x87], 0x27
mov byte [esi + 0x88], 5
mov byte [esi + 0x89], 0x29
mov byte [esi + 0x8a], 0xbf
mov byte [esi + 0x8b], 0x2b
mov byte [esi + 0x8c], 0xbe
mov byte [esi + 0x8d], 0x2d
mov byte [esi + 0x8e], 0xc2
mov byte [esi + 0x8f], 0x2f
mov byte [esi + 0x90], 0x35
mov byte [esi + 0x91], 0xd1
mov byte [esi + 0x92], 0x3c
mov byte [esi + 0x93], 0xd3
mov byte [esi + 0x94], 0x37
mov byte [esi + 0x95], 0xd5
mov byte [esi + 0x96], 0x39
mov byte [esi + 0x97], 0xd7
mov byte [esi + 0x98], 0x3c
mov byte [esi + 0x99], 0xd9
mov byte [esi + 0x9a], 0x3f
mov byte [esi + 0x9b], 0xdb
mov byte [esi + 0x9c], 0x38
mov byte [esi + 0x9d], 0xdd
mov byte [esi + 0x9e], 0xd3
mov byte [esi + 0x9f], 0xdf
mov byte [esi + 0xa0], 0xca
mov byte [esi + 0xa1], 0xc1
mov byte [esi + 0xa2], 0xc2
mov byte [esi + 0xa3], 0xc3
mov dword [esi + 0xb7], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x7b
jae 0x40cf5d
jmp 0x40cf33
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov dl, byte [esi + edx + 0x40]
add cl, 0xb0
xor cl, dl
add cl, 0x30
mov edx, dword [esi + 0x10]
mov byte [esi + edx + 0x40], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x7b
jb 0x40cf33
jmp 0x40cf5d
mov cl, byte [esi + 0x20]
mov byte [esi + 0x3c], cl
mov byte [esi + 0x100], 0x77
mov byte [esi + 0x101], 0x41
mov byte [esi + 0x102], 0xa3
mov byte [esi + 0x103], 0x43
mov byte [esi + 0x104], 0xb2
mov byte [esi + 0x105], 0x5d
mov byte [esi + 0x106], 0xa7
mov byte [esi + 0x107], 0x5f
mov byte [esi + 0x108], 0x5e
mov byte [esi + 0x109], 0x59
mov byte [esi + 0x112], 0
mov dword [esi + 0x10e], 0
mov dword [esi + 0x10a], 0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x13
jae 0x40d020
jmp 0x40cfd5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx edx, byte [esi + edx + 0x100]
mov edi, ecx
add edi, 0x5f20ec8b
lea ecx, [ecx + edx + 0x5f20ec8b]
and edi, edx
add edi, edi
sub ecx, edi
add cl, 0x33
mov edx, dword [esi + 0x14]
mov byte [esi + edx + 0x100], cl
mov ecx, dword [esi + 0x14]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x14]
cmp ecx, 0x13
jb 0x40cfd5
jmp 0x40d020
sub esp, 0x1c
lea ecx, [esi + 0xfc]
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
lea eax, [esi + 0x40]
mov dword [esp + 8], eax
lea eax, [esi + 0x100]
mov dword [esp + 4], eax
mov dword [esp], 0x448c3c
call fcn.0040b090
add esp, 0x1c
movzx eax, al
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x198]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x440958]
xor ecx, 0x8c634168
sub eax, ecx
push eax
mov ecx, esp
mov dword [esi + 0x130], ecx
mov dword [ecx], 0x44095c
push eax
mov dword [esi + 0x12c], esp
push eax
mov ecx, esp
mov dword [esi + 0x15c], ecx
mov dword [ecx], 0x440968
push eax
mov dword [esi + 0x154], esp
push eax
mov ecx, esp
mov dword [esi + 0x14c], ecx
mov dword [ecx], 0x440440
mov ecx, dword [0x440974]
mov dword [esi + 0x148], ecx
push eax
mov ecx, esp
mov dword [esi + 0x158], ecx
mov dword [ecx], 0x44097c
push eax
mov dword [esi + 0x150], esp
push eax
mov ecx, esp
mov dword [esi + 0x174], ecx
mov dword [ecx], 0x440988
push eax
mov dword [esi + 0x16c], esp
push eax
mov ecx, esp
mov dword [esi + 0x164], ecx
mov dword [ecx], 0x440440
mov ecx, dword [0x440994]
mov dword [esi + 0x160], ecx
push eax
mov ecx, esp
mov dword [esi + 0x170], ecx
mov dword [ecx], 0x44099c
push eax
mov dword [esi + 0x168], esp
push eax
mov ecx, esp
mov dword [esi + 0x184], ecx
mov dword [ecx], 0x4409a8
push eax
mov dword [esi + 0x180], esp
push eax
mov ecx, esp
mov dword [esi + 0x17c], ecx
mov dword [ecx], 0x440440
mov ecx, dword [0x4409b4]
mov dword [esi + 0x178], ecx
push eax
mov ecx, esp
mov dword [ecx], 0x440440
mov edx, dword [0x4409bc]
push eax
mov ebx, esp
mov dword [ebx], 0x440440
mov edi, dword [0x4409c4]
mov dword [esi + 0x128], edi
push eax
mov edi, esp
mov dword [esi + 0x138], edi
mov dword [edi], 0x440440
mov edi, dword [0x4409cc]
mov dword [esi + 0x134], edi
push eax
mov edi, esp
mov dword [esi + 0x144], edi
mov dword [edi], 0x440440
mov edi, dword [0x4409d4]
jmp eax