joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9420
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x1400a955d
test r8, r8
je 0x1400a9453
cmp word [r8], 0
jne 0x1400a945c
test r9, r9
je 0x1400a955d
mov rax, qword [0x140112488]
xor r8d, r8d
mov rdx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
mov rcx, rbp
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a954d
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400a9537
call fcn.1400a92f0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400a954d
mov eax, dword [0x14011ae48]
test al, 1
jne 0x1400a94f8
or eax, 1
lea rcx, [0x1400ee060]
mov dword [0x14011ae48], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140100560]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14011ae40], rax
jmp 0x1400a94ff
mov r11, qword [0x14011ae40]
mov rax, qword [0x140112488]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400a9527
test r11, r11
je 0x1400a9527
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400a954d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400a954d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400a9562
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400a9565
mov ebx, 0x57
mov r11d, ebx
mov rax, qword [0x140112488]
test ebx, ebx
mov rcx, r12
setne dl
mov dword [rax + 0x40], r11d
call fcn.14003ef50
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b02b0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x140119da8]
mov rbx, rdx
call fcn.140006640
test eax, eax
jne 0x1400b02ed
lea r8, [0x1400e245c]
lea rdx, [0x1400e28a0]
lea rcx, [0x140119150]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.1400404f0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rsi + rbx]
lea rbx, [rsi + 4]
xor r14d, r14d
cmp rbx, rbp
ja 0x1400b03b2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b03b2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b03b2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b03b2
mov rdx, r14
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x1400b0470
test rdi, rdi
je 0x1400b0399
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400b0411
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400ca550
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, rbp
jbe 0x1400b0320
cmp dword [0x140119dd4], r14d
je 0x1400b03ec
cmp qword [0x140119db8], r14
je 0x1400b03d8
mov rcx, qword [0x140119da8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140119db8], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140119dd4], r14d
mov qword [0x140119da8], r14
mov eax, 1
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x140119dd4], r14d
je 0x1400b0454
cmp qword [0x140119db8], r14
je 0x1400b0440
mov rcx, qword [0x140119da8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140119db8], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140119dd4], r14d
mov qword [0x140119da8], r14
lea r8, [0x1400e245c]
lea rdx, [0x1400e2868]
lea rcx, [0x140119150]
call fcn.1400404f0
jmp 0x1400b03f1
cmp dword [0x140119dd4], r14d
je 0x1400b04aa
cmp qword [0x140119db8], r14
je 0x1400b0496
mov rcx, qword [0x140119da8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140119db8], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140119dd4], r14d
mov qword [0x140119da8], r14
lea r8, [0x1400e245c]
lea rdx, [0x1400e5580]
lea rcx, [0x140119150]
call fcn.1400404f0
jmp 0x1400b03f1
Function at 0x1400b0920
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
movzx ecx, byte [rcx + 0x23]
mov rbx, rdx
test ecx, ecx
je 0x1400b0b60
dec ecx
mov qword [rsp + 0x50], rsi
je 0x1400b09ba
dec ecx
je 0x1400b0983
dec ecx
je 0x1400b0967
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
je 0x1400b0971
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x140119da8]
call fcn.140005f00
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x1400b0afd
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001130
cmp dword [0x1401178a8], 0
jne 0x1400b0abb
cmp qword [rdi + 0x10], 0
jne 0x1400b0abb
cmp qword [0x14011ace8], rdi
jne 0x1400b09e8
test rbx, rbx
jne 0x1400b0a67
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b0a62
xor esi, esi
mov qword [0x14011ace8], rsi
test rbx, rbx
je 0x1400b0a50
mov edx, dword [0x140117884]
test edx, edx
je 0x1400b0a32
mov r9, qword [rdi + 0x28]
lea r8, [0x1401009c0]
lea rcx, [0x140119150]
mov qword [rsp + 0x20], rsi
call fcn.140040fa0
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.1400adc10
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x1400b0aa2
cmp byte [rdi + 0x23], 0
jne 0x1400b0a73
mov rax, qword [rdi + 0x10]
jmp 0x1400b0a76
mov rax, rdi
test byte [rax + 0x21], 4
je 0x1400b0a84
mov rcx, rdi
call fcn.140041100
xor esi, esi
xor eax, eax
mov word [rbx], si
mov qword [0x14011ace8], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
mov qword [0x14011ace8], rdi
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x1400b0b5b
test r8, r8
jne 0x1400b0b0d
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x1400b0af3
mov rcx, rdi
call fcn.140041100
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x1400b0b5b
cmp r8, 0x186a0
jae 0x1400b0b4d
movzx eax, word [rdx]
test ax, ax
je 0x1400b0b43
nop word [rax + rax]
add rdx, 2
mov word [rbx], ax
add rbx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x1400b0b30
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x1400b0af8
mov rcx, rbx
call fcn.1400ca550
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x1400b0af8
mov rcx, qword [rdi + 0x10]
call fcn.1400b0920
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400c9ebc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400c9d2c

