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

Disassembly:
mov eax, 0x4ec0
call fcn.00406ba0
push ebx
push ebp
push esi
push edi
mov edi, 0x4100b2
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x498]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x32
mov edi, 0x4100b2
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x498]
lea esi, [esp + 0x498]
test al, al
je 0x406306
mov al, byte [esi]
lea ecx, [esp + 0x294]
cmp al, 0x3b
je 0x4062b0
test al, al
je 0x4062b0
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, 0x3b
jne 0x4062a1
mov byte [ecx], 0
lea ecx, [esp + 0x294]
push 0x3b
push ecx
lea edx, [esp + 0x9c]
push str._s_c
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea edi, [esp + 0x94]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
mov edx, dword [0x410dc8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xa0]
push ecx
push edx
call ebx
cmp byte [esi], 0
je 0x406306
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x406294
mov edi, 0x41017b
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x498]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x32
mov edi, 0x41017b
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x498]
lea esi, [esp + 0x498]
test al, al
je 0x4063b9
mov al, byte [esi]
lea ecx, [esp + 0x194]
cmp al, 0x3b
je 0x40636c
test al, al
je 0x40636c
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, 0x3b
jne 0x40635d
mov byte [ecx], 0
lea ecx, [esp + 0x194]
push 0x3b
push ecx
lea edx, [esp + 0x1c]
push str._s_c
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
mov edx, dword [0x410dcc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push edx
call ebx
cmp byte [esi], 0
je 0x4063b9
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x406350
call fcn.00406160
push 0x40d950
push 0x411a68
call ebp
add esp, 8
push str.7bit
push 0x411aa8
call ebp
xor eax, eax
add esp, 8
mov ax, word [0x410a9e]
sub eax, 0
je 0x406563
dec eax
je 0x40647b
dec eax
jne 0x40657c
push str.8bit
push 0x411aa8
call ebp
add esp, 8
push str.iso_8859_1
push str.text_plain
push str._s__charset__s_
push 0x411ae8
call ebp
mov edi, 0x4119e0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40646f
lea eax, [esp + 0x3378]
push eax
push 0x42
push 0x4119e0
call fcn.00401d20
add esp, 0xc
lea ecx, [esp + 0x3378]
mov byte [esp + eax + 0x3378], 0
push ecx
push str.iso_8859_1
push str.__s_B__s_
push 0x4119e0
jmp 0x406577
mov byte [0x4119e0], 0
jmp 0x40657c
push str.iso_2022_jp
push str.text_plain
push str._s__charset__s_
push 0x411ae8
call ebp
mov edi, 0x4119e0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x406511
lea edx, [esp + 0x1820]
push 0x42
push edx
push 0x4119e0
call fcn.00403290
mov byte [esp + eax + 0x182c], 0
lea eax, [esp + 0x3384]
push eax
lea edi, [esp + 0x1830]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1834]
push ecx
call fcn.00401d20
add esp, 0x18
lea edx, [esp + 0x3378]
mov byte [esp + eax + 0x3378], 0
push edx
push str.iso_2022_jp
push str.__s_B__s_
push 0x4119e0
call ebp
add esp, 0x10
jmp 0x406518
mov byte [0x4119e0], 0
lea eax, [esp + 0x1820]
push 0xc0c
push eax
push 0x410dd4
call fcn.00403290
mov byte [esp + eax + 0x182c], 0
lea edi, [esp + 0x182c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x410dd4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40657c
push str.us_ascii
push str.text_plain
push str._s__charset__s_
push 0x411ae8
call ebp
add esp, 0x10
mov edi, 0x4125cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x394]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40d91c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x398]
push ecx
call fcn.00406c38
add esp, 8
test eax, eax
je 0x406654
push 0x40d91c
push 0
call fcn.00406c38
mov esi, eax
add esp, 8
test esi, esi
je 0x406654
push 0x40d918
push esi
call fcn.00406f60
add esp, 8
test eax, eax
jne 0x4065f0
push str.image_tiff
jmp 0x406659
push 0x40d914
push esi
call fcn.00406f60
add esp, 8
test eax, eax
jne 0x406609
push str.image_jpg
jmp 0x406659
push 0x40d910
push esi
call fcn.00406f60
add esp, 8
test eax, eax
jne 0x406622
push 0x40d0f0
jmp 0x406659
push 0x40d90c
push esi
call fcn.00406f60
add esp, 8
test eax, eax
jne 0x40663b
push str.text_plain
jmp 0x406659
push 0x40d908
push esi
call fcn.00406f60
add esp, 8
test eax, eax
jne 0x406654
push str.image_gif
jmp 0x406659
push str.application_octet_stream
push 0x413274
call ebp
add esp, 8
push 0x101
push 0x410ab5
call sub.WSOCK32.dll_gethostname
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ec0
ret