Function at 0x4018f0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10a8
call fcn.00403fb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10a4], eax
xor eax, eax
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
call fcn.00401720
push 0xa
push 2
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401973
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.00401ca0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
push esi
push dword [esp + 0x1c]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
call fcn.00401720
movaps xmm0, xmmword [str.vF_NGON_OCEGNNCD]
xor ecx, ecx
movups xmmword [esp + 0x2c], xmm0
mov word [esp + 0x3c], 0x42
nop dword [eax + eax]
mov al, byte [esp + 0x2c]
xor byte [esp + ecx + 0x2d], al
inc ecx
cmp ecx, 0x10
jb 0x4019a0
xorps xmm0, xmm0
mov byte [esp + 0x3d], 0
lea esi, [esp + 0x2d]
movaps xmmword [esp + 0x40], xmm0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4019c2
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x401c32
cmp esi, 0xf
ja 0x401a18
push esi
lea eax, [esp + 0x31]
mov dword [esp + 0x54], esi
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x5c], 0xf
push eax
call sub.msvcrt.dll_memcpy
mov byte [esp + esi + 0x4c], 0
mov eax, dword [esp + 0x4c]
mov edx, eax
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x401ac6
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x401a55
mov ecx, 0x7fffffff
mov eax, 0x80000000
mov dword [esp + 0xc], ecx
add eax, 0x23
push eax
call fcn.0040215c
add esp, 4
test eax, eax
je 0x401c3c
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 0xc]
jmp 0x401a9e
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [esp + 0xc], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x401a7b
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x401c37
jmp 0x401a35
test ecx, ecx
je 0x401a98
push ecx
call fcn.0040215c
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x401aa2
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2d]
push esi
push eax
push ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], esi
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [edx + esi], 0
add esp, 0xc
lea eax, [esp + 0x40]
cmp ecx, 0xf
lea ecx, [esp + 0x60]
cmova eax, edx
push esi
push eax
call section..text
mov ecx, dword [esp + 0x14]
xor eax, eax
sub ecx, edi
mov dword [esp + 0x18], eax
shr ecx, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401ba2
nop dword [eax]
shl eax, 3
lea esi, [esp + 0xa4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0x10
mov ecx, dword [esi]
lea esi, [esi - 4]
xor ecx, dword [eax + edi]
mov dword [eax + edi], ecx
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x20], ecx
shr ecx, 0x18
mov edx, dword [esp + eax*4 + 0x4a8]
add edx, dword [esp + ecx*4 + 0xa8]
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [esp + eax*4 + 0x8a8]
movzx eax, cl
add edx, dword [esp + eax*4 + 0xca8]
mov eax, dword [esp + 0x24]
xor edx, dword [eax + edi + 4]
sub dword [esp + 0x1c], 1
mov dword [eax + edi], edx
mov dword [eax + edi + 4], ecx
jne 0x401b16
mov eax, dword [esp + 0x20]
mov ecx, edx
mov edx, dword [esp + 0x24]
mov dword [edx + edi], eax
mov eax, dword [esp + 0x64]
xor eax, ecx
mov dword [edx + edi + 4], eax
mov eax, dword [esp + 0x60]
xor dword [edx + edi], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x401b00
call fcn.00401720
test edi, edi
je 0x401bb2
mov ecx, edi
call fcn.004014d0
mov eax, dword [esp + 0xc]
cmp eax, 0xf
jbe 0x401bee
lea ecx, [eax + 1]
mov eax, dword [esp + 0x10]
mov edx, eax
cmp ecx, 0x1000
jb 0x401be4
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [esp + 0x10], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x401c3c
mov eax, dword [esp + 0x10]
push ecx
push eax
call fcn.0040218c
add esp, 8
test edi, edi
je 0x401c1c
mov ecx, dword [esp + 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x401c12
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c3c
push ecx
push edi
call fcn.0040218c
add esp, 8
mov ecx, dword [esp + 0x10ac]
pop edi
pop esi
xor ecx, esp
call fcn.00402140
mov esp, ebp
pop ebp
ret 0x10
call fcn.004013a0
call fcn.00401300
call fcn.00402fa0
int3