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

Disassembly:
push 0xffffffffffffffff
push 0x434fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x445ec0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x445ec0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6c]
mov ebp, ecx
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a67b
push esi
lea ecx, [esp + 0x18]
call fcn.004056d0
xor ebx, ebx
mov dword [esp + 0x5c], ebx
cmp dword [ebp + 0x5c], ebx
jne 0x40a3d9
mov dword [esp + 0x68], 1
jmp 0x40a3e0
cmp dword [esp + 0x64], 0x10
jb 0x40a3e4
mov dword [esp + 0x64], ebx
mov ecx, dword [esp + 0x14]
push 0x43acb4
push ecx
call fcn.004209b2
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x40a44f
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x40a44f
cmp edi, ebx
jl 0x40a445
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x40a445
cmp dword [ecx - 4], 1
jle 0x40a428
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00401120
mov ecx, dword [esp + 0x14]
cmp esi, ebx
mov byte [edi + ecx], 0x20
jl 0x40a445
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40a445
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
mov byte [esi + eax], bl
jmp 0x40a3e4
push 0x80070057
call fcn.00401000
mov ecx, dword [ecx - 0xc]
cmp ecx, ebx
je 0x40a5af
mov ecx, dword [ebp + 0x218]
cmp dword [ecx - 0xc], ebx
je 0x40a5af
push ebx
call fcn.00420b07
add esp, 4
mov dword [esp + 0x2c], edx
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
call fcn.00409d50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x64], 1
mov byte [esp + 0x38], bl
mov dword [esp + 0x28], 0x1d
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [esp + 0x18]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x40a4d7
push esi
lea ecx, [esp + 0x1c]
call fcn.00401270
mov edx, dword [esp + 0x18]
cmp esi, ebx
mov byte [edi + edx], 0x5b
jl 0x40a445
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x40a445
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esi + edx], bl
call fcn.00409be0
push 0x43acb8
lea ecx, [esp + 0x1c]
call fcn.00409be0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402c00
push 0x43acb4
lea ecx, [esp + 0x1c]
call fcn.00409be0
mov eax, dword [ebp + 0x218]
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 0x40a58b
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40a584
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 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 + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43761c
lea ecx, [esp + 0x20]
call fcn.004056d0
mov al, byte [esp + 0x64]
inc al
movzx ecx, al
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 2
call fcn.004097a0
mov al, byte [esp + 0x68]
inc al
movzx edx, al
push edx
lea ecx, [esp + 0x20]
call fcn.004097a0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00402c00
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
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 0x40a6f3
mov edx, dword [ebp + 0x20]
push ebx
push ebx
push 0x18b
push edx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a683
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a67b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x40a760
cmp edi, 2
jge 0x40a6a2
lea ecx, [esp + 0x1c]
call fcn.00401360
lea ecx, [esp + 0x14]
call fcn.00401360
or eax, 0xffffffff
jmp 0x40a760
cmp edi, 0x14
jge 0x40a781
dec edi
cmp edi, ebx
jg 0x40a6b5
mov edi, 1
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push 0xb
push ecx
call esi
cmp edi, ebx
jle 0x40a6d5
mov edx, dword [ebp + 0x20]
push ebx
push ebx
push 0x182
push edx
call esi
sub edi, 1
jne 0x40a6c3
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
push eax
push ebx
push 0x180
push ecx
call esi
mov edx, dword [ebp + 0x20]
push ebx
push 1
push 0xb
push edx
mov edi, eax
call esi
cmp edi, ebx
jl 0x40a704
mov eax, dword [ebp + 0x20]
push ebx
push edi
push 0x197
push eax
call esi
mov ecx, dword [ebp + 0x20]
push ebx
push 0xffffffffffffffff
push 0x186
push ecx
call esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a75e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0041e94a
add esp, 0x4c
ret 0xc
mov edi, 0x14
jmp 0x40a6b5