joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400061b8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, 0x1a
mov rsi, r9
mov word [rsp + 0x50], ax
mov ebx, r8d
mov rax, qword [rdx + 0x40]
mov rdi, rcx
test rax, rax
cmovne rdx, rax
cmp r8d, 0xffffffff
jne 0x140020e6c
inc dword [0x140039864]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x140020ec1
test byte [rdx + 0x38], 2
jne 0x140020e8f
test byte [rdx + 0x38], 4
je 0x140020ec1
mov eax, dword [0x140039854]
add eax, 0xfffffffd
cmp eax, 1
ja 0x140020ec1
mov ecx, ebx
call fcn.14000f518
test eax, eax
jne 0x140020ec1
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test rdi, rdi
je 0x140020f05
test byte [rdi + 0x38], 0x80
jne 0x140020f05
mov ecx, ebx
call fcn.14000f518
test eax, eax
jne 0x140020f05
mov eax, dword [0x140039854]
cmp eax, 3
je 0x140020f05
test rsi, rsi
je 0x140020f05
cmp eax, 2
je 0x140020f05
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9, rsi
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
mov ecx, ebx
call fcn.14000d778
nop
jmp 0x1400061ef
Function at 0x140006248
Capabilities:
Delete file
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rsi, r9
and dword [0x1400398e4], 0
mov ebx, r8d
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
mov r9, rsi
mov rcx, rax
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140020f9a
mov ecx, dword [rsi]
test ecx, ecx
je 0x140020f4c
mov rdx, qword [rsp + 0x70]
mov eax, dword [rdx + 0x38]
test eax, 0xc000
je 0x1400062dc
mov ecx, 0x8002
mov edi, 1
and eax, ecx
cmp eax, ecx
je 0x140020f70
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp ecx, 2
jb 0x1400062ec
mov ecx, 0xfeff
cmp word [rbp], cx
je 0x1400062f5
bts eax, 0xf
mov dword [rdx + 0x38], eax
jmp 0x1400062b1
bts eax, 0xe
jmp 0x1400062f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e3
je 0x140020f9a
mov ecx, dword [rsi]
test ecx, ecx
jne 0x1400062a2
and dword [0x1400502f8], ecx
xor eax, eax
jmp 0x1400062c7
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.14002844c
mov edx, dword [0x1400398e4]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x1400398e4], edx
jmp 0x1400062c5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, edi
mov dword [0x1400502f8], eax
call fcn.14000d778
mov ecx, dword [rsp + 0x78]
call fcn.14000f518
mov ecx, dword [rsp + 0x78]
mov ebx, eax
call fcn.14000d778
test ebx, ebx
jne 0x140020fd3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov ecx, dword [0x1400502f8]
mov edx, 1
call fcn.140029fe8
int3

Function at 0x1400064c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov dword [rsp + 0x48], 4
mov r9d, 0x2000000
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006555
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400306b8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x140006555
cmp dword [rsp + 0x40], 4
jne 0x140006555
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
jmp 0x14000654f
Function at 0x140007b48
Capabilities:
Set environment variable

Disassembly:
test rcx, rcx
je 0x140007c67
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140007c5d
dec eax
mov dword [rcx + 0x18], eax
mov edx, eax
mov rdi, qword [rcx + rax*8 + 0xd0]
and qword [rcx + rax*8 + 0xd0], 0
test rdi, rdi
je 0x140007c5d
mov r8, qword [rdi]
movzx edx, word [r8]
lea eax, [rdx - 0x61]
cmp ax, 0x19
jbe 0x140021a5a
mov rax, qword [0x140050298]
lea rcx, [0x140050090]
test rax, rax
cmovne rcx, rax
cmp word [rcx], dx
jne 0x140021a63
mov edx, 1
mov rcx, r8
call fcn.14000bb78
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [rdi]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentStringsW]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [0x14003fb98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call fcn.14000ba48
mov qword [0x14003fb98], rax
mov rbx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov al, byte [rdi + 0x10]
mov byte [0x1400502b9], al
mov al, byte [rdi + 0x11]
mov byte [0x1400502b8], al
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub dx, 0x20
jmp 0x140007b9b
movzx ecx, dx
sub ecx, 0x40
call fcn.14002b0ec
mov r8, qword [rdi]
jmp 0x140007bb9
Function at 0x140008c6c
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor esi, esi
mov r14, rcx
test rcx, rcx
je 0x140008e19
mov r8d, 0x104
mov qword [rbp + 0x148], rsi
xor edx, edx
mov qword [rbp + 0x158], r8
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x150], 1
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x150]
lea rcx, [rsp + 0x40]
neg al
sbb rdx, rdx
and edx, 0xfdc6
add rdx, 0x208
call fcn.1400104d0
test eax, eax
js 0x140008dbf
cmp qword [rbp + 0x148], rsi
lea rdi, [rsp + 0x40]
mov rbx, qword [rbp + 0x158]
mov rcx, r14
cmovne rdi, qword [rbp + 0x148]
call fcn.140011c70
mov rcx, rax
lea r9, [rsp + 0x30]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x140008dbd
cmp qword [rbp + 0x148], rsi
lea rbx, [rsp + 0x40]
lea r8d, [rsi + 4]
cmovne rbx, qword [rbp + 0x148]
lea rdx, str.._
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsncmp]
test eax, eax
je 0x140021aa8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140021b1a
cmp word [rax], si
je 0x140021b1a
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rsi + 0x37]
lea rax, [rbp + 0x160]
mov rdx, rbx
lea rcx, [fcn.140016cc0]
mov qword [rsp + 0x20], rax
call fcn.140016b14
mov rcx, qword [rsp + 0x38]
movzx edi, al
call fcn.140013ddc
test edi, edi
je 0x140008df5
mov esi, edi
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, esi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp word [rbx + 2], 0x5c
je 0x140021afe
cmp word [rbx + 2], 0x3a
jne 0x140008dbd
cmp word [rbx + 4], 0x5c
jne 0x140008dbd
cmp word [rbx + 6], si
jne 0x140008dbd
jmp 0x140021afe
xor eax, eax
jmp 0x140008dce
add rbx, 8
mov rcx, r14
mov rdx, rbx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140021ae5
cmp rax, r14
jbe 0x140021ae5
movzx ebx, word [rax]
mov rcx, r14
mov word [rax], si
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x30]
mov word [rcx], bx
jmp 0x140021aee
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008dbf
mov esi, eax
jmp 0x140008dbf
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140008dbd
mov edi, 1
jmp 0x140008dbd
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, esi
setne dil
jmp 0x140008dbd
Function at 0x140009300
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
lea rdx, [rsp + 0x20]
mov r15d, r12d
mov ebp, r12d
mov r13, rcx
call fcn.1400094b0
test eax, eax
js 0x140021c06
mov eax, dword [rsp + 0x20]
cmp eax, 3
jae 0x140021c66
test eax, eax
jne 0x140021c16
lea r15d, [rax + 1]
mov ecx, 0x40002748
mov esi, r15d
call fcn.140009458
mov rbp, rax
test rax, rax
je 0x140021c56
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140009385
mov r14d, 0x104
cmp rdi, r14
jae 0x140009409
mov ecx, 0x208
call fcn.14000fe10
mov rbx, rax
test rax, rax
je 0x140009409
mov r8, rbp
mov edx, r14d
mov rcx, rax
call fcn.140011620
test r13, r13
je 0x140021c6e
mov r8, qword [r13 + 0x78]
test r8, r8
je 0x140009452
mov edx, r14d
mov rcx, rbx
call fcn.140011540
test eax, eax
jne 0x1400093fc
test rbx, rbx
je 0x1400093f4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
mov byte [0x1400398a4], r12b
mov esi, r12d
test r15d, r15d
je 0x140009409
test rbx, rbx
je 0x140009409
mov rcx, rbx
call fcn.14000f250
test rbp, rbp
je 0x140009417
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test esi, esi
jne 0x140021c56
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov esi, r12d
jmp 0x1400093fc
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test r13, r13
je 0x140021cd1
mov rcx, qword [r13 + 0x78]
call fcn.14000d2d8
mov rbx, rax
test rax, rax
je 0x1400093f4
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140021c38
mov r14d, 0x104
cmp rdi, r14
jb 0x1400093df
mov esi, 1
xor edx, edx
lea ecx, [rdx + 8]
call fcn.140014d90
nop
jmp 0x14000941f
add eax, 0xfffffff0
jmp 0x14000935c
mov edx, r14d
lea rcx, [rsp + 0x30]
lea r12, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x1400093fc
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140021cb3
add rdi, rdi
add r12, rdi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x140021c9f
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.140011540
xor r12d, r12d
test eax, eax
jne 0x1400093fc
jmp 0x1400093df
mov rbx, r12
jmp 0x1400093df
Function at 0x14000b9d8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov byte [0x140043c26], dil
test rdx, rdx
je 0x14000ba06
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x14000b9f4
neg rax
sbb rax, rax
and rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, qword [0x14003fb98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call fcn.14000ba48
test ebx, ebx
mov qword [0x14003fb98], rax
mov rbx, qword [rsp + 0x30]
sete dil
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000ba48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
mov edi, ebp
test rax, rax
je 0x14000baca
mov rcx, rax
cmp word [rax], bp
je 0x14000ba87
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14000ba76
cmp word [rcx], bp
jne 0x14000ba76
sub rcx, rbx
add rcx, 2
sar rcx, 1
lea esi, [rcx + rcx]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000bac1
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bae4
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebp, ebp
movsxd rdi, edx
movzx esi, r8w
mov rbx, rcx
test r8w, r8w
jne 0x14000bb35
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400173b0
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x3d
movzx ecx, si
mov word [rsp + 0x20], ax
call qword [sym.imp.msvcrt.dll_towupper]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0x3a
mov word [rsp + 0x22], ax
call fcn.140012b78
test rax, rax
je 0x14001a7ca
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.140011620
jmp 0x14000bb1b
movzx ecx, si
call qword [sym.imp.msvcrt.dll_towupper]
mov word [rbx], ax
mov eax, 1
mov dword [rbx + 2], 0x5c003a
mov word [rbx + 6], bp
jmp 0x14000bb1d
Function at 0x14000f390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, r9
lea rdi, [0x140039970]
mov ebp, r8d
mov r13d, 1
mov r9d, r13d
xor r8d, r8d
xor edx, edx
mov r15, rcx
mov r12, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp ebp, 0x1fff
jb 0x14000f3dc
mov ebp, 0x1fff
lea rcx, [0x140054530]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov r9, r14
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
lea rcx, [0x140054530]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test ebx, ebx
je 0x14000f50d
mov qword [rsp + 0x80], rsi
mov esi, dword [r14]
test esi, esi
je 0x14000f509
mov r10d, dword [0x14003fbc4]
mov ecx, esi
mov r8d, dword [rsp + 0x30]
mov edx, esi
mov dword [rsp + 0x90], ecx
cmp r10d, 0xfde9
je 0x14001bdb0
test esi, esi
jle 0x14000f4c2
lea r9, [0x140054540]
nop dword [rax]
cmp edx, 3
jl 0x14000f474
movzx eax, byte [rdi]
cmp al, 0xa
je 0x14001be1d
cmp al, 0xd
je 0x14000f496
movzx eax, byte [rdi]
cmp byte [rax + r9], 0
jne 0x14001be2c
inc rdi
dec ecx
mov dword [rsp + 0x90], ecx
mov edx, ecx
test ecx, ecx
jg 0x14000f460
jmp 0x14000f4c2
cmp byte [rdi + 1], 0xa
jne 0x14000f474
mov esi, edi
mov byte [rdi + 2], 0
sub esi, r12d
xor r9d, r9d
add esi, 2
mov rcx, r15
lea edx, [rsi + r8]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov r10d, dword [0x14003fbc4]
mov ecx, r10d
call fcn.14000f9f4
test eax, eax
je 0x14000f511
mov rax, qword [rsp + 0x88]
mov r9d, esi
mov dword [rsp + 0x28], ebp
mov r8, r12
mov edx, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [r14], eax
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x14000f4f1
xor eax, eax
jmp 0x14000f4f9
xor r13d, r13d
jmp 0x14000f4ce
test r8d, r8d
jne 0x14000f452
cmp ebp, 3
jbe 0x14000f452
movzx r8d, word [0x140039970]
movzx eax, word [0x1400315c4]
sub r8d, eax
jne 0x14001bde8
movzx r8d, byte [0x140039972]
movzx eax, byte [0x1400315c6]
sub r8d, eax
test r8d, r8d
jne 0x14001be13
add esi, 0xfffffffd
lea rdi, [0x140039973]
mov ecx, esi
mov dword [r14], esi
mov dword [rsp + 0x90], ecx
mov r8d, 3
mov r12, rdi
mov edx, esi
jmp 0x14000f452
mov r8d, dword [rsp + 0x30]
jmp 0x14000f452
cmp byte [rdi + 1], 0xd
je 0x14000f49c
jmp 0x14000f470
cmp ecx, r13d
je 0x14001be3d
add rdi, 2
add ecx, 0xfffffffe
jmp 0x14000f487
lea rcx, [0x140054530]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
lea rdx, [rdi + 1]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, r13d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
lea rcx, [0x140054530]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test ebx, ebx
je 0x14001be8f
cmp dword [rsp + 0x90], 0
je 0x14001be8f
inc esi
jmp 0x14000f4bb
mov dword [r14], 0
jmp 0x14000f509
Function at 0x140010d00
Capabilities:
Set console window title

Disassembly:
test rcx, rcx
je 0x140010d4f
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rbp, rcx
cmp qword [0x1400502b0], r12
je 0x140010d50
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
cmp dword [0x1400502bc], r12d
jne 0x140010d31
jmp 0x14001c458
mov ecx, 0x20c
call fcn.14000fe10
mov rdi, rax
test rax, rax
je 0x140010d31
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x140010d31
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp word [rbp + rcx*2], r12w
jne 0x14001c48b
add ecx, dword [0x140039868]
lea r14d, [rax + 0xa]
add r14d, ecx
mov rcx, rdi
movsxd r15, r14d
lea rdx, [r15 + r15]
call fcn.14000f2e0
mov rbx, rax
test rax, rax
je 0x14001c520
cmp byte [0x1400398a4], r12b
mov rdi, rax
je 0x14001c4e0
mov ecx, dword [0x140039868]
mov r8, rbp
sub r14d, ecx
mov edx, r14d
lea rcx, [rax + rcx*2]
call fcn.140011620
jmp 0x14001c517
lea r8, [0x1400321f8]
mov rdx, r15
mov rcx, rbx
call fcn.140011540
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001c4f2
mov r8, rbp
mov dword [0x140039868], esi
mov rdx, r15
mov rcx, rbx
call fcn.140011540
mov byte [0x1400398a4], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
mov rcx, rdi
call fcn.14000f250
nop
jmp 0x140010d31
Function at 0x1400126bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r15d, r8d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp byte [0x140054694], 0
mov rbp, rax
jne 0x14001cd50
mov r13d, 0x2000
lea r14, [0x140039970]
cmp ebx, r13d
ja 0x14001cd6e
test ebx, ebx
je 0x140012763
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x14003fbc4]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
and qword [rsp + 0x20], 0
mov r9, rdi
mov rdx, r14
mov rcx, rbp
lea ebx, [rax - 1]
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14001278a
cmp dword [rdi], ebx
jne 0x14001278a
mov dword [rdi], r15d
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
xor eax, eax
jmp 0x14001276b
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop
jmp 0x14001276b
and qword [rsp + 0x38], 0
mov r9d, 0x1000
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x14003fbc4]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
and qword [rsp + 0x20], 0
lea rdx, [0x140039970]
mov r8d, eax
mov r9, rdi
mov rcx, rbp
mov r14d, eax
add rsi, r13
add ebx, 0xffffe000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x14001278a
cmp dword [rdi], r14d
jne 0x14001278a
lea r14, [0x140039970]
cmp ebx, r13d
ja 0x14001cd6e
lea r14, [0x140039970]
jmp 0x140012711
Function at 0x140012b78
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, 0x2000
lea rdi, [0x14003bb90]
xor esi, esi
mov r8d, ebp
mov rdx, rdi
mov word [0x14003bb90], si
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140012bcc
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp byte [0x1400502b9], sil
je 0x140012c95
lea rdx, [0x1400303e4]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140012ce4
lea rdx, str.ERRORLEVEL
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140012cc6
lea rdx, str.CMDEXTVERSION
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001d086
lea rdx, str.CMDCMDLINE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001d091
lea rdx, str.DATE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140012cf6
lea rdx, str.TIME
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140012c9c
lea rdx, str.RANDOM
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001d09d
lea rdx, str.HIGHESTNUMANODENUMBER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001d0ab
xor eax, eax
jmp 0x140012bb7
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.1400071a0
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jae 0x140012d1d
mov word [rcx + rdi], si
jmp 0x140012bb4
mov r9d, dword [0x140047c4c]
lea r8, [0x140030628]
mov rdx, rbp
mov rcx, rdi
call fcn.140012610
jmp 0x140012bb4
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14000bae4
jmp 0x140012bb4
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.140002178
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jb 0x140012cbd
call fcn.140017584
int3
call fcn.140017584
int3
mov r9d, 2
jmp 0x140012ccd
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop
jmp 0x140012bb7
call qword [sym.imp.msvcrt.dll_rand]
mov r9d, eax
jmp 0x140012ccd
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], esi
call qword [sym.imp.api_ms_win_core_systemtopology_l1_1_0.dll_GetNumaHighestNodeNumber]
mov r9d, dword [rsp + 0x38]
jmp 0x140012ccd

Function at 0x140012d74
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
mov dword [rsp + 0x22], 0x5c003a
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400173b0
add rsp, 0x30
pop rbx
ret