Function at 0x1400038d5
Capabilities:
Get hostname
Get session user name
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x408
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4c], 0x100
mov dword [rbp + 0x48], 0x100
lea rax, [rbp + 0x330]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov dword [rbp + 0x290], 0x94
lea rax, [rbp + 0x290]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
lea rdx, [rbp + 0x4c]
lea rax, [rbp + 0x190]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call rax
test eax, eax
jne 0x14000396e
mov ecx, 2
mov rax, qword [fcn.14000d720]
call rax
mov rcx, rax
lea rax, str.Failed_to_get_computer_name_n
mov rdx, rax
call fcn.140001450
jmp 0x140003c0e
lea rdx, [rbp + 0x48]
lea rax, [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
jne 0x1400039ae
mov ecx, 2
mov rax, qword [fcn.14000d720]
call rax
mov rcx, rax
lea rax, str.Failed_to_get_user_name_n
mov rdx, rax
call fcn.140001450
jmp 0x140003c0e
lea rax, [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemTime]
call rax
movzx eax, word [rbp + 0x3c]
movzx r10d, ax
movzx eax, word [rbp + 0x3a]
movzx r9d, ax
movzx eax, word [rbp + 0x38]
movzx r8d, ax
movzx eax, word [rbp + 0x36]
movzx ecx, ax
movzx eax, word [rbp + 0x32]
movzx edx, ax
movzx eax, word [rbp + 0x30]
movzx r11d, ax
lea rax, [rbp + 0x50]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, r11d
lea r8, str._d__02d__02d__02d:_02d:_02d
mov edx, 0x40
mov rcx, rax
call fcn.1400014e7
mov dword [rbp + 0x37c], 0x1000
mov eax, dword [rbp + 0x37c]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x370], rax
cmp qword [rbp + 0x370], 0
jne 0x140003a6e
mov ecx, 2
mov rax, qword [fcn.14000d720]
call rax
mov rcx, rax
lea rax, str.Failed_to_allocate_memory_n
mov rdx, rax
call fcn.140001450
jmp 0x140003c0e
movzx eax, byte [rbp + 0x2a4]
test al, al
je 0x140003a86
lea rax, [rbp + 0x290]
lea rdx, [rax + 0x14]
jmp 0x140003a8d
lea rdx, str.None
mov r15d, dword [rbp + 0x2a0]
mov r14d, dword [rbp + 0x29c]
mov r13d, dword [rbp + 0x298]
mov r12d, dword [rbp + 0x294]
movzx eax, word [rbp + 0x35e]
movzx edi, ax
movzx eax, word [rbp + 0x35c]
movzx esi, ax
mov rbx, qword [rbp + 0x340]
mov r11, qword [rbp + 0x338]
mov r9d, dword [rbp + 0x334]
mov r8d, dword [rbp + 0x350]
movzx eax, word [rbp + 0x330]
movzx eax, ax
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x37c]
movsxd r10, eax
mov rcx, qword [rbp + 0x370]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x90], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x88], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x58], r12d
lea rax, str.Windows
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r8d
mov r9d, dword [rbp + 0x2c]
lea r8, str.System_Information:_nProcessor_Architecture:__d_nNumber_of_Processors:__d_nPage_size:__u_nMinimum_application_address:__p_nMaximum_application_address:__p_nProcessor_Level:__d_nProcessor_Revision:__d_n_nOS_Information:_nOperating_System_Name:__s_nOperating_System_Version:__ld._ld_nBuild_Number:__ld_nPlatform_ID:__ld_nService_Pack:__s_n_nComputer_Information:_nComputer_Name:__s_nUser_Name:__s_nSystem_Time:__s_n
mov rdx, r10
call fcn.1400014e7
lea rax, [0x14000fdf3]
mov rdx, rax
lea rax, str._ProgramData_info.txt
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x368], rax
cmp qword [rbp + 0x368], 0
jne 0x140003bcf
mov ecx, 2
mov rax, qword [fcn.14000d720]
call rax
mov rcx, rax
lea rax, str.Failed_to_open_file_for_writing_n
mov rdx, rax
call fcn.140001450
mov rax, qword [rbp + 0x370]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x140003c0e
mov rdx, qword [rbp + 0x370]
mov rax, qword [rbp + 0x368]
mov r8, rdx
lea rdx, [0x14000fe31]
mov rcx, rax
call fcn.140001450
mov rax, qword [rbp + 0x368]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x370]
mov rcx, rax
call sub.msvcrt.dll_free
nop
add rsp, 0x408
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret