Function at 0x401000
Capabilities:
Get common file path
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xf24c
call fcn.0040eac0
mov eax, dword [0x43a180]
xor eax, ebp
push ebx
mov dword [esp + 0xf24c], eax
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x250], bl
mov ecx, 0x9ff
lea edi, [esp + 0x251]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [esp + 0xa250], bx
mov ecx, 0x13ff
lea edi, [esp + 0xa252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x48], bx
mov ecx, 0x81
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x48]
push eax
push 0x104
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x48]
push 0x5c
push ecx
call fcn.0040ea43
add esp, 8
cmp eax, ebx
jne 0x40109c
push ebx
call fcn.0040ea03
lea edx, [esp + 0x48]
mov word [eax], bx
push edx
lea eax, [esp + 0xa254]
push eax
call fcn.0040e860
lea ecx, [esp + 0x50]
push str.DataHomeload.html
push ecx
call fcn.0040e836
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
lea edx, [esp + 0x60]
push edx
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x4010f0
push ebx
call fcn.0040ea03
lea eax, [esp + 0xa250]
push str.DataHome
push eax
call fcn.0040e836
add esp, 8
push 0x43b0a0
push ebx
push 0x42c63c
lea ecx, [esp + 0xa25c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
push 2
push 2
push ebx
push ebx
push 0xc0000000
push 0x43b0a0
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x401140
push ebx
call fcn.0040ea03
push ebx
lea edx, [esp + 0x14]
push edx
push 0x2800
lea eax, [esp + 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401398
mov ecx, dword [str.PORT]
mov dl, byte [0x42c638]
xor eax, eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x20], ecx
push 0xa
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28], dl
mov edx, dword [0x4390a0]
mov dword [esp + 0x45], eax
push ecx
mov word [esp + 0x4d], ax
push edx
mov byte [esp + 0x34], 0
mov byte [esp + 0x53], al
call fcn.004168d9
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x260]
push ecx
call fcn.0040e7b0
add esp, 0x14
cmp eax, ebx
je 0x40113a
lea ecx, [esp + 0x28]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4011e0
sub ecx, esi
mov ebx, ecx
cmp ebx, 4
je 0x40123c
lea ecx, [esp + 0x20]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4011f7
sub ecx, esi
mov edx, ecx
lea esi, [edx + eax]
mov ecx, 0xa00
lea edi, [esp + 0x7a50]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xa00
lea esi, [esp + 0x7a50]
lea edi, [ebx + eax]
rep movsd dword es:[edi], dword [esi]
jmp 0x401271
mov dl, byte [esp + 0x28]
lea ecx, [esp + 0x250]
sub eax, ecx
mov cl, byte [esp + 0x29]
mov byte [esp + eax + 0x250], dl
mov dl, byte [esp + 0x2a]
mov byte [esp + eax + 0x251], cl
mov cl, byte [esp + 0x2b]
mov byte [esp + eax + 0x252], dl
mov byte [esp + eax + 0x253], cl
xor eax, eax
mov byte [esp + 0x2a50], 0
mov ecx, 0x9ff
lea edi, [esp + 0x2a51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x250]
mov byte [esp + eax + 0x2a50], cl
inc eax
test cl, cl
jne 0x401290
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2a54]
push eax
call fcn.0040e7b0
add esp, 8
test eax, eax
je 0x4013cb
cmp ebx, 4
je 0x401315
lea ecx, [esp + 0x20]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4012d0
sub ecx, esi
mov edx, ecx
lea esi, [edx + eax]
mov ecx, 0xa00
lea edi, [esp + 0x5250]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xa00
lea esi, [esp + 0x5250]
lea edi, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
jmp 0x40134a
mov dl, byte [esp + 0x28]
lea ecx, [esp + 0x2a50]
sub eax, ecx
mov cl, byte [esp + 0x29]
mov byte [esp + eax + 0x2a50], dl
mov dl, byte [esp + 0x2a]
mov byte [esp + eax + 0x2a51], cl
mov cl, byte [esp + 0x2b]
mov byte [esp + eax + 0x2a52], dl
mov byte [esp + eax + 0x2a53], cl
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x2a50]
mov byte [esp + eax + 0x250], cl
inc eax
test cl, cl
jne 0x401360
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [esp + 0x10], 0x2800
je 0x401140
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0xf254]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
mov esp, ebp
pop ebp
ret
push 0
call fcn.0040ea03
int3