joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0ae0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rdi, rdx
mov rax, qword [0x140114500]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x1400a0bbf
mov rbx, rax
xor esi, esi
lea r14, [rsp + 0x28]
mov r8d, 0x238
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x28], 0x238
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400a0bb6
lea r14, [rsp + 0x54]
mov rcx, qword [rdi]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400a0bb2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400a0bb6
xor esi, esi
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea r15, [rsp + 0x28]
jmp 0x1400a0b9f
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400a0bb6
mov rcx, qword [rdi]
mov rdx, r14
call r12
test eax, eax
jne 0x1400a0b90
mov esi, dword [rsp + 0x30]
jmp 0x1400a0b90
mov esi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a1e40
mov eax, esi
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400a2614
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400a264e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a2653
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a269c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400afd80]
cmp byte [rcx + rax], 0
je 0x1400a269c
dec r8
sub rdx, 1
jne 0x1400a2682
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a2bac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a2bf6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a2bf6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a2bf6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a2bf6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a2bf6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a2bf8
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4c98f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4ca2f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ee108]
test eax, eax
je 0x2fc4ca38a
lea rax, [0x2fc4ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ee110]
mov qword [rbp - 8], rax
jmp 0x2fc4ca36e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4ca362
cmp qword [rbp - 0x10], 0
je 0x2fc4ca362
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4ca328
lea rax, [0x2fc4ee0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ca38b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ca490
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4ca4b8
mov eax, 0
jmp 0x2fc4ca506
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4ca4e1
mov eax, 0
jmp 0x2fc4ca506
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4ca501
mov eax, 0
jmp 0x2fc4ca506
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ca50c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4ca58a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ca581
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4ca581
mov rax, qword [rbp - 8]
jmp 0x2fc4ca59f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4ca554
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f5b1c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5b1d2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5b1fb
pop rbp
sub rbp, 0x33
sub rbp, 0xf5b1c8
sub rsp, 0x20
jmp 0x140f5b21a
mov rax, 0xf5b1c8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6278aed0
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5b239
jmp 0x140f5b250
cwde
pop rcx
cmp dword [rbx + 0x59], ebx
in al, dx
rcl al, 1
rcr byte [rax - 0x2e27eeaf], 1
rcl al, 1
cwde
sar dword [rcx], 1
cwde
invalid
Function at 0x140001070
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x1400011ad
lea r15, str.kernel32.dll
xor r12d, r12d
nop word [rax + rax]
cmp word [rdi + 0x48], r12w
je 0x1400011ad
mov rbp, qword [rdi + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r15
movsxd rsi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r14, eax
cmp esi, 0x104
jge 0x1400011a1
cmp r14d, 0x104
jge 0x1400011a1
mov rbx, r12
test rsi, rsi
jle 0x14000113b
nop dword [rax + rax]
movzx ecx, word [rbp + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x230], ax
inc rbx
cmp rbx, rsi
jl 0x140001120
add rbx, rbx
cmp rbx, 0x208
jae 0x1400011e7
mov word [rsp + rbx + 0x230], r12w
mov rbx, r12
test r14d, r14d
jle 0x140001178
nop dword [rax]
movzx ecx, word [r15 + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x20], ax
inc rbx
cmp rbx, r14
jl 0x140001160
add rbx, rbx
cmp rbx, 0x208
jae 0x1400011e7
lea rdx, [rsp + 0x20]
mov word [rsp + rbx + 0x20], r12w
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400011e1
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400010d0
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140001c30
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov rax, qword [rdi + 0x20]
jmp 0x1400011af
call fcn.140001d58
int3
Function at 0x1400011f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x120
mov eax, 0x5a4d
mov rbp, rcx
cmp word [rcx], ax
jne 0x14000135c
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], reloc.api_ms_win_crt_runtime_l1_1_0.dll__c_exit
jne 0x14000135c
movups xmm0, xmmword [rax + 0x18]
lea rdx, [rsp + 0x20]
mov qword [r11 + 8], rbx
movups xmm1, xmmword [rax + 0x28]
mov qword [r11 + 0x10], rsi
xor ebx, ebx
movups xmmword [rdx], xmm0
mov qword [r11 + 0x18], rdi
movups xmm0, xmmword [rax + 0x38]
mov qword [r11 + 0x20], r12
movups xmmword [rdx + 0x10], xmm1
mov qword [r11 - 0x18], r15
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rdx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rdx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm0
movups xmmword [rdx + 0x60], xmm1
mov eax, dword [r11 - 0x98]
add rax, rcx
mov edi, dword [rax + 0x20]
mov r12d, dword [rax + 0x1c]
add rdi, rcx
mov esi, dword [rax + 0x24]
add r12, rcx
mov r15d, dword [rax + 0x14]
add rsi, rcx
test r15d, r15d
je 0x140001326
mov qword [r11 - 0x10], r14
nop dword [rax]
movzx eax, word [rsi]
lea rcx, str.VirtualAlloc
mov edx, dword [rdi]
add rdx, rbp
mov r14d, dword [r12 + rax*4]
add r14, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001357
inc ebx
add rsi, 2
add rdi, 4
cmp ebx, r15d
jb 0x1400012f0
mov r14, qword [rsp + 0x118]
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
mov r15, qword [rsp + 0x110]
add rsp, 0x120
pop rbp
ret
mov rax, r14
jmp 0x14000131e
xor eax, eax
add rsp, 0x120
pop rbp
ret
Function at 0x1400023d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002422
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002422
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.api_ms_win_crt_runtime_l1_1_0.dll__c_exit
jne 0x140002422
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002422
cmp dword [rcx + 0x84], 0xe
jbe 0x140002422
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002424
xor al, al
add rsp, 0x28
ret
Function at 0x14000a6d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400b6040]
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.1400049f0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14000a726
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140003b70
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 0x14000a84b
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 0x14000a84b
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 0x14000a84b
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 0x14000a84b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a811
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 0x14000a84b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14000a84d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000a88d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a888
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a888
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008caa4
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008ca40
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14000f5c0
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 0x14000f5e8
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 0x14000f60e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f610
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f669
test ecx, ecx
jle 0x14000f649
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 0x14000f669
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f669
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 0x14000f690
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 0x14000f6b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000f6c8
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 0x14000f6e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f6e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f722
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 0x14000f7be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000f75d
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 0x14000f79e
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 0x14000f7be
cmp rbx, rax
ja 0x14000f770
test rbx, rbx
je 0x14000f7be
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 0x14000fc20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b6040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000fc4d
xor eax, eax
jmp 0x14000fdb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000fc87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000fc87
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 0x14000fdb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000fdac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000fcca
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 0x14000fcf5
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 0x14000fdb1
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 0x14000fd64
sub eax, 1
je 0x14000fd64
cmp eax, 2
jne 0x14000fdac
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 0x14000fdb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000fd92
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 0x14000fdac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fdb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008ca40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400102e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b6040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400103b3
cmp byte [rcx + 0x71], 0
je 0x1400103b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400103af
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 0x140010374
sub eax, 1
je 0x140010378
cmp eax, 2
jne 0x1400103af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008ca40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400103a6
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 0x1400103af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001035c
xor al, al
jmp 0x14001035c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008ca40
add rsp, 0x60
pop rbx
ret
Function at 0x140015f70
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x28], rdx
xor edi, edi
lea r15, [0x1400b7b90]
mov qword [rsp + 0x28], r15
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140015fb5
lea ecx, [rdi + 5]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1400b7bdc], 0x7fffffff
jne 0x140015fd7
mov dword [0x1400b7bdc], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x71]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x72]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x73]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x74]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x75]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x76]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x77]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1400b9040]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1400b9028]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1400b9018]
cmp rax, rdx
je 0x140016088
mov rcx, qword [rcx]
cmp rbx, qword [rax + 0x10]
je 0x14001608b
cmp rax, rcx
je 0x140016088
mov rax, qword [rax + 8]
cmp rbx, qword [rax + 0x10]
jne 0x140016077
jmp 0x14001608b
mov rax, rdi
mov rbp, rdx
test rax, rax
cmovne rbp, rax
cmp rbp, rdx
je 0x140016119
movzx eax, byte [rbp + 0x18]
test al, al
je 0x140016119
mov byte [rsi], al
mov rax, qword [rbp + 0x20]
mov qword [rsi + 8], rax
mov rax, qword [rbp + 0x28]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x30]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x28], rdi
mov qword [rsi + 0x30], rdi
mov rdx, qword [rbp + 0x40]
sub rdx, qword [rbp + 0x38]
sar rdx, 3
test rdx, rdx
je 0x14001612f
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
ja 0x14001614c
lea rcx, [rsi + 0x20]
call fcn.140016960
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
sar rbx, 3
lea rdx, [rdi + rbx*8]
mov qword [rsi + 0x28], rdx
jmp 0x14001612f
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rdi
mov qword [rsi + 0x28], rdi
mov qword [rsi + 0x30], rdi
mov rcx, r15
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400054f0
nop
int3