joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043470
Capabilities:
Capture screenshot

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, 0x60
xor ecx, ecx
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
cvttss2si edx, dword [0x1400a5e80]
mov rcx, rbp
mov rsi, rax
mov r8d, edx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rsi
mov r14, rax
call qword [sym.imp.GDI32.dll_SelectObject]
movss xmm0, dword [0x1400a5e80]
xor r8d, r8d
mov eax, dword [0x1400a6044]
movaps xmm1, xmm0
mulss xmm1, dword [0x140053b94]
cdq
sub eax, edx
mov dword [rsp + 0x40], 0xcc0020
cvttss2si r9d, xmm0
sar eax, 1
movd xmm0, eax
mov eax, dword [0x1400a6040]
cvtdq2ps xmm0, xmm0
cdq
sub eax, edx
xor edx, edx
sar eax, 1
subss xmm0, xmm1
cvttss2si ecx, xmm0
movd xmm0, eax
mov dword [rsp + 0x38], ecx
mov rcx, rsi
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r9d
call qword [sym.imp.GDI32.dll_BitBlt]
movss xmm1, dword [0x1400a5e80]
xor edi, edi
xorps xmm6, xmm6
comiss xmm1, xmm6
jbe 0x1400435de
xor ebx, ebx
comiss xmm1, xmm6
jbe 0x1400435cc
nop word [rax + rax]
mov r8d, ebx
mov edx, edi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetPixel]
mov r8d, eax
movzx ecx, al
mov eax, 0x4b
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x1400435b6
movzx ecx, r8w
mov eax, 0xda
shr ecx, 8
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x1400435b6
shr r8d, 0x10
mov eax, 0x6b
movzx ecx, r8b
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jle 0x14004361d
movss xmm1, dword [0x1400a5e80]
inc ebx
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x140043560
inc edi
movd xmm0, edi
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x140043553
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
xor al, al
movaps xmm6, xmmword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov al, 1
jmp 0x1400435fd

