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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004128
push 0x10003a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], edx
mov esi, ecx
mov dword [ebp - 0x44], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x40], ecx
cmp edx, 0x40
jb 0x10001b04
mov dword [ebp - 0x60], esi
cmp word [esi], 0x5a4d
jne 0x10001b04
mov eax, dword [esi + 0x3c]
lea edi, [eax + 0xf8]
cmp edi, edx
ja 0x10001b04
lea edi, [eax + esi]
mov dword [ebp - 0x1c], edi
cmp dword [edi], 0x4550
jne 0x10001b04
cmp dword [edi + 0x28], ecx
je 0x10001b04
test byte [edi + 0x16], 1
jne 0x10001b04
cmp dword [edi + 0xa4], ecx
je 0x10001b04
movzx eax, word [edi + 0x14]
lea edx, [eax + edi + 0x18]
mov dword [ebp - 0x3c], edx
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x10001b04
mov ecx, dword [edi + 0x54]
cmp ecx, dword [ebp - 0x2c]
ja case.default.0x10001950
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edx, edx
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 6]
cmp edx, eax
jge 0x1000185f
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x3c]
lea eax, [eax + ecx*8]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1000185c
mov ecx, dword [eax + 0x10]
lea edi, [ecx + esi]
cmp edi, dword [ebp - 0x2c]
ja case.default.0x10001950
mov edi, dword [ebp - 0x44]
add esi, edi
mov edi, dword [eax + 0xc]
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc edx
jmp 0x10001817
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x100018f7
mov edi, dword [ecx + 0x80]
add edi, ebx
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100018f7
add eax, ebx
mov dword [ebp - 0x64], eax
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [ebp - 0x50], ecx
test ecx, ecx
je case.default.0x10001950
mov esi, dword [edi + 0x10]
add esi, ebx
mov dword [ebp - 0x4c], esi
mov eax, dword [edi + 4]
test eax, eax
jne 0x100018ab
mov edi, esi
jmp 0x100018af
mov edi, dword [edi]
add edi, ebx
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
test eax, eax
je 0x100018e7
jns 0x100018c0
movzx edx, ax
push edx
jmp 0x100018c5
lea eax, [eax + ebx + 2]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
test eax, eax
je case.default.0x10001950
add edi, 4
mov dword [ebp - 0x30], edi
add esi, 4
mov dword [ebp - 0x4c], esi
mov ecx, dword [ebp - 0x50]
jmp 0x100018b2
mov eax, dword [ebp - 0x20]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edi, eax
jmp 0x10001878
mov edi, ebx
sub edi, dword [ecx + 0x34]
mov dword [ebp - 0x34], edi
mov esi, dword [ecx + 0xa0]
add esi, ebx
mov dword [ebp - 0x54], esi
lea ebx, [ebx]
cmp dword [esi], 0
je 0x100019ed
lea edx, [esi + 8]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], 0
mov ecx, dword [esi + 4]
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x24], ecx
jae 0x100019df
movzx ecx, word [edx]
mov eax, ecx
and eax, 0xfff
add eax, dword [esi]
add eax, ebx
mov dword [ebp - 0x68], eax
shr ecx, 0xc
cmp ecx, 4
ja case.default.0x10001950
jmp dword [ecx*4 + 0x10001b20]
shr edi, 0x10
xor ecx, ecx
mov cx, word [eax]
add edi, ecx
mov word [eax], di
mov edi, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x38], edx
inc dword [ebp - 0x24]
jmp 0x10001926
xor ecx, ecx
mov cx, word [eax]
add ecx, edi
mov word [eax], cx
add edx, 2
mov dword [ebp - 0x38], edx
inc dword [ebp - 0x24]
jmp 0x10001926
add dword [eax], edi
add edx, 2
mov dword [ebp - 0x38], edx
inc dword [ebp - 0x24]
jmp 0x10001926
movzx ecx, word [eax]
shl ecx, 0x10
movzx edi, word [edx + 2]
or ecx, edi
mov edi, dword [ebp - 0x34]
lea ecx, [ecx + edi + 0x8000]
shr ecx, 0x10
mov word [eax], cx
add edx, 2
mov dword [ebp - 0x38], edx
add edx, 2
mov dword [ebp - 0x38], edx
inc dword [ebp - 0x24]
jmp 0x10001926
test ebx, ebx
je 0x10001b04
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10001b04
add esi, dword [esi + 4]
mov dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x1c]
jmp 0x10001910
lea edx, [ebp - 0x58]
push edx
push 2
mov eax, dword [ecx + 0x54]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
xor esi, esi
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 6]
cmp esi, ecx
jge 0x10001a35
lea edx, [esi + esi*4]
mov eax, dword [ebp - 0x3c]
lea edx, [eax + edx*8]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [edx + 0x24]
call fcn.100016e0
push eax
mov eax, dword [edx + 8]
push eax
mov ecx, dword [edx + 0xc]
add ecx, ebx
push ecx
call edi
inc esi
jmp 0x10001a02
mov dword [ebp - 0x28], 0xffffffff
mov esi, 1
mov dword [ebp - 4], esi
test byte [eax + 0x17], 0x20
mov eax, dword [eax + 0x28]
je 0x10001a9f
add eax, ebx
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp + 8]
push edx
push esi
push ebx
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov dword [ebp - 0x28], esi
jne 0x10001aa9
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, ebx
mov dword [ebp - 0x70], eax
call eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4