Function at 0x401810
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, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x3c58
mov dword [esp + 0x70], 0x78af
mov edx, dword [esp + 0x70]
mov esi, edx
add esi, 0xffffef40
mov dword [esp + 0x58], esi
mov esi, esp
mov dword [esi], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
call fcn.00401e30
sub esp, 4
mov ecx, eax
add ecx, 6
cmp word [eax + 6], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
je 0x4018e8
jmp 0x401907
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x10]
mov word [esp + 0x76], 0x3e6c
mov edx, dword [esp + 0x70]
xor edx, 0x78ae
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add edi, dword [ecx + 0x14]
mov ecx, esp
mov dword [ecx + 8], eax
mov dword [ecx + 4], edi
mov dword [ecx], esi
mov dword [esp + 0x28], edx
call fcn.00402530
sub esp, 0xc
mov ecx, dword [esp + 0x60]
add ecx, 0x28
mov edx, dword [esp + 0x2c]
mov bx, word [edx]
mov esi, dword [esp + 0x28]
add esi, dword [esp + 0x50]
movzx edi, bx
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], ecx
cmp esi, edi
mov dword [esp + 0x24], eax
jb 0x4019ac
mov eax, 0x8ff6
mov ecx, dword [esp + 0x30]
add ecx, 0x54
sub eax, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
cmp eax, dword [esp + 0x58]
jbe 0x40197e
jmp 0x401a15
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov esi, 0x5114
sub esi, eax
mov eax, edx
sbb eax, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x30]
movzx edi, word [ecx + 0x14]
lea edi, [ecx + edi + 0x18]
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x20], eax
mov eax, 0x62f1
sub eax, ebx
sbb edx, ecx
mov dword [esp + 0x44], edi
xor esi, eax
mov eax, dword [esp + 0x20]
xor eax, edx
or esi, eax
mov dword [esp + 0x1c], esi
je 0x401907
jmp 0x401966
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
xor ecx, 0x78af
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], eax
jmp 0x4019ac
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x38]
mov dword [ecx], edx
call fcn.00402530
sub esp, 0xc
mov dword [esp + 0x18], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
and eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x6ae6
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x60]
xor eax, 0x4859
mov edx, dword [edx + 0xc]
mov esi, dword [esp + 0x38]
add esi, edx
mov dword [esp + 0x40], esi
xor edx, edx
mov esi, 0x6ae6
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
jb 0x40187e
jmp 0x401907
call section.rawd
mov dword [esp + 0xc], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8