joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008d60
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e5b0
sub rsp, rax
mov dword [rsp + 0x3c], 0
mov rsi, rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140008e58
lea rdi, [rsp + 0x60]
xor ebx, ebx
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140008dd6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call fcn.1400087e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
lea r8, [rsp + 0x48]
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140008ee0
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov qword [rsp + 0x20], r12
mov edx, 1
call rdi
test eax, eax
jne 0x140008e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008db6
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rcx, qword [rsp + 0x40]
test rax, rax
mov rbx, rax
je 0x140008db6
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x140008dbd
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x140008dbd
mov eax, 0xffffffff
jmp 0x140008e45

Function at 0x140009520
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r11d, 0x80000000
test ecx, ecx
je 0x14000959c
lea rsi, [0x1400137e0]
mov ebx, 3
jmp 0x140009547
add ebx, 1
sar ecx, 1
je 0x14000959c
test cl, 1
je 0x140009540
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r10d, dword [rsi + rax*4]
mov eax, r11d
xor r11d, r11d
jmp 0x140009584
mov r9d, eax
shr eax, 1
mov r8d, eax
and r9d, 1
shr edx, 1
xor r8d, 0xedb88320
test r9d, r9d
cmovne eax, r8d
test r10d, edx
je 0x140009568
lea r8d, [rdx - 1]
xor r11d, eax
test r8d, r10d
jne 0x140009568
add ebx, 1
sar ecx, 1
jne 0x140009547
mov eax, r11d
pop rbx
pop rsi
ret
Function at 0x14000d810
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000ef40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000d880
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001b364]
test esi, esi
mov rbx, rcx
jle 0x14000d9b0
mov rax, qword [0x14001b368]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d8cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d955
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d8b0
mov rcx, rbx
call fcn.14000e2d0
test rax, rax
mov rdi, rax
je 0x14000d9d2
mov rax, qword [0x14001b368]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e410
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001b368]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d9b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d94e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d960
add dword [0x14001b364], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14001b368]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d94e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d810
nop dword [rax]
xor esi, esi
jmp 0x14000d8d8
mov rax, qword [0x14001b368]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d810
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000d810
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000df40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001b3c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001b3a0]
test rbx, rbx
je 0x14000df9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000df93
test rsi, rsi
je 0x14000df93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000df78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e2d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140017210]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e2f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e2f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e2f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e34d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000e344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e2f0
add rax, 0x28
cmp rax, r9
jne 0x14000e330
xor eax, eax
ret

Function at 0x14000e350
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017210]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e36f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e378
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e36f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017210]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e42f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e438
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140155d70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140155dba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140155dba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140155dba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140155dba
cmp dword [rcx + 0x84], 0xe
jbe 0x140155dba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140155dbc
xor al, al
add rsp, 0x28
ret

Function at 0x14015920c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14015927b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14015927b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14015927b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14015927b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14015927b
cmp dword [rcx + 0x84], 0xe
jbe 0x14015927b
cmp dword [rcx + 0xf8], 0
je 0x14015927b
mov ecx, ebx
call fcn.14015932c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140159108
nop
cmp dword [rbp + 0x20], 0
je 0x1401592c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401592d4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14015920c

Function at 0x140159410
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14015920c
Function at 0x14015c4c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14015c4f4
xor eax, eax
jmp 0x14015c5b7
mov rbp, rbx
cmp word [rax], si
je 0x14015c519
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14015c500
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14015c4fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14015c3e4
movsxd r14, eax
test eax, eax
jne 0x14015c557
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14015c4ed
mov rcx, r14
call fcn.14015cf58
mov rdi, rax
test rax, rax
jne 0x14015c570
xor ecx, ecx
call fcn.14015aa1c
jmp 0x14015c54c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14015c3e4
test eax, eax
jne 0x14015c5a1
mov rcx, rdi
call fcn.14015aa1c
jmp 0x14015c5ab
xor ecx, ecx
call fcn.14015aa1c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140161d20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140161d48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140161d48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140c0add3
Capabilities:
Encode data using base64

Disassembly:
sbb rsp, rcx
push 0x2a2e4888
add qword [rsp], 0x623264ac
lea rsp, [rsp + 8]
and rsp, 0xfffffffffffffff0
push 0x5c3615a7
rol word [rsp + 1], 0x2c
jb 0x140c238d9
jae 0x140c073dd
neg qword [rsp + 0x10]
jno 0x140c1e6a0
ror byte [rsp + r11 - 0x100], 0xc5
movzx dx, byte [rbp + r8 - 0x3efdbf40]
mov ebp, r11d
lea rsi, [rsi + r11*4 - 0x466]
mov dword [rsp + r8 - 0x3efdbf27], 0xd737dcae
mov qword [rbp + riz - 8], rax
sal dword [rsp + 0x12], 0x71
mov qword [rsp + 8], 0x9a78e3f
mov qword [rsp], 0x5a020fbc
lea rsp, [rsp + 0x18]
mov qword [rbp + riz - 0x10], rsp
jne 0x140c09cce
lea rsp, [rsp + 8]
add rsp, rcx
test ebx, ebx
push 0x6f22da1c
lea rsp, [rsp + 8]
je 0x140bf1635
Function at 0x14000bcd0
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.0x14000bcf1
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 0x14000bd1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000bd20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000bd79
test ecx, ecx
jle 0x14000bd59
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 0x14000bd79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000bd79
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
sldt word [rax]
Function at 0x14000bda0
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 0x14000bdc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000bdd1
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 0x14000bdf4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000bdf6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000be32
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 0x14000bece
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000be6d
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 0x14000beae
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 0x14000bece
cmp rbx, rax
ja 0x14000be80
test rbx, rbx
je 0x14000bece
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 [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
sldt word [rax]
Function at 0x14000c330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14012d700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000c35d
xor eax, eax
jmp 0x14000c4c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c397
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000c397
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 0x14000c4c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000c4bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000c3da
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 0x14000c405
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 0x14000c4c1
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 0x14000c474
sub eax, 1
je 0x14000c474
cmp eax, 2
jne 0x14000c4bc
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 0x14000c4c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000c4a2
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 0x14000c4bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000c4c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a2ec0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000cc40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14012d700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000cd13
cmp byte [rcx + 0x71], 0
je 0x14000cd13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000cd0f
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 0x14000ccd4
sub eax, 1
je 0x14000ccd8
cmp eax, 2
jne 0x14000cd0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a2ec0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000cd06
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 0x14000cd0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ccbc
xor al, al
jmp 0x14000ccbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a2ec0
add rsp, 0x60
pop rbx
ret

Function at 0x140012830
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001288d
lea rbx, [0x1400b2220]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140012874
cmp r10, 2
jb 0x140012874
cmp byte [r9], r8b
jne 0x140012874
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140012850
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400128cf
lea rbx, [0x1400b2220]
cmp r8b, 0x23
jne 0x1400128b3
cmp byte [r9], r8b
jne 0x1400128b3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400128a0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140012a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140012a2a
mov qword [r8], 0
lea rdx, [0x1400b1e94]
call fcn.1400128e0
mov rbx, rax
test rax, rax
jne 0x140012a4a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140012b21
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140012b21
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140012b21
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140012b21
cmp rdi, 0xffffffffffffffff
je 0x140012b21
mov rax, qword [0x1402b9870]
test rax, rax
je 0x140012abe
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140012b21
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140012b0e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402b9870]
test rax, rax
je 0x140012b03
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140012b2a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140012b1c
mov qword [r14], rdi
mov rax, rsi
jmp 0x140012b2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret