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

Disassembly:
push rbx
sub rsp, 0x1f0
mov rbx, rcx
mov byte [rcx], 0
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140005f74
movzx eax, word [rsp + 0x50]
cmp al, 2
jne 0x140005f4b
shr ax, 8
cmp al, 2
jne 0x140005f4b
mov byte [rbx], 1
mov rax, rbx
add rsp, 0x1f0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x20]
call fcn.140006590
lea rdx, [0x1400105b8]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.WSAStartup_failed
mov edx, eax
lea r8, section..data
lea rcx, [rsp + 0x20]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400060fc
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
test dl, dl
jne 0x140006110
mov ecx, 2
jmp 0x14000611a
cmp dl, 1
jne 0x14000615b
mov ecx, reloc.WS2_32.dll_socket
mov edx, 1
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000617e
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400061b0
mov rax, rbx
add rsp, 0x50
pop rbx
ret
lea rdx, str.Unsupported_protocol
lea rcx, [rsp + 0x20]
call fcn.140005fdc
lea rdx, [0x1400105f0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea r8, section..data
lea rcx, [rsp + 0x20]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rbx
call fcn.140007b4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea r8, section..data
lea rcx, [rsp + 0x20]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140007094
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x1400070e7
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400070ac
jmp 0x1400070f4
cmp dword [rcx], 0x4e0
jb 0x1400070f4
call fcn.1400077ac
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x14000729c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13c0
call fcn.14000b7c0
sub rsp, rax
mov rbx, rcx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
or dword [rsp + 0x13b4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x34], eax
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, r8
jb 0x1400072d8
xorps xmm0, xmm0
mov dword [rsp + 0x30], r8d
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
mov r8d, 0x24
and qword [rbx + 0x18], 0
mov dl, 0x20
mov rcx, rbx
call fcn.1400028d4
xor esi, esi
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140007327
mov rdi, qword [rbx]
mov rcx, rbx
jb 0x14000732f
mov rcx, qword [rbx]
mov rbp, qword [rbx + 0x10]
add rbp, rcx
jmp 0x140007378
cmp esi, 0x17
ja 0x14000734b
mov eax, 0x842100
bt eax, esi
jae 0x14000734b
mov al, 0x2d
jmp 0x140007371
mov r9d, recv
lea rdx, [rsp + 0x30]
xor r8d, r8d
lea rcx, [rsp + 0x13d0]
call fcn.140002e2c
cmp eax, 0xa
jge 0x14000736f
add al, 0x30
jmp 0x140007371
add al, 0x57
inc esi
mov byte [rdi], al
inc rdi
cmp rdi, rbp
jne 0x140007338
lea r11, [rsp + 0x13c0]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400074d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000752c
cmp byte [rcx + 0x71], 0
je 0x14000752c
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140007574
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140007539
sub eax, 1
je 0x14000753d
cmp eax, 2
jne 0x140007574
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000756b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140007574
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000752e
xor al, al
jmp 0x14000752e
Function at 0x1400077ac
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400077c3
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000780e
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret

Function at 0x140007b58
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov r14, r9
mov rcx, qword [rcx]
mov edi, r8d
mov rsi, rdx
jmp 0x140007b94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140007bb4
mov rcx, qword [rbx]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140007b7e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140007c18
mov r8, r14
mov edx, 1
mov rcx, rbx
call fcn.1400091b8
mov rcx, qword [rbx]
lea rax, [rbp + 0x20]
mov edi, 4
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
mov dword [rbp + 0x20], edi
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140007c48
mov r8d, edi
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x2c]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rbp - 0x2c]
test edx, edx
jne 0x140007c78
jmp 0x140007b9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea r8, section..data
lea rcx, [rbp - 0x28]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_option
lea r8, section..data
lea rcx, [rbp - 0x28]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.Failed_to_connect
lea r8, section..data
lea rcx, [rbp - 0x28]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140008cf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or r14d, 0xffffffff
mov esi, edx
mov rdi, rcx
cmp edx, r14d
jne 0x140008d1a
xor eax, eax
jmp 0x140008e3b
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140008d52
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140008d52
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140008e3b
cmp qword [rdi + 0x80], 0
je 0x140008e38
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140008d8c
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140008daf
movsx ecx, sil
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, r14d
cmove esi, r14d
jmp 0x140008d4b
lea rax, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008dfd
sub eax, 1
je 0x140008dfd
cmp eax, 2
jne 0x140008e38
movsx ecx, byte [rbp - 0x30]
jmp 0x140008d99
mov rbx, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x140008e28
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140008e38
lea rax, [rbp - 0x30]
mov byte [rdi + 0x71], 1
cmp qword [rbp + 0x38], rax
cmovne r14d, esi
mov eax, r14d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140008f5c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, r8
mov rbp, rdx
mov r8, r9
xor edx, edx
mov rdi, rcx
call fcn.1400091b8
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140008fc7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140008fc2
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140008f9c
cmp ebx, 0xffffffff
je 0x140008fdf
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movsxd rax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_read_data
lea r8, section..data
lea rcx, [rsp + 0x20]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400091b8
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [rcx]
lea rdi, [r11 + 0x18]
mov r9d, edx
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rsi, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
lea rbp, [rsp + 0x60]
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [r11 + 0x18], edx
sub ecx, eax
imul eax, ecx, 0x3e8
test r8, r8
cmovs rdi, r14
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, r14
mov dword [r11 + 0x1c], eax
test r9d, r9d
mov r8, rsi
cmovne rbp, r14
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140009288
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140009283
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140009259
cmp ebx, 0xffffffff
je 0x1400092a4
test ebx, ebx
je 0x1400092d6
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_select_socket
lea r8, section..data
lea rcx, [rsp + 0x30]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.1400060b4
lea rdx, [0x140010680]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000a038
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, r8
mov rbp, rdx
mov r8, r9
mov edx, 1
mov rdi, rcx
call fcn.1400091b8
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000a0a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000a0a1
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000a07b
cmp ebx, 0xffffffff
je 0x14000a0be
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movsxd rax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_send_data
lea r8, section..data
lea rcx, [rsp + 0x20]
call fcn.140006714
lea rdx, [0x1400104c0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000a498
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x14000a4c6
xor eax, eax
jmp 0x14000a5ad
cmp qword [rcx + 0x68], 0
je 0x14000a4d8
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000a5ad
mov rdi, rsi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x14000a518
cmp rax, rsi
mov rbx, rsi
mov rcx, rbp
cmovb rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rbp
add r14, rbx
sub rdi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
je 0x14000a5a7
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp + 0x70]
cmp rax, rcx
jne 0x14000a552
mov rdx, qword [rbp + 0x88]
mov rcx, rbp
mov r9, qword [rbp + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, rdi
mov ebx, 0xfff
jmp 0x14000a582
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rcx, rdi
cmp rax, rbx
jne 0x14000a5a7
cmp rdi, rbx
ja 0x14000a55c
test rcx, rcx
je 0x14000a5a7
mov r9, qword [rbp + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000a5c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000a5f2
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000a662
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14000a65c
test rax, rax
jle 0x14000a63c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14000a65c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a65c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000bdf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000be3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000be3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000be3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000be3a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000be3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000be3c
xor al, al
add rsp, 0x28
ret
Function at 0x140002f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x20], r14d
cmp qword [r8 + 0x18], 8
jb 0x140002f7f
mov r8, qword [r8]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140002fb0
mov dword [rbx], eax
mov byte [rbx + 0x20], r14b
jmp 0x14000305e
mov r8d, dword [rbp + 0x20]
shr r8, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov edx, 0x20
lea rcx, [rbp - 0x28]
call fcn.140007720
nop
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 8
jb 0x140002fed
mov rdi, qword [rdi]
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
mov r8, rdi
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003076
mov dword [rbx], eax
mov byte [rbx + 0x20], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000305e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003144
call fcn.140024d14
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, dword [rbp + 0x20]
shr rcx, 1
dec rcx
mov r8, qword [rbp - 0x18]
cmp rcx, r8
ja 0x1400030a1
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rcx
mov word [rax + rcx*2], r14w
jmp 0x1400030f1
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 0x10]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400030e5
mov qword [rbp - 0x18], rcx
lea r9, [rbp - 0x28]
cmp rdi, 8
cmovae r9, qword [rbp - 0x28]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400030da
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x1400030f1
mov r9, rdx
lea rcx, [rbp - 0x28]
call fcn.140007b30
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.140002140
mov byte [rbx + 0x20], 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000305e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003059
call fcn.140035a34
int3
Function at 0x1400143c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov rbx, rdx
lea rax, [rsp + 0x50]
mov edx, dword [rcx + 8]
mov r14, rcx
sub edx, dword [rcx]
xor r15d, r15d
mov rcx, qword [rcx]
xor r9d, r9d
mov r8d, 0x40000001
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14001452b
mov rcx, qword [rbx + 0x10]
mov r8d, dword [rsp + 0x50]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
lea rsi, [rbx + 0x10]
mov qword [rsp + 0x68], rdi
mov rdi, qword [rbx + 0x18]
cmp r8, rcx
ja 0x14001443c
mov rax, rbx
cmp rdi, 8
jb 0x140014432
mov rax, qword [rbx]
mov qword [rsi], r8
mov word [rax + r8*2], r15w
jmp 0x140014481
mov rdx, r8
mov rax, rdi
sub rdx, rcx
sub rax, rcx
cmp rdx, rax
ja 0x140014476
mov qword [rsi], r8
mov r9, rbx
cmp rdi, 8
jb 0x14001445c
mov r9, qword [rbx]
lea rdi, [r9 + rcx*2]
test rdx, rdx
je 0x14001446f
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r9 + r8*2], r15w
jmp 0x140014481
mov r9, rdx
mov rcx, rbx
call fcn.140007b30
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x14001448e
mov r9, qword [rbx]
mov edx, dword [r14 + 8]
lea rax, [rsp + 0x50]
sub edx, dword [r14]
mov r8d, 0x40000001
mov rcx, qword [r14]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ebp, eax
test eax, eax
je 0x14001451c
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rsi]
mov rdi, qword [rbx + 0x18]
cmp r8, rcx
ja 0x1400144d8
cmp rdi, 8
jb 0x1400144ce
mov rbx, qword [rbx]
mov qword [rsi], r8
mov word [rbx + r8*2], r15w
jmp 0x14001451a
mov rdx, r8
mov rax, rdi
sub rdx, rcx
sub rax, rcx
cmp rdx, rax
ja 0x14001450f
mov qword [rsi], r8
cmp rdi, 8
jb 0x1400144f5
mov rbx, qword [rbx]
lea rdi, [rbx + rcx*2]
test rdx, rdx
je 0x140014508
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbx + r8*2], r15w
jmp 0x14001451a
mov r9, rdx
mov rcx, rbx
call fcn.140007b30
mov eax, ebp
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret