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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140008c83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000dc00
xor al, al
add rsp, 0x28
ret
shr eax, 0xa
and al, 1
add rsp, 0x28
ret

Function at 0x140008d50
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov r14, rcx
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140008dc5
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
call fcn.14000dc00
cmp ebx, 5
je 0x140008d9e
lea eax, [rbx - 0x20]
cmp eax, 1
ja 0x140008de2
inc edi
cmp esi, 0x64
jge 0x140008de2
mov ecx, 0x186a0
call fcn.140009e90
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140008d80
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 0xffffffff
jmp 0x140008dc7

Function at 0x14000a0c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x478
mov rax, qword [0x1400172f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
test rcx, rcx
jne 0x14000a107
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_24
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000e3e0
add rsp, 0x478
ret
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x470], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x450]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x460], rdi
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x44], 0
call fcn.14000a4a0
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
movzx ebx, byte [rsp + 0x44]
sub rdi, rcx
test bl, bl
jne 0x14000a1a5
test rdi, rdi
je 0x14000a1a5
mov r9, qword [rsp + 0x38]
mov r8, rdi
mov qword [rsp + 0x468], rsi
mov esi, 1
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [rsp + 0x40]
add ecx, eax
movzx ebx, bl
cmp rax, rdi
cmovne ebx, esi
mov rsi, qword [rsp + 0x468]
jmp 0x14000a1a9
mov ecx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x460]
test bl, bl
mov rbx, qword [rsp + 0x470]
mov eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000e3e0
add rsp, 0x478
ret
Function at 0x14000abf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbx, r8
mov ebp, edx
mov r14d, ecx
cmp edx, 1
jne 0x14000ac59
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x14000ac3f
cmp qword [r8], rax
jb 0x14000ac3f
cmp qword [r8 + 0x18], 0
jne 0x14000ac37
inc dword [r8 + 0x20]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rbx
call fcn.14000b140
mov rax, qword [rbx]
mov byte [rax], r14b
inc qword [rbx]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edx, edx
jle 0x14000acf1
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000ac7d
sub eax, dword [rbx]
jmp 0x14000ac7f
mov eax, ebp
test eax, eax
jg 0x14000acc1
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x14000ace4
cmp byte [rbx + 0x24], 0
mov rcx, qword [rbx + 8]
jne 0x14000acb8
mov rdi, qword [rbx]
sub rdi, rcx
je 0x14000acb8
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x14000acb8
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
jmp 0x14000acde
mov rcx, qword [rbx]
cmp eax, ebp
mov esi, ebp
mov edx, r14d
cmovl esi, eax
movsxd rdi, esi
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
add qword [rbx], rdi
sub ebp, esi
test ebp, ebp
jg 0x14000ac70
jmp 0x14000ace7
add dword [rbx + 0x20], ebp
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000ad10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, r8
mov ebp, edx
mov r14, rcx
cmp edx, 1
jne 0x14000ad69
mov rax, qword [r8 + 0x10]
movzx edi, byte [rcx]
test rax, rax
je 0x14000ad5b
cmp qword [r8], rax
jb 0x14000ad5b
cmp qword [r8 + 0x18], 0
jne 0x14000ad53
inc dword [r8 + 0x20]
jmp 0x14000adf5
mov rcx, rbx
call fcn.14000b140
mov rax, qword [rbx]
mov byte [rax], dil
inc qword [rbx]
jmp 0x14000adf5
test edx, edx
jle 0x14000adf5
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000ad83
sub eax, dword [rbx]
jmp 0x14000ad85
mov eax, ebp
test eax, eax
jg 0x14000adc7
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x14000aded
cmp byte [rbx + 0x24], 0
mov rcx, qword [rbx + 8]
jne 0x14000adbe
mov rdi, qword [rbx]
sub rdi, rcx
je 0x14000adbe
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
je 0x14000adbe
mov byte [rbx + 0x24], 1
mov rax, qword [rbx + 8]
mov qword [rbx], rax
jmp 0x14000ade7
mov rcx, qword [rbx]
cmp eax, ebp
mov esi, ebp
mov rdx, r14
cmovl esi, eax
movsxd rdi, esi
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
add qword [rbx], rdi
add r14, rdi
sub ebp, esi
test ebp, ebp
jg 0x14000ad76
jmp 0x14000adf0
add dword [rbx + 0x20], ebp
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000b140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp byte [rbx + 0x24], 0
jne 0x14000b19e
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx]
sub rdi, rcx
je 0x14000b190
mov r9, qword [rbx + 0x18]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add dword [rbx + 0x20], eax
cmp rax, rdi
mov rax, qword [rbx + 8]
mov qword [rbx], rax
je 0x14000b185
mov byte [rbx + 0x24], 1
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret

Function at 0x14000bad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000baf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 2
xor eax, eax
add rsp, 0x20
pop rbx
ret
test al, 0x10
jne 0x14000bb10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_24
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x120
mov qword [rsp + 0x30], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14000bb41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, qword [rsp + 0x30]
mov dword [rax], Ordinal_14
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14000bb50
add rcx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x14000bb90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rdi
mov dword [rax], Ordinal_14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14000bb90
mov rcx, qword [rdi]
mov rax, 0xffffffffffffffff
mov rdx, rcx
nop
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14000bbb0
cmp byte [rax + rcx - 1], 0x2f
je 0x14000bbfc
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14000bbd0
cmp byte [rax + rcx - 1], 0x5c
je 0x14000bbfc
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000bbe5
movzx eax, word [0x140012e00]
mov word [rcx], ax
mov rdx, qword [rdi]
dec rdx
nop
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x14000bc00
movzx eax, word [0x140012e04]
mov word [rdx], ax
xor eax, eax
mov dword [rdi + 8], eax
mov word [rdi + 0xc], ax
mov rax, rdi
mov qword [rdi + 0x118], 0xffffffffffffffff
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x14000bc40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1400172f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x118]
cmp rcx, 0xffffffffffffffff
jne 0x14000bc91
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbx + 0x118], rax
cmp rax, 0xffffffffffffffff
jne 0x14000bcc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jmp 0x14000bca4
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000bcc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000bcb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0
xor eax, eax
jmp 0x14000bd07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000dc00
xor eax, eax
jmp 0x14000bd07
lea rax, [rsp + 0x4c]
lea rdx, [rbx + 0x10]
sub rdx, rax
lea rcx, [rsp + 0x4c]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14000bce0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax + 0x10], 0
jne 0x14000bcf5
mov word [rbx + 0xe], ax
lea rax, [rbx + 8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000e3e0
add rsp, 0x170
pop rbx
ret
Function at 0x14000d6b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
test rax, rax
je 0x14000d7b9
mov edx, Ordinal_65
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000d7b0
mov byte [rax], 0
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx + 1], 0
jne 0x14000d6f0
test rcx, rcx
je 0x14000d714
lea rdx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x14000d7b0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [str.msvcrt]
test rax, rax
je 0x14000d79c
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov ebx, ebp
lea rsi, str.msvcrt
nop
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x14000d785
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000d785
lea rdx, [0x1400135e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000d77a
mov rcx, rdi
call rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x14000d740
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x140060dd0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140060e60
jmp 0x140060e4f
jae 0x140060f20
cmp r8, 0x201
jae 0x140060e60
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140060eb8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140060e8f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14007ec80
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140060ee1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140060f88
mov r8d, r14d
cmp r15, r8
jne 0x140060e40
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140060fab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140060e4f
jmp 0x140060e60
cmp rsi, r8
jb 0x140060fc5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400652d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140060f71
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400096c0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140060f59
jmp 0x140060f71
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14007fb00
jmp 0x140060fda
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14007ff50
ud2
Function at 0x140061fa0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140061fb0
mov rcx, rdx
mov rdx, r8
jmp fcn.140061fc0
mov rcx, rdx
mov rdx, r8
jmp fcn.14006bba0

Function at 0x14006bba0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14006f230
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14006bc57
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14006e0d0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14006bc57
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14006bc2b
test rsi, rsi
je 0x14006bc27
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400096c0
xor esi, esi
jmp 0x14006bc57
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14006bc54
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400096c0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14006c150
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.14006f230
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x14006c28a
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14006e0d0
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x14006c28a
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rsi
lea rcx, [rbp - 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.14006f230
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x14006c269
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14006e0d0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x14006c269
mov r15, qword [rbp - 0x20]
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 0x28]
je 0x14006c29a
test rsi, rsi
je 0x14006c24c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400096c0
test r14, r14
je 0x14006c265
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.1400096c0
xor esi, esi
jmp 0x14006c28a
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x20]
test r14, r14
je 0x14006c28a
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.1400096c0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14006c2c3
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400096c0
mov rsi, rbx
test r14, r14
jne 0x14006c276
jmp 0x14006c28a
Function at 0x14006c760
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14008c300]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14006c7a4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006c80a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14006c841
test eax, eax
js 0x14006c81b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006c834
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14008c360]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140064f80
mov rcx, rax
call fcn.14005eaf0
mov ecx, 7
int 0x29
ud2
Function at 0x14007c080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14007c0fa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007c0f0
cmp r11, r10
ja 0x14007c193
cmp r10, rdx
ja 0x14007c1a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14007c0f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007c0d0
jmp 0x14007c167
ja 0x14007c0fa
mov r11, r10
cmp rax, r8
jne 0x14007c0a2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14007c16b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007c140
mov r8, r10
sub ecx, r9d
jns 0x14007c15e
jmp 0x14007c16d
cmp r10, rdx
je 0x14007c179
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007c16d
xor al, 1
cmp r8, rdx
jne 0x14007c120
jmp 0x14007c16d
xor eax, eax
jmp 0x14007c16d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueout_of_range_integral_type_conversion_attemptedcannot_parse_integer_from_empty_stringinvalid_digit_found_in_stringnumber_too_large_to_fit_in_target_typenumber_too_small_to_fit_in_target_typenumber_would_be_zero_for_non_zero_typefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14007fb00
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14007ffd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14007ff50
ud2

Function at 0x14007e084
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14007e0ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007e0ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007e0ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007e0ce
cmp dword [rcx + 0x84], 0xe
jbe 0x14007e0ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007e0d0
xor al, al
add rsp, 0x28
ret
Function at 0x140010188
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140019760], eax
call fcn.140010b30
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140019760], 0
jne case.default.0x1400101de
mov ecx, 1
call fcn.140010b30
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
std
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aa30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa40]
mov dword [rax], 1
mov rax, qword [0x14000aa50]
mov dword [rax], 1
mov rax, qword [0x14000aa20]
mov dword [rax], 1
mov rax, qword [0x14000a8e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000aa10]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a9d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a9b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a890]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400020a0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]