joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bd930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x1400bd979
call fcn.1400c1bb0
mov dword [rsp + 0x20], edi
lea rax, [0x1401405e8]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x1400bda8d
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
lea rcx, [rsp + 0x98]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400ab480
test rax, rax
je 0x1400bda49
nop dword [rax]
nop word [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.1400ab480
test rax, rax
jne 0x1400bda20
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400bda73
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rbx, 8
sub rsi, 1
jne 0x1400bda65
lea rcx, [rsp + 0x98]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400c1030
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c10ad
mov dword [rdi], 0
cmp esi, 0x17
jne 0x1400c109a
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1400b0a10
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
movups xmm0, xmmword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rdi
ret
Function at 0x1400c17d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
mov edx, 1
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x1400c1836
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400b0a10
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400c193a
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400c1884
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400b0a10
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400c194c
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400c3fc0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x1400c18f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x1400c18d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400c18e7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.1400b0a10
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400c1928
test rdi, rdi
je 0x1400c1915
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1400abaa0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1400abaa0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1400abaa0
int3
Function at 0x1400c1ef0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbx
push r13
push r15
sub rsp, 0x2d0
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, qword [rsp + 0x320]
mov rax, r8
mov qword [rsp + 0x68], rax
mov r10, r9
mov qword [rsp + 0x58], r9
movzx r13d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400c1f55
mov dword [rsp + 0x58], 0x2719
call fcn.1400b0a10
mov qword [rsp + 0x60], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
jmp 0x1400c211b
cmp byte [rsp + 0x318], 0
mov qword [rsp + 0x2c8], rsi
je 0x1400c1f78
test r13b, 0x10
je 0x1400c1f78
xor esi, esi
mov dword [rbx], esi
xor eax, eax
jmp 0x1400c2113
mov qword [rsp + 0x2f8], rbp
xor esi, esi
mov qword [rsp + 0x2c0], rdi
mov qword [rsp + 0x2b8], r12
mov qword [rsp + 0x2b0], r14
lea r14, [rbx + 8]
nop
mov ecx, dword [rsp + 0x310]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r8d, r10d
mov qword [rsp + 0x28], rsi
mov rdx, rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
mov dword [rsp + 0x40], esi
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebp, eax
call fcn.1400b0a10
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x1400c2017
mov dword [rsp + 0x80], 0x2746
call fcn.1400b0a10
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rsp + 0x80]
jmp 0x1400c2036
cmp ecx, 0x4d2
jne 0x1400c203d
mov dword [rsp + 0x48], 0x274d
call fcn.1400b0a10
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x48]
lea r14, [rbx + 8]
movups xmmword [rbx], xmm0
test ebp, ebp
jne 0x1400c2050
movsxd rax, dword [rsp + 0x40]
mov dword [rbx], esi
test eax, eax
jns 0x1400c20f3
test r13b, 1
jne 0x1400c20f1
call fcn.1400b0a10
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400c2074
cmp dword [rbx], 0x2733
je 0x1400c208e
call fcn.1400b0a10
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400c20f1
cmp dword [rbx], 0x4d5
jne 0x1400c20f1
lea ecx, [r15 + 1]
mov qword [rsp + 0x98], r15
xor r9d, r9d
mov dword [rsp + 0x90], 1
lea r8, [rsp + 0x90]
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.WSOCK32.dll_select]
test eax, eax
js 0x1400c20d2
mov rax, qword [rsp + 0x68]
mov r10, qword [rsp + 0x58]
mov dword [rbx], esi
jmp 0x1400c1fa0
call fcn.1400b0a10
mov rdi, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
xor eax, eax
mov r12, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2f8]
mov r14, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140105ae0
add rsp, 0x2d0
pop r15
pop r13
pop rbx
ret
Function at 0x1400c4080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400c40b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x1400c40cf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 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]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
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 0x1400c4119
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, 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, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
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
mov rdi, rbx
je 0x1400c4191
mov rcx, rbp
call fcn.1400a3fe0
cmp rbx, 0xfff
jbe 0x1400c4171
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400c41b2
cmp rbx, rax
ja 0x1400c4140
test rdi, rdi
je 0x1400c4191
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
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x1400c4194
Function at 0x1400c41c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400c41e8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp 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]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
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 0x1400c425c
test rax, rax
jle 0x1400c423c
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 0x1400c425c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400c425c
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
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1400c4b70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x18], rdx
lea r8, [rbp - 0x30]
mov rbx, rdx
xor edi, edi
mov rdx, qword [rcx]
mov r9d, 8
mov rcx, qword [0x140146268]
add rdx, 0x18
mov qword [rbp - 0x30], rdi
call fcn.1400cc8c0
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400c4bf2
mov rcx, qword [0x140146268]
lea r8, [rbp - 0x18]
add rdx, 8
mov qword [rbp - 0x18], rdi
mov r9d, 8
call fcn.1400cc8c0
mov rdx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.1400c5220
jmp 0x1400c4d68
mov cl, 0x3f
call fcn.14007beb0
mov edx, 1
mov byte [rbp - 0x18], al
mov cl, 0x3f
call fcn.14007beb0
mov edx, 2
mov byte [rbp - 0x17], al
mov cl, 0x3f
call fcn.14007beb0
mov edx, 3
mov byte [rbp - 0x16], al
mov cl, 0x5f
call fcn.14007beb0
mov edx, 4
mov byte [rbp - 0x15], al
mov cl, 0x63
call fcn.14007beb0
mov edx, 5
mov byte [rbp - 0x14], al
mov cl, 0x6c
call fcn.14007beb0
mov edx, 6
mov byte [rbp - 0x13], al
mov cl, 0x61
call fcn.14007beb0
mov edx, 7
mov byte [rbp - 0x12], al
mov cl, reloc.WSOCK32.dll_WSAStartup
call fcn.14007beb0
mov edx, 8
mov byte [rbp - 0x11], al
mov cl, reloc.WSOCK32.dll_WSAStartup
call fcn.14007beb0
mov edx, 9
mov byte [rbp - 0x10], al
mov cl, WSAGetLastError
call fcn.14007beb0
mov edx, 0xa
mov byte [rbp - 0xf], al
mov cl, 0x61
call fcn.14007beb0
mov edx, ntohl
mov byte [rbp - 0xe], al
mov cl, 0x6d
call fcn.14007beb0
mov edx, reloc.WSOCK32.dll_ioctlsocket
mov byte [rbp - 0xd], al
mov cl, 0x65
call fcn.14007beb0
movdqa xmm0, xmmword [0x14010f280]
movdqa xmm2, xmmword [0x14010f250]
movdqa xmm3, xmmword [0x14010f260]
mov byte [rbp - 0xc], al
xor eax, eax
movdqa xmmword [rbp - 0x30], xmm0
mov edx, dword [rbp - 0x30]
mov byte [rbp - 0xb], al
nop word [rax + rax]
movsxd rcx, eax
movd xmm1, eax
add eax, 4
pshufd xmm1, xmm1, 0
movd xmm0, edx
paddd xmm1, xmm2
andps xmm1, xmm3
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm0
movd xmm0, dword [rbp + rcx - 0x18]
xorps xmm1, xmm0
movd dword [rbp + rcx - 0x18], xmm1
cmp eax, 0xc
jb 0x1400c4ce0
cmp eax, 0xd
jae 0x1400c4d36
nop
movsxd rcx, eax
lea rdx, [rbp - 0x18]
add rdx, rcx
lea ecx, [rax + 0x13]
inc eax
xor byte [rdx], cl
cmp eax, 0xd
jb 0x1400c4d20
xorps xmm0, xmm0
mov byte [rbp - 0xb], dil
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
lea rax, [rbp - 0x18]
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1400c4d53
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.14007b610
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140105ae0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x1400cb6a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cb6be
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret

Function at 0x1400cb6d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400cb7d7
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400cb7d7
test rax, rax
je 0x1400cb7d7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x1400cb73f
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x1400cb7e2
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x30]
cmp rbx, rbp
jae 0x1400cb7c5
mov edx, dword [rbx + 4]
test edx, edx
je 0x1400cb7c5
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x40], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x50], eax
cmp rcx, r8
je 0x1400cb79e
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x30], rcx
jmp 0x1400cb7ba
lea r8, [rsp + 0x40]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400cae70
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x1400cb756
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x1400cb7e2
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400cbd00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
lea rcx, [0x14011d240]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400cbed8
mov r8, rdi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x28]
call fcn.1400cb800
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x58]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, rdi
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x48]
call fcn.1400cb800
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
lea r8, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400cbdac
cmp eax, 2
sete bl
jmp 0x1400cbe3c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x58]
call rax
mov ebx, eax
lea rdx, [0x1401100f5]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5360
test ebx, ebx
je 0x1400cbe17
lea rdx, [0x1401100f5]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400c5360
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400cbe3c
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400cbe3a
xor bl, bl
jmp 0x1400cbe3c
mov bl, 1
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400cbe7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbe7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cbe7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140105724
movdqa xmm0, xmmword [0x140114710]
movdqu xmmword [rbp - 0x38], xmm0
xor eax, eax
mov word [rbp - 0x48], ax
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400cbed5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbed0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cbed0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140105724
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140105ae0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400cc2d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r13, rdx
mov rbp, rcx
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400cc2f7
movsxd rcx, dword [rdx + 0x3c]
lea r12, [rdx + 0x18]
add r12, rcx
mov qword [rsp + 0x50], rbx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r14d, word [rcx + rdx + 6]
add r12, rax
cmp si, r14w
jae 0x1400cc366
nop word [rax + rax]
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [r12 + rcx*8]
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400cc35f
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x1400cc351
cmp rdi, rax
je 0x1400cc385
inc esi
cmp esi, r14d
jb 0x1400cc330
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rbx + 0xc], 0
je 0x1400cc366
test r15, r15
je 0x1400cc396
mov eax, dword [rbx + 8]
mov dword [r15], eax
mov eax, dword [rbx + 0xc]
add rax, r13
jmp 0x1400cc368

Function at 0x1400cc3a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x1400cc453
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov rax, r8
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x1400cc403
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x1400cc42f
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1400cc4aa
mov word [rsp + rax + 0x30], di
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
inc r8
cmp word [rax + r8*2], di
jne 0x1400cc442
lea rdx, [rsp + 0x30]
jmp 0x1400cc47e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x1401100f5]
call fcn.1400c5360
xorps xmm0, xmm0
lea rdx, [0x14011cf98]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.14007b720
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140105ae0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.140105f24
int3