joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14022f620
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x1c8
mov rbx, qword [0x140485900]
mov rax, qword [rbx]
mov qword [rsp + 0x1b8], rax
xor eax, eax
shl r8d, 8
movzx edx, dl
lea rax, [rsp + 0x20]
or r8d, edx
mov rsi, rcx
mov rdx, rax
movzx ecx, r8w
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [rsi + 4], eax
mov rax, qword [rsp + 0x1b8]
sub rax, qword [rbx]
jne 0x14022f676
add rsp, 0x1c8
pop rbx
pop rsi
ret
call dbg.__stack_chk_fail
nop
nop dword [rax]
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x140485900]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
sub rbx, rdx
mov qword [rsp + 0x20], rbx
cmp rbx, 0xf
ja 0x14022f6f0
mov rcx, qword [rcx]
cmp rbx, 1
jne 0x14022f6e8
movzx eax, byte [rdx]
mov byte [rcx], al
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
mov qword [rsi + 8], rbx
mov byte [rcx + rbx], 0
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x14022f721
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rbx, rbx
je 0x14022f6c7
jmp 0x14022f70c
lea rdx, [rsp + 0x20]
xor r8d, r8d
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rsi], rax
mov rcx, rax
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x10], rax
mov r8, rbx
mov rdx, rdi
call sym.memcpy
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsi]
jmp 0x14022f6c7
call dbg.__stack_chk_fail
nop
nop word [rax + rax]

Function at 0x140230480
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x140485900]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
xor eax, eax
lea rbp, [rcx + 0x10]
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], rbp
test rdx, rdx
je 0x14023053c
mov rcx, rdx
call sym.strlen
mov qword [rsp + 0x20], rax
mov rsi, rax
cmp rax, 0xf
ja 0x140230500
cmp rax, 1
jne 0x1402304f8
movzx edx, byte [rdi]
mov byte [rbx + 0x10], dl
mov qword [rbx + 8], rax
mov byte [rbp + rax], 0
mov rax, qword [rsp + 0x28]
sub rax, qword [r12]
jne 0x140230537
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test rax, rax
je 0x1402304d4
jmp 0x14023051f
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rbx], rax
mov rbp, rax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x10], rax
mov rcx, rbp
mov r8, rsi
mov rdx, rdi
call sym.memcpy
mov rax, qword [rsp + 0x20]
mov rbp, qword [rbx]
jmp 0x1402304d4
call dbg.__stack_chk_fail
mov rax, qword [rsp + 0x28]
sub rax, qword [r12]
jne 0x140230537
lea rcx, [0x14046e5d8]
call sym.std::__throw_logic_error_char_const_
nop
nop word cs:[rax + rax]
nop
Function at 0x14023ad40
Capabilities:
Set socket configuration

Disassembly:
endbr64
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov rdi, qword [0x140485900]
movdqu xmm0, xmmword [rdx + 0x38]
movdqu xmm1, xmmword [rdx + 0x48]
movdqu xmm2, xmmword [rdx + 0x58]
movdqu xmm3, xmmword [rdx + 0x68]
movdqu xmm4, xmmword [rdx + 0x80]
movdqu xmm5, xmmword [rdx + 0xa0]
mov rax, qword [rdi]
mov qword [rsp + 0x108], rax
xor eax, eax
mov rax, qword [rdx + 0x78]
movups xmmword [rsp + 0x60], xmm0
mov rsi, rcx
movdqu xmm0, xmmword [rdx + 0xb0]
movups xmmword [rsp + 0x70], xmm1
movdqu xmm1, xmmword [rdx + 0xc0]
mov rbx, rdx
mov qword [rsp + 0xa0], rax
mov rax, qword [rdx + 0x90]
lea rcx, [0x14037b4e0]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xb8], rax
mov rax, qword [rdx + 0x98]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0xc0], rax
mov rax, qword [rdx + 0xd0]
movups xmmword [rsp + 0x80], xmm2
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x90], xmm3
movups xmmword [rsp + 0xa8], xmm4
movups xmmword [rsp + 0xc8], xmm5
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm1
call sym.__emutls_get_address
mov rbp, rax
mov rax, qword [rax]
test rax, rax
je 0x14023ae62
mov rax, qword [rax + 8]
test rax, rax
je 0x14023ae62
cmp qword [rax], 0
je 0x14023af10
cmp qword [rax + 8], 0
mov edx, 1
je 0x14023af12
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__aligned_free]
mov qword [rsp + 0x48], 0
test rsi, rsi
je 0x14023aef2
mov rax, qword [rsp + 0xf8]
lea rdx, [rsp + 0x20]
xor r9d, r9d
movdqu xmm2, xmmword [rsp + 0xe8]
lea rcx, [rsp + 0x70]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm2
call sym._ZN5boost4asio3ssl6detail5io_opINS0_19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEEENS2_21buffered_handshake_opINS0_
cmp qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
je 0x14023aec3
mov qword [rsp + 0x50], 0
test rcx, rcx
je 0x14023aef2
mov rax, qword [rbp]
test rax, rax
je 0x14023aeec
mov rax, qword [rax + 8]
test rax, rax
je 0x14023aeec
cmp qword [rax], 0
je 0x14023af28
cmp qword [rax + 8], 0
mov edx, 1
je 0x14023af2a
call qword [sym.imp.msvcrt.dll__aligned_free]
mov rax, qword [rsp + 0x108]
sub rax, qword [rdi]
jne 0x14023af59
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edx, edx
movzx ecx, byte [rbx + 0xe0]
mov byte [rbx], cl
mov qword [rax + rdx*8], rbx
jmp 0x14023ae6b
xor edx, edx
movzx r8d, byte [rcx + 0xe0]
mov byte [rcx], r8b
mov qword [rax + rdx*8], rcx
jmp 0x14023aef2
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word [rax + rax]
Function at 0x14023af70
Capabilities:
Set socket configuration

Disassembly:
endbr64
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov rbp, qword [0x140485900]
movdqu xmm0, xmmword [rdx + 0x38]
movdqu xmm1, xmmword [rdx + 0x48]
movdqu xmm2, xmmword [rdx + 0x58]
movdqu xmm3, xmmword [rdx + 0x68]
movdqu xmm4, xmmword [rdx + 0x80]
movdqu xmm5, xmmword [rdx + 0xa0]
mov rax, qword [rbp]
mov qword [rsp + 0x108], rax
xor eax, eax
mov rax, qword [rdx + 0x78]
movups xmmword [rsp + 0x60], xmm0
mov rdi, rcx
movdqu xmm0, xmmword [rdx + 0xb0]
movups xmmword [rsp + 0x70], xmm1
movdqu xmm1, xmmword [rdx + 0xc0]
mov rbx, rdx
mov qword [rsp + 0xa0], rax
mov rax, qword [rdx + 0x90]
lea rcx, [0x14037b4e0]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xb8], rax
mov rax, qword [rdx + 0x98]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0xc0], rax
mov rax, qword [rdx + 0xd0]
movups xmmword [rsp + 0x80], xmm2
mov qword [rsp + 0xf8], rax
mov rax, qword [rdx + 0xd8]
movups xmmword [rsp + 0x90], xmm3
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0xa8], xmm4
movups xmmword [rsp + 0xc8], xmm5
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm1
call sym.__emutls_get_address
mov rsi, rax
mov rax, qword [rax]
test rax, rax
je 0x14023b0a2
mov rax, qword [rax + 8]
test rax, rax
je 0x14023b0a2
cmp qword [rax], 0
je 0x14023b150
cmp qword [rax + 8], 0
mov edx, 1
je 0x14023b152
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__aligned_free]
mov qword [rsp + 0x48], 0
test rdi, rdi
je 0x14023b132
mov rax, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x100]
lea rdx, [rsp + 0x20]
xor r9d, r9d
movdqu xmm2, xmmword [rsp + 0xe8]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm2
call sym._ZN5boost4asio3ssl6detail5io_opINS0_19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEEENS2_21buffered_handshake_opINS0_
cmp qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
je 0x14023b104
mov qword [rsp + 0x50], 0
test rcx, rcx
je 0x14023b132
mov rax, qword [rsi]
test rax, rax
je 0x14023b12c
mov rax, qword [rax + 8]
test rax, rax
je 0x14023b12c
cmp qword [rax], 0
je 0x14023b168
cmp qword [rax + 8], 0
mov edx, 1
je 0x14023b16a
call qword [sym.imp.msvcrt.dll__aligned_free]
mov rax, qword [rsp + 0x108]
sub rax, qword [rbp]
jne 0x14023b19a
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edx, edx
movzx ecx, byte [rbx + 0xe8]
mov byte [rbx], cl
mov qword [rax + rdx*8], rbx
jmp 0x14023b0ab
xor edx, edx
movzx r8d, byte [rcx + 0xe8]
mov byte [rcx], r8b
mov qword [rax + rdx*8], rcx
jmp 0x14023b132
call dbg.__stack_chk_fail
mov rcx, rbx
call sym._Unwind_Resume
nop
nop dword [rax + rax]
Function at 0x14023b1b0
Capabilities:
Set socket configuration

Disassembly:
endbr64
push rbx
add rsp, 0xffffffffffffff80
mov rbx, qword [0x140485900]
mov rdx, qword [rcx + 0xb8]
movdqu xmm0, xmmword [rcx + 0xa0]
mov rax, qword [rbx]
mov qword [rsp + 0x78], rax
xor eax, eax
mov r9, rcx
mov rax, qword [rcx + 0xb0]
movups xmmword [rsp + 0x60], xmm0
mov r8, qword [r9 + 0x18]
mov ecx, dword [rcx + 0xa0]
mov dword [r9 + 0x20], 0
mov qword [rsp + 0x70], rax
add r8, rdx
mov qword [r9 + 0x18], r8
test al, 1
je 0x14023b21a
test ecx, ecx
setne cl
cmp rax, 1
setne al
or cl, al
jne 0x14023b21f
test rdx, rdx
jne 0x14023b258
movdqu xmm1, xmmword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea rcx, [r9 + 0x28]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm1
call sym._ZN5boost4asio3ssl6detail5io_opINS0_19basic_stream_socketINS0_2ip3tcpENS0_15any_io_executorEEENS2_21buffered_handshake_opINS0_
mov rax, qword [rsp + 0x78]
sub rax, qword [rbx]
jne 0x14023b2ae
sub rsp, 0xffffffffffffff80
pop rbx
ret
mov rax, qword [r9 + 0x10]
cmp r8, rax
jae 0x14023b21f
cmp rax, r8
mov rcx, qword [r9 + 8]
mov rdx, qword [r9]
cmovbe r8, rax
add rcx, r8
sub rax, r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov ecx, 0x10000
cmp rax, rcx
cmova rax, rcx
mov rcx, qword [rdx]
mov qword [rsp + 0x58], rax
lea rax, [rdx + 8]
add rdx, 0x68
add rcx, 0x28
mov qword [rsp + 0x20], rdx
mov rdx, rax
call sym._ZN5boost4asio6detail28win_iocp_socket_service_base10async_sendINS0_15const_buffers_1ENS1_8write_opINS0_19basic_stream_socketI
jmp 0x14023b245
call dbg.__stack_chk_fail
nop
nop word cs:[rax + rax]
nop
Function at 0x14025c300
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
movzx eax, byte [0x140585f48]
mov ebx, ecx
mov esi, edx
test al, al
je 0x14025c3b0
movzx eax, byte [0x140585f38]
test al, al
je 0x14025c370
cmp byte [0x140585f40], 0
je 0x14025c340
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
cmp ebx, 6
ja case.0x14025c367.0
lea rax, [0x1404800ac]
mov edx, ebx
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
lea rdi, [0x140585f38]
mov rcx, rdi
call sym.__cxa_guard_acquire
test eax, eax
je 0x14025c325
mov rdx, qword [0x140585f50]
xor eax, eax
test rdx, rdx
je 0x14025c397
cmp byte [rdx], 0
setne al
mov rcx, rdi
mov byte [0x140585f40], al
call sym.__cxa_guard_release
jmp 0x14025c325
lea rdi, [0x140585f48]
mov rcx, rdi
call sym.__cxa_guard_acquire
test eax, eax
je 0x14025c31a
lea rcx, str.NO_COLOR
call sym.getenv
mov rcx, rdi
mov qword [0x140585f50], rax
call sym.__cxa_guard_release
jmp 0x14025c31a
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xa
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xc
jmp 0x14025c3fc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xb
jmp 0x14025c3fc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xd
jmp 0x14025c3fc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 9
jmp 0x14025c3fc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xe
jmp 0x14025c3fc
cmp sil, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xf
jmp 0x14025c3fc

Function at 0x14025ef60
Capabilities:
Query environment variable

Disassembly:
mov ecx, edx
movzx edx, r8b
jmp method.el::base::utils.setConsoleColor_el::Color__bool_