Function at 0x1400d3b28
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1401112b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400cd958
xor ebx, ebx
cmp qword [0x1401159c8], rbx
mov rdi, rax
jne 0x1400d3c3b
lea rcx, [0x1400e19f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d3d12
lea rdx, [0x1400e19e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d3d12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e19d0]
mov rcx, rsi
mov qword [0x1401159c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e19b8]
mov rcx, rsi
mov qword [0x1401159d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1400e1998]
mov rcx, rsi
mov qword [0x1401159d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1401159e8], rax
test rax, rax
je 0x1400d3c32
lea rdx, [0x1400e1980]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1401159e0], rax
jmp 0x1400d3c42
mov rax, qword [0x1401159e0]
jmp 0x1400d3c49
mov rax, qword [0x1401159e0]
mov r11, qword [0x1401159e8]
cmp rax, rdi
je 0x1400d3cb0
cmp r11, rdi
je 0x1400d3cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1401159e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d3cb0
test rax, rax
je 0x1400d3cb0
call rsi
test rax, rax
je 0x1400d3caa
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d3caa
test byte [rsp + 0x40], 1
jne 0x1400d3cb0
bts ebp, 0x15
jmp 0x1400d3cf0
mov rcx, qword [0x1401159d0]
cmp rcx, rdi
je 0x1400d3cf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3cf0
call rax
mov rbx, rax
test rax, rax
je 0x1400d3cf0
mov rcx, qword [0x1401159d8]
cmp rcx, rdi
je 0x1400d3cf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3cf0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401159c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3d12
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d3d14
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d1110
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006d00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov edx, 0x104
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xorps xmm0, xmm0
test eax, eax
jne 0x140006d5f
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], rdi
lea rdx, [0x140042bb1]
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140001e80
jmp 0x140006d93
xorps xmm1, xmm1
lea rdx, [rsp + 0x50]
mov r8d, 2
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.140001e80
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003e940
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x14000ca50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ca9e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_take_a_snapshot_of_the_processes_n
call fcn.140014500
jmp 0x14000cb9c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x14000cad0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_retrieve_information_about_the_first_process_n
call fcn.140014500
jmp 0x14000cb93
mov qword [rsp + 0x170], rbx
nop dword [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14000caf0
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
mov r8, qword [rdi + 0x10]
jbe 0x14000cb0a
mov rcx, qword [rdi]
cmp r8, rax
jne 0x14000cb75
lea rdx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000cb75
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000cb4a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_open_process_for_termination_n
call fcn.140014500
jmp 0x14000cb75
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14000cb6c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_terminate_process_n
call fcn.140014500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000cae0
mov rbx, qword [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003e940
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14000f110
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
lea rax, vtable.LoginWindow.0
mov qword [rcx], rax
mov qword [rcx + 0x14], 0x42c80000
mov qword [rcx + 0x1c], rdi
mov byte [rcx + 0x25], 1
mov dword [rcx + 0x50], 0x3e109091
mov dword [rcx + 0x54], 0x3e109091
mov dword [rcx + 0x58], 0x3e109091
mov dword [rcx + 0x5c], 0x3f800000
mov dword [rcx + 0x60], 0x3f6dedef
mov dword [rcx + 0x64], 0x3e109091
mov dword [rcx + 0x68], 0x3ee8e8ea
mov dword [rcx + 0x6c], 0x3f800000
mov byte [rcx + 0x70], dil
mov dword [rcx + 8], 0x44160000
mov dword [rcx + 0xc], 0x43960000
movaps xmm5, xmmword [0x140048280]
movss xmm1, dword [0x140048040]
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x19], edi
mov word [rbp - 0x15], 0x101
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
movaps xmm3, xmmword [0x140048260]
movaps xmm4, xmmword [0x140048270]
mov dword [rbp - 0x25], 0x43f00000
movss xmm2, dword [0x140048020]
unpcklps xmm2, xmm1
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rbp - 9]
movsd xmm0, xmm2
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm5
movups xmmword [rcx + 0x50], xmm3
movups xmmword [rcx + 0x60], xmm4
lea rax, str.Initiating_client
mov qword [rcx + 0x28], rax
cmp byte [rcx + 0x25], 1
je 0x14000f229
mov dword [rcx + 0x10], edi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x38], rdi
mov word [rcx + 0x24], 0x101
cmp dword [rcx + 0x20], 0x14
je 0x14000f263
movss xmm1, dword [rcx + 0x10]
movss xmm0, dword [0x14004800c]
comiss xmm0, xmm1
jbe 0x14000f252
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rcx + 0x18], eax
mov dword [rcx + 0x1c], edi
mov dword [rcx + 0x10], 0x41a00000
mov dword [rcx + 0x20], 0x14
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rdx
mov ecx, 0x10
call fcn.14003e960
movups xmm0, xmmword [rbp + 0x37]
movups xmmword [rax], xmm0
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400168e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14000f2f7
cmp dword [rbp - 0x31], 0
je 0x14000f2eb
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000f2eb
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003e940
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140012990
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400129b1
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400129de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400129e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012a39
test ecx, ecx
jle 0x140012a19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140012a39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012a39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
Function at 0x140012a60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140012a82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140012a91
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140012ab4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012ab6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012af2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140012b8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140012b2d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140012b6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140012b8e
cmp rbx, rax
ja 0x140012b40
test rbx, rbx
je 0x140012b8e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte es:[rax], al
add al, byte [rax]
push rdi
call qword [rax]
add esi, edx
add bh, byte [rax + rax + 0x90005]
add byte [rdi], dh
and dword [0x1533c3c44], edx
invalid
Function at 0x140012ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001301d
xor eax, eax
jmp 0x140013189
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140013057
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140013057
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140013189
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001317c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001309a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400130c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140013181
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140013134
sub eax, 1
je 0x140013134
cmp eax, 2
jne 0x14001317c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140013181
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140013162
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001317c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140013181
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003e940
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140013c30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140013d03
cmp byte [rcx + 0x71], 0
je 0x140013d03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140013cff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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 0x140013cc4
sub eax, 1
je 0x140013cc8
cmp eax, 2
jne 0x140013cff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003e940
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140013cf6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140013cff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140013cac
xor al, al
jmp 0x140013cac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003e940
add rsp, 0x60
pop rbx
ret