joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002ebf0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rbp, rdx
xor r12d, r12d
lea rcx, [rsp + 0x114]
xor edx, edx
mov r8d, 0x12c
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x110], r12d
call fcn.1800334b0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
test rax, rax
je 0x18002ede3
lea rdx, [rsp + 0x110]
mov rcx, rax
mov qword [rsp + 0x280], rbx
mov dword [rsp + 0x110], 0x130
call qword [sym.imp.KERNEL32.dll_Process32First]
nop dword [rax + rax]
lea rdx, [rsp + 0x110]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x18002ecf1
mov rcx, rsi
call fcn.180041764
lea rcx, [rsp + 0x13c]
mov rbx, rax
call fcn.180041764
sub rbx, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rbx]
sub edx, ecx
jne 0x18002ecc2
inc rax
test ecx, ecx
jne 0x18002ecb0
test edx, edx
jne 0x18002ec80
mov r8d, dword [rsp + 0x118]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x18002ecf1
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x60], r12
jne 0x18002ed08
xor eax, eax
jmp 0x18002eddb
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.1800334b0
lea rdx, str.6_EOr8TxbpyDPe9v9HaKAMAlp37NUrcPCXqvsjqcNlM
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x80], 0x68
call fcn.180001580
lea rcx, [rsp + 0x68]
mov rdx, rax
call fcn.18002b2c0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rax]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
mov qword [rsp + 0x90], rcx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002ed6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov r8, rbp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x20
xor edx, edx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], r12w
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18002f950
mov rbp, qword [rsp + 0x288]
add rsp, 0x250
pop r12
pop rdi
pop rsi
ret
Function at 0x18002ef00
Capabilities:
Get session user name

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rsp + 0x41]
call fcn.1800334b0
mov dword [rsp + 0x20], 0x200
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
test rax, 0xffffffffffff0000
jne 0x18002efb7
movzx edi, cx
mov ecx, edi
call fcn.180001110
test rax, rax
je 0x18002efb5
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.180001a00
nop
jmp 0x18002efd9
jmp 0x18002efd9
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180001b40
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x1800307be
call fcn.1800339f0
and dword [rax], 0
call fcn.1800339d0
mov ebx, reloc.WS2_32.dll_shutdown
mov dword [rax], ebx
call fcn.180033968
mov eax, ebx
jmp 0x18003080e
test edx, 0xfffffff9
jne 0x1800307a1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1800307e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180033a10
call fcn.1800339d0
mov eax, dword [rax]
jmp 0x18003080e
test al, 0x10
jne 0x18003080c
test al, 1
je 0x18003080c
test bl, 2
je 0x18003080c
call fcn.1800339f0
mov dword [rax], 5
call fcn.1800339d0
mov dword [rax], ntohl
jmp 0x1800307de
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180030b18
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x180030b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180030b30
xor eax, eax
test eax, eax
je 0x180030b40
mov ecx, eax
call fcn.180033a10
or eax, 0xffffffff
jmp 0x180030b42
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800330cc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.180032f3c
Function at 0x1800336cb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18005d0e0]
jne 0x18002f96a
rol rcx, 0x10
test cx, 0xffff
jne 0x18002f966
repz ret
ror rcx, 0x10
jmp 0x180033624
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18005ed40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18005ee38]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800336a9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18005ed40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800336cb
mov rax, qword [rsp + 0x88]
mov qword [0x18005ee38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18005edd8], rax
mov rax, qword [0x18005ee38]
mov qword [0x18005ecb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18005edc0], rax
mov dword [0x18005eca0], 0xc0000409
mov dword [0x18005eca4], 1
mov rax, qword [0x18005d0e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18005d0e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18005ed38], eax
mov ecx, 1
call fcn.18003cd64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18004b960]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18005ed38], 0
jne 0x180033752
mov ecx, 1
call fcn.18003cd64
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18004003c
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 [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800376c4
xor ebx, ebx
cmp qword [0x18005fd70], rbx
mov rdi, rax
jne 0x18004014f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180040226
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180040226
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18005fd70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18005fd78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18005fd80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18005fd90], rax
test rax, rax
je 0x180040146
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18005fd88], rax
jmp 0x180040156
mov rax, qword [0x18005fd88]
jmp 0x18004015d
mov rax, qword [0x18005fd88]
mov r11, qword [0x18005fd90]
cmp rax, rdi
je 0x1800401c4
cmp r11, rdi
je 0x1800401c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18005fd90]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800401c4
test rax, rax
je 0x1800401c4
call rsi
test rax, rax
je 0x1800401be
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800401be
test byte [rsp + 0x40], 1
jne 0x1800401c4
bts ebp, 0x15
jmp 0x180040204
mov rcx, qword [0x18005fd78]
cmp rcx, rdi
je 0x180040204
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040204
call rax
mov rbx, rax
test rax, rax
je 0x180040204
mov rcx, qword [0x18005fd80]
cmp rcx, rdi
je 0x180040204
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040204
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18005fd70]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180040226
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180040228
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f950
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbp, rax
mov rcx, 0xffffffffffffffff
mov rdi, rcx
nop dword [rax]
inc rdi
cmp byte [rdi + rax], r14b
jne 0x140001320
inc rdi
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140002314
mov rbx, rax
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov rdx, rbx
mov rcx, rsi
call fcn.140001c60
mov dword [rsp + 0x30], 1
lea rdx, str.SDFJKDURD.PNG
lea rcx, [rsp + 0x40]
call fcn.140001c60
nop
mov r9, rax
cmp qword [rax + 0x18], 7
jbe 0x140001384
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1400013c6
lea rdi, [rcx + rdx]
mov qword [rsi + 0x10], rdi
mov rbx, rsi
cmp r8, 7
jbe 0x1400013af
mov rbx, qword [rsi]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r14w
jmp 0x1400013d4
mov qword [rsp + 0x20], rdx
mov rcx, rsi
call fcn.1400020d0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001419
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001414
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000230c
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140021c6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021a98
Function at 0x140009ee0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140004a50
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140009f36
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003bd0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14000a05b
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a05b
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a05b
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a05b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a021
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000a05b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14000a05d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000a09d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a098
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a098
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007c054
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007bff0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14000e1d0
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 0x14000e1f8
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 0x14000e21e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e220
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e279
test ecx, ecx
jle 0x14000e259
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 0x14000e279
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e279
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

