joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x14006c334
jb 0x14006c393
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 1
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 2
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 2
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 4
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 4
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 8
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 8
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 0x10
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 0x10
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 0x20
call fcn.14006c140
aeskeygenassist xmm1, xmm0, 0x20
call fcn.14006c160
aeskeygenassist xmm1, xmm2, 0x40
call fcn.14006c140
jmp 0x14006c401
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.14006c0a0
aeskeygenassist xmm1, xmm2, 2
call fcn.14006c100
aeskeygenassist xmm1, xmm2, 4
call fcn.14006c0a0
aeskeygenassist xmm1, xmm2, 8
call fcn.14006c100
aeskeygenassist xmm1, xmm2, 0x10
call fcn.14006c0a0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.14006c100
aeskeygenassist xmm1, xmm2, 0x40
call fcn.14006c0a0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.14006c100
jmp 0x14006c401
aeskeygenassist xmm1, xmm0, 1
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 2
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 4
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 8
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x10
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x20
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x40
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x80
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.14006c060
aeskeygenassist xmm1, xmm0, 0x36
call fcn.14006c060
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x14006c40e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x140084450
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r9d, dword [0x140c5ef80]
test r9d, r9d
jle 0x1400844e4
mov r10b, byte [rsi]
lea r8, [0x140c5ef90]
xor ecx, ecx
mov rbx, r8
jmp 0x140084490
add rcx, 1
add rbx, 0x807f
cmp rcx, r9
je 0x1400844e4
imul rdx, rcx, 0x807f
cmp r10b, byte [rdx + r8]
jne 0x140084480
mov edi, 1
mov edx, r10d
nop word cs:[rax + rax]
nop
test dl, dl
je 0x1400844c6
movzx edx, byte [rsi + rdi]
lea rax, [rdi + 1]
cmp dl, byte [rbx + rdi]
mov rdi, rax
je 0x1400844b0
jmp 0x140084480
mov eax, ecx
imul rax, rax, 0x807f
lea rcx, [0x140c5ef90]
add rax, rcx
add rax, 0x80
jmp 0x14008467d
movsxd r9, r9d
cmp r9d, 5
jae 0x140084689
imul rax, r9, 0x807f
lea r14, [0x140c5ef90]
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 0x1400845a4
mov r9, 0xffffffffffffffff
nop
cmp byte [rsi + r9 + 1], 0
lea r9, [r9 + 1]
jne 0x140084530
cmp r9, 0x80
jae 0x1400846aa
movsxd rbx, dword [0x140c5ef80]
imul r15, rbx, 0x807f
lea rdx, [r14 + r15]
mov eax, 1
movzx ecx, byte [rsi + rax - 1]
test cl, cl
je 0x1400845ab
mov byte [rdx + rax - 1], cl
movzx ecx, byte [rsi + rax]
test cl, cl
je 0x1400845b9
mov byte [rdx + rax], cl
add rax, 2
cmp rax, 0x81
jne 0x140084560
lea rcx, [r15 + r14]
add rcx, 0x80
test cl, 0xf
jne 0x14008466a
mov eax, pe_nt_image_headers64
xor esi, esi
jmp 0x14008462f
xor eax, eax
jmp 0x14008467d
lea rcx, [rax + rdx]
add rcx, 0xffffffffffffffff
add rax, 0xffffffffffffffff
jmp 0x1400845bd
lea rcx, [rdx + rax]
mov esi, pe_nt_image_headers64
sub rsi, rax
mov edi, ecx
or edi, esi
test dil, 0xf
je 0x14008462f
cmp rax, 0x80
je 0x14008466a
mov edx, esi
and edx, 7
add rax, 0xffffffffffffff87
cmp rax, 7
jb 0x140084619
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 0x1400845f0
test rdx, rdx
je 0x14008466a
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x140084620
jmp 0x14008466a
and rsi, 0xfffffffffffffff8
lea rdi, [rcx + rsi]
cmp rdi, rcx
jbe 0x14008466a
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 [0x140c5ef80], 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.1400729b0
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.1400729b0
int3
Function at 0x14008ac20
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 [0x140c5ced8]
mov rcx, rax
test rax, rax
jne 0x14008ac88
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x140c5ced8], rax
mov rcx, rax
test rax, rax
jne 0x14008ac88
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov qword [0x140c5ced8], rcx
xor eax, eax
cmp rsi, rdi
jae 0x14008acb1
neg rax
and rax, rsi
neg rcx
and rdi, rcx
sub rdi, rax
je 0x14008aca9
mov rcx, rsi
mov rdx, rdi
call fcn.1400883e0
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.1400729b0
int3

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

Disassembly:
mov rdx, rcx
lea rcx, [0x1400d7300]
jmp fcn.1400ae4e0
Function at 0x14009f010
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 [0x1400d72f8]
mov rcx, rax
call fcn.1400ca590
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x14009f0b4
mov rdx, qword [0x140c5ced8]
test rdx, rdx
jne 0x14009f065
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
mov qword [0x140c5ced8], rdx
mov rcx, rdi
call fcn.1400ca590
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 0x14009f0f1
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x140c5cec8]
test rbx, rbx
je 0x14009f0b4
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x14009f0cd
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.1400729b0
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.14009f260
int3

Function at 0x14009f2e0
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 0x14009f2f0
mov rbx, qword [0x1400d7300]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x14009f38e
lea rcx, [0x1400d7300]
call fcn.1400a8c90
mov rcx, qword [0x1400d7308]
cmp rcx, 0xffffffffffffffff
je 0x14009f3bc
lea rax, [rcx - 1]
cmp rax, 1
ja 0x14009f350
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 0x14009f377
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 0x14009f380
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 0x14009f39c
add ebp, 1
cmp ebp, 0x63
ja 0x14009f3a5
pause
jmp 0x14009f3aa
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x14009f399
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x14009f399
jmp 0x14009f30d
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.1400729b0
int3
Function at 0x1400a89a0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400a8a56
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 0x1400a8a0c
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 0x1400a8a4c
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 0x1400a8a35
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x1400a8a3d
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 0x1400a8a42
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.1400729b0
int3

Function at 0x1400a8ba0
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 0x1400a8c39
mov rcx, rbx
call fcn.1400a8c90
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400a8c67
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400a8bfc
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 0x1400a8c20
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 0x1400a8c29
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 0x1400a8c47
add ebp, 1
cmp ebp, 0x63
ja 0x1400a8c50
pause
jmp 0x1400a8c55
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x1400a8c44
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x1400a8c44
jmp 0x1400a8bc0
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.1400729b0
int3
Function at 0x1400aced0
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 [0x140c5ced8]
test rax, rax
jne 0x1400acf08
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x140c5ced8], 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.1400a57e0
test al, al
je 0x1400acfd2
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400ad00b
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 0x1400acfa3
jmp 0x1400acfae
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x1400acfae
bt rsi, rdx
jb 0x1400acf90
test rdx, rdx
je 0x1400acff0
mov rcx, rdi
mov rdx, r12
call fcn.1400ac380
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x1400acfa3
jmp 0x1400acfae
mov al, 1
test bl, bl
jne 0x1400ad01a
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.1400866c0
xor eax, eax
jmp 0x1400ad01a
cmp dword [0x1401c6244], 0
jg 0x1400ad003
mov dword [0x1401c6244], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400883e0
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400ae490
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 0x1400ae4d3
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 0x1400ae4d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400ae4e0
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 0x1400ae527
mov rax, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400ae510
cmp rax, 0xf9d
jae 0x1400ae70a
mov r14, qword [r15]
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400ae679
mov rcx, qword [r15 + 8]
lea rax, [rcx + 1]
cmp rax, 3
ja 0x1400ae645
cmp rax, 1
je 0x1400ae645
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
je 0x1400ae661
cmp byte [rdi], 0x73
jne 0x1400ae5c8
mov bl, 0x73
mov edx, 1
lea rcx, str.stderr
nop dword [rax]
test bl, bl
je 0x1400ae661
movzx ebx, byte [rdi + rdx]
lea rsi, [rdx + 1]
cmp bl, byte [rdx + rcx]
mov rdx, rsi
je 0x1400ae580
mov dl, 0x73
mov eax, 1
lea rcx, str.stdout
mov ebx, 1
nop dword [rax + rax]
test dl, dl
je 0x1400ae661
movzx edx, byte [rdi + rbx]
lea rsi, [rbx + 1]
cmp dl, byte [rbx + rcx]
mov rbx, rsi
je 0x1400ae5b0
lea rsi, [r15 + 0x10]
lea r8, [0x140163706]
mov edx, 0x1000
mov rcx, rsi
mov r9, rdi
call fcn.14008e3f0
cmp byte [r15 + 0x10], 0
je 0x1400ae665
lea rdi, [r15 + 0x11]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1400ae616
mov rcx, rsi
xor edx, edx
call r12
test eax, eax
je 0x1400ae6a8
mov byte [rdi], bl
add rdi, 1
movzx ebx, byte [rdi]
cmp bl, 0x2f
je 0x1400ae630
cmp bl, 0x5c
je 0x1400ae630
test bl, bl
jne 0x1400ae612
jmp 0x1400ae665
mov byte [rdi], 0
mov rcx, rsi
call r13
cmp eax, 0xffffffff
je 0x1400ae600
and eax, 0x10
jne 0x1400ae610
jmp 0x1400ae600
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
jne 0x1400ae569
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 0x1400ae687
add esi, 1
cmp esi, 0x63
ja 0x1400ae690
pause
jmp 0x1400ae694
xor ecx, ecx
call rbx
cmp byte [r14], 0
jne 0x1400ae684
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400ae684
jmp 0x1400ae537
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_create_directory:
mov ecx, 2
mov r8d, 0x1f
xor r9d, r9d
call fcn.1400a89a0
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [r15 + r8 + 0x11], 0
lea r8, [r8 + 1]
jne 0x1400ae6e0
mov qword [rsp + 0x20], 0
mov ecx, 2
mov rdx, rsi
xor r9d, r9d
call fcn.1400a89a0
call fcn.1400866f0
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.14009ec90
call fcn.1400866f0
int3
Function at 0x1400b63d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400c15a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400c15a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400b6440
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x141125694]
mov r12, rcx
test ebx, ebx
jle 0x1400b6570
mov rax, qword [0x141125698]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400b648c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400b6513
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400b6470
mov rcx, r12
call fcn.1400b6de0
mov rsi, rax
test rax, rax
je 0x1400b6592
mov rax, qword [0x141125698]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400b6f10
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141125698]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400b6577
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400b650c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400b6520
add dword [0x141125694], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x141125698]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400b650c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400b63d0
nop dword [rax]
xor ebx, ebx
jmp 0x1400b6497
mov rax, qword [0x141125698]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400b63d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400b63d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400b6a50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x141125700]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rbx, qword [0x1411256e0]
test rbx, rbx
je 0x1400b6aa4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400b6a9b
test r12, r12
je 0x1400b6a9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400b6a80
lea rcx, [0x141125700]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
Function at 0x1400b6de0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401654a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400b6e00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400b6e08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400b6e00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400b6e55
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400b6e4c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400b6e00
add rax, 0x28
cmp rax, r9
jne 0x1400b6e38
xor eax, eax
ret

Function at 0x1400b6e60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401654a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400b6e80
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400b6e88
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400b6e80
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400b6f10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401654a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400b6f30
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400b6f38
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400b88f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140165520]
mov rax, qword [rsi]
test rax, rax
je 0x1400b8980
cmp qword [rax + 0x30], 0
jne 0x1400b89a0
lea rbx, [0x1400dd3c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400b8950
cmp qword [rax + 0x30], 0
jne 0x1400b8970
lea rdx, [0x1400dd3c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400ce260
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400bd7f0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400b8932
test rax, rax
jne 0x1400b8970
call fcn.1400bd7f0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400b8940
call fcn.1400bd7f0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400b8910
test rax, rax
jne 0x1400b89a0
call fcn.1400bd7f0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400b891b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [class.__tsan]
ud2
Function at 0x1400b89b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400b8ac2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400b8a9a
add rax, 1
cmp rax, 0x6b
je 0x1400b8ab7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400b8a90
cmp edx, 0x6a
je 0x1400b8ab7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400b8aab