joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ee00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x14004ef77
movzx edx, byte [rax]
test edx, edx
jne 0x14004ee34
nop dword [rax]
test r8b, r8b
jne 0x14004ee34
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x14004ee47
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x14004ef37
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x14004ef25
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x14004ef17
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x14004ee9d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x14004eee0
mov eax, 1
cmp rax, rbx
ja 0x14004eecb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.140060520
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x14004ef0f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x14004eed3
mov rcx, r11
mov eax, r12d
jmp 0x14004eea2
mov rcx, rbx
call fcn.140060460
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140060460
mov eax, r8d
mov rcx, rbx
call fcn.140060520
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x14004ef6d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x14004ef30
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x14004ee4d
mov eax, edx
mov rcx, rbx
call fcn.140060460
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140060460
nop
int3
Function at 0x140056600
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400566af
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x140056700]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.14005e080
xorps xmm15, xmm15
mov r14, qword [0x1402ad548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.14005e1c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.140056600
Function at 0x14005ffa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140003be3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.140009dc0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14005e1c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x140003bc0
cmp byte [0x1402ad2e9], 0
je 0x14005ffb5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x14005d200
jmp 0x140003bc0

Function at 0x14005ffc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x1402ad5e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x1402ad2e9], 0
je 0x14005fff5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x1402ad8a0]
aesenc xmm0, xmmword [0x1402ad8b0]
aesenc xmm0, xmmword [0x1402ad8c0]
movq rax, xmm0
ret
jmp 0x140009fe0

Function at 0x140060000
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x1402ad5e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x1402ad2e9], 0
je 0x140060036
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x1402ad8a0]
aesenc xmm0, xmmword [0x1402ad8b0]
aesenc xmm0, xmmword [0x1402ad8c0]
movq rax, xmm0
ret
jmp 0x14000a040
Function at 0x14006bc00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14006bd36
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rax, qword [rsp + 0x58]
call fcn.1400652e0
mov rcx, qword [rsp + 0x60]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0
nop
call fcn.140003b20
xorps xmm15, xmm15
mov r14, qword [0x1402ad548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
nop dword [rax]
jne 0x14006bd16
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx + 1]
mov qword [rsp + 0x30], rdx
lea rax, [0x14011ff00]
xor ebx, ebx
mov rcx, rdx
call fcn.140047d00
mov rbx, qword [rsp + 0x68]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
call fcn.14006c100
mov qword [rsp + 0x28], rbx
lea rdx, [rbx + 1]
cmp rcx, rdx
jae 0x14006bccd
mov rbx, rdx
mov edi, 1
lea rsi, [0x14011ff00]
nop dword [rax + rax]
call fcn.140047de0
mov rdx, rbx
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rax
lea rsi, [rax + rbx*2]
mov rax, rsi
call fcn.140061800
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], 0
call fcn.140065320
mov rax, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor edi, edi
xor esi, esi
add rsp, 0x50
pop rbp
ret
call fcn.140065320
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x1401dd738]
lea rsi, [0x1401dd110]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14005e1c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14006bc00
Function at 0x1400ba900
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r9d, dword [0x140d4a580]
test r9d, r9d
jle 0x1400ba994
mov r10b, byte [rsi]
lea r8, [0x140d4a590]
xor ecx, ecx
mov rbx, r8
jmp 0x1400ba940
add rcx, 1
add rbx, 0x807f
cmp rcx, r9
je 0x1400ba994
imul rdx, rcx, 0x807f
cmp r10b, byte [rdx + r8]
jne 0x1400ba930
mov edi, 1
mov edx, r10d
nop word cs:[rax + rax]
nop
test dl, dl
je 0x1400ba976
movzx edx, byte [rsi + rdi]
lea rax, [rdi + 1]
cmp dl, byte [rbx + rdi]
mov rdi, rax
je 0x1400ba960
jmp 0x1400ba930
mov eax, ecx
imul rax, rax, 0x807f
lea rcx, [0x140d4a590]
add rax, rcx
add rax, 0x80
jmp 0x1400bab2d
movsxd r9, r9d
cmp r9d, 5
jae 0x1400bab39
imul rax, r9, 0x807f
lea r14, [0x140d4a590]
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 0x1400baa54
mov r9, 0xffffffffffffffff
nop
cmp byte [rsi + r9 + 1], 0
lea r9, [r9 + 1]
jne 0x1400ba9e0
cmp r9, 0x80
jae 0x1400bab5a
movsxd rbx, dword [0x140d4a580]
imul r15, rbx, 0x807f
lea rdx, [r14 + r15]
mov eax, 1
movzx ecx, byte [rsi + rax - 1]
test cl, cl
je 0x1400baa5b
mov byte [rdx + rax - 1], cl
movzx ecx, byte [rsi + rax]
test cl, cl
je 0x1400baa69
mov byte [rdx + rax], cl
add rax, 2
cmp rax, 0x81
jne 0x1400baa10
lea rcx, [r15 + r14]
add rcx, 0x80
test cl, 0xf
jne 0x1400bab1a
mov eax, pe_nt_image_headers64
xor esi, esi
jmp 0x1400baadf
xor eax, eax
jmp 0x1400bab2d
lea rcx, [rax + rdx]
add rcx, 0xffffffffffffffff
add rax, 0xffffffffffffffff
jmp 0x1400baa6d
lea rcx, [rdx + rax]
mov esi, pe_nt_image_headers64
sub rsi, rax
mov edi, ecx
or edi, esi
test dil, 0xf
je 0x1400baadf
cmp rax, 0x80
je 0x1400bab1a
mov edx, esi
and edx, 7
add rax, 0xffffffffffffff87
cmp rax, 7
jb 0x1400baac9
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 0x1400baaa0
test rdx, rdx
je 0x1400bab1a
xor eax, eax
mov byte [rcx + rax], 0
add rax, 1
cmp rdx, rax
jne 0x1400baad0
jmp 0x1400bab1a
and rsi, 0xfffffffffffffff8
lea rdi, [rcx + rsi]
cmp rdi, rcx
jbe 0x1400bab1a
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 [0x140d4a580], 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.1400a8e60
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.1400a8e60
int3
Function at 0x1400c10d0
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 [0x140d484d8]
mov rcx, rax
test rax, rax
jne 0x1400c1138
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov qword [0x140d484d8], rax
mov rcx, rax
test rax, rax
jne 0x1400c1138
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov qword [0x140d484d8], rcx
xor eax, eax
cmp rsi, rdi
jae 0x1400c1161
neg rax
and rax, rsi
neg rcx
and rdi, rcx
sub rdi, rax
je 0x1400c1159
mov rcx, rsi
mov rdx, rdi
call fcn.1400be890
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.1400a8e60
int3

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

Disassembly:
mov rdx, rcx
lea rcx, str.L__A
jmp fcn.1400e4990
Function at 0x1400d54c0
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 [0x140111298]
mov rcx, rax
call fcn.140100550
mov rdi, rax
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
cmp rdx, rdi
jge 0x1400d5564
mov rdx, qword [0x140d484d8]
test rdx, rdx
jne 0x1400d5515
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
mov qword [0x140d484d8], rdx
mov rcx, rdi
call fcn.140100550
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 0x1400d55a1
mov qword [rsi + 8], rax
mov rcx, r14
add rcx, rax
mov qword [rsi], rcx
mov rbx, qword [0x140d484c8]
test rbx, rbx
je 0x1400d5564
mov rcx, rax
mov rdx, r14
call rbx
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rcx, rax
cmp rcx, rdi
jl 0x1400d557d
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.1400a8e60
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.1400d5710
int3

Function at 0x1400d5790
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 0x1400d57a0
mov rbx, qword [str.L__A]
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x1400d583e
lea rcx, str.L__A
call fcn.1400df140
mov rcx, qword [0x1401112a8]
cmp rcx, 0xffffffffffffffff
je 0x1400d586c
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400d5800
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 0x1400d5827
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 0x1400d5830
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 0x1400d584c
add ebp, 1
cmp ebp, 0x63
ja 0x1400d5855
pause
jmp 0x1400d585a
xor ecx, ecx
call r14
cmp byte [rbx], 0
jne 0x1400d5849
mov al, 1
xchg byte [rbx], al
test al, al
jne 0x1400d5849
jmp 0x1400d57bd
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.1400a8e60
int3
Function at 0x1400dee50
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400def06
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 0x1400deebc
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 0x1400deefc
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 0x1400deee5
mov eax, dword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x1400deeed
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 0x1400deef2
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.1400a8e60
int3

Function at 0x1400df050
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 0x1400df0e9
mov rcx, rbx
call fcn.1400df140
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400df117
lea rax, [rcx - 1]
cmp rax, 1
ja 0x1400df0ac
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 0x1400df0d0
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 0x1400df0d9
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 0x1400df0f7
add ebp, 1
cmp ebp, 0x63
ja 0x1400df100
pause
jmp 0x1400df105
xor ecx, ecx
call r15
cmp byte [rdi], 0
jne 0x1400df0f4
mov al, 1
xchg byte [rdi], al
test al, al
jne 0x1400df0f4
jmp 0x1400df070
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.1400a8e60
int3
Function at 0x1400e3380
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 [0x140d484d8]
test rax, rax
jne 0x1400e33b8
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x4c]
mov qword [0x140d484d8], 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.1400dbc90
test al, al
je 0x1400e3482
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400e34bb
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 0x1400e3453
jmp 0x1400e345e
mov qword [rdi + 0x18], rax
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
ja 0x1400e345e
bt rsi, rdx
jb 0x1400e3440
test rdx, rdx
je 0x1400e34a0
mov rcx, rdi
mov rdx, r12
call fcn.1400e2830
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
add rax, 1
movzx edx, byte [rcx + rax - 1]
cmp rdx, 0x3a
jbe 0x1400e3453
jmp 0x1400e345e
mov al, 1
test bl, bl
jne 0x1400e34ca
mov r8d, dword [rsp + 0x34]
lea rcx, str.Failed_to_read_options_from__s:_error__d_n
mov rdx, r12
call fcn.1400bcb70
xor eax, eax
jmp 0x1400e34ca
cmp dword [0x1402b1844], 0
jg 0x1400e34b3
mov dword [0x1402b1844], 1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400be890
mov al, 1
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400e4940
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 0x1400e4983
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 0x1400e4983
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400e4990
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 0x1400e49d7
mov rax, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400e49c0
cmp rax, 0xf9d
jae 0x1400e4bba
mov r14, qword [r15]
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400e4b29
mov rcx, qword [r15 + 8]
lea rax, [rcx + 1]
cmp rax, 3
ja 0x1400e4af5
cmp rax, 1
je 0x1400e4af5
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
je 0x1400e4b11
cmp byte [rdi], 0x73
jne 0x1400e4a78
mov bl, 0x73
mov edx, 1
lea rcx, str.stderr
nop dword [rax]
test bl, bl
je 0x1400e4b11
movzx ebx, byte [rdi + rdx]
lea rsi, [rdx + 1]
cmp bl, byte [rdx + rcx]
mov rdx, rsi
je 0x1400e4a30
mov dl, 0x73
mov eax, 1
lea rcx, str.stdout
mov ebx, 1
nop dword [rax + rax]
test dl, dl
je 0x1400e4b11
movzx edx, byte [rdi + rbx]
lea rsi, [rbx + 1]
cmp dl, byte [rbx + rcx]
mov rbx, rsi
je 0x1400e4a60
lea rsi, [r15 + 0x10]
lea r8, [0x14024d1c6]
mov edx, 0x1000
mov rcx, rsi
mov r9, rdi
call fcn.1400c48a0
cmp byte [r15 + 0x10], 0
je 0x1400e4b15
lea rdi, [r15 + 0x11]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r12, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1400e4ac6
mov rcx, rsi
xor edx, edx
call r12
test eax, eax
je 0x1400e4b58
mov byte [rdi], bl
add rdi, 1
movzx ebx, byte [rdi]
cmp bl, 0x2f
je 0x1400e4ae0
cmp bl, 0x5c
je 0x1400e4ae0
test bl, bl
jne 0x1400e4ac2
jmp 0x1400e4b15
mov byte [rdi], 0
mov rcx, rsi
call r13
cmp eax, 0xffffffff
je 0x1400e4ab0
and eax, 0x10
jne 0x1400e4ac0
jmp 0x1400e4ab0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15 + 8], 0xffffffffffffffff
mov eax, 2
test rdi, rdi
jne 0x1400e4a19
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 0x1400e4b37
add esi, 1
cmp esi, 0x63
ja 0x1400e4b40
pause
jmp 0x1400e4b44
xor ecx, ecx
call rbx
cmp byte [r14], 0
jne 0x1400e4b34
mov al, 1
xchg byte [r14], al
test al, al
jne 0x1400e4b34
jmp 0x1400e49e7
mov qword [rsp + 0x20], 0
lea rdx, str.ERROR:_Cant_create_directory:
mov ecx, 2
mov r8d, 0x1f
xor r9d, r9d
call fcn.1400dee50
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [r15 + r8 + 0x11], 0
lea r8, [r8 + 1]
jne 0x1400e4b90
mov qword [rsp + 0x20], 0
mov ecx, 2
mov rdx, rsi
xor r9d, r9d
call fcn.1400dee50
call fcn.1400bcba0
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.1400d5140
call fcn.1400bcba0
int3
Function at 0x1400ec390
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.1400f7560
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.1400f7560
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 0x1400ec400
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x141210bf4]
mov r12, rcx
test ebx, ebx
jle 0x1400ec530
mov rax, qword [0x141210bf8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400ec44c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400ec4d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400ec430
mov rcx, r12
call fcn.1400ecda0
mov rsi, rax
test rax, rax
je 0x1400ec552
mov rax, qword [0x141210bf8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400eced0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x141210bf8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ec537
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400ec4cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400ec4e0
add dword [0x141210bf4], 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 [0x141210bf8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400ec4cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400ec390
nop dword [rax]
xor ebx, ebx
jmp 0x1400ec457
mov rax, qword [0x141210bf8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400ec390
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400ec390
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400eca10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x141210c60]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
mov rbx, qword [0x141210c40]
test rbx, rbx
je 0x1400eca64
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 0x1400eca5b
test r12, r12
je 0x1400eca5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400eca40
lea rcx, [0x141210c60]
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]