Function at 0x1024f94
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x103b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], 0x8000
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1025037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10252ff
test byte [ecx + 0x1c], 4
je 0x10252ff
push eax
push 0x1005a58
push 0x1005e10
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01020599
jmp 0x10252ff
push esi
push edi
cmp dword [ebp - 0x214], ebx
je 0x102504c
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x214], ebx
cmp dword [ebp - 0x210], ebx
je 0x1025065
push dword [ebp - 0x210]
call fcn.01018237
mov esi, dword [ebp - 0x224]
push esi
call fcn.0101821f
mov edi, eax
mov dword [ebp - 0x210], edi
cmp edi, ebx
je 0x1025290
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x228]
push eax
push 0xc
lea eax, [ebp - 0x23c]
push eax
push 0x35
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jge 0x10250cb
cmp eax, 0xc0000004
jne 0x10252c6
lea eax, [esi + esi]
mov dword [ebp - 0x224], eax
jmp 0x1025052
cmp dword [ebp - 0x228], ebx
je 0x10252ab
mov eax, dword [edi + 0x50]
mov esi, dword [edi + 0x44]
cmp eax, dword [ebp - 0x21c]
je 0x1025116
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1025275
test byte [eax + 0x1c], 4
je 0x1025275
push 0x1005e10
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dedd
jmp 0x1025275
cmp esi, dword [ebp - 0x230]
je 0x1025275
push esi
push ebx
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x1025178
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x102515a
test byte [eax + 0x1c], 2
je 0x102515a
push esi
push 0x1005e10
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1025268
mov dword [ebp - 0x214], 1
jmp 0x1025268
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1025237
mov esi, 0x103
cmp dword [ebp - 0x218], esi
jne 0x1025268
mov ecx, dword [ebp - 0x22c]
push ebx
call fcn.01024d85
test eax, eax
jne 0x1025268
movzx eax, word [edi + 0x38]
shr eax, 1
cmp eax, 0x104
jb 0x10251c9
mov eax, esi
lea esi, [eax + eax]
push esi
push dword [edi + 0x3c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01012c50
mov ecx, dword [ebp - 0x22c]
xor eax, eax
mov word [ebp + esi - 0x20c], ax
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.01024d16
test eax, eax
jne 0x1025268
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x102522a
test byte [eax + 0x1c], 4
je 0x102522a
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005e10
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dd0c
mov dword [ebp - 0x220], ebx
xor ebx, ebx
jmp 0x10252ea
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1025268
test byte [eax + 0x1c], 4
je 0x1025268
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x103b010]
push esi
push 0x1005e10
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102b062
test ebx, ebx
je 0x1025273
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x1025282
add edi, eax
jmp 0x10250d7
cmp dword [ebp - 0x214], ebx
jne 0x1025041
jmp 0x10252ea
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x10252ea
test byte [eax + 0x1c], 4
je 0x10252ea
push 0x1005e10
push 0x22
jmp 0x10252df
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x10252ea
test byte [eax + 0x1c], 4
je 0x10252ea
push 0x1005e10
push 0x24
jmp 0x10252df
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x10252ea
test byte [eax + 0x1c], 4
je 0x10252ea
push 0x1005e10
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dedd
pop edi
pop esi
cmp dword [ebp - 0x210], ebx
je 0x10252ff
push dword [ebp - 0x210]
call fcn.01018237
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop ebx
call fcn.0100eb9a
leave
ret