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

Disassembly:
sub esp, 0x5f4
push ebx
push ebp
mov eax, 0x200
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
or ecx, 0xffffffff
mov edi, str._r_n_r_n
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
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
push eax
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, [esp + 0x74]
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, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
push ecx
call ebp
mov esi, dword [esp + 0x610]
lea edx, [esp + 0x78]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [esp + 0x170]
mov dword [esp + 0x170], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4072d5
mov ecx, 0x25
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x208]
push eax
lea edx, [esp + 0x40c]
push ecx
push edx
call fcn.00407780
mov al, byte [esp + 0x414]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test al, al
je 0x40735e
mov ecx, dword [str.Computer_type_is__s._r_n]
lea eax, [esp + 0x404]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push 0
push eax
push ecx
call ebp
lea edx, [esp + 0x78]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40735e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov al, byte [esp + 0x204]
test al, al
je 0x40741e
mov ecx, dword [str.Bios_Version_is__s_r_n]
lea eax, [esp + 0x204]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push 0
push eax
push ecx
call ebp
lea edx, [esp + 0x78]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4073b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
lea edi, [esp + 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x205]
test al, al
je 0x40741e
lea eax, [esp + 0x10]
push 0
push eax
lea edi, [esp + 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x20d]
push ecx
call ebp
push eax
lea edi, [esp + 0x210]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x211]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40741e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_asctime]
mov ecx, dword [str.Current_local_time_is__s._r_n]
add esp, 4
lea edx, [esp + 0x70]
push eax
push ecx
push edx
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0xc
lea eax, [esp + 0x70]
push 0xa
push eax
call edi
add esp, 8
test eax, eax
jne 0x407464
lea ecx, [esp + 0x70]
push 0xd
push ecx
call edi
add esp, 8
test eax, eax
je 0x407467
mov byte [eax], 0
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x74]
push edx
push eax
call ebp
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407491
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov edx, dword [esp + 0x40]
mov eax, dword [str._r_n_d]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call ebx
mov esi, eax
mov eax, dword [esp + 0x18c]
add esp, 0xc
cmp eax, 2
jne 0x407543
mov eax, dword [esp + 0x2c]
and eax, 0xffff
cmp eax, 3
ja case.default.0x4074c6
jmp dword [eax*4 + 0x407768]
mov edx, dword [esp + 0x4c]
mov eax, dword [str.Intel_x86_level__d]
and edx, 0xffff
lea ecx, [esp + esi + 0x70]
push edx
push eax
push ecx
jmp 0x40756f
mov edx, dword [esp + 0x4c]
mov eax, dword [str.Mips_level__d]
and edx, 0xffff
lea ecx, [esp + esi + 0x70]
push edx
push eax
push ecx
jmp 0x40756f
mov edx, dword [esp + 0x4c]
mov eax, dword [str.Alpha_level__d]
and edx, 0xffff
lea ecx, [esp + esi + 0x70]
push edx
push eax
push ecx
jmp 0x40756f
mov edx, dword [esp + 0x4c]
mov eax, dword [str.PPC_level__d]
and edx, 0xffff
lea ecx, [esp + esi + 0x70]
push edx
push eax
push ecx
jmp 0x40756f
mov edx, dword [str.Unknown.]
lea eax, [esp + esi + 0x70]
push edx
push eax
call ebx
add esp, 8
jmp 0x407574
cmp word [esp + 0x2c], 0
je 0x40755e
mov ecx, dword [str.Unknown.]
lea edx, [esp + esi + 0x70]
push ecx
push edx
call ebx
add esp, 8
jmp 0x407574
mov eax, dword [esp + 0x44]
mov ecx, dword [str.Intel_x86_level__d]
push eax
lea edx, [esp + esi + 0x74]
push ecx
push edx
call ebx
add esp, 0xc
add esi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x407591
test ecx, ecx
je 0x4075c0
push 0
push 0xf4240
push ecx
push eax
call fcn.0040a0b0
mov ecx, dword [str.___I64d_Mhz]
mov dword [esp + 0x18], edx
push edx
push eax
lea edx, [esp + esi + 0x78]
push ecx
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
add esi, eax
mov eax, dword [str._processor_s_._r_n]
lea ecx, [esp + esi + 0x70]
push eax
push ecx
call ebx
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
push 0
push edx
push eax
call ebp
mov esi, dword [esp + 0x610]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
call edi
test eax, eax
jne 0x407603
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
cmp dword [esp + 0x180], 2
jne 0x407634
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
lea edx, [esp + 0x184]
push edx
mov edx, dword [esp + 0x178]
push eax
mov eax, dword [str.Windows_NT__d._d_Build__d_CSD__s._r_n]
push ecx
push edx
jmp 0x407666
mov eax, dword [esp + 0x17c]
lea edx, [esp + 0x184]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push edx
push eax
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
and edx, 0xff
push eax
mov eax, dword [str.Windows__d._d_Build__d_CSD__s._r_n]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
call ebx
add esp, 0x18
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
call edi
test eax, eax
jne 0x40769a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5f4
ret
mov edx, dword [esp + 0x54]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [esp + 0x74]
push str.MemoryLoad__d___t_t
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push 0
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x7c]
push eax
push esi
call edi
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x70]
shr ecx, 0x14
push ecx
push str.TotalPhys__d_MB_r_n
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x70]
push 0
push eax
push ecx
call ebp
lea edx, [esp + 0x78]
push eax
push edx
push esi
call edi
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x70]
shr eax, 0x14
push eax
push str.AvailPhys__d_MB_t_t
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
call edi
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x70]
shr edx, 0x14
push edx
push str.TotalPageFile__d_MB_r_n
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x70]
push 0
push ecx
push edx
call ebp
push eax
lea eax, [esp + 0x7c]
push eax
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5f4
ret