Function at 0x4030c0
Capabilities:
Get memory capacity
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f4
push ebx
mov eax, 0x200
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
mov edi, str._r_n_r_n
xor eax, eax
lea edx, [ebp - 0x160]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp - 0x160]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.Microsoft_SQL_Server_Replication:_Exception_Stack_Dump_r_n_r_n]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x160]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._r_n_r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x160]
push ecx
call esi
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x160]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4031d0
mov ecx, 0x25
lea edi, [ebp - 0x1f4]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x3f4]
push ecx
lea eax, [ebp - 0x5f4]
push edx
push eax
call fcn.004036a0
mov al, byte [ebp - 0x5f4]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test al, al
je 0x403255
mov edx, dword [str.Computer_type_is__s._r_n]
lea ecx, [ebp - 0x5f4]
push ecx
lea eax, [ebp - 0x160]
push edx
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x160]
push 0
push ecx
push edx
call esi
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x160]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403255
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x3f4]
test al, al
je 0x403311
mov eax, dword [str.Bios_Version_is__s_r_n]
lea edx, [ebp - 0x3f4]
push edx
lea ecx, [ebp - 0x160]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x160]
push 0
push edx
push eax
call esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x160]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4032a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x3f4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebp + ecx - 0x3f3]
test al, al
je 0x403311
lea eax, [ebp - 4]
push 0
push eax
lea edi, [ebp - 0x3f4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ebp + ecx - 0x3f3]
push ecx
call esi
push eax
lea edi, [ebp - 0x3f4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
dec ecx
lea edx, [ebp + ecx - 0x3f3]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403311
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_asctime]
mov edx, dword [str.Current_local_time_is__s._r_n]
push eax
lea eax, [ebp - 0x160]
push edx
push eax
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [ebp - 0x160]
push 0xa
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x403356
lea edx, [ebp - 0x160]
push 0xd
push edx
call edi
add esp, 8
test eax, eax
je 0x403359
mov byte [eax], 0
lea eax, [ebp - 4]
push 0
lea ecx, [ebp - 0x160]
push eax
push ecx
call esi
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x160]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403385
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
mov edx, dword [str._r_n_d]
push ecx
lea eax, [ebp - 0x160]
push edx
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x1e4]
add esp, 0xc
cmp eax, 2
jne 0x403446
mov eax, dword [ebp - 0x40]
and eax, 0xffff
cmp eax, 3
ja case.default.0x4033ba
jmp dword [eax*4 + 0x403688]
mov ecx, dword [ebp - 0x20]
mov edx, dword [str.Intel_x86_level__d]
and ecx, 0xffff
lea eax, [ebp + esi - 0x160]
push ecx
push edx
push eax
jmp 0x403474
mov ecx, dword [ebp - 0x20]
mov edx, dword [str.Mips_level__d]
and ecx, 0xffff
lea eax, [ebp + esi - 0x160]
push ecx
push edx
push eax
jmp 0x403474
mov ecx, dword [ebp - 0x20]
mov edx, dword [str.Alpha_level__d]
and ecx, 0xffff
lea eax, [ebp + esi - 0x160]
push ecx
push edx
push eax
jmp 0x403474
mov ecx, dword [ebp - 0x20]
mov edx, dword [str.PPC_level__d]
and ecx, 0xffff
lea eax, [ebp + esi - 0x160]
push ecx
push edx
push eax
jmp 0x403474
mov ecx, dword [str.Unknown.]
lea edx, [ebp + esi - 0x160]
push ecx
push edx
call ebx
add esp, 8
jmp 0x403479
cmp word [ebp - 0x40], 0
je 0x403462
mov eax, dword [str.Unknown.]
lea ecx, [ebp + esi - 0x160]
push eax
push ecx
call ebx
add esp, 8
jmp 0x403479
mov edx, dword [ebp - 0x28]
mov eax, dword [str.Intel_x86_level__d]
push edx
lea ecx, [ebp + esi - 0x160]
push eax
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 0xc]
add esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x403493
test ecx, ecx
je 0x4034c2
push 0
push 0xf4240
push ecx
push eax
call fcn.004078d0
push edx
mov dword [ebp - 0xc], eax
push eax
mov eax, dword [str.___I64d_Mhz]
lea ecx, [ebp + esi - 0x160]
push eax
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
add esi, eax
mov edx, dword [str._processor_s_._r_n]
lea eax, [ebp + esi - 0x160]
push edx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
lea ecx, [ebp - 4]
lea edx, [ebp - 0x160]
push 0
push ecx
push edx
call esi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403508
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1e4], 2
jne 0x40353d
mov edx, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1e0]
push ecx
mov ecx, dword [ebp - 0x1f0]
push edx
mov edx, dword [str.Windows_NT__d._d_Build__d_CSD__s._r_n]
push eax
push ecx
lea eax, [ebp - 0x160]
push edx
push eax
jmp 0x403575
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x1e0]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push edx
push eax
mov eax, ecx
xor edx, edx
and eax, 0xff
mov dl, ch
push eax
mov eax, dword [str.Windows__d._d_Build__d_CSD__s._r_n]
and edx, 0xff
lea ecx, [ebp - 0x160]
push edx
push eax
push ecx
call ebx
add esp, 0x18
lea edx, [ebp - 4]
lea eax, [ebp - 0x160]
push 0
push edx
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x160]
push eax
push ecx
push edi
call ebx
test eax, eax
jne 0x4035a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x160]
push edx
push str.MemoryLoad__d___t_t
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x160]
push 0
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x160]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x160]
shr ecx, 0x14
push ecx
push str.TotalPhys__d_MB_r_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x160]
push 0
push eax
push ecx
call esi
lea edx, [ebp - 0x160]
push eax
push edx
push edi
call ebx
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x160]
shr eax, 0x14
push eax
push str.AvailPhys__d_MB_t_t
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x160]
push 0
push edx
push eax
call esi
lea ecx, [ebp - 0x160]
push eax
push ecx
push edi
call ebx
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x160]
shr edx, 0x14
push edx
push str.TotalPageFile__d_MB_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x160]
push 0
push ecx
push edx
call esi
push eax
lea eax, [ebp - 0x160]
push eax
push edi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret