Function at 0x10062d40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a8
call fcn.10064fe0
mov eax, dword [0x100bc570]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10194644]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101943d8]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1024], ecx
cmp eax, dword [ecx + 4]
jg 0x1006312e
cmp dword [ebp + 0x14], 0
mov eax, 1
mov dword [ebp - 0x1014], eax
je 0x10062dd1
test esi, esi
je 0x10062dd1
push dword [ebp + 0x10]
push ebx
push esi
call fcn.10062c10
add esp, 0xc
test eax, eax
jne 0x10062dcc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006311d
nop dword [eax]
mov edx, dword [ebp - 0x1024]
mov esi, 0x1000
mov eax, dword [0x101943d0]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x10063183
jmp 0x10062e17
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1020], 0
mov eax, 1
mov dword [ebp - 0x1010], 0
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
test esi, esi
je 0x10062f73
mov esi, dword [0x101943cc]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x10062eb8
push 0x1c
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1038], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1050], xmm0
movq qword [ebp - 0x1040], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10062eb8
cmp dword [ebp - 0x1040], 0x1000
jne 0x10062eb8
test byte [ebp - 0x103c], 0xee
je 0x10062eb8
mov ecx, dword [ebp - 0x1044]
cmp esi, ecx
ja 0x10062eb8
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1050]
cmp eax, ecx
jbe 0x10062edf
lea eax, [ebp - 0x1020]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10062ed5
mov dword [ebp - 0x100c], eax
jmp 0x10062edf
mov dword [ebp - 0x1010], 1
lea eax, [ebp - 0x1018]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x10062f04
xor ecx, ecx
mov dword [ebp - 0x1018], ecx
jmp 0x10062f0a
mov ecx, dword [ebp - 0x1018]
cmp dword [ebp - 0x1010], 0
je 0x10062f2e
lea eax, [ebp - 0x105c]
push eax
push dword [ebp - 0x1020]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1018]
cmp ecx, esi
je 0x10062f4f
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.100663f0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x100c], eax
jmp 0x10062f55
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x10062e44
mov esi, dword [ebp - 0x1030]
mov edx, dword [ebp - 0x1024]
xor ecx, ecx
test eax, eax
mov eax, dword [0x101943c8]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x100631d8
jmp 0x10062fab
mov ecx, dword [ebp - 0x1008]
mov edi, dword [ebp - 0x101c]
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
mov ebx, 1
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1010], 0
test esi, esi
je 0x100630e8
nop
mov esi, dword [0x101943c4]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x10063054
push 0x1c
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1038], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1050], xmm0
movq qword [ebp - 0x1040], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10063054
cmp dword [ebp - 0x1040], 0x1000
jne 0x10063054
test byte [ebp - 0x103c], 0xcc
je 0x10063054
mov ecx, dword [ebp - 0x1044]
cmp esi, ecx
ja 0x10063054
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1050]
cmp eax, ecx
jbe 0x10063077
lea eax, [ebp - 0x1028]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006306d
xor ebx, ebx
jmp 0x10063077
mov dword [ebp - 0x1010], 1
lea eax, [ebp - 0x102c]
push eax
push esi
push dword [ebp - 0x100c]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1006309d
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x1010], 0
je 0x100630bb
lea eax, [ebp - 0x1060]
push eax
push dword [ebp - 0x1028]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
xor eax, eax
cmp dword [ebp - 0x102c], esi
cmovne ebx, eax
add dword [ebp - 0x100c], esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x10062fe0
mov esi, dword [ebp - 0x1030]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edi, dword [ebp - 0x1034]
test ebx, ebx
cmovne eax, dword [ebp - 0x1014]
sub ecx, esi
add dword [ebp - 0x101c], esi
add edi, esi
mov dword [ebp - 0x1014], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1034], edi
test ecx, ecx
jne 0x10062de0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10064a7b
mov esp, ebp
pop ebp
ret
push 0x101943d8
call fcn.10064f73
add esp, 4
cmp dword [0x101943d8], 0xffffffff
jne 0x10062d95
mov eax, dword [0x100bc4e0]
cmp eax, 0xffffffff
jne 0x1006316c
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1054]
mov dword [0x100bc4e0], eax
jmp 0x1006316c
push 0x101943d8
mov dword [0x101943d4], eax
call fcn.10064f22
add esp, 4
jmp 0x10062d95
push 0x101943d0
call fcn.10064f73
add esp, 4
cmp dword [0x101943d0], 0xffffffff
jne 0x10062e11
mov eax, dword [0x100bc4e0]
cmp eax, 0xffffffff
jne 0x100631c1
lea eax, [ebp - 0x1084]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1080]
mov dword [0x100bc4e0], eax
jmp 0x100631c1
push 0x101943d0
mov dword [0x101943cc], eax
call fcn.10064f22
add esp, 4
jmp 0x10062e11
push 0x101943c8
call fcn.10064f73
add esp, 4
cmp dword [0x101943c8], 0xffffffff
jne 0x10062fa5
mov eax, dword [0x100bc4e0]
cmp eax, 0xffffffff
jne 0x10063216
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10a4]
mov dword [0x100bc4e0], eax
jmp 0x10063216
push 0x101943c8
mov dword [0x101943c4], eax
call fcn.10064f22
add esp, 4
jmp 0x10062fa5