Function at 0x14004535c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400453a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400453a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400453a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400453a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400453a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400453a8
xor al, al
add rsp, 0x28
ret
Function at 0x140001990
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov r13, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x140026129]
call fcn.1400038e0
mov r12, rax
test rax, rax
je 0x140001ac0
mov edx, dword [r13 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.14001cba0
test eax, eax
js 0x140001aa0
mov ebx, dword [r13 + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x140001ad5
cmp byte [r13 + 0x10], 1
je 0x140001a80
mov rdi, rax
mov ebp, 0x2000
test rbx, rbx
jne 0x140001a18
jmp 0x140001a61
add rdi, rsi
sub rbx, rsi
je 0x140001a61
cmp rbx, 0x2000
mov rsi, rbp
mov r9, r12
mov rcx, rdi
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call main
test rax, rax
jne 0x140001a10
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002560
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, r13
mov rcx, r12
call fcn.1400015a0
test eax, eax
je 0x140001a61
jmp 0x140001a56
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor r14d, r14d
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001a61
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r14d, r14d
call fcn.140002500
jmp 0x140001a69
mov r9d, ebx
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002560
jmp 0x140001a61
Function at 0x140001bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x140001db0
cmp byte [rdx + 0x11], 0x6e
je 0x140001ce8
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.140009bc0
mov r14, rax
test rax, rax
je 0x140001dc6
lea rcx, [r12 + 0x70]
lea rdx, [0x140026129]
call fcn.1400038e0
mov r13, rax
test rax, rax
je 0x140001d48
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.14001cba0
test eax, eax
js 0x140001d90
cmp byte [r15 + 0x10], 1
je 0x140001d08
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x140001de6
mov ebx, dword [r15 + 0xc]
test rbx, rbx
je 0x140001d60
mov r15d, 0x2000
jmp 0x140001c96
mov r9, r14
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001d70
sub rbx, rsi
je 0x140001d60
cmp rbx, 0x2000
mov rsi, r15
mov r9, r13
mov rcx, r12
cmovbe rsi, rbx
mov r8d, 1
mov rdx, rsi
call main
test rax, rax
jne 0x140001c70
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.140002560
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x140001d1b
call fcn.140001b00
mov ebx, eax
test eax, eax
js 0x140001d30
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.1400015a0
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x140001cf3
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.140002500
jmp 0x140001cf3
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.140002500
jmp 0x140001d23
xor ebx, ebx
jmp 0x140001cd8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.140002560
jmp 0x140001cd8
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001d1b
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.140002500
jmp 0x140001cf3
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.140002560
jmp 0x140001cf3
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.140002560
jmp 0x140001d1b
Function at 0x140001e10
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x140026129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.1400038e0
mov r12, rax
test rax, rax
je 0x140002017
mov rax, qword [0x14002c4a0]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.14000a260
mov rsi, rax
test rax, rax
jne 0x140001e90
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.14001cba0
test eax, eax
js 0x140001fc0
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call main
test rax, rax
je 0x140001fe0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x140032050], ecx
mov rcx, r12
call fcn.14001cba0
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x140002022
mov r9, r12
mov r8d, 1
mov rdx, r14
call main
test rax, rax
je 0x140001fa0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x140002000
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x140001e76
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, r8
jb 0x140001f70
jmp 0x140001e76
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002560
jmp 0x140001e76
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002560
jmp 0x140001e76
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002560
jmp 0x140001e76
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.140002500
jmp 0x140001e76
mov r13d, 0xffffffff
jmp 0x140001e7e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.140002560
jmp 0x140001e76
Function at 0x140009360
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.140012240
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.14000a880
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400093a8
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.14000a760
mov rcx, rax
test rax, rax
je 0x140009397
cmp byte [rax], 0
je 0x140009397
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x140009450
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.14000a880
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x1400097f0
Capabilities:
Delete directory
Delete file

Disassembly:
push r15
mov eax, 0x54c8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140012240
sub rsp, rax
mov r8d, 0x1000
lea r15, [rsp + 0x34b0]
mov rdx, rcx
lea r13, [rsp + 0x14a0]
mov rcx, r15
call fcn.14000a880
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_wcscpy
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov qword [rsp + 0x20], rax
mov rbx, rax
movzx eax, word [rsp + rax*2 + 0x149e]
cmp ax, 0x2f
je 0x140009859
cmp ax, 0x5c
jne 0x1400098a0
lea rdx, [0x14002848a]
mov rcx, r13
lea rbp, [rsp + 0x30]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, r13
call fcn.14001c7c0
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400098c0
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x54c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x140028486]
mov rcx, r13
add rbx, 1
call sub.msvcrt.dll_wcscat
mov qword [rsp + 0x20], rbx
jmp 0x140009859
lea rbx, [rsp + 0x260]
mov ecx, 0x46
mov rsi, rbp
mov rdi, rbx
lea r14, [rsp + 0x284]
lea rdx, [0x14002848e]
rep movsq qword [rdi], qword [rsi]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
mov rdi, qword [rsp + 0x20]
lea rsi, [r13 + rdi*2]
mov qword [rsp + 0x20], rsi
test eax, eax
je 0x140009917
lea rdx, [0x140028492]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140009a20
lea rax, [rsp + 0x490]
mov qword [rsp + 0x28], rax
nop dword [rax]
mov rdx, rbp
mov rcx, r12
call fcn.14001c890
test eax, eax
jne 0x1400099d0
mov ecx, 0x46
mov rdi, rbx
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
lea rdx, [0x14002848e]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140009928
lea rdx, [0x140028492]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140009928
mov rax, qword [rsp + 0x20]
xor edx, edx
mov rcx, r13
mov word [rax], dx
mov rdx, r14
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rsp + 0x260], 0x10
je 0x1400099e0
call fcn.14000ac40
test eax, eax
jne 0x140009a10
mov rdi, qword [rsp + 0x28]
mov rdx, r13
mov r8d, 0x1000
mov rcx, rdi
call fcn.14000a760
mov rcx, rdi
call fcn.1400097f0
mov rdx, rbp
mov rcx, r12
call fcn.14001c890
test eax, eax
je 0x14000993b
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140009881
call qword [sym.imp.msvcrt.dll__wremove]
test eax, eax
je 0x140009928
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wremove]
jmp 0x140009928
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140009928
mov rax, qword [rsp + 0x20]
xor ecx, ecx
mov rdx, r14
mov word [rax], cx
mov rcx, r13
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rsp + 0x260], 0x10
je 0x140009a78
call fcn.14000ac40
test eax, eax
jne 0x140009a9e
lea rsi, [rsp + 0x490]
mov r8d, 0x1000
mov rdx, r13
mov rcx, rsi
call fcn.14000a760
mov rcx, rsi
call fcn.1400097f0
jmp 0x140009917
mov rsi, qword [sym.imp.msvcrt.dll__wremove]
call rsi
test eax, eax
je 0x140009917
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rsi
jmp 0x140009917
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140009917
Function at 0x140009bc0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x5030
push r14
push r13
push r12
push rbx
call fcn.140012240
sub rsp, rax
lea r8, str._s_c_s
mov qword [rsp + 0x28], rdx
lea r14, [rsp + 0x30]
mov r12, rcx
mov r13, rdx
mov dword [rsp + 0x20], 0x5c
mov r9, rcx
mov edx, 0x1000
mov rcx, r14
call fcn.140009250
cmp eax, 0xfff
jg 0x140009c80
mov rcx, r14
call fcn.1400036a0
cmp eax, 1
je 0x140009c50
mov rdx, r13
mov rcx, r12
call fcn.140009ab0
test eax, eax
js 0x140009c80
lea rdx, [0x140028529]
mov rcx, r14
call fcn.1400038e0
add rsp, 0x5030
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, dword [0x140025020]
cmp ebx, 0xffffffff
je 0x140009c88
test ebx, ebx
jne 0x140009cc8
mov rdx, r14
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140002500
mov rdx, r13
mov rcx, r12
call fcn.140009ab0
test eax, eax
jns 0x140009c28
nop dword [rax]
xor eax, eax
jmp 0x140009c37
xor r8d, r8d
xor ecx, ecx
lea rdx, str.PYINSTALLER_STRICT_UNPACK_MODE
call fcn.14000a880
lea r15, [rsp + 0x1030]
mov r8d, 0x2000
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140009ce0
mov dword [0x140025020], 0
jmp 0x140009c5f
mov rdx, r14
lea rcx, str.ERROR:_file_already_exists_but_should_not:__s_n
call fcn.140002500
xor eax, eax
jmp 0x140009c37
lea rdx, [rsp + 0x3030]
mov r8d, 0x2000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r15
call fcn.14000a760
mov rcx, rax
test rax, rax
je 0x140009cb7
cmp byte [rax], 0
je 0x140009cb7
call sub.msvcrt.dll__strdup
mov rcx, rax
test rax, rax
je 0x140009cb7
movzx eax, byte [rax]
sub eax, 0x30
jne 0x140009d2a
movzx eax, byte [rcx + 1]
xor ebx, ebx
test eax, eax
setne bl
mov dword [0x140025020], ebx
call sub.msvcrt.dll_free
jmp 0x140009c5b

Function at 0x140009d50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.140012240
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14002852c]
call fcn.1400038e0
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140009bc0
mov r13, rax
test r12, r12
je 0x140009e5a
test rax, rax
je 0x140009e4d
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140009e48
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call main
mov r8, rax
test rax, rax
jne 0x140009df0
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009da0
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x140009e1f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140009e11
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009da0
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x140009e1f
test r12, r12
je 0x140009e5a
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x140009e27
jmp 0x140009e2f
Function at 0x140009ed0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.140012240
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.14000a880
mov edx, 1
lea rcx, [0x140009200]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov rbp, qword [fcn.140024910]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000a070
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.1400025a0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000a260
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x14000a350
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.14001cba0
test eax, eax
js 0x14000a350
mov rcx, rdi
call fcn.14001cc50
movsxd r8, eax
cmp r8, rbx
jb 0x14000a350
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x14000a350
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14001cba0
test eax, eax
js 0x14000a350
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call main
cmp rax, r15
jne 0x14000a350
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x14000a33a
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14000a370
mov r15, r13
test r15, r15
jne 0x14000a320
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x14000a2c9
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [r14 + r15 - 0x2001]
jmp 0x14000a353
Function at 0x14000aaa0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.140012240
sub rsp, rax
mov r13, rcx
lea r15, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000aba0
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x14000ab19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, r14
lea r8, str.D:_A__FA____s_
test r12, r12
cmovne r9, r12
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x14000ac30
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2068
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r14, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call r14
test eax, eax
jne 0x14000abd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000aaf8
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov rsi, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x14000aaf8
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x14000ab00
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x14000ab00
mov eax, 0xffffffff
jmp 0x14000ab8e