joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ba860
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400ba978
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
mov rax, qword [rsp + 0x38]
call fcn.140069520
mov rcx, qword [rsp + 0x40]
test byte [rcx], al
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
and edx, 0x7f
shl rdx, 5
add rcx, rdx
mov qword [rsp + 0x28], rcx
xor eax, eax
jmp 0x1400ba8b5
mov rax, qword [rsp + 0x10]
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 4
jge 0x1400ba8e6
mov qword [rsp + 0x10], rax
lea rdx, [rcx + rax*8]
mov rax, rdx
call fcn.140069640
mov rbx, qword [rsp + 0x48]
cmp rax, rbx
jne 0x1400ba8a8
call fcn.140069560
mov eax, 1
add rsp, 0x30
pop rbp
ret
xor eax, eax
movabs rdx, 0xcbf29ce484222325
jmp 0x1400ba903
lea rax, [rcx + 1]
mov rcx, rdx
mov rbx, qword [rsp + 0x48]
mov rdx, rsi
cmp rax, 4
jge 0x1400ba937
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x18], rdx
lea rdx, [rcx + rax*8]
mov rax, rdx
call fcn.140065940
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rdx + rcx*8]
nop
mov rsi, qword [rsp + 0x18]
xor eax, eax
jmp 0x1400ba96d
and edx, 3
lea rax, [rcx + rdx*8]
nop
call fcn.140069780
call fcn.140069560
xor eax, eax
add rsp, 0x30
pop rbp
ret
movzx edi, bl
xor rsi, rdi
inc rax
shr rbx, 8
movabs rdi, 0x100000001b3
imul rsi, rdi
cmp rax, 8
jl 0x1400ba952
jmp 0x1400ba8f4
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140062340
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1400ba860
Function at 0x1400d5010
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r9d, dword [0x140d2a640]
test r9d, r9d
jle 0x1400d50a4
mov r10b, byte [rsi]
lea r8, [0x140d2a650]
xor ecx, ecx
mov rbx, r8
jmp 0x1400d5050
add rcx, 1
add rbx, 0x807f
cmp rcx, r9
je 0x1400d50a4
imul rdx, rcx, 0x807f
cmp r10b, byte [rdx + r8]
jne 0x1400d5040
mov edi, 1
mov edx, r10d
nop word cs:[rax + rax]
nop
test dl, dl
je 0x1400d5086
movzx edx, byte [rsi + rdi]
lea rax, [rdi + 1]
cmp dl, byte [rbx + rdi]
mov rdi, rax
je 0x1400d5070
jmp 0x1400d5040
mov eax, ecx
imul rax, rax, 0x807f
lea rcx, [0x140d2a650]
add rax, rcx
add rax, 0x80
jmp 0x1400d523d
movsxd r9, r9d
cmp r9d, 5
jae 0x1400d5249
imul rax, r9, 0x807f
lea r14, [0x140d2a650]
lea rdx, [rax + r14]
add rdx, 0x80
mov rcx, rsi
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add eax, 0xffffffff
cmp eax, 0x7ffd
ja 0x1400d5164
mov r9, 0xffffffffffffffff
nop
cmp byte [rsi + r9 + 1], 0
lea r9, [r9 + 1]
jne 0x1400d50f0
cmp r9, 0x80
jae 0x1400d526a
movsxd rbx, dword [0x140d2a640]
imul r15, rbx, 0x807f
lea rdx, [r14 + r15]
mov eax, 1
movzx ecx, byte [rsi + rax - 1]
test cl, cl
je 0x1400d516b
mov byte [rdx + rax - 1], cl
movzx ecx, byte [rsi + rax]
test cl, cl
je 0x1400d5179
mov byte [rdx + rax], cl
add rax, 2
cmp rax, 0x81
jne 0x1400d5120
lea rcx, [r15 + r14]
add rcx, 0x80
test cl, 0xf
jne 0x1400d522a
mov eax, pe_nt_image_headers64
xor esi, esi
jmp 0x1400d51ef
xor eax, eax
jmp 0x1400d523d
lea rcx, [rax + rdx]
add rcx, 0xffffffffffffffff
add rax, 0xffffffffffffffff
jmp 0x1400d517d
lea rcx, [rdx + rax]
mov esi, pe_nt_image_headers64
sub rsi, rax
mov edi, ecx
or edi, esi
test dil, 0xf
je 0x1400d51ef
cmp rax, 0x80
je 0x1400d522a
mov edx, esi
and edx, 7
add rax, 0xffffffffffffff87
cmp rax, 7
jb 0x1400d51d9
and rsi, 0xfffffffffffffff8
nop
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov byte [rcx + 2], 0
mov byte [rcx + 3], 0
mov byte [rcx + 4], 0
mov byte [rcx + 5], 0
mov byte [rcx + 6], 0
mov byte [rcx + 7], 0
add rcx, 8
add rsi, 0xfffffffffffffff8
jne 0x1400d51b0
test rdx, rdx
je 0x1400d522a
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x1400d51e0
jmp 0x1400d522a
and rsi, 0xfffffffffffffff8
lea rdi, [rcx + rsi]
cmp rdi, rcx
jbe 0x1400d522a
add rsi, rax
add rsi, rdx
lea rdi, [rax + rdx]
add rdi, 0x10
cmp rsi, rdi
cmovbe rsi, rdi
not rax
sub rax, rdx
lea r8, [rax + rsi]
add r8, 0x10
and r8, 0xfffffffffffffff0
xor edx, edx
call sub.msvcrt.dll_memset
add ebx, 1
mov dword [0x140d2a640], ebx
lea rax, [r15 + r14]
add rax, 0x80
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x20], 5
lea rcx, str.gotsan.cpp
lea r8, str.__num_env_vars_______kEnvVariables__
mov edx, 0x2366
call fcn.1400c3570
mov qword [rsp + 0x20], pe_nt_image_headers64
lea rcx, str.gotsan.cpp
lea r8, str.__internal_strlen_name________kMaxEnvNameLength__
mov edx, 0x236a
call fcn.1400c3570
int3
Function at 0x1400db7e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movabs rax, 0x10000000000
lea rsi, [rax + rcx*2]
and rsi, 0xfffffffffffffff0
add rdx, rcx
lea rdi, [rax + rdx*2]
and rdi, 0xfffffffffffffff0
mov rax, qword [0x140d28598]
mov rcx, rax
test rax, rax
jne 0x1400db848
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x140d28598], rax
mov rcx, rax
test rax, rax
jne 0x1400db848
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov qword [0x140d28598], rcx
xor eax, eax
cmp rsi, rdi
jae 0x1400db871
neg rax
and rax, rsi
neg rcx
and rdi, rcx
sub rdi, rax
je 0x1400db869
mov rcx, rsi
mov rdx, rdi
call fcn.1400d8fa0
nop
add rsp, 0x58
pop rdi
pop rsi
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__beg___end______0_
mov edx, 0x2304
xor r9d, r9d
call fcn.1400c3570
int3

Function at 0x1400dbff0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov rdx, rcx
lea rcx, [0x140124dc0]
jmp fcn.1400ff0a0
Function at 0x1400efbd0
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rdx, qword [0x140124db8]
mov rcx, rax
call fcn.140112560
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x1400efc74
mov rdx, qword [0x140d28598]
test rdx, rdx
jne 0x1400efc25
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
mov qword [0x140d28598], rdx
mov rcx, rdi
call fcn.140112560
mov r14, rax
xor ecx, ecx
mov rdx, rax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400efcb1
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x140d28588]
test rbx, rbx
je 0x1400efc74
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x1400efc8d
add rdi, rax
mov qword [rsi + 8], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
mov edx, 0x19b8
xor r9d, r9d
call fcn.1400c3570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsp + 0x20], 0
lea rdx, str.Allocate
lea r8, str.allocate
mov rcx, r14
mov r9d, eax
call fcn.1400efe20
int3

Function at 0x1400efea0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
nop
cmp byte [rsi + rdi], 0
lea rdi, [rdi + 1]
jne 0x1400efeb0
mov rbx, qword [0x140124dc0]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x1400eff4e
lea rcx, [0x140124dc0]
call fcn.1400f9850
mov rcx, qword [0x140124dc8]
cmp rcx, 0xffffffffffffffff
je 0x1400eff7c
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400eff10
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400eff37
add edi, 0xffffffff
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400eff40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rbx], 0
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor ebp, ebp
mov r14, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400eff5c
add ebp, 1
cmp ebp, 0x63
ja 0x1400eff65
pause
jmp 0x1400eff6a
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x1400eff59
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x1400eff59
jmp 0x1400efecd
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400c3570
int3
Function at 0x1400f9560
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400f9616
mov r14, r8
mov rsi, rdx
mov rax, qword [rsp + 0x80]
test rax, rax
lea rbx, [rsp + 0x2c]
cmovne rbx, rax
test r9, r9
lea rdi, [rsp + 0x30]
cmovne rdi, r9
mov dword [rbx], 0
mov qword [rdi], 0
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f95cc
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f960c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
je 0x1400f95f5
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x1400f95fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
test esi, esi
setne al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx], 6
xor eax, eax
jmp 0x1400f9602
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400c3570
int3

Function at 0x1400f9760
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx]
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x1400f97f9
mov rcx, rbx
call fcn.1400f9850
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400f9827
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400f97bc
xor eax, eax
cmp rcx, 1
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test rax, rax
je 0x1400f97e0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rsi
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f97e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [rdi], 0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebp, ebp
mov r15, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400f9807
add ebp, 1
cmp ebp, 0x63
ja 0x1400f9810
pause
jmp 0x1400f9815
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x1400f9804
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x1400f9804
jmp 0x1400f9780
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
lea r8, str.__fd_____fd_t__1_______0_
mov edx, 0x24a7
xor r9d, r9d
call fcn.1400c3570
int3
Function at 0x1400fda90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov ebx, r8d
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140d28598]
test rax, rax
jne 0x1400fdac8
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x140d28598], rax
cmp rax, 0x8001
mov ecx, 0x8000
cmovae rcx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, r12
call fcn.1400f63a0
test al, al
je 0x1400fdb92
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400fdbcb
mov r14, qword [rdi + 0x10]
mov r15, qword [rdi + 0x18]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0
xor eax, eax
movabs rsi, 0x400100100002600
mov rcx, rbx
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x1400fdb63
jmp 0x1400fdb6e
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x1400fdb6e
bt rsi, rdx
jb 0x1400fdb50
test rdx, rdx
je 0x1400fdbb0
mov rcx, rdi
mov rdx, r12
call fcn.1400fcf40
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x1400fdb63
jmp 0x1400fdb6e
mov al, 1
test bl, bl
jne 0x1400fdbda
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.1400d7280
xor eax, eax
jmp 0x1400fdbda
cmp dword [0x140291904], 0
jg 0x1400fdbc3
mov dword [0x140291904], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400d8fa0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400ff050
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x1400ff093
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ff093
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400ff0a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov r15, rcx
test rdx, rdx
je 0x1400ff0e7
mov rax, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400ff0d0
cmp rax, 0xf9d
jae 0x1400ff2ca
mov r14, qword [r15]
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400ff239
mov rcx, qword [r15 + 8]
lea rax, [rcx + 1]
cmp rax, 3
ja 0x1400ff205
cmp rax, 1
je 0x1400ff205
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
je 0x1400ff221
cmp byte [rdi], 0x73
jne 0x1400ff188
mov bl, 0x73
mov edx, 1
lea rcx, str.stderr
nop dword [rax]
test bl, bl
je 0x1400ff221
movzx ebx, byte [rdi + rdx]
lea rsi, [rdx + 1]
cmp bl, byte [rdx + rcx]
mov rdx, rsi
je 0x1400ff140
mov dl, 0x73
mov eax, 1
lea rcx, str.stdout
mov ebx, 1
nop dword [rax + rax]
test dl, dl
je 0x1400ff221
movzx edx, byte [rdi + rbx]
lea rsi, [rbx + 1]
cmp dl, byte [rbx + rcx]
mov rbx, rsi
je 0x1400ff170
lea rsi, [r15 + 0x10]
lea r8, [0x14022b526]
mov edx, 0x1000
mov rcx, rsi
mov r9, rdi
call fcn.1400defb0
cmp byte [r15 + 0x10], 0
je 0x1400ff225
lea rdi, [r15 + 0x11]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1400ff1d6
mov rcx, rsi
xor edx, edx
call r12
test eax, eax
je 0x1400ff268
mov byte [rdi], bl
add rdi, 1
movzx ebx, byte [rdi]
cmp bl, 0x2f
je 0x1400ff1f0
cmp bl, 0x5c
je 0x1400ff1f0
test bl, bl
jne 0x1400ff1d2
jmp 0x1400ff225
mov byte [rdi], 0
mov rcx, rsi
call r13
cmp eax, 0xffffffff
je 0x1400ff1c0
and eax, 0x10
jne 0x1400ff1d0
jmp 0x1400ff1c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
jne 0x1400ff129
mov qword [r15 + 8], rax
mov byte [r14], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
mov rbx, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400ff247
add esi, 1
cmp esi, 0x63
ja 0x1400ff250
pause
jmp 0x1400ff254
xor ecx, ecx
call rbx
cmp byte [r14], 0
jne 0x1400ff244
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400ff244
jmp 0x1400ff0f7
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_create_directory:
mov ecx, 2
mov r8d, 0x1f
xor r9d, r9d
call fcn.1400f9560
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [r15 + r8 + 0x11], 0
lea r8, [r8 + 1]
jne 0x1400ff2a0
mov qword [rsp + 0x20], 0
mov ecx, 2
mov rdx, rsi
xor r9d, r9d
call fcn.1400f9560
call fcn.1400d72b0
movsx edx, byte [rdi]
movsx r8d, byte [rdi + 1]
movsx r9d, byte [rdi + 2]
movsx eax, byte [rdi + 3]
movsx ecx, byte [rdi + 4]
movsx ebx, byte [rdi + 5]
movsx esi, byte [rdi + 6]
movsx edi, byte [rdi + 7]
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rcx, str.ERROR:_Path_is_too_long:__c_c_c_c_c_c_c_c..._n
call fcn.1400ef850
call fcn.1400d72b0
int3
Function at 0x1401078c0
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 fcn.1401094f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401094f0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1401084f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1411f0da8]
test eax, eax
je 0x14010858a
lea rax, [0x1411f0d80]
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1411f0db0]
mov qword [rbp - 8], rax
jmp 0x14010856e
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 0x140108562
cmp qword [rbp - 0x10], 0
je 0x140108562
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 0x140108528
lea rax, [0x1411f0d80]
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
call rax
jmp 0x14010858b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140108690
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 0x1401086b8
mov eax, 0
jmp 0x140108706
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 0x1401086e1
mov eax, 0
jmp 0x140108706
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 0x140108701
mov eax, 0
jmp 0x140108706
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14010870c
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 0x14010878a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140108781
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 0x140108781
mov rax, qword [rbp - 8]
jmp 0x14010879f
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 0x140108754
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14010a540
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
xor edi, edi
lea r14, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x14010a584
mov ecx, 0x100000
call fcn.140112560
mov edx, 0x10000
mov rcx, rbx
call fcn.1400d8fa0
add rdi, 1
cmp rdi, 0x8000
je 0x14010a5b0
mov rbx, qword [rsi + rdi*8 + 0x400010]
test rbx, rbx
je 0x14010a577
mov rdx, qword [0x140d28598]
test rdx, rdx
jne 0x14010a560
mov rcx, r14
call r15
mov edx, dword [rsp + 0x24]
mov qword [0x140d28598], rdx
jmp 0x14010a560
mov byte [rsi + 0x400008], 0
lea rdi, [rsi + 0x400010]
test dil, 8
jne 0x14010a5ed
lea rax, [rdi + 0x40000]
lea r8, [rdi + 0x10]
cmp rax, r8
cmova r8, rax
sub r8, rdi
add r8, 0xf
and r8, 0xfffffffffffffff0
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x14010a63c
xor eax, eax
nop
mov byte [rsi + rax + 0x400010], 0
mov byte [rsi + rax + 0x400011], 0
mov byte [rsi + rax + 0x400012], 0
mov byte [rsi + rax + 0x400013], 0
mov byte [rsi + rax + 0x400014], 0
mov byte [rsi + rax + 0x400015], 0
mov byte [rsi + rax + 0x400016], 0
mov byte [rsi + rax + 0x400017], 0
add rax, 8
cmp rax, 0x40000
jne 0x14010a5f0
test sil, 8
jne 0x14010a671
lea rax, [rdi + 0x40000]
lea r8, [rdi - 0x400000]
cmp rax, r8
cmova r8, rax
sub r8, rdi
add r8, 0x40001f
and r8, 0xfffffffffffffff0
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
jmp 0x14010a6c7
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
mov byte [rsi + rax], 0
mov byte [rsi + rax + 1], 0
mov byte [rsi + rax + 2], 0
mov byte [rsi + rax + 3], 0
mov byte [rsi + rax + 4], 0
mov byte [rsi + rax + 5], 0
mov byte [rsi + rax + 6], 0
mov byte [rsi + rax + 7], 0
mov byte [rsi + rax + 8], 0
mov byte [rsi + rax + 9], 0
mov byte [rsi + rax + 0xa], 0
mov byte [rsi + rax + 0xb], 0
add rax, 0xc
cmp rax, 0x440010
jne 0x14010a680
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14010a7d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, r8
mov r12, rdx
mov r14, rcx
test r8, r8
je 0x14010a7f2
mov byte [r15], 0
mov r8d, dword [r12 + 8]
xor esi, esi
test r8, r8
je 0x14010a9f9
mov rbp, qword [r12]
test rbp, rbp
je 0x14010a9f9
movabs rax, 0xc6a4a7935bd1e995
movabs rdx, 0x35253c9ade8f4ca8
imul rdx, r8
movabs rbx, 0x9747b28c9747b28c
xor rbx, rdx
cmp r8d, 1
jne 0x14010a83e
xor edi, edi
jmp 0x14010a895
mov edx, r8d
and edx, 0xfffffffe
xor edi, edi
nop word cs:[rax + rax]
mov rcx, qword [rbp + rdi*8]
imul rcx, rax
mov rsi, rcx
shr rsi, 0x2f
xor rsi, rcx
imul rsi, rax
xor rsi, rbx
imul rsi, rax
mov rcx, qword [rbp + rdi*8 + 8]
imul rcx, rax
mov rbx, rcx
shr rbx, 0x2f
xor rbx, rcx
imul rbx, rax
xor rbx, rsi
imul rbx, rax
add rdi, 2
cmp rdx, rdi
jne 0x14010a850
test r8b, 1
je 0x14010a8bc
mov rdx, qword [rbp + rdi*8]
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
xor rcx, rbx
imul rcx, rax
mov rbx, rcx
mov ecx, dword [r12 + 0xc]
imul rcx, rax
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, rax
xor rdx, rbx
imul rdx, rax
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rax
mov rdi, rcx
shr rdi, 0x2f
xor rdi, rcx
mov eax, edi
and eax, 0xfffff
lea rbx, [r14 + rax*4]
mov r13d, 0x7fffffff
and r13d, dword [r14 + rax*4]
lea rcx, [r14 + 0x400008]
mov ebp, r13d
nop word cs:[rax + rax]
nop dword [rax + rax]
test ebp, ebp
je 0x14010a963
mov esi, ebp
mov ebp, ebp
mov rdx, rbp
shr rdx, 0x10
mov rax, qword [r14 + rdx*8 + 0x400010]
test rax, rax
je 0x14010a952
movzx edx, bp
shl rdx, 4
mov ebp, dword [rax + rdx + 8]
cmp qword [rax + rdx], rdi
jne 0x14010a920
jmp 0x14010a9f9
mov qword [rsp + 0x28], rcx
call fcn.140115ab0
mov rcx, qword [rsp + 0x28]
jmp 0x14010a93c
mov rbp, rcx
mov qword [rsp + 0x28], r15
mov rcx, rbx
call fcn.14010aa40
mov r15d, eax
cmp eax, r13d
je 0x14010a9a3
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, r15d
mov r9, rdi
call fcn.140115ed0
test eax, eax
je 0x14010a9a3
mov esi, eax
mov dword [rbx], r15d
jmp 0x14010a9f9
mov esi, 1
lock xadd dword [r14 + 0x400000], esi
add esi, 1
js 0x14010aa0c
mov r13, rbx
mov rdx, rsi
shr rdx, 0x10
mov rbx, qword [r14 + rdx*8 + 0x400010]
test rbx, rbx
je 0x14010aa33
movzx ebp, si
shl rbp, 4
lea rcx, [rbx + rbp]
mov r8, r12
mov r9, rdi
call fcn.1400fc640
mov dword [rbx + rbp + 8], r15d
mov dword [r13], esi
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14010a9f9
mov byte [rax], 1
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, esi
and r9d, 0x7fffffff
mov qword [rsp + 0x20], rsi
lea rcx, str....._sanitizer_common_sanitizer_stackdepotbase.h
lea r8, str.__s__kUnlockMask______s__
mov edx, 0x8c
call fcn.1400c3570
mov rcx, rbp
call fcn.140115ab0
mov rbx, rax
jmp 0x14010a9cd