Function at 0x14000e2a0
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 0x14000e2c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000e2d8
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 0x14000e2f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e2f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e332
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 0x14000e3ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e36d
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 0x14000e3ae
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 0x14000e3ce
cmp rbx, rax
ja 0x14000e380
test rbx, rbx
je 0x14000e3ce
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
Function at 0x14000e830
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000e85d
xor eax, eax
jmp 0x14000e9c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e897
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000e897
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 0x14000e9c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000e9bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000e8da
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 0x14000e905
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 0x14000e9c1
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 0x14000e974
sub eax, 1
je 0x14000e974
cmp eax, 2
jne 0x14000e9bc
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 0x14000e9c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000e9a2
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 0x14000e9bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e9c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007bff0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000edb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ee83
cmp byte [rcx + 0x71], 0
je 0x14000ee83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ee7f
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 0x14000ee44
sub eax, 1
je 0x14000ee48
cmp eax, 2
jne 0x14000ee7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ee76
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 0x14000ee7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ee2c
xor al, al
jmp 0x14000ee2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x60
pop rbx
ret
Function at 0x140012240
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [0x1400a2426], 0
je 0x140012399
cmp byte [0x1400a26c8], 0
jne 0x140012399
mov byte [0x1400a26c8], 1
mov ecx, 8
call fcn.14007c010
lea rcx, [0x140011010]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140010030]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140012385
cmp dword [rsp + 0x38], 0
je 0x140012379
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140012379
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [0x1400a2630]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140012310
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1400a267c]
cmp eax, 0x7fffffff
jne 0x140012331
dec eax
mov dword [0x1400a267c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp byte [0x1400a26c8], 0
je 0x14001235d
nop word [rax + rax]
lea rdx, [0x1400a2630]
lea rcx, [0x1400a2680]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
cmp byte [0x1400a26c8], 0
jne 0x140012340
lea rcx, [0x1400a2630]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
cmp dword [rsp + 0x38], 0
je 0x140012399
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x68
ret

Function at 0x1400257f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140025824
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140025810
ret