Function at 0x401000
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.ntdll.dll_RtlImageNtHeader
push 4
push 0x3000
mov eax, dword [eax + 0x50]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
jns 0x401047
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call sub.ntdll.dll_memcpy
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
call sub.ntdll.dll_RtlImageNtHeader
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
sub eax, dword [edx + 0x34]
mov ecx, dword [edx + 0xa0]
mov dword [ebp - 0x10], eax
lea eax, [ecx + esi]
add eax, dword [edx + 0xa4]
lea edi, [ecx + esi]
cmp edi, eax
jae 0x4010bc
mov ebx, esi
push dword [ebp - 0x10]
lea eax, [edi + 8]
push eax
mov eax, dword [edi + 4]
sub eax, 8
shr eax, 1
push eax
mov eax, dword [edi]
add eax, ebx
push eax
call sub.ntdll.dll_LdrProcessRelocationBlock
mov ecx, dword [ebp - 0x14]
add edi, dword [edi + 4]
mov eax, dword [ecx + 0xa4]
add eax, dword [ecx + 0xa0]
add eax, ebx
cmp edi, eax
jb 0x401087
mov ebx, dword [ebp + 8]
push ebx
call sub.ntdll.dll_RtlImageNtHeader
push ebx
call sub.ntdll.dll_RtlImageNtHeader
add eax, 0xc8
je 0x401216
mov edi, dword [eax]
test edi, edi
je 0x401216
cmp dword [eax + 4], 0xc0
jb 0x401216
mov ecx, dword [ebp - 4]
mov esi, dword [edi + ebx + 0x48]
lea edx, [edi + ecx]
test esi, esi
je 0x401120
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x40110a
mov eax, dword [ebp - 8]
add eax, ebx
cmp esi, eax
jb 0x401120
mov eax, dword [edx + 0x48]
mov esi, dword [ebp + 0xc]
sub eax, esi
mov ebx, dword [ebp - 0x14]
mov dword [eax + ecx], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
jmp 0x401123
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + ebx + 0x4c]
test eax, eax
je 0x401152
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jb 0x401141
mov eax, dword [ebp - 8]
add eax, ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x401152
mov eax, dword [edx + 0x4c]
mov ebx, dword [ebp + 0xc]
sub eax, esi
mov dword [eax + ecx], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [edi + ebx + 0xac]
test eax, eax
je 0x401187
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jb 0x401173
mov eax, dword [ebp - 8]
add eax, ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x401187
mov eax, dword [edx + 0xac]
mov ebx, dword [ebp + 0xc]
sub eax, esi
mov dword [eax + ecx], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [edi + ebx + 0xb0]
test eax, eax
je 0x4011bc
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jb 0x4011a8
mov eax, dword [ebp - 8]
add eax, ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x4011bc
mov eax, dword [edx + 0xb0]
mov ebx, dword [ebp + 0xc]
sub eax, esi
mov dword [eax + ecx], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [edi + ebx + 0xb4]
test eax, eax
je 0x4011f1
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jb 0x4011dd
mov eax, dword [ebp - 8]
add eax, ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x4011f1
mov eax, dword [edx + 0xb4]
mov ebx, dword [ebp + 0xc]
sub eax, esi
mov dword [eax + ecx], ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov edi, dword [edi + ebx + 0xbc]
test edi, edi
je 0x401219
mov edi, dword [edi]
cmp edi, ebx
jb 0x40120b
mov eax, dword [ebp - 8]
add eax, ebx
cmp edi, eax
jb 0x401219
mov eax, dword [edx + 0xbc]
sub eax, esi
mov dword [eax + ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8