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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423e67
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x430010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
push 0x65
push 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x403231
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x403231
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x403231
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x403231
movzx ecx, byte [eax + esi - 1]
xorps xmm0, xmm0
sub eax, ecx
mov dword [ebp - 0x70], ecx
push ecx
dec esi
mov dword [ebp - 0x38], 0
add eax, esi
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x48], xmm0
call fcn.00405ce0
xor eax, eax
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push eax
movups xmmword [ebp - 0x68], xmm0
push 0x105
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 0x4c], 2
call fcn.00404480
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.00406b7c
mov ecx, dword [ebp - 0x58]
mov esi, edx
cmp eax, ecx
ja 0x402dfb
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov edx, eax
jb 0x402df0
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
xor eax, eax
mov word [ecx + edx*2], ax
jmp 0x402e08
sub eax, ecx
lea ecx, [ebp - 0x68]
push 0
push eax
call fcn.00404480
cmp esi, 0xffffffff
jne 0x402e25
mov esi, 0x14
mov dword [ebp - 0x14], 0x430a60
mov dword [ebp - 0x90], 0x430a60
jmp 0x402e36
mov dword [ebp - 0x14], 0x430a68
mov dword [ebp - 0x90], 0x430a68
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x4c], 1
test esi, esi
jne 0x40324e
mov byte [ebp - 4], 3
lea edi, [ebp - 0x68]
mov esi, dword [ebp - 0x54]
cmp esi, 8
mov eax, dword [ebp - 0x58]
cmovae edi, dword [ebp - 0x68]
mov ecx, edi
lea edx, [edi + eax*2]
call fcn.00402110
cmp eax, edx
je 0x402ea8
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x402e7e
cmp ecx, 0x2f
jne 0x402e85
add eax, 2
cmp eax, edx
jne 0x402e71
cmp eax, edx
je 0x402ea8
nop dword [eax]
movzx ecx, word [edx - 2]
cmp ecx, 0x5c
je 0x402ea5
cmp ecx, 0x2f
je 0x402ea5
add edx, 0xfffffffe
cmp eax, edx
jne 0x402e90
mov esi, dword [ebp - 0x54]
sub edx, edi
sar edx, 1
cmp dword [ebp - 0x58], edx
jb 0x40325a
cmp esi, 8
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
xor ecx, ecx
push ecx
mov byte [ebp - 4], 1
mov word [eax + edx*2], cx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.004055f0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00402220
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov esi, dword [ebp - 0x20]
cmp edi, 0x10
cmovae edx, dword [ebp - 0x30]
test esi, esi
je 0x402f1e
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x402f1a
nop dword [eax + eax]
cmp ecx, edx
je 0x402f1e
dec ecx
cmp byte [ecx], 0x5c
jne 0x402f10
sub ecx, edx
jmp 0x402f21
or ecx, 0xffffffff
lea edx, [ecx - 4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
cmp esi, edx
jb 0x40325f
sub esi, edx
lea eax, [ebp - 0x30]
mov ecx, 4
cmp esi, ecx
cmovb ecx, esi
cmp edi, 0x10
push ecx
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x88]
add eax, edx
push eax
call fcn.00405ce0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403740
lea ecx, [ebp - 0x88]
call fcn.004036f0
mov edx, dword [ebp - 0x38]
mov eax, 0x7fffffff
mov esi, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x90], esi
cmp eax, esi
jb 0x403264
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x48]
lea edi, [ebp - 0x88]
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x8c], eax
cmovae ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
lea ecx, [edx + esi]
mov esi, 0xf
mov dword [ebp - 0x4c], ecx
movups xmmword [ebp - 0x88], xmm0
cmp ecx, esi
jbe 0x403062
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x40301c
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.00408bb0
add esp, 4
test eax, eax
je 0x403273
mov ecx, dword [ebp - 0x4c]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x38]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x403056
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x40303d
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x403269
jmp 0x402ffa
test eax, eax
je 0x403054
push eax
call fcn.00408bb0
mov ecx, dword [ebp - 0x4c]
add esp, 4
mov edx, dword [ebp - 0x38]
mov edi, eax
jmp 0x403056
xor edi, edi
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], edi
push edx
push eax
push edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
call fcn.0040a070
push dword [ebp - 0x90]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x14]
add eax, edi
push eax
call fcn.0040a070
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
add esp, 0x18
mov byte [edi + eax], 0
lea eax, [ebp - 0x88]
push eax
call fcn.00403740
lea ecx, [ebp - 0x88]
call fcn.004036f0
mov edi, dword [ebp - 0x50]
sub edi, dword [ebp - 0x70]
push 0
push 0
push 0x40000
dec edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0xa
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.004038c0
movzx eax, byte [ebp - 0x78]
mov edi, 0
mov ecx, dword [ebp - 0x50]
sub ecx, eax
mov dword [ebp - 0x70], eax
sub ecx, 1
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x88]
je 0x403151
mov eax, dword [ebp - 0x4c]
sub dword [ebp - 0x6c], eax
nop dword [eax]
cmp dword [ebp - 0x74], 0x10
lea esi, [ebp - 0x88]
cmovae esi, ecx
lea ecx, [edi + eax]
xor edx, edx
mov eax, edi
div dword [ebp - 0x70]
inc edi
mov al, byte [edx + esi]
mov edx, dword [ebp - 0x6c]
xor al, byte [edx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x88]
cmp edi, dword [ebp - 0x50]
jb 0x403120
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x403184
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40317a
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40326e
push edx
push ecx
call fcn.00408be0
add esp, 8
mov edi, dword [ebp - 0x4c]
xor esi, esi
nop dword [eax]
mov ecx, edi
call fcn.00402b00
test eax, eax
je 0x4031ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x403190
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x4031eb
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4031e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403273
push ecx
push edx
call fcn.00408be0
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0x10
jb 0x40322d
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403223
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403273
push ecx
push edx
call fcn.00408be0
add esp, 8
mov al, 1
jmp 0x403233
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408b9d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x18]
call fcn.00402aa0
call fcn.00405380
call fcn.00405380
call fcn.004012e0
call fcn.00401240
call fcn.0040f513
call fcn.0040f513
int3