Function at 0x40ea40
Capabilities:
Get common file path
Get disk size
Get memory capacity
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426482
push eax
mov dword fs:[0], esp
sub esp, 0x6c4
push ebx
mov ebx, dword [esp + 0x6e0]
push ebp
push esi
lea eax, [ebx + 0xf]
push edi
mov esi, ecx
push eax
call fcn.00412ec5
add ebx, 0x1a
mov edi, eax
push ebx
call fcn.00412ec5
mov ebp, eax
lea eax, [edi - 0xe]
add esp, 8
cmp eax, 0x2d
ja case.0x40ea94.27
mov ebx, dword [esp + 0x6e8]
jmp dword [eax*4 + 0x40f508]
lea ecx, [esp + 0x394]
push ecx
call fcn.0040d210
add esp, 4
test al, al
je case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
push 0x2ee0
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x6ec]
push eax
lea ecx, [esp + 0x3a0]
push 0x340
push ecx
push edx
call fcn.00408aa0
add esp, 0x18
jmp case.0x40ea94.27
mov eax, dword [esp + 0x6e8]
mov ecx, dword [esp + 0x6e4]
push eax
push ecx
call fcn.00407f30
add esp, 8
jmp case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
push edx
push eax
call fcn.004081b0
add esp, 8
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.00408320
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [esp + 0x6e8]
mov ecx, dword [esp + 0x6e4]
push eax
push ecx
call fcn.004083f0
add esp, 8
jmp case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
push edx
push eax
call fcn.004086d0
add esp, 8
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.004085c0
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [esp + 0x6e8]
mov ecx, dword [esp + 0x6e4]
push eax
push ecx
call fcn.004084b0
add esp, 8
jmp case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
push edx
push eax
call fcn.00406fd0
add esp, 8
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.00407090
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [esp + 0x6e8]
mov ecx, dword [esp + 0x6e4]
push eax
push ecx
call fcn.00407660
add esp, 8
jmp case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
push edx
push eax
call fcn.00407800
add esp, 8
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.00407960
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [esp + 0x6e8]
mov ecx, dword [esp + 0x6e4]
push eax
push ecx
call fcn.004079f0
add esp, 8
jmp case.0x40ea94.27
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
push edx
push eax
call fcn.00407a60
add esp, 8
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.0040e2c0
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [0x42f390]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x6e8]
mov eax, dword [esp + 0x6e4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x6dc], 0
push ecx
push ebp
push edx
push eax
call fcn.0040e510
add esp, 0x10
call fcn.00401520
mov dword [esp + 0x6dc], 0xffffffff
lea ecx, [esp + 0x20]
jmp 0x40f4e1
call fcn.00408c80
test eax, eax
je 0x40ed40
xor ecx, ecx
mov edi, str.cmd_ok
mov dword [esp + 0x10], ecx
xor eax, eax
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
mov word [esp + 0x18], cx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2ee0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x6ec]
lea ecx, [esp + 0x20]
push esi
push ecx
push 0xa
jmp 0x40f084
xor eax, eax
mov edi, str.cmd_fail
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x18], ax
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2ee0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6ec]
push ecx
mov ecx, dword [esp + 0x6ec]
push edx
push 0xa
push eax
push ecx
call fcn.00408aa0
add esp, 0x18
jmp case.0x40ea94.27
call fcn.0040abe0
test eax, eax
je 0x40edfc
mov edi, str.cmd_ok
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 0x10], edx
push 0x2ee0
not ecx
mov dword [esp + 0x18], edx
sub edi, ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x6ec]
lea ecx, [esp + 0x20]
push esi
push ecx
push 0xa
jmp 0x40f084
xor eax, eax
mov edi, str.cmd_fail
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x18], ax
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2ee0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6ec]
push ecx
mov ecx, dword [esp + 0x6ec]
push edx
push 0xa
push eax
push ecx
call fcn.00408aa0
add esp, 0x18
jmp case.0x40ea94.27
call fcn.004095b0
test eax, eax
je 0x40eeb8
mov edi, str.cmd_ok
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 0x10], edx
push 0x2ee0
not ecx
mov dword [esp + 0x18], edx
sub edi, ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x6ec]
lea ecx, [esp + 0x20]
push esi
push ecx
push 0xa
jmp 0x40f084
xor eax, eax
mov edi, str.cmd_fail
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x18], ax
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2ee0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6ec]
push ecx
mov ecx, dword [esp + 0x6ec]
push edx
push 0xa
push eax
push ecx
call fcn.00408aa0
add esp, 0x18
jmp case.0x40ea94.27
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x54]
push 3
rep stosd dword es:[edi], eax
call fcn.00410520
add esp, 4
lea edx, [esp + 0x34]
mov dword [esp + 0x180], eax
mov dword [esp + 0x34], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x290]
push 0x104
push ecx
mov dword [esp + 0x190], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x298]
push ecx
push edx
mov byte [esp + 0x2a3], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, esi
sub eax, edi
mov edi, dword [esp + 0x30]
mov ecx, edi
push 0
sbb ecx, edx
push 0x64
push ecx
push eax
call fcn.00412570
push edi
push esi
push edx
push eax
call fcn.00412af0
mov dword [esp + 0x184], eax
lea edx, [esp + 0x14e]
lea eax, [esp + 0x11c]
push edx
lea ecx, [esp + 0xbc]
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.004104f0
mov eax, dword [esp + 0x6f8]
push 0x2ee0
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x6fc]
push ecx
lea edx, [esp + 0x70]
push 0x138
push edx
push eax
call fcn.00408aa0
add esp, 0x28
jmp case.0x40ea94.27
mov ecx, dword [esp + 0x6e8]
mov edx, dword [esp + 0x6e4]
push ecx
push edx
call fcn.0040cd40
add esp, 8
jmp case.0x40ea94.27
call fcn.004099a0
test eax, eax
je 0x40f0a1
xor eax, eax
mov edi, str.cmd_ok
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x18], ax
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2ee0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x6ec]
lea ecx, [esp + 0x20]
push esi
push ecx
push 0xa
mov edi, dword [esp + 0x6f4]
push edx
push edi
call fcn.00408aa0
push esi
push edi
call fcn.00409d20
add esp, 0x20
jmp case.0x40ea94.27
xor eax, eax
mov edi, str.cmd_fail
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [esp + 0x18], ax
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2ee0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6ec]
push ecx
mov ecx, dword [esp + 0x6ec]
push edx
push 0xa
push eax
push ecx
call fcn.00408aa0
add esp, 0x18
jmp case.0x40ea94.27
push 6
call fcn.00402b90
add esp, 4
jmp case.0x40ea94.27
push 0xd
call fcn.00402b90
add esp, 4
jmp case.0x40ea94.27
push 4
call fcn.00402b90
add esp, 4
jmp case.0x40ea94.27
call fcn.00402ce0
jmp case.0x40ea94.27
call fcn.00402d10
jmp case.0x40ea94.27
cmp ebp, 0x400
jg case.0x40ea94.27
test ebp, ebp
je case.0x40ea94.27
lea edi, [ebp + 1]
push edi
call fcn.0041eb13
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push 0x2ee0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x6ec]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x6f0]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
push esi
push edx
call fcn.00408b30
add esp, 0x18
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.0041ee40
call fcn.004026b0
push esi
call fcn.0041eb3c
add esp, 8
jmp case.0x40ea94.27
mov eax, dword [0x432b74]
mov byte [eax + 1], 1
jmp case.0x40ea94.27
lea edi, [ebp + 1]
push edi
call fcn.0041eb13
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0x2ee0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x6ec]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x6f0]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
push ebx
push edx
call fcn.00408b30
push ebx
call fcn.00412ec5
add esp, 0x20
push eax
mov eax, dword [0x432b74]
mov ecx, dword [eax + 2]
push ecx
mov ecx, esi
call fcn.0040f5c0
push ebx
call fcn.0041eb3c
add esp, 4
jmp case.0x40ea94.27
cmp ebp, 0x400
jg case.0x40ea94.27
test ebp, ebp
je case.0x40ea94.27
lea edi, [ebp + 1]
push edi
call fcn.0041eb13
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push 0x2ee0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x6f0]
lea eax, [esp + 0x28]
push eax
push ebp
push esi
push edi
call fcn.00408b30
add esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.0041ee40
lea ecx, [esp + 0x24]
push ecx
call fcn.00402750
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
push 0x2ee0
push ebx
mov eax, dword [edx - 8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
push 8
push ecx
push edi
mov dword [esp + 0x6fc], 1
call fcn.00408aa0
mov eax, dword [esp + 0x40]
push 0x2ee0
lea edx, [esp + 0x40]
push ebx
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push edi
call fcn.00408aa0
push esi
call fcn.0041eb3c
add esp, 0x3c
lea ecx, [esp + 0x20]
mov dword [esp + 0x6dc], 0xffffffff
call fcn.0041edd2
push ebp
push ebx
push edi
call fcn.0040ca60
add esp, 0xc
jmp case.0x40ea94.27
mov edi, dword [esp + 0x6e4]
push ebp
push ebx
push edi
call fcn.0040ca60
add esp, 0xc
jmp case.0x40ea94.27
lea eax, [esp + 0x20]
push eax
call fcn.00407bc0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x6ec]
mov edi, dword [esp + 0x6e8]
mov dword [esp + 0x14], 0
mov eax, dword [ecx - 8]
push 0x2ee0
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], eax
push esi
push edx
lea eax, [esp + 0x20]
push 8
push eax
push edi
mov dword [esp + 0x6f8], 2
call fcn.00408aa0
mov eax, dword [esp + 0x3c]
push 0x2ee0
lea edx, [esp + 0x3c]
push esi
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push edi
call fcn.00408aa0
add esp, 0x34
mov dword [esp + 0x6dc], 0xffffffff
lea ecx, [esp + 0x20]
jmp 0x40f4e1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18c]
lea edx, [esp + 0x18c]
rep stosd dword es:[edi], eax
mov edi, dword [0x432bc0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 3
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.RemoteServer.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42f390]
mov ecx, ebp
and ecx, ebx
mov dword [esp + 0x28], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6ec]
lea edx, [esp + 0x28]
add ecx, 0x20
mov dword [esp + 0x6dc], ebx
push ecx
push str._configport__s
push edx
call fcn.0041e21c
mov eax, dword [0x432be8]
add esp, 0xc
test eax, eax
je 0x40f453
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0041eb47
push ecx
lea edx, [esp + 0x198]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x6ec], 4
call fcn.0041ee40
mov byte [esp + 0x6e8], bl
call fcn.0040ff50
add esp, 0xc
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x432ae0
call fcn.0041ee40
push ecx
lea eax, [esp + 0x198]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x6ec], 5
call fcn.0041ee40
mov byte [esp + 0x6e8], bl
call fcn.0040ff50
add esp, 0xc
mov dword [0x432be8], eax
mov dword [esp + 0x6dc], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0041edd2
mov ecx, dword [esp + 0x6d4]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x6d0
ret 0xc