Function at 0x401fd0
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4160c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0x1f0fff
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x27c], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xorps xmm0, xmm0
mov dword [ebx], eax
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x2a4], 0
movq qword [ebp - 0x2a0], xmm0
movq qword [ebp - 0x298], xmm0
movq qword [ebp - 0x290], xmm0
movq qword [ebp - 0x288], xmm0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x2a4]
test eax, eax
je 0x402069
cmp eax, 5
je 0x402062
cmp eax, 9
jne 0x40206e
mov esi, 0x20000
jmp 0x40206e
mov esi, 0x40000
jmp 0x40206e
mov esi, 0x10000
xor eax, eax
cmp esi, 0x20000
sete al
push 0x10c
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x130], xmm0
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040b150
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x100
push 0
push eax
call fcn.0040b150
add esp, 0xc
lea eax, [ebp - 0x278]
push 0x1c
push eax
xorps xmm0, xmm0
push 0
push dword [ebx]
mov dword [ebp - 0x278], 0
movq qword [ebp - 0x274], xmm0
movq qword [ebp - 0x26c], xmm0
movq qword [ebp - 0x264], xmm0
movlpd qword [ebp - 0x258], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x402281
mov eax, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x254], esi
jmp 0x402120
cmp dword [ebp - 0x268], 0x1000
je 0x402144
mov eax, dword [ebp - 0x260]
cmp eax, 0x40000
je 0x402144
cmp eax, 0x1000000
jne 0x402254
cmp dword [ebp - 0x280], 0
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x124], 0
je 0x402166
cdq
mov dword [ebp - 0x12c], edx
jmp 0x402170
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x128], eax
movzx eax, byte [ebp - 0x264]
sub eax, 2
cmp eax, 0x7e
ja 0x40219b
push eax
xor ecx, ecx
call fcn.00401ed0
jmp 0x40219d
xor eax, eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, ebx
call fcn.00401ce0
cmp dword [ebp - 0x260], 0x1000000
jne 0x4021d2
lea eax, [ebp - 0x130]
push eax
mov ecx, ebx
call fcn.00401dd0
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x130]
cmp eax, edi
jae 0x40221f
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x130]
cmp eax, ecx
ja 0x40221f
sub ecx, eax
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 0xc]
jne 0x40220d
push ecx
lea ecx, [ebx + 4]
call fcn.004024a0
mov edi, dword [ebx + 8]
imul esi, esi, 0x114
add esi, dword [ebx + 4]
test edi, edi
je 0x402241
jmp 0x40223a
cmp edi, dword [ebx + 0xc]
jne 0x40222d
push ecx
lea ecx, [ebx + 4]
call fcn.004024a0
mov edi, dword [ebx + 8]
test edi, edi
je 0x402247
lea esi, [ebp - 0x130]
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x254]
add dword [ebx + 8], 0x114
mov ebx, dword [ebp - 0x25c]
add esi, dword [ebp - 0x26c]
push 0x1c
adc dword [ebp - 0x24c], 0
lea eax, [ebp - 0x278]
push eax
push esi
push dword [ebx]
mov dword [ebp - 0x254], esi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x402120
push 0x414460
push dword [ebp - 0x27c]
call fcn.00403578
mov edi, eax
add esp, 8
mov dword [ebp - 0x254], edi
test edi, edi
jne 0x4022b5
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b08
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
lea eax, [ebp - 0x2a4]
movq qword [ebp - 0x10], xmm0
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0x70616e73
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x2a4], 0
movq qword [ebp - 0x2a0], xmm0
movq qword [ebp - 0x298], xmm0
movq qword [ebp - 0x290], xmm0
movq qword [ebp - 0x288], xmm0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x2a4]
test eax, eax
je 0x40232e
cmp eax, 5
je 0x402327
cmp eax, 9
jne 0x402333
mov esi, 0x20000
jmp 0x402333
mov esi, 0x40000
jmp 0x402333
mov esi, 0x10000
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
mov eax, 0x76b981db
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
push 1
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0x10
or esi, 0x100
push eax
mov dword [ebp - 0xc], esi
call fcn.004036e4
add esp, 0x10
xor ecx, ecx
call fcn.00401320
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
je 0x402467
mov dword [ebp - 0x24c], 0
jmp 0x402390
push 0x10c
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0040b150
mov eax, dword [esi + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x23c], eax
mov eax, dword [esi]
mov dword [ebp - 0x248], eax
mov eax, dword [esi + 4]
lea ecx, [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x244], eax
mov eax, dword [ecx - 4]
push 0xff
mov dword [ebp - 0x238], eax
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.00403390
add esp, 0xc
lea eax, [ebp - 0x248]
push edi
push 1
push 0x114
push eax
call fcn.004036e4
push dword [esi + 8]
call fcn.00402aff
add esp, 0x14
mov edi, eax
push 0
push dword [esi + 8]
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [ebp - 0x254]
push 1
push dword [esi + 8]
push edi
call fcn.004036e4
push edi
call fcn.004032e5
mov edi, dword [ebp - 0x24c]
xor edx, edx
mov eax, edi
div dword [ebp - 8]
add esp, 0x14
mov ecx, eax
call fcn.00401320
add edi, 0x64
add esi, 0x114
mov dword [ebp - 0x24c], edi
mov edi, dword [ebp - 0x254]
cmp esi, dword [ebx + 8]
jne 0x402390
push edi
call fcn.004037ce
add esp, 4
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x64
call fcn.00401320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00402b08
mov esp, ebp
pop ebp
ret 8