Function at 0x14025f270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
je 0x14025f2a0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14025f2a0
shr eax, 4
and eax, 1
test bl, bl
cmovne eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14025f2b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
cmp qword [rcx + 8], 0
mov rbx, rcx
jne 0x14025f2e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rcx]
test rcx, rcx
je 0x14025f302
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
cmp eax, 0xffffffff
je 0x14025f2ff
and edx, 0x10
mov eax, 1
jne 0x14025f2ca
mov rcx, qword [rbx]
lea rsi, [0x14048055a]
lea r12, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov rdx, rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
call sym.strtok
mov rbx, rax
test rax, rax
je 0x14025f3e0
mov r13, qword [sym.imp.msvcrt.dll__mkdir]
lea rdi, [rsp + 0x30]
movabs rbp, 0x3fffffffffffffff
nop dword [rax + rax]
mov rcx, rbx
call sym.strlen
mov r8, rax
mov rax, rbp
sub rax, qword [rsp + 0x38]
cmp rax, r8
jb 0x14025f3e4
mov rdx, rbx
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
cmp qword [rsp + 0x38], rbp
je 0x14025f3f0
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_append_char_const__unsigned_long_long_
mov rcx, qword [rsp + 0x30]
call r13
mov rdx, rsi
xor ecx, ecx
mov r14d, eax
call sym.strtok
mov rbx, rax
test rax, rax
jne 0x14025f350
cmp r14d, 0xffffffff
setne al
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x14025f2ca
mov byte [rsp + 0x2f], al
call sym.operator_delete_void_
movzx eax, byte [rsp + 0x2f]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
jmp 0x14025f3af
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
lea rcx, str.basic_string::append
call sym.std::__throw_length_error_char_const_
mov rbx, rax
mov rcx, rdi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_dispose__
mov rcx, rbx
call sym._Unwind_Resume
nop

Function at 0x140260930
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x140585f00]
mov r8d, 0x32
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
mov eax, 0
cmovne rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140260980
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rdi, [0x140585f00]
mov rbx, rcx
mov rsi, r8
mov rcx, rdx
mov r8d, 0x32
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1402609b8
cmp byte [0x140585f00], 0
jne 0x140260a40
lea rbp, [rbx + 0x10]
mov qword [rbx], rbp
test rsi, rsi
je 0x140260a6b
mov rcx, rsi
call sym.strlen
mov qword [rsp + 0x28], rax
mov rdi, rax
cmp rax, 0xf
ja 0x140260a00
cmp rax, 1
je 0x140260a60
test rax, rax
jne 0x140260a1f
mov qword [rbx + 8], rax
mov byte [rbp + rax], 0
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov qword [rbx], rax
mov rbp, rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0x10], rax
mov rcx, rbp
mov r8, rdi
mov rdx, rsi
call sym.memcpy
mov rax, qword [rsp + 0x28]
mov rbp, qword [rbx]
jmp 0x1402609e9
mov rdx, rdi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx edx, byte [rsi]
mov byte [rbx + 0x10], dl
jmp 0x1402609e9
lea rcx, str.basic_string:_construction_from_null_is_not_valid
call sym.std::__throw_logic_error_char_const_
nop
nop dword [rax + rax]

Function at 0x140260a80
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140585f00]
mov r8d, 0x32
mov rdx, rsi
mov rbx, rcx
lea rcx, str.USERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140260ab3
cmp byte [0x140585f00], 0
jne 0x140260ae0
lea rax, [rbx + 0x10]
mov dword [rbx + 0x10], 0x72657375
mov qword [rbx], rax
mov rax, rbx
mov qword [rbx + 8], 4
mov byte [rbx + 0x14], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140260b00
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140585f00]
mov r8d, 0x32
mov rdx, rsi
mov rbx, rcx
lea rcx, str.COMPUTERNAME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140260b33
cmp byte [0x140585f00], 0
jne 0x140260b68
lea rax, [rbx + 0x10]
mov dword [rbx + 0x18], 0x74736f68
movabs rdx, 0x2d6e776f6e6b6e75
mov qword [rbx], rax
mov rax, rbx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 8], 0xc
mov byte [rbx + 0x1c], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140261390
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rax, fcn.1402a02d0
lea rsi, [0x140585f00]
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x32
mov rdx, rsi
mov qword [rcx], rax
lea rax, [rcx + 0x20]
mov rbx, rcx
lea rbp, [rcx + 0x78]
mov qword [rcx + 0x10], rax
lea rax, [rcx + 0x40]
mov qword [rcx + 0x30], rax
lea rax, [rcx + 0x60]
mov dword [rcx + 8], 0x3f2
mov qword [rcx + 0x18], 0
mov byte [rcx + 0x20], 0
mov qword [rcx + 0x38], 0
mov byte [rcx + 0x40], 0
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], 0
mov byte [rcx + 0x60], 0
mov dword [rcx + 0x70], 0
lea rcx, str.USERNAME
call rdi
test eax, eax
je 0x140261422
cmp byte [0x140585f00], 0
jne 0x140261478
lea rdx, str.user
mov rcx, rbp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
lea r12, [rbx + 0x98]
mov r8d, 0x32
mov rdx, rsi
lea rcx, str.COMPUTERNAME
call rdi
test eax, eax
je 0x140261457
cmp byte [0x140585f00], 0
jne 0x140261488
lea rdx, str.unknown_host
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, rsi
mov rcx, rbp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x140261431
mov rdx, rsi
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
nop
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140263150
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rax, fcn.1402a02d0
lea rsi, [0x140585f00]
mov qword [rcx], rax
lea rax, [rcx + 0x20]
lea rdi, [rcx + 0x10]
mov rbx, rcx
mov qword [rcx + 0x10], rax
mov rax, qword [r8 + 8]
lea r12, [rbx + 0x78]
mov dword [rcx + 8], edx
mov rdx, qword [r8]
mov rcx, rdi
add rax, rdx
mov r8, rax
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag___clone_.isra.0_
lea rax, [rbx + 0x40]
mov byte [rbx + 0x40], 0
mov rdx, rsi
mov qword [rbx + 0x30], rax
lea rax, [rbx + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r8d, 0x32
mov qword [rbx + 0x38], 0
lea rcx, str.USERNAME
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], 0
mov byte [rbx + 0x60], 0
call rbp
test eax, eax
je 0x1402631e6
cmp byte [0x140585f00], 0
jne 0x140263248
lea rdx, str.user
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
lea r13, [rbx + 0x98]
mov r8d, 0x32
mov rdx, rsi
lea rcx, str.COMPUTERNAME
call rbp
test eax, eax
je 0x14026321b
cmp byte [0x140585f00], 0
jne 0x140263258
lea rdx, str.unknown_host
mov rcx, r13
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rdx, rdi
mov rcx, rbx
call method.el::base::LogFormat.parseFromFormat_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, rsi
mov rcx, r12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x1402631f5
mov rdx, rsi
mov rcx, r13
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x14026322a
Function at 0x140263f80
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rbx, [0x140585f00]
mov r8d, 0x32
lea rcx, str.TERM
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rsi, [rsp + 0x20]
test eax, eax
je 0x140263fba
cmp byte [0x140585f00], 0
jne 0x140264050
lea rdx, [0x14048055c]
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
cmp rax, 5
je 0x140264010
cmp rax, 0xb
jne 0x140264060
movabs rax, 0x6f632d6d72657478
cmp qword [rbx], rax
jne 0x14026401c
cmp dword [rbx + 7], 0x726f6c6f
jne 0x14026401c
lea rax, [rsp + 0x30]
mov edi, 1
cmp rbx, rax
jne 0x14026403b
jmp 0x140264043
cmp dword [rbx], 0x72657478
je 0x1402640f0
lea rdx, str.screen
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
je 0x140264090
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140264043
mov rcx, rbx
call sym.operator_delete_void_
mov eax, edi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
jmp 0x140263fc9
cmp rax, 0xe
jne 0x14026401c
movabs rax, 0x35322d6d72657478
cmp qword [rbx], rax
jne 0x14026401c
movabs rax, 0x726f6c6f63363532
cmp qword [rbx + 6], rax
jne 0x14026401c
jmp 0x140263ffb
lea rdx, str.linux
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x140264031
lea rdx, str.cygwin
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x140264031
lea rdx, str.screen_256color
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
test al, al
jne 0x140264031
lea rdx, str.screen.xterm_256color
mov rcx, rsi
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
mov edi, eax
jmp 0x140264031
cmp byte [rbx + 4], 0x6d
jne 0x14026401c
jmp 0x140263ffb