Function at 0x140003980
Capabilities:
Get hostname
Get session user name
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov dword [rbp + 0x10], 0x10
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1400039d8
lea rdx, str.Error_getting_computer_name.
jmp 0x140003fb3
mov dword [rsp + 0x68], 4
lea rdx, [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x140003fac
mov ecx, dword [rsp + 0x68]
call fcn.140034ac0
mov rbx, rax
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x140003fac
mov edi, dword [rbx + 0x1c0]
mov rcx, rbx
call fcn.140032da0
xorps xmm0, xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rsp + 0x70], 0x94
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140003a71
lea rdx, str.Error_getting_operating_system_version.
jmp 0x140003fb3
mov dword [rbp + 0x14], 0x101
lea rdx, [rbp + 0x14]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140003a99
lea rdx, str.Error_getting_user_name.
jmp 0x140003fb3
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdi, rax
lea rcx, [0x1400913a0]
cmp qword [0x1400913b8], 0xf
cmova rcx, qword [0x1400913a0]
mov r8d, 0x104
lea rdx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
xor esi, esi
mov qword [rbp + 0x18], rsi
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov ecx, 0x10
call fcn.140011010
mov qword [rax + 8], rsi
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
mov qword [rax], rcx
movdqa xmm0, xmmword [0x140087df0]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], sil
lea rax, [rbp + 0x190]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140003b20
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x18]
call fcn.14000a8a0
mov r8d, 9
lea rdx, str.TestLog_
lea rcx, [rbp + 0x18]
call fcn.14000aa50
lea rax, [rbp + 0x180]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003b60
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x18]
call fcn.14000aa50
mov r8d, 4
lea rdx, str..txt
lea rcx, [rbp + 0x18]
call fcn.14000aa50
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov qword [rbp + 0x40], rsi
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x58], xmm1
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140003bb1
mov r8, rbx
lea rcx, [rbp + 0x40]
call fcn.14000c410
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x70]
call fcn.14006b410
mov ebx, 2
mov r8d, ebx
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x70]
call fcn.140007000
nop
cmp qword [rbp + 0xf8], 0
je 0x140003e51
lea rdx, str.Computer_Name:
lea rcx, [rbp + 0x70]
call fcn.14000be40
mov rcx, rax
lea rdx, [rbp + 0x180]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
lea rdx, str.IP_Address:
lea rcx, [rbp + 0x70]
call fcn.14000be40
mov rcx, rax
mov rdx, rdi
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
lea rdx, str.User_Name:
lea rcx, [rbp + 0x70]
call fcn.14000be40
mov rcx, rax
lea rdx, [rbp + 0x2a0]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
lea rdx, str.Operating_System_Version:
lea rcx, [rbp + 0x70]
call fcn.14000be40
mov rcx, rax
mov edx, dword [rsp + 0x74]
call fcn.1400071d0
mov rcx, rax
lea rdx, [0x14008737c]
call fcn.14000be40
mov rcx, rax
mov edx, dword [rsp + 0x78]
call fcn.1400071d0
mov rcx, rax
call fcn.14000c0f0
lea rcx, [rbp + 0x78]
call fcn.14000a2e0
test rax, rax
jne 0x140003cf3
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0xb8], 0
cmovne eax, ebx
or eax, dword [rbp + rcx + 0x80]
and eax, 0x17
mov dword [rbp + rcx + 0x80], eax
mov edx, dword [rbp + rcx + 0x84]
and edx, eax
jne 0x140003ff4
lea rdx, str.Computer_information_written_to_computer_info.txt
lea rcx, [0x14008f550]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0xf8], 0
je 0x140003d83
lea rcx, [rbp + 0xe8]
mov rax, qword [rbp + 0x90]
cmp qword [rax], rcx
jne 0x140003d83
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
mov qword [rax], rcx
mov rax, qword [rbp + 0xb0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xc8]
mov dword [rax], edx
cmp byte [rbp + 0xf4], 0
je 0x140003d95
lea rcx, [rbp + 0x78]
call fcn.14000a2e0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x78], rax
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x140003dd7
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003dce
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140003dce
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, rbx
call fcn.140032da0
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
call fcn.14000fbf0
nop
lea rcx, [rbp + 0x40]
call fcn.14000a780
mov rcx, qword [rbp + 0x40]
mov qword [rbp + 0x40], rsi
mov edx, 0x10
call fcn.14000d1d0
nop
lea rcx, [rbp + 0x18]
call fcn.14000a780
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 0x18], rsi
mov edx, 0x10
call fcn.14000d1d0
jmp 0x140003fcc
lea rdx, str.Error_opening_the_file.
lea rcx, [0x14008f6d0]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0xf8], 0
je 0x140003ee1
lea rcx, [rbp + 0xe8]
mov rax, qword [rbp + 0x90]
cmp qword [rax], rcx
jne 0x140003ee1
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
mov qword [rax], rcx
mov rax, qword [rbp + 0xb0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xc8]
mov dword [rax], edx
cmp byte [rbp + 0xf4], 0
je 0x140003ef3
lea rcx, [rbp + 0x78]
call fcn.14000a2e0
lea rax, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x78], rax
mov rbx, qword [rbp + 0xd8]
test rbx, rbx
je 0x140003f35
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003f2c
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140003f2c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, rbx
call fcn.140032da0
nop
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
call fcn.14000fbf0
nop
lea rcx, [rbp + 0x40]
call fcn.14000a780
mov rcx, qword [rbp + 0x40]
mov qword [rbp + 0x40], rsi
mov edx, 0x10
call fcn.14000d1d0
nop
lea rcx, [rbp + 0x18]
call fcn.14000a780
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 0x18], rsi
mov edx, 0x10
call fcn.14000d1d0
jmp 0x140003fc7
lea rdx, str.Error_getting_IP_address.
lea rcx, [0x14008f6d0]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
mov eax, 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140010fd0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
test dl, 4
je 0x140004002
lea rbx, str.ios_base::badbit_set
jmp 0x140004017
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001eb0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002a70
lea rdx, [0x14008c9d8]
lea rcx, [rsp + 0x40]
call fcn.140014960
int3