Function at 0x402bd0
Capabilities:
Check os version
Get common file path
Get hostname
Get session user name
Write file on windows

Disassembly:
sub esp, 0xa10
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x18], ecx
push str.Host_Infomation
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
mov ebx, dword [esp + 0xa2c]
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x40]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
push 0x423114
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push str.EXE_ID
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4d4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x4d4]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x3c]
push str.Host_Name
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4d4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x4d4]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x3c]
push str.Current_User_Name
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
lea eax, [esp + 0x24]
lea ecx, [esp + 0x7dc]
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x6d8]
lea eax, [esp + 0x7dc]
push edx
push eax
call fcn.00402a80
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x40]
add esp, 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6d8]
lea edx, [esp + 0x38]
push ecx
push str.PRIVILEGE
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x44]
push ecx
push ebx
call esi
lea edx, [esp + 0x438]
mov dword [esp + 0x438], 0x9c
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x448]
mov ecx, 0x100
cmp eax, 2
jne 0x402f02
mov edx, dword [esp + 0x43c]
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x440]
lea eax, [esp + 0x44c]
push eax
push ecx
push edx
lea eax, [esp + 0x44]
push 0x423664
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
mov al, byte [esp + 0x4d2]
cmp al, 2
jne 0x402e23
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
push str.VER_NT_DOMAIN_CONTROLLER
rep stosd dword es:[edi], eax
jmp 0x402e51
cmp al, 3
jne 0x402e3b
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
push str.VER_NT_SERVER
rep stosd dword es:[edi], eax
jmp 0x402e51
cmp al, 1
jne 0x402e7e
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
push str.VER_NT_WORKSTATION
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push 0x423620
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
cmp dword [esp + 0x43c], 5
jne 0x402ed7
cmp dword [esp + 0x440], 2
jne 0x402ed7
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x3c]
push str._tSystemMetrics:_d
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4d0]
lea ecx, [esp + 0x38]
and eax, 0xffff
push eax
push str._tSuiteMask_hex:_x_r_n
push ecx
call ebp
add esp, 0xc
jmp 0x402f19
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push 0x4235e8
push ecx
call ebp
add esp, 8
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
lea eax, [esp + 0x40]
push ecx
push eax
push ebx
call esi
push 1
lea ecx, [esp + 0x5d8]
push 0x24
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.SysWOW64
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x8e0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5d8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, eax
mov ecx, 0x100
inc edx
lea edi, [esp + 0x38]
neg edx
sbb edx, edx
xor eax, eax
and edx, 0x20
add edx, 0x20
push edx
lea edx, [esp + 0x3c]
push str.OS_BITS:_d_r_n
push edx
rep stosd dword es:[edi], eax
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
push 0
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x28]
mov dword [esp + 0x14], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor eax, eax
push eax
push 0x2710
xor esi, esi
push eax
push ecx
or esi, edx
or edi, eax
call fcn.00420950
sub esi, eax
lea eax, [esp + 0x28]
sbb edi, edx
lea ecx, [esp + 0x1c]
mov edx, edi
push eax
sar edx, 0x1f
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [esp + 0x32]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2e]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x2e]
push eax
mov eax, dword [esp + 0x30]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x4c]
push str.Host_Power_ON_Time
push ecx
call ebp
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x40]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x10624dd3
mul dword [esp + 0x14]
mov ecx, edx
mov eax, 0x91a2b3c5
shr ecx, 6
mul ecx
mov esi, edx
mov eax, ecx
xor edx, edx
mov ecx, 0xe10
div ecx
mov eax, 0x88888889
shr esi, 0xb
mov ecx, edx
mul ecx
shr edx, 5
mov dword [esp + 0x14], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3c
div ecx
test esi, esi
mov ecx, 0x100
je 0x40313c
push edx
mov edx, dword [esp + 0x18]
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
push edx
push esi
lea eax, [esp + 0x44]
push str.Power_ON_Time
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x10]
lea edi, [esp + 0x38]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
jmp 0x403174
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x40]
push 0x423548
push ecx
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x40]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x423544
call dword [sym.imp.MSVCRT.dll_printf]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push 0x423540
push ecx
call ebp
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x10]
push 0
dec ecx
push edx
lea eax, [esp + 0x40]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa10
ret