Function at 0x408390
Capabilities:
Get hostname
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43cc38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x451330]
push ebp
mov ebp, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4083ca
or eax, 0xffffffff
jmp 0x40871a
mov ecx, dword [esp + 0x58]
push ebx
push ecx
lea ecx, [esp + 0xc]
call fcn.00401f20
mov eax, dword [ebp + 0x58]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x4c], ebx
jne 0x4083f0
mov dword [esp + 0x58], 1
jmp 0x4083f7
cmp dword [esp + 0x54], 0x10
jb 0x4083fb
mov dword [esp + 0x54], ebx
push esi
push edi
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
push 0x440f90
push edx
call fcn.0041fe4c
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x40846b
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x40846b
cmp edi, ebx
jl 0x408461
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x408461
cmp dword [ecx - 4], 1
jle 0x408444
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.004014c0
mov ecx, dword [esp + 0x10]
cmp esi, ebx
mov byte [edi + ecx], 0x20
jl 0x408461
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x408461
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], bl
jmp 0x408400
push 0x80070057
call fcn.00401100
mov ecx, dword [ecx - 0xc]
cmp ecx, ebx
je 0x408588
mov edx, dword [ebp + 0x214]
cmp dword [edx - 0xc], ebx
je 0x408588
push ebx
call fcn.0041eb0d
add esp, 4
mov dword [esp + 0x20], eax
push 0x440fa8
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edx
call fcn.00408310
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x5c], 1
mov byte [esp + 0x30], bl
mov dword [esp + 0x20], 0x1d
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x5b
lea ecx, [esp + 0x68]
call fcn.00407420
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
call fcn.00401ee0
push 0x440fa4
lea ecx, [esp + 0x68]
call fcn.00401ee0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.00401c90
push 0x440f90
lea ecx, [esp + 0x68]
call fcn.00401ee0
mov eax, dword [ebp + 0x214]
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408566
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40855f
mov eax, dword [esp + 0x64]
push ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x54], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408588
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x43f89f
lea ecx, [esp + 0x18]
call fcn.00401f20
mov eax, dword [esp + 0x5c]
inc al
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
push eax
call fcn.00407420
mov eax, dword [esp + 0x60]
inc al
lea ecx, [esp + 0x14]
push eax
call fcn.00407420
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c90
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push ebx
push 0x180
push ecx
call esi
mov edi, eax
cmp edi, 0xfffffffe
jne 0x4086ae
mov edx, dword [ebp + 0x1c]
push ebx
push ebx
push 0x18b
push edx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x408608
cmp edi, 2
jge 0x408658
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x54], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40862a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
jmp 0x408717
cmp edi, 0x14
jge 0x408735
dec edi
cmp edi, ebx
jg 0x40866b
mov edi, 1
mov eax, dword [ebp + 0x1c]
push ebx
push ebx
push 0xb
push eax
call esi
cmp edi, ebx
jle 0x408690
lea esp, [esp]
mov ecx, dword [ebp + 0x1c]
push ebx
push ebx
push 0x182
push ecx
call esi
dec edi
jne 0x408680
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
push edx
push ebx
push 0x180
push eax
call esi
mov ecx, dword [ebp + 0x1c]
push ebx
push 1
push 0xb
push ecx
mov edi, eax
call esi
cmp edi, ebx
jl 0x4086bf
mov edx, dword [ebp + 0x1c]
push ebx
push edi
push 0x197
push edx
call esi
mov eax, dword [ebp + 0x1c]
push ebx
push 0xffffffffffffffff
push 0x186
push eax
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x54], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop ebp
call fcn.0041e059
add esp, 0x48
ret 0xc
mov edi, 0x14
jmp 0x40866b