Function at 0x1035f7d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x528
and dword [ebp - 0x18], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, 0x811a
push esi
stosd dword es:[edi], eax
call fcn.0102e30b
push esi
mov dword [ebp - 0x20], eax
call fcn.0102e30b
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
cmp word [ebx], 0x22
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov edi, 0x100d834
mov esi, 0x408d
je 0x103600c
push edi
push esi
push eax
mov byte [ebp - 1], 1
call fcn.01035bd1
test eax, eax
jge 0x103600c
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x100d7e8
push 0x100d6c4
push 0x2f
jmp 0x10360fd
push ebx
push esi
push dword [ebp - 8]
call fcn.01035bd1
test eax, eax
jge 0x1036048
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x100d798
push 0x100d6c4
push 0x30
jmp 0x10360fd
cmp byte [ebp - 1], 0
je 0x1036087
push edi
push esi
push dword [ebp - 8]
call fcn.01035bd1
test eax, eax
jge 0x1036087
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x100d7e8
push 0x100d6c4
push 0x31
jmp 0x10360fd
push 0x100d794
push esi
push dword [ebp - 8]
call fcn.01035bd1
test eax, eax
jge 0x10360c4
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x100d7e8
push 0x100d6c4
push 0x32
jmp 0x10360fd
push dword [ebp + 0xc]
push esi
push dword [ebp - 8]
call fcn.01035bd1
test eax, eax
jge 0x103610d
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x100d7e8
push 0x100d6c4
push 0x33
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01020599
jmp 0x10364b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1036164
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b010]
cmp ecx, 0x103b010
je 0x10364b6
test byte [ecx + 0x1c], 4
je 0x10364b6
push eax
push 0x1005a58
push 0x100d6c4
push 0x34
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01020599
jmp 0x10364b6
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x35
call esi
xor ebx, ebx
mov edi, 0xc0000004
jmp 0x10361cf
cmp dword [ebp - 0xc], 0
jbe 0x10361d3
cmp ebx, 5
jge 0x10361d3
cmp dword [ebp - 0x10], 0
je 0x10361a4
push dword [ebp - 0x10]
call fcn.01018237
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
add eax, 0x400
push eax
mov dword [ebp - 0x14], eax
call fcn.0101821f
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1036243
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x35
call esi
inc ebx
cmp eax, edi
je 0x1036187
test eax, eax
jl 0x1036492
cmp dword [ebp - 0xc], 0
je 0x1036492
mov ecx, dword [ebp - 0x10]
and dword [ebp + 0xc], 0
mov dword [ebp - 0x24], ecx
mov esi, 0x100d6c4
mov ebx, dword [ecx + 0x44]
cmp ebx, dword [ebp - 0x2c]
je 0x1036465
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1036269
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036478
test byte [eax + 0x1c], 2
je 0x1036478
push ebx
push esi
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dce0
jmp 0x1036478
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x10364b6
test byte [eax + 0x1c], 4
je 0x10364b6
push 0x100d6c4
push 0x35
jmp 0x10364ab
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1036438
cmp dword [ebp - 0x1c], 0x103
jne 0x1036465
lea eax, [ebp - 0x30]
push eax
push 0x18
lea eax, [ebp - 0x48]
push eax
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
je 0x10362c7
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
push ebx
push esi
push 0x39
jmp 0x10362ea
cmp dword [ebp - 0x44], edi
jne 0x10362fa
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
push ebx
push esi
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dce0
jmp 0x1036465
push edi
push 0x248
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x44]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1036341
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x3b
jmp 0x1036455
push edi
push 0x298
lea eax, [ebp - 0x528]
push eax
push dword [ebp - 0x280]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x103638b
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x3c
jmp 0x1036455
push edi
mov edi, dword [ebp - 0x20]
push 0x811a
push edi
push dword [ebp - 0x4e4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x10363d2
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x3d
jmp 0x1036455
push dword [ebp - 8]
xor eax, eax
push edi
mov word [edi + 0x8118], ax
call fcn.0102e5f4
pop ecx
pop ecx
test eax, eax
je 0x103640c
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 2
je 0x1036465
push esi
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dedd
jmp 0x1036465
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x103642f
test byte [eax + 0x1c], 2
je 0x103642f
push dword [ebp - 8]
push esi
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dd0c
mov dword [ebp + 0xc], 1
jmp 0x1036465
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x1036465
test byte [eax + 0x1c], 4
je 0x1036465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0x38
mov eax, dword [0x103b010]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102b062
cmp dword [ebp + 8], 0
je 0x1036478
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp + 8], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
test eax, eax
je 0x10364b6
add ecx, eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x24], ecx
je 0x10361f4
jmp 0x10364b6
mov eax, dword [0x103b010]
cmp eax, 0x103b010
je 0x10364b6
test byte [eax + 0x1c], 2
je 0x10364b6
push 0x100d6c4
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100dedd
push dword [ebp - 0x20]
call fcn.0100ea7f
push dword [ebp - 8]
call fcn.0100ea7f
cmp dword [ebp - 0x10], 0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
je 0x10364d9
push dword [ebp - 0x10]
call fcn.01018237
mov eax, dword [ebp + 0xc]
leave
ret 8