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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x436800], 0
push ebx
push esi
push edi
mov ebx, edx
push ecx
pop edi
je 0x401303
call fcn.004010d0
mov dword [0x436800], 0
mov dword [edi + 0x200], 0xe
sub 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]
push esi
pop eax
shr eax, 0x10
movzx eax, al
mov edx, dword [edi + 0xc]
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
push esi
pop eax
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0x1c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
push esi
pop eax
shl ecx, 8
shr eax, 0x18
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 4]
xor ecx, dword [edi]
xor ecx, dword [0x4707a0]
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 + 0x470fe0]
shl ecx, 8
push edx
pop eax
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
mov edx, dword [edi + 0x18]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0x2c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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
push edx
pop eax
shr eax, 0x10
mov dword [edi + 0x30], ecx
movzx eax, al
mov dword [edi + 0x3c], edx
mov ecx, dword [eax*4 + 0x470fe0]
mov eax, edx
shl ecx, 8
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 0x24]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470fe0]
mov edx, dword [edi + 0x2c]
xor ecx, dword [edi + 0x20]
xor ecx, dword [0x4707a4]
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 + 0x470fe0]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0x4c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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
push edx
pop eax
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 0x44]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470fe0]
mov edx, dword [edi + 0x4c]
xor ecx, dword [0x4707a8]
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 + 0x470fe0]
mov eax, edx
shr eax, 0x10
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
shr edx, 8
shl ecx, 8
movzx eax, dl
mov edx, dword [edi + 0x5c]
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0x6c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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
push edx
pop eax
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
push edx
pop eax
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 0x64]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470fe0]
mov edx, dword [edi + 0x6c]
xor ecx, dword [edi + 0x60]
xor ecx, dword [0x4707ac]
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
push edx
pop eax
shr eax, 0x18
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0x8c]
mov edx, dword [edi + 0x7c]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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
push edx
pop eax
shr eax, 0x10
movzx eax, al
mov dword [edi + 0x9c], edx
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
push edx
pop eax
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 0x84]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470fe0]
mov edx, dword [edi + 0x8c]
xor ecx, dword [0x4707b0]
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
push edx
pop eax
shr eax, 0x18
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], edx
mov ecx, dword [eax*4 + 0x470fe0]
shl ecx, 8
push edx
pop eax
shr eax, 0x10
movzx eax, al
shr edx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0xac]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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 + 0x470fe0]
shl ecx, 8
push edx
pop eax
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, dl
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
mov eax, dword [edi + 0xa4]
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x470fe0]
mov edx, dword [edi + 0xac]
xor ecx, dword [edi + 0xa0]
xor ecx, dword [0x4707b4]
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 + 0x470fe0]
push edx
pop eax
shr eax, 0x10
movzx eax, al
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
shr edx, 8
shl ecx, 8
movzx eax, dl
xor ecx, dword [eax*4 + 0x470fe0]
movzx eax, byte [edi + 0xcc]
shl ecx, 8
xor ecx, dword [eax*4 + 0x470fe0]
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
push esi
pop eax
shr eax, 0x10
movzx eax, al
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xdc], esi
mov edx, dword [eax*4 + 0x470fe0]
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 + 0x470fe0]
movzx eax, byte [edi + 0xdc]
shl edx, 8
xor edx, dword [eax*4 + 0x470fe0]
lea eax, [edi + 0xe0]
shl edx, 8
xor edx, dword [esi*4 + 0x470fe0]
xor edx, dword [0x4707b8]
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
push ebx
pop ecx
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x470fe0]
shl edx, 8
push ebx
pop ecx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
xor edx, dword [ecx*4 + 0x470fe0]
movzx ecx, bl
shl edx, 8
xor edx, dword [ecx*4 + 0x470fe0]
movzx ecx, byte [edi + 0xec]
shl edx, 8
xor edx, dword [ecx*4 + 0x470fe0]
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 [0x436804], 0
mov dword [edi + 0xf8], edx
mov dword [edi + 0xfc], ecx
je 0x40196f
sub esi, esi
jmp 0x401920
mov edx, dword [esi + 0x470fe0]
add esi, 4
mov ecx, dword [edx*4 + 0x46f3a0]
mov dword [esi + 0x46fb9c], ecx
mov ecx, dword [edx*4 + 0x46f7a0]
mov dword [esi + 0x46ff9c], ecx
mov ecx, dword [edx*4 + 0x4707e0]
mov dword [esi + 0x47039c], ecx
mov ecx, dword [edx*4 + 0x470be0]
mov dword [esi + 0x46db9c], ecx
cmp esi, 0x400
jl 0x401920
mov dword [0x436804], 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
push ebx
pop edx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46fba0]
xor edx, dword [ecx*4 + 0x46ffa0]
movzx ecx, bl
add esi, 0x10
xor edx, dword [ecx*4 + 0x4703a0]
movzx ecx, byte [eax - 0x20]
add eax, 0xfffffff0
xor edx, dword [ecx*4 + 0x46dba0]
mov dword [esi - 0x10], edx
mov ebx, dword [eax - 0xc]
push ebx
pop ecx
shr ecx, 0x10
movzx ecx, cl
push ebx
pop edx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46fba0]
xor edx, dword [ecx*4 + 0x46ffa0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x4703a0]
movzx ecx, byte [eax - 0xc]
xor edx, dword [ecx*4 + 0x46dba0]
mov dword [esi - 0xc], edx
mov ebx, dword [eax - 8]
push ebx
pop ecx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46fba0]
xor edx, dword [ecx*4 + 0x46ffa0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x4703a0]
movzx ecx, byte [eax - 8]
xor edx, dword [ecx*4 + 0x46dba0]
mov dword [esi - 8], edx
mov ebx, dword [eax - 4]
push ebx
pop ecx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
shr ebx, 8
mov edx, dword [edx*4 + 0x46fba0]
xor edx, dword [ecx*4 + 0x46ffa0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x4703a0]
movzx ecx, byte [eax - 4]
xor edx, dword [ecx*4 + 0x46dba0]
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
sub eax, eax
pop ebx
mov esp, ebp
pop ebp
ret