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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4357f0], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
je 0x401303
call fcn.004010d0
mov dword [0x4357f0], 0
mov dword [edi + 0x200], 0xe
xor esi, esi
lea edx, [ebx + 2]
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + esi*4], ecx
inc esi
lea edx, [edx + 4]
cmp esi, 8
jl 0x401312
mov esi, dword [edi + 0x1c]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, esi
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0x1c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, esi
shl ecx, 8
shr eax, 0x18
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 4]
xor ecx, dword [edi]
xor ecx, dword [0x4703e0]
xor eax, ecx
mov dword [edi + 0x20], ecx
mov ecx, dword [edi + 8]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
mov edx, dword [edi + 0x18]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0x2c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x14]
xor ecx, dword [edi + 0x10]
xor eax, ecx
xor edx, eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], edx
xor edx, esi
mov eax, edx
shr eax, 0x10
mov dword [edi + 0x30], ecx
movzx eax, al
mov dword [edi + 0x3c], edx
mov ecx, dword [eax*4 + 0x470c20]
mov eax, edx
shl ecx, 8
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x24]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470c20]
mov edx, dword [edi + 0x2c]
xor ecx, dword [edi + 0x20]
xor ecx, dword [0x4703e4]
xor eax, ecx
mov dword [edi + 0x40], ecx
mov ecx, dword [edi + 0x28]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], edx
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0x4c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x34]
xor ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x3c]
xor eax, ecx
mov dword [edi + 0x50], ecx
mov ecx, dword [edi + 0x38]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], edx
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x44]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470c20]
mov edx, dword [edi + 0x4c]
xor ecx, dword [0x4703e8]
xor ecx, dword [edi + 0x40]
xor eax, ecx
mov dword [edi + 0x60], ecx
mov ecx, dword [edi + 0x48]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], edx
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470c20]
mov eax, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
shr edx, 8
shl ecx, 8
movzx eax, dl
mov edx, dword [edi + 0x5c]
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0x6c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x54]
xor ecx, dword [edi + 0x50]
xor eax, ecx
mov dword [edi + 0x70], ecx
mov ecx, dword [edi + 0x58]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x74], eax
mov eax, edx
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x64]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470c20]
mov edx, dword [edi + 0x6c]
xor ecx, dword [edi + 0x60]
xor ecx, dword [0x4703ec]
xor eax, ecx
mov dword [edi + 0x80], ecx
mov ecx, dword [edi + 0x68]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x84], eax
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], edx
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0x8c]
mov edx, dword [edi + 0x7c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x74]
xor ecx, dword [edi + 0x70]
xor eax, ecx
mov dword [edi + 0x90], ecx
mov ecx, dword [edi + 0x78]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], ecx
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 0x9c], edx
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x84]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470c20]
mov edx, dword [edi + 0x8c]
xor ecx, dword [0x4703f0]
xor ecx, dword [edi + 0x80]
xor eax, ecx
mov dword [edi + 0xa0], ecx
mov ecx, dword [edi + 0x88]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0xa4], eax
mov eax, edx
shr eax, 0x18
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], edx
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0xac]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0x94]
xor ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x9c]
xor eax, ecx
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb0], ecx
mov ecx, dword [edi + 0x98]
xor ecx, eax
xor edx, ecx
mov dword [edi + 0xb8], ecx
mov dword [edi + 0xbc], edx
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + 0xbc]
mov ecx, dword [eax*4 + 0x470c20]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0xa4]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470c20]
mov edx, dword [edi + 0xac]
xor ecx, dword [edi + 0xa0]
xor ecx, dword [0x4703f4]
xor eax, ecx
mov dword [edi + 0xc0], ecx
mov ecx, dword [edi + 0xa8]
xor ecx, eax
mov dword [edi + 0xc4], eax
xor edx, ecx
mov dword [edi + 0xc8], ecx
mov dword [edi + 0xcc], edx
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470c20]
mov eax, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
shr edx, 8
shl ecx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0xcc]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470c20]
mov eax, dword [edi + 0xb4]
xor ecx, dword [edi + 0xb0]
xor eax, ecx
mov dword [edi + 0xd0], ecx
mov ecx, dword [edi + 0xb8]
xor ecx, eax
mov dword [edi + 0xd4], eax
xor esi, ecx
mov eax, esi
shr eax, 0x10
movzx eax, al
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xdc], esi
mov edx, dword [eax*4 + 0x470c20]
shl edx, 8
mov ecx, dword [edi + 0xc4]
mov eax, esi
shr eax, 8
mov ebx, dword [edi + 0xcc]
movzx eax, al
shr esi, 0x18
xor edx, dword [eax*4 + 0x470c20]
movzx eax, byte [edi + 0xdc]
shl edx, 8
xor edx, dword [eax*4 + 0x470c20]
lea eax, [edi + 0xe0]
shl edx, 8
xor edx, dword [esi*4 + 0x470c20]
xor edx, dword [0x4703f8]
xor edx, dword [edi + 0xc0]
xor ecx, edx
mov dword [eax], edx
mov edx, dword [edi + 0xc8]
xor edx, ecx
xor ebx, edx
mov dword [edi + 0xe4], ecx
mov dword [edi + 0xe8], edx
mov dword [edi + 0xec], ebx
mov ecx, ebx
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x470c20]
shl edx, 8
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
xor edx, dword [ecx*4 + 0x470c20]
movzx ecx, bl
shl edx, 8
xor edx, dword [ecx*4 + 0x470c20]
movzx ecx, byte [edi + 0xec]
shl edx, 8
xor edx, dword [ecx*4 + 0x470c20]
mov ecx, dword [edi + 0xd4]
xor edx, dword [edi + 0xd0]
xor ecx, edx
mov dword [edi + 0xf0], edx
mov edx, dword [edi + 0xd8]
xor edx, ecx
mov dword [edi + 0xf4], ecx
mov ecx, dword [edi + 0xdc]
xor ecx, edx
cmp dword [0x4357f4], 0
mov dword [edi + 0xf8], edx
mov dword [edi + 0xfc], ecx
je 0x40196f
xor esi, esi
jmp 0x401920
mov edx, dword [esi + 0x470c20]
add esi, 4
mov ecx, dword [edx*4 + 0x46efe0]
mov dword [esi + 0x46f7dc], ecx
mov ecx, dword [edx*4 + 0x46f3e0]
mov dword [esi + 0x46fbdc], ecx
mov ecx, dword [edx*4 + 0x470420]
mov dword [esi + 0x46ffdc], ecx
mov ecx, dword [edx*4 + 0x470820]
mov dword [esi + 0x46d7dc], ecx
cmp esi, 0x400
jl 0x401920
mov dword [0x4357f4], 0
mov ecx, dword [eax]
lea esi, [edi + 0x100]
add esi, 0x10
mov dword [esi - 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [esi - 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esi - 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [esi - 4], ecx
add eax, 0x10
cmp dword [edi + 0x200], 1
mov dword [ebp - 4], 1
jle 0x401aa3
mov ebx, dword [eax - 0x20]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46f7e0]
xor edx, dword [ecx*4 + 0x46fbe0]
movzx ecx, bl
add esi, 0x10
xor edx, dword [ecx*4 + 0x46ffe0]
movzx ecx, byte [eax - 0x20]
add eax, 0xfffffff0
xor edx, dword [ecx*4 + 0x46d7e0]
mov dword [esi - 0x10], edx
mov ebx, dword [eax - 0xc]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46f7e0]
xor edx, dword [ecx*4 + 0x46fbe0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x46ffe0]
movzx ecx, byte [eax - 0xc]
xor edx, dword [ecx*4 + 0x46d7e0]
mov dword [esi - 0xc], edx
mov ebx, dword [eax - 8]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46f7e0]
xor edx, dword [ecx*4 + 0x46fbe0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x46ffe0]
movzx ecx, byte [eax - 8]
xor edx, dword [ecx*4 + 0x46d7e0]
mov dword [esi - 8], edx
mov ebx, dword [eax - 4]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46f7e0]
xor edx, dword [ecx*4 + 0x46fbe0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x46ffe0]
movzx ecx, byte [eax - 4]
xor edx, dword [ecx*4 + 0x46d7e0]
mov ecx, dword [ebp - 4]
mov dword [esi - 4], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [edi + 0x200]
jl 0x4019a6
mov ecx, dword [eax - 0x20]
mov dword [esi], ecx
mov ecx, dword [eax - 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [eax - 0x18]
mov dword [esi + 8], ecx
mov eax, dword [eax - 0x14]
pop edi
mov dword [esi + 0xc], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret