joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
lea r15, [0x140041130]
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x20], ebp
mov r14d, ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], r15
jb 0x14003a632
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14003a65a
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14003a3f0
mov r14d, dword [rsp + 0x20]
mov ebx, dword [rax]
jmp 0x14003a6cc
bt ebx, 0xa
jae 0x14003a6c3
mov rcx, rsi
call fcn.14003a190
test al, al
je 0x14003a67e
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x14003a6cc
mov ebx, 9
test rdi, rdi
je 0x14003a692
mov dword [rdi], ebp
mov byte [rdi + 4], bpl
mov qword [rdi + 8], r15
cmp ebx, 1
jbe 0x14003a6a7
mov r8, rdi
mov edx, ebx
mov rcx, rsi
call fcn.14003a6f0
mov rbp, rax
mov rax, rbp
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
jne 0x14003a683
test r14d, r14d
je 0x14003a683
lea r9, str.boost::filesystem::remove_all
mov r8, rdi
mov rdx, rsi
mov ecx, r14d
call fcn.14003c650
xor eax, eax
jmp 0x14003a6aa

Function at 0x14003a9c0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
cmp edx, 1
jne 0x14003a9fe
test rbx, rbx
je 0x14003a9f1
lea rax, [0x140041130]
mov dword [r8], 0
mov qword [r8 + 8], rax
mov byte [r8 + 4], 0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x14003aa1a
cmp qword [rcx + 0x18], 8
jb 0x14003aa12
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14003aa2a
cmp qword [rcx + 0x18], 8
jb 0x14003aa24
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003aa85
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x14003aa49
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14003aa85
cmp eax, 0x7b
je 0x14003aa85
cmp eax, 0x57
je 0x14003aa85
cmp eax, 0xa1
je 0x14003aa85
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14003aa85
lea r9, str.boost::filesystem::remove
mov r8, rbx
mov rdx, rdi
mov ecx, eax
call fcn.14003c650
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x14003aa9f
lea rax, [0x140041130]
mov byte [rbx + 4], 0
mov qword [rbx + 8], rax
mov dword [rbx], 0
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14003aab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003aaf0
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14003ab10
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14003a3f0
jmp 0x14003ac34
mov edx, ebp
mov rcx, rsi
call fcn.14003a290
mov r15d, eax
xor r12d, r12d
bt ebp, 0xa
jae 0x14003abf2
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14003ab37
mov rdx, qword [rsi]
movdqa xmm0, xmmword [0x140041580]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r12w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14003ab52
lea rcx, [rsp + 0x50]
call fcn.140002c80
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.1400027d0
nop
cmp rbx, 0xffffffffffffffff
jne 0x14003abc6
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14003a3f0
nop
jmp 0x14003ac34
mov rcx, rsi
call fcn.14003a190
test al, al
jne 0x14003abe8
mov dword [rdi], 9
mov dword [rdi + 4], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14003ac34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x14003ac0a
mov dword [r14], r12d
mov byte [r14 + 4], 0
lea rax, [0x140041130]
mov qword [r14 + 8], rax
and ebp, 0x10
je 0x14003ac15
mov eax, dword [rsp + 0x40]
jmp 0x14003ac1d
mov eax, r15d
mov r15d, dword [rsp + 0x40]
test ebp, ebp
setne r12b
add r12d, 2
mov dword [rdi], r12d
test ebp, ebp
cmove r15d, eax
mov dword [rdi + 4], r15d
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140035b50
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400111d0
Capabilities:
Hash data using fnv

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.14001ad00

Function at 0x1400163a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140036010]
xor rax, rsp
mov qword [rsp + 0x20], rax
sub r9, r8
mov rax, rdx
sub rax, rcx
mov rdi, r8
xor rax, r9
mov rbx, rdx
mov rsi, rcx
test rax, 0xfffffffffffffffe
je 0x1400163df
xor al, al
jmp 0x140016426
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
cmp rcx, rbx
je 0x14001641a
sub rdi, rcx
movzx ecx, word [rsi]
movzx r14d, word [rdi + rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
movzx ecx, r14w
movzx ebp, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
cmp bp, ax
jne 0x140016443
add rsi, 2
cmp rsi, rbx
jne 0x1400163f1
mov al, 1
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140026a70
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor al, al
jmp 0x14001641c
Function at 0x14001afd0
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14001afd0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx + 8]
mov rdi, rcx
mov r8, qword [rcx + 8]
movabs r10, 0x100000001b3
xor esi, esi
mov r9, qword [rax + 8]
movabs rax, 0xcbf29ce484222325
movzx edx, r9b
xor rdx, rax
mov rax, r9
imul rdx, r10
shr rax, 8
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x10
imul rdx, r10
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x18
imul rdx, r10
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x20
imul rdx, r10
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x28
imul rdx, r10
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x30
imul rdx, r10
movzx ecx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x38
mov rcx, qword [r8 + 0x38]
imul rdx, r10
xor rdx, rax
imul rdx, r10
and rcx, rdx
mov rdx, qword [r8 + 0x10]
shl rcx, 4
add rcx, qword [r8 + 0x20]
mov rax, qword [rcx + 8]
cmp rax, rdx
je 0x14001b0b9
mov rcx, qword [rcx]
cmp r9, qword [rax + 0x10]
je 0x14001b0bc
cmp rax, rcx
je 0x14001b0b9
mov rax, qword [rax + 8]
cmp r9, qword [rax + 0x10]
jne 0x14001b0a8
jmp 0x14001b0bc
mov rax, rsi
test rax, rax
cmove rax, rdx
cmp rax, rdx
lea rbx, [rax + 0x18]
cmove rbx, rsi
test rbx, rbx
je 0x14001b123
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
test rax, 0xfffffffffffffff8
jne 0x14001b10b
lea rcx, [rdi + 0x70]
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.1400178a0
mov rcx, qword [rax]
mov qword [rcx + 0x18], rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rdx, rbx
lea rcx, [rdi + 0x30]
call fcn.140016b50
mov rdx, rbx
lea rcx, [rdi + 0x30]
call fcn.140016e30
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001b630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14001b667
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14001b688
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001b68a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001b6e3
test ecx, ecx
jle 0x14001b6c3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001b6e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001b6e3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001b710
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 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001b748
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 + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
Function at 0x1400015c0
Capabilities:
Create directory
Create process on windows

Disassembly:
sub rsp, 0x38
xor edx, edx
lea rcx, str.C:download_temp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.140001290
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, str.C:download_tempdownloaded.exe
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400019a0
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.0x1400019c1
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 0x1400019ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400019f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001a49
test ecx, ecx
jle 0x140001a29
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 0x140001a49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001a49
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
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
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
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
Function at 0x140001a70
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 0x140001a92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001aa1
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 0x140001ac4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001ac6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001b02
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 0x140001b9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001b3d
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 0x140001b7e
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 0x140001b9e
cmp rbx, rax
ja 0x140001b50
test rbx, rbx
je 0x140001b9e
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
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
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
add byte [rax], al
Function at 0x140002000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000202d
xor eax, eax
jmp 0x140002199
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002067
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002067
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 0x140002199
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000218c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400020aa
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 0x1400020d5
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 0x140002191
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 0x140002144
sub eax, 1
je 0x140002144
cmp eax, 2
jne 0x14000218c
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 0x140002191
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002172
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 0x14000218c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002191
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002c70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400025e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400026b3
cmp byte [rcx + 0x71], 0
je 0x1400026b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400026af
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 0x140002674
sub eax, 1
je 0x140002678
cmp eax, 2
jne 0x1400026af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002c70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400026a6
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 0x1400026af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000265c
xor al, al
jmp 0x14000265c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002c70
add rsp, 0x60
pop rbx
ret

Function at 0x1400035f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
jne 0x140001981
lea eax, [r8 + 0xd]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140006eb0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rbp, rcx
call fcn.14000fbc0
mov rbx, rax
test rax, rax
je 0x140006fae
mov ecx, 1
call fcn.14000e384
mov qword [rsp + 0x28], rax
lea rsi, str.bool
lea rdi, str.bool
mov ecx, 5
repe cmpsb byte [rsi], byte [rdi]
jne 0x140006f12
mov dword [rsp + 0x34], 0
jmp 0x140006f24
lea rdx, str.bool
lea rcx, [rsp + 0x28]
call fcn.140002ec0
nop
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140003020
test al, al
jne 0x140006f5b
call fcn.14000f404
mov r9, rbx
mov r8, rbp
lea rdx, str.ERROR:_error_parsing_env_variable__s_with_value__s_n
lea rcx, [rax + 0x60]
call fcn.14000f954
mov ecx, 1
call fcn.14000ff8c
int3
mov rdi, qword [rsp + 0x28]
movzx esi, byte [rdi]
movsxd rax, dword [rsp + 0x34]
cmp eax, 5
ja case.default.0x140006f7e
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x6fc4]
add rcx, rdx
jmp rcx
cmp qword [rdi + 0x18], 0x10
jb 0x140006f8f
mov rcx, qword [rdi]
call fcn.14000e0cc
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], 0
mov byte [rdi], 0
mov rcx, rdi
call fcn.14000e0cc
movzx eax, sil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret