Function at 0x10005250
Capabilities:
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a15f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x258
mov eax, dword [0x100cae74]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x10c44918]
mov dword [ebp - 0x21c], 0
mov edx, dword [eax + edx*4]
mov eax, dword [0x10c405b4]
cmp eax, dword [edx + 4]
jg 0x10005c7f
push 0x10c40584
mov dword [ebp - 0x26c], 0x10c40584
call fcn.100775d2
add esp, 4
test eax, eax
jne 0x10005cc1
mov dword [0x100ca50d], 0x10006240
mov esi, 0x100ca040
cmp dword [edi + 0x20], eax
xorps xmm0, xmm0
mov ecx, 0x98
mov dword [ebp - 4], eax
cmovne esi, edi
sub esp, 8
mov edi, 0x100ca2a0
rep movsd dword es:[edi], dword [esi]
movsd qword [esp], xmm0
push dword [0x100cab08]
call fcn.10002470
mov edi, dword [0x100ca2cc]
add esp, 0xc
mov edx, 0x208
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, edi
mov dword [0x100ceaec], edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x230], ecx
call fcn.100793fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x22c], esi
test esi, esi
je 0x100053b5
push dword [ebp - 0x230]
push 0
push esi
call fcn.1007af80
add esp, 0xc
nop dword [eax + eax]
mov eax, edi
dec edi
test eax, eax
je 0x100053ad
push 0x1f4
lea eax, [esi + 0x10]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.1007af80
add esp, 0xc
add esi, 0x208
jmp 0x10005370
mov eax, dword [ebp - 0x22c]
jmp 0x100053b7
xor eax, eax
mov ecx, dword [0x100ceae8]
or dword [ebp - 0x21c], 1
mov dword [0x100ceae8], eax
test ecx, ecx
je 0x10005401
push ecx
call fcn.10079407
add esp, 4
jmp 0x10005401
cmp dword [0x100ceae8], 0
mov edx, 0x208
mov dword [ebp - 4], 0
jne 0x10005424
mov edi, dword [0x100ca2cc]
test edi, edi
jne 0x10005328
xor eax, eax
xor edi, edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 3
cmp word [0x100ca2e0], di
je 0x10005593
push 0x100ca2e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.100639d0
mov esi, dword [ebp - 0x23c]
add esp, 8
mov ecx, dword [0x100ca2d8]
test esi, esi
jb 0x1000549c
mov edx, dword [ebp - 0x240]
ja 0x1000548e
cmp edx, ecx
jbe 0x1000549c
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x21c], esi
jmp 0x100054ac
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
mov edx, dword [ebp - 0x240]
ja 0x100054f0
jb 0x100054d0
cmp dword [ebp - 0x220], eax
jae 0x100054f0
test esi, esi
jb 0x100054e4
ja 0x100054da
cmp edx, ecx
jbe 0x100054e4
mov ecx, edx
mov dword [ebp - 0x244], esi
jmp 0x100054f2
mov dword [ebp - 0x244], 0
jmp 0x100054f2
mov ecx, eax
cmp dword [ebp - 0x234], 0
mov dword [0x100ca2d8], ecx
ja 0x10005525
jb 0x1000550b
cmp eax, dword [0x100ca2dc]
jae 0x10005525
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], edx
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x220], eax
jmp 0x10005541
mov esi, dword [0x100ca2dc]
mov dword [ebp - 0x220], esi
mov esi, dword [ebp - 0x23c]
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x21c], esi
jb 0x1000558a
ja 0x10005553
cmp dword [ebp - 0x220], edx
jbe 0x1000558a
mov edx, dword [ebp - 0x234]
test edx, edx
ja 0x10005574
jb 0x10005567
cmp eax, dword [0x100ca2dc]
jae 0x10005574
mov dword [ebp - 0x244], edx
mov dword [0x100ca2dc], eax
jmp 0x1000559e
mov eax, dword [0x100ca2dc]
mov dword [ebp - 0x244], 0
mov dword [0x100ca2dc], eax
jmp 0x1000559e
mov eax, edx
mov dword [0x100ca2dc], eax
jmp 0x1000559e
mov eax, dword [0x100ca2dc]
mov ecx, dword [0x100ca2d8]
cmp word [0x100ca3d0], 0
je 0x10005745
push 0x100ca3d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor edx, edx
xor edi, edi
mov dword [ebp - 0x228], edx
test esi, esi
jne 0x100055e4
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edx
jmp 0x100057d2
mov eax, 0x5a4d
cmp word [esi], ax
je 0x1000560d
xor eax, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], edx
jmp 0x100057d2
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
je 0x10005638
xor eax, eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], edx
jmp 0x100057d2
mov eax, dword [eax + esi + 0x78]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x10005663
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edx
jmp 0x100057d2
xor eax, eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], edx
mov edx, dword [ebp - 0x220]
xor ecx, ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x21c], ecx
cmp dword [edx + esi + 0x18], ecx
mov edx, ecx
jbe 0x1000572a
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + esi]
lea ecx, [esi + eax*4]
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + esi + 0x1c]
mov eax, dword [ecx + eax]
xor ecx, ecx
add eax, esi
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x248], eax
cmp edi, edx
je 0x100056e0
mov dword [edi], eax
mov dword [edi + 4], ecx
add edi, 8
mov dword [ebp - 0x238], edi
jmp 0x100056ff
lea eax, [ebp - 0x248]
push eax
push edi
lea ecx, [ebp - 0x23c]
call fcn.10004ff0
mov edx, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
inc ecx
mov dword [ebp - 0x21c], ecx
cmp ecx, dword [eax + esi + 0x18]
jb 0x100056a1
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edx
jmp 0x100057d2
push eax
movzx eax, word [0x100ca2c0]
push ecx
push 0x10
push eax
lea eax, [ebp - 0x23c]
push 0x100ca2a0
push eax
call fcn.10063b30
mov edx, eax
add esp, 0x18
lea eax, [ebp - 0x254]
cmp eax, edx
jne 0x10005775
xor esi, esi
jmp 0x100057b1
mov ecx, dword [edx]
mov esi, ecx
mov eax, dword [edx + 8]
mov edi, dword [edx + 4]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x24c], eax
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
lea ecx, [ebp - 0x23c]
call fcn.100051e0
cmp esi, edi
je 0x100057d2
mov eax, dword [0x100ca2c4]
cdq
add dword [esi], eax
adc dword [esi + 4], edx
add esi, 8
cmp esi, edi
jne 0x100057c0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.100639d0
mov esi, dword [ebp - 0x224]
add esp, 8
mov eax, esi
cmp eax, edi
je 0x1000588c
nop dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
cmp edx, dword [ebp - 0x264]
jb 0x10005829
ja 0x10005817
cmp ecx, dword [ebp - 0x268]
jbe 0x10005829
cmp edx, dword [ebp - 0x25c]
jb 0x10005830
ja 0x10005829
cmp ecx, dword [ebp - 0x260]
jb 0x10005830
add eax, 8
cmp eax, edi
jne 0x10005800
cmp eax, edi
je 0x1000588c
lea ecx, [eax + 8]
cmp ecx, edi
je 0x1000588a
nop dword [eax + eax]
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x230], esi
cmp esi, dword [ebp - 0x264]
jb 0x1000586f
ja 0x1000585d
cmp edx, dword [ebp - 0x268]
jbe 0x1000586f
cmp esi, dword [ebp - 0x25c]
jb 0x1000587d
ja 0x1000586f
cmp edx, dword [ebp - 0x260]
jb 0x1000587d
mov dword [eax], edx
mov edx, dword [ebp - 0x230]
mov dword [eax + 4], edx
add eax, 8
add ecx, 8
cmp ecx, edi
jne 0x10005840
mov esi, dword [ebp - 0x224]
cmp eax, edi
cmovne edi, eax
mov eax, edi
mov dword [ebp - 0x244], edi
sub eax, esi
mov dword [ebp - 0x250], edi
sar eax, 3
mov esi, eax
mov dword [ebp - 0x21c], eax
shl esi, 4
push 4
sub esi, eax
push 0x1000
add esi, esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x100cea68
push 0x40
push esi
push eax
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x224]
test eax, eax
je 0x100059db
mov ecx, dword [ebp - 0x230]
xor edi, edi
mov dword [ebp - 0x220], ecx
lea eax, [ebp - 0x22c]
push eax
push ecx
push dword [esi + edi*8]
call fcn.10070bd0
push dword [esi + edi*8]
call fcn.10070e90
mov ecx, dword [ebp - 0x220]
movups xmm0, xmmword [0x100ca500]
movups xmmword [ecx], xmm0
movq xmm0, qword [0x100ca510]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x100ca518]
mov dword [ecx + 0x18], eax
mov ax, word [0x100ca51c]
mov word [ecx + 0x1c], ax
mov eax, dword [esi + edi*8]
mov dword [ecx + 3], eax
mov eax, dword [ebp - 0x22c]
mov dword [ecx + 0x19], eax
mov eax, 0x68db8bad
imul edi
mov ecx, edi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x9c4
sub ecx, eax
jne 0x100059b7
mov eax, dword [ebp - 0x21c]
sub esp, 8
movd xmm1, edi
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x100a8680]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100a8690]
divsd xmm1, xmm0
addsd xmm1, qword [0x100a8678]
movsd qword [esp], xmm1
push dword [0x100cab08]
call fcn.10002470
add esp, 0xc
mov ecx, dword [ebp - 0x220]
inc edi
mov eax, dword [ebp - 0x21c]
add ecx, 0x1e
mov dword [ebp - 0x220], ecx
cmp edi, eax
jb 0x100058f8
mov edi, dword [ebp - 0x244]
push eax
push dword [0x100cab10]
call fcn.10002470
add esp, 8
call fcn.10070b00
push dword [0x100cab04]
call fcn.10002470
mov eax, 0x10624dd3
imul dword [0x100ca2c8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [0x100cab14]
call fcn.10002470
add esp, 0xc
push dword [0x100ca2c8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, edi
je 0x10005a3e
nop
push dword [esi]
call fcn.10070e70
add esi, 8
cmp esi, edi
jne 0x10005a30
call fcn.10070b00
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x224]
cmp esi, edi
je 0x10005a66
push dword [esi]
call fcn.10070eb0
add esi, 8
cmp esi, edi
jne 0x10005a58
mov eax, dword [0x100ca2cc]
sub eax, dword [0x100ceaec]
push eax
push dword [0x100cab18]
call fcn.10002470
mov esi, dword [0x100ceae8]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x220], edx
add esp, 8
cmp dword [0x100ca2cc], ecx
jle 0x10005bc2
xor edi, edi
mov dword [ebp - 0x22c], edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edi + esi]
or eax, dword [edi + esi + 4]
je 0x10005ba3
inc ecx
mov eax, 0x14f8b589
imul ecx
mov dword [ebp - 0x21c], ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x186a0
sub ecx, eax
jne 0x10005af8
push dword [ebp - 0x21c]
push str._d_results_processed
call fcn.10002470
mov esi, dword [0x100ceae8]
add esp, 8
push 0x1f8
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1007af80
mov eax, dword [edi + esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x94], 3
mov eax, dword [edi + esi]
mov ecx, dword [edi + esi + 4]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ecx
mov eax, dword [edi + esi + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [0x100ca2d0]
mov dword [ebp - 0x90], eax
mov eax, dword [0x100ca4fc]
test eax, eax
je 0x10005b65
lea ecx, [ebp - 0x218]
push ecx
call eax
mov esi, dword [0x100ceae8]
add esp, 4
lea eax, [esi + 0x10]
mov ecx, 0x7e
add eax, edi
lea esi, [ebp - 0x218]
push eax
sub esp, 0x1f8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.100027a0
mov esi, dword [0x100ceae8]
add esp, 0x1fc
mov edi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
inc edx
add edi, 0x208
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x22c], edi
cmp edx, dword [0x100ca2cc]
jl 0x10005ab0
mov dword [0x100ceae8], 0
test esi, esi
je 0x10005bd9
push esi
call fcn.10079407
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x224]
xor eax, eax
mov ecx, 0xb71a9
mov edi, 0x10687838
xorps xmm0, xmm0
mov esi, 0x100ceaf0
movlpd qword [0x100ceaf0], xmm0
rep stosd dword es:[edi], eax
mov ecx, 0x16e350
mov edi, 0x100ceaf8
rep movsd dword es:[edi], dword [esi]
test edx, edx
je 0x10005c53
mov ecx, dword [ebp - 0x228]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10005c49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005cc7
push ecx
push edx
call fcn.10079074
add esp, 8
push dword [ebp - 0x26c]
call fcn.100775e3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007939c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x10c405b4
call fcn.1007953f
add esp, 4
cmp dword [0x10c405b4], 0xffffffff
jne 0x100052c1
push 2
push 0x10c40584
call fcn.100775b3
push 0x100a6330
call fcn.10079387
push 0x10c405b4
call fcn.100794f5
add esp, 0x10
jmp 0x100052c1
push eax
call fcn.1007790e
call fcn.1008515f
int3