Function at 0x10003140
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x10073ba8]
mov ecx, 0x100676c8
push esi
push edi
mov dword [ebp - 0x31c], edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003170
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, 0x10073988
mov dword [ebp - 0x310], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003194
sub ecx, edx
mov dword [ebp - 0x2e8], 0
sar ecx, 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x308], xmm0
movups xmmword [ebp - 0x2f8], xmm0
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword ds:[ebp - 0x304]
test eax, eax
je 0x10003453
cmp dword [ebp - 0x2ec], 0
je 0x10003453
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x3000
push eax
push 0
push ebx
call esi
mov edi, eax
mov dword [ebp - 0x314], edi
test edi, edi
je 0x10003453
push 4
push 0x3000
push dword [ebp - 0x304]
push 0
push ebx
call esi
mov dword [ebp - 0x30c], eax
test eax, eax
jne 0x10003259
push 0x8000
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x310]
mov dword [ebp - 0xc], 0
push 0x100676c8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, ds:[ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 0x310]
push ecx
push dword [ebp - 0x318]
add eax, edi
push 0x10073988
push eax
push ebx
mov dword [ebp - 0x320], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, eax
test esi, esi
je 0x10003432
mov eax, dword [ebp - 0x310]
cmp dword [ebp - 8], eax
jne 0x10003432
nop
test ecx, ecx
je 0x10003432
mov eax, dword [ebp - 0x318]
cmp dword [ebp - 0xc], eax
jne 0x10003432
push dword ds:[ebp - 0x304]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x2c8
lea eax, [ebp - 0x2e0]
push 0
push eax
call fcn.1002eee0
add esp, 0xc
mov dword [ebp - 0x2e4], 0x100001
lea eax, [ebp - 0x2e4]
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
nop dword [eax]
test eax, eax
je 0x10003432
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x30c]
push str.LoadLibraryW
push str.Kernel32.dll
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x320]
mov dword [0x10064af5], eax
mov dword [0x10064b01], eax
lea eax, [ebp - 0x10]
push eax
push 0x22
push 0x10064ae8
mov dword [0x10064ae9], esi
mov esi, dword [ebp - 0x30c]
push esi
push ebx
mov dword [0x10064af0], edi
mov dword [0x10064afc], ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10003432
cmp dword ds:[ebp - 0x10], 0x22
jne 0x10003432
push dword [ebp - 0x304]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x304]
mov dword [ebp - 0x14], 0
push edi
push ebx
mov dword [ebp - 0x18], 0
call esi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x30c]
push 0x10
push dword [ebp - 0x304]
push eax
push ebx
call esi
test edi, edi
je 0x1000342c
test eax, eax
je 0x1000342c
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 0x100001
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000342c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x314]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push edi
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0x30c]
push ebx
call esi
mov ecx, dword ds:[ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret