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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5b8]
sub rsp, 0x6b0
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x14000240e
call fcn.14000e400
mov rcx, rax
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x190]
mov edx, 0x208
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
mov ebx, eax
test eax, eax
je 0x1400023c8
lea r8d, [rdi + 4]
lea rdx, str.._
lea rcx, [rbp + 0x190]
call qword [sym.imp.msvcrt.dll_wcsncmp]
test eax, eax
je 0x14001db3c
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001dbd2
cmp word [rax], di
je 0x14001dbd2
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 0x37]
lea rax, [rsp + 0x40]
lea rdx, [rbp + 0x190]
mov qword [rsp + 0x20], rax
lea rcx, [fcn.140005b00]
call fcn.140005954
mov rcx, qword [rsp + 0x38]
movzx ebx, al
call fcn.140006a48
test ebx, ebx
je 0x1400023f2
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp word [rbp + 0x192], 0x5c
je 0x14001dbb2
cmp word [rbp + 0x196], di
jne 0x1400023c8
jmp 0x14001db96
xor eax, eax
jmp 0x1400023ca
lea rax, [rbp + 0x198]
mov rcx, rsi
lea rdx, [rbp + 0x198]
mov qword [rsp + 0x30], rax
call qword [sym.imp.msvcrt.dll_wcsstr]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001db80
cmp rax, rsi
jbe 0x14001db80
movzx ebx, word [rax]
mov rcx, rsi
mov word [rax], di
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x30]
mov word [rcx], bx
jmp 0x14001db89
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
cmovne edi, eax
mov eax, edi
jmp 0x1400023ca
cmp word [rbp + 0x192], 0x3a
jne 0x1400023c8
cmp word [rbp + 0x194], 0x5c
jne 0x1400023c8
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400023c8
mov ebx, 1
jmp 0x1400023c8
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ebx, edi
setne bl
jmp 0x1400023c8
Function at 0x140002850
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 [0x14002f008]
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.1400029c0
test eax, eax
js 0x14001dd9a
mov eax, dword [rsp + 0x20]
cmp eax, 3
jae 0x14001ddb0
test eax, eax
jne 0x1400029a2
lea r15d, [rax + 1]
mov ecx, 0x40002748
mov esi, r15d
call fcn.140002b44
mov rbp, rax
test rax, rax
je 0x14001de52
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x1400028d5
mov r14d, 0x104
cmp rdi, r14
jae 0x140002959
mov ecx, 0x208
call fcn.14000b530
mov rbx, rax
test rax, rax
je 0x140002959
mov r8, rbp
mov edx, r14d
mov rcx, rax
call fcn.14000dc10
test r13, r13
je 0x14001ddb8
mov r8, qword [r13 + 0x78]
test r8, r8
je 0x1400029b3
mov edx, r14d
mov rcx, rbx
call fcn.14000db30
test eax, eax
jne 0x14000294c
test rbx, rbx
je 0x140002944
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
mov byte [0x140030364], r12b
mov esi, r12d
test r15d, r15d
je 0x140002959
test rbx, rbx
je 0x140002959
mov rcx, rbx
call fcn.14000b4a0
test rbp, rbp
je 0x140002967
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test esi, esi
jne 0x14001de52
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400151c0
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
test r13, r13
jne 0x14001de1b
mov rbx, r12
jmp 0x14000292f
mov esi, r12d
jmp 0x14000294c
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x1400029a2
add eax, 0xfffffff0
jmp 0x1400028ac
mov edx, r14d
lea rcx, [rsp + 0x30]
lea r12, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x14000294c
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14001ddfd
add rdi, rdi
add r12, rdi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14001dde9
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.14000db30
xor r12d, r12d
test eax, eax
jne 0x14000294c
jmp 0x14000292f
mov rcx, qword [r13 + 0x78]
call fcn.1400088a8
mov rbx, rax
test rax, rax
je 0x140002944
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x14001de34
mov r14d, 0x104
cmp rdi, r14
jb 0x14000292f
mov esi, 1
xor edx, edx
lea ecx, [rdx + 8]
call fcn.1400057e4
nop
jmp 0x14000296f
Function at 0x140003790
Capabilities:
Move file

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 r14
sub rsp, 0x20
cmp dword [r8], 0
mov ebx, 2
mov r14, r8
mov rdi, r9
mov rsi, rdx
mov rbp, rcx
lea eax, [rbx + 1]
cmove ebx, eax
and dword [r9], 0
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
test eax, eax
je 0x140016db2
mov dword [rdi], 1
mov eax, 1
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
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xb7
jne 0x140016dfa
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.1400248fc
test eax, eax
je 0x1400037df
cmp eax, 2
jne 0x140016de1
and dword [r14], 0
or ebx, 1
mov rdx, rsi
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
mov dword [rdi], eax
jmp 0x1400037e4
xor eax, eax
jmp 0x1400037e4

Function at 0x1400042dc
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor edi, edi
mov rsi, rcx
bt edx, 0xa
jb 0x140017537
or qword [rbp + 0x77], 0xffffffffffffffff
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
test eax, eax
js 0x140017537
cmp word [rbp - 9], di
ja 0x1400174fe
mov eax, edi
lea rcx, [rbp - 0x29]
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rcx
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x5040
lea rcx, [rbp + 0x77]
mov dword [rbp + 0x17], 0x30
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
mov edx, 0x10000
mov dword [rbp + 0x2f], 0x40
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtOpenFile]
lea rcx, [rbp - 9]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x140017537
mov rcx, qword [rbp + 0x77]
call fcn.1400043d8
mov ebx, 1
test eax, eax
jne 0x14001750b
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
je 0x140017537
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 7]
lea rcx, [rbp - 9]
jmp 0x140004331
mov rcx, qword [rbp + 0x77]
lea r8, [rbp + 0x6f]
mov r9d, ebx
mov byte [rbp + 0x6f], bl
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
mov ebx, edi
setns bl
jmp 0x1400043aa
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
test eax, eax
jne 0x1400043bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x1400043bc
Function at 0x140005954
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rdi
push r14
sub rsp, 0x30
mov rax, rdx
mov dword [rsp + 0x28], 2
xor edx, edx
mov r14d, r8d
mov r8, qword [rsp + 0x60]
mov rbp, rcx
xor bl, bl
mov rcx, rax
test r9d, r9d
sete dl
and qword [r11 - 0x18], 0
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileExW]
mov rdi, qword [rsp + 0x68]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1400059d6
mov rcx, qword [rsp + 0x60]
lea rax, [fcn.140005b00]
mov edx, r14d
cmp rbp, rax
jne 0x140005a9b
call fcn.140005b00
test eax, eax
je 0x140005abf
and dword [0x140046d88], 0
mov bl, 1
cmp qword [rdi], 0xffffffffffffffff
je 0x140005a71
mov r8, qword [0x140046d90]
test r8, r8
je 0x140005a33
mov edx, dword [0x1400303ac]
cmp edx, dword [0x140046d98]
jl 0x140005a58
lea eax, [rdx + 1]
movsxd rbx, eax
shl rbx, 3
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, qword [0x140046d90]
mov r9, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapReAlloc]
mov r8, rax
test rax, rax
je 0x140017bda
inc dword [0x140046d98]
jmp 0x140005a4b
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov r8, rax
mov edx, dword [0x1400303ac]
mov qword [0x140046d90], rax
test r8, r8
je 0x140005a6f
mov rax, qword [rdi]
movsxd rcx, edx
inc edx
mov dword [0x1400303ac], edx
mov qword [r8 + rcx*8], rax
mov bl, 1
test bl, bl
je 0x140005a8d
mov al, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [0x140046d88], eax
jmp 0x140005a75
lea rax, [fcn.140006f00]
cmp rbp, rax
jne 0x140005ab1
call fcn.140006f00
jmp 0x1400059c5
mov rax, rbp
call qword [vtable._SH_.0]
jmp 0x1400059c5
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
test eax, eax
je 0x140005ae0
cmp qword [rdi], 0xffffffffffffffff
jne 0x1400059a8
jmp 0x1400059d6
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
or qword [rdi], 0xffffffffffffffff
jmp 0x1400059d6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [rdi]
mov dword [0x140046d88], eax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
or qword [rdi], 0xffffffffffffffff
xor al, al
jmp 0x140005a77
Function at 0x140005ee8
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, 0x240
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov ecx, 0x48
call fcn.140008d68
mov rcx, rax
mov rdi, rax
mov qword [rax], rbx
call fcn.1400072f0
mov r14, qword [rdi + 0x30]
mov ecx, 0x208
mov rsi, qword [rdi]
mov rbx, qword [rdi + 0x18]
call fcn.140008d68
xor r8d, r8d
mov qword [0x140030398], rax
mov edx, 0x104
mov rcx, rax
call fcn.1400115f0
mov r8, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000f654
xor r15d, r15d
test eax, eax
jne 0x14000604c
lea ebp, [rax + 0x5c]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.14000e3dc
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [0x140032600]
mov word [rax + 2], r15w
call fcn.14000dc10
test rbx, rbx
je 0x140006010
cmp word [rbx], 0x3a
je 0x140006010
cmp word [rbx], bp
jne 0x140005fe8
cmp rbx, rsi
je 0x140018060
mov rax, rsi
cmp word [rax], r15w
je 0x140018058
mov rcx, rax
add rax, 2
cmp rax, rbx
jne 0x140005fbf
cmp word [rcx], 0x3a
je 0x140018060
cmp word [rcx], bp
je 0x140018060
movzx ebp, word [rbx]
mov rcx, rsi
mov word [rbx], r15w
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006053
mov dword [0x140046d88], r15d
mov word [rbx], bp
cmp dword [0x140046d88], r15d
jne 0x14000604c
mov rcx, rdi
call fcn.1400072f0
mov rax, rdi
mov qword [rdi + 0x30], r14
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, 1
jmp 0x14000601f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [0x140046d88], eax
jmp 0x140006004
mov rcx, r15
jmp 0x140005fd5
add rbx, 2
jmp 0x140005fe8
Function at 0x14000844c
Capabilities:
Check if file exists
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x208
call fcn.14000b530
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140018ef8
mov r8d, 0x104
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rcx, [0x1400285d0]
call fcn.1400086f4
test rax, rax
je 0x140018f03
lea rcx, str.PATHEXT
call fcn.1400086f4
test rax, rax
je 0x140018f1c
lea rcx, [0x140028600]
call fcn.1400086f4
test rax, rax
je 0x140008501
lea rcx, str.COMSPEC
call fcn.1400086f4
test rax, rax
je 0x140018f35
lea rcx, str.KEYS
call fcn.1400086f4
mov ebx, 1
test rax, rax
jne 0x140018fae
mov edx, ebx
lea rcx, [0x140032600]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140011280
lea rdx, str._P_G
lea rcx, [0x140028600]
call fcn.14000e278
jmp 0x1400084ba
mov ecx, 1
call fcn.140011814
int3
lea rdx, [0x140028958]
lea rcx, [0x1400285d0]
call fcn.14000e278
nop
jmp 0x140008494
lea rdx, str..COM_.EXE_.BAT_.CMD_.VBS_.JS_.WS_.MSC
lea rcx, str.PATHEXT
call fcn.14000e278
nop
jmp 0x1400084a9
mov edx, 0x2e
mov rcx, rbx
call fcn.140008434
test rax, rax
jne 0x140018f99
lea rcx, [0x140029302]
call qword [sym.imp.msvcrt.dll__wcsupr]
mov edx, 0x5c
mov rcx, rbx
call fcn.14000e3dc
mov r8, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], di
jne 0x140018f68
lea rax, [rbx - 2]
mov edx, 0x104
lea rax, [rax + rcx*2]
mov rcx, rbx
cmp rax, r8
lea r8, str.CMD.EXE
jne 0x140018f94
lea r8, [0x140029302]
call fcn.14000db30
mov rdx, rbx
lea rcx, str.COMSPEC
call fcn.14000e278
nop
jmp 0x1400084cf
lea rdx, [0x1400294e8]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov ecx, dword [0x14004b0b8]
test eax, eax
cmove ecx, ebx
mov dword [0x14004b0b8], ecx
jmp 0x1400084e9
Function at 0x1400086f4
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, [0x140036820]
xor esi, esi
mov r8d, ebp
mov rdx, rdi
mov word [0x140036820], si
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140008748
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 [0x140046d39], sil
je 0x140008811
lea rdx, [0x140028720]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008860
lea rdx, str.ERRORLEVEL
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008842
lea rdx, str.CMDEXTVERSION
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001901e
lea rdx, str.CMDCMDLINE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140019029
lea rdx, str.DATE
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008872
lea rdx, str.TIME
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008818
lea rdx, str.RANDOM
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140019035
lea rdx, str.HIGHESTNUMANODENUMBER
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140019043
xor eax, eax
jmp 0x140008733
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.1400020c8
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jae 0x140008899
mov word [rcx + rdi], si
jmp 0x140008730
mov r9d, dword [0x1400428d0]
lea r8, [0x1400283fc]
mov rdx, rbp
mov rcx, rdi
call fcn.140011b7c
jmp 0x140008730
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400115f0
jmp 0x140008730
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.140002ba0
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jb 0x140008839
call fcn.140015398
int3
call fcn.140015398
int3
mov r9d, 2
jmp 0x140008849
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
nop
jmp 0x140008733
call qword [sym.imp.msvcrt.dll_rand]
mov r9d, eax
jmp 0x140008849
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 0x140008849
Function at 0x14000b5a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r9
movsxd rsi, r8d
mov r13, rdx
lea rdi, [0x1400303c0]
mov r15d, 1
xor r8d, r8d
mov r9d, r15d
xor edx, edx
mov rbp, rcx
mov rbx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
mov r12d, eax
cmp rsi, 0x1fff
jb 0x14000b5f7
mov esi, 0x1fff
lea rcx, [0x140030378]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
mov r9, r14
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
lea rcx, [0x140030378]
mov edi, eax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test edi, edi
je 0x14000b6f9
mov edi, dword [r14]
test edi, edi
je 0x14000b6f9
mov ecx, edi
mov dword [rsp + 0x70], ecx
jle 0x14000b67e
lea rdx, [0x14004afb0]
cmp ecx, 3
jl 0x14000b664
movzx eax, byte [rbx]
cmp al, 0xa
je 0x140019ac8
cmp al, 0xd
je 0x14000b687
movzx eax, byte [rbx]
cmp byte [rax + rdx], 0
jne 0x140019ad7
dec ecx
inc rbx
mov dword [rsp + 0x70], ecx
test ecx, ecx
jg 0x14000b650
lea rbx, [0x1400303c0]
jmp 0x14000b6b2
cmp byte [rbx + 1], 0xa
jne 0x14000b664
mov byte [rbx + 2], 0
mov edi, ebx
lea rbx, [0x1400303c0]
xor r9d, r9d
sub edi, ebx
xor r8d, r8d
add edi, 2
mov rcx, rbp
lea edx, [rdi + r12]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
mov ecx, dword [0x14003a844]
call fcn.14000bbf0
test eax, eax
je 0x14000b6fd
mov dword [rsp + 0x28], esi
mov r9d, edi
mov r8, rbx
mov qword [rsp + 0x20], r13
mov edx, r15d
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [r14], eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x14000b6dc
xor r15d, r15d
jmp 0x14000b6c1
cmp byte [rbx + 1], 0xd
je 0x14000b68d
jmp 0x14000b660
cmp ecx, r15d
je 0x140019ae8
sub ecx, 2
add rbx, 2
jmp 0x14000b676
lea rcx, [0x140030378]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, r15d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
lea rcx, [0x140030378]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test ebx, ebx
je 0x140019b34
cmp dword [rsp + 0x70], 0
je 0x140019b34
inc edi
jmp 0x14000b67e
mov dword [r14], 0
jmp 0x14000b6f9
Function at 0x14000ceb4
Capabilities:
Set console window title

Disassembly:
test rcx, rcx
je 0x14000cef8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rcx
cmp qword [0x140046d30], r15
je 0x14000cef9
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
cmp dword [0x140046d3c], r15d
jne 0x14000cee0
jmp 0x14001a004
mov ecx, 0x20c
call fcn.14000b530
mov rdi, rax
test rax, rax
je 0x14000cee0
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x14000cee0
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp word [rbp + rcx*2], r15w
jne 0x14001a037
add ecx, dword [0x14003033c]
lea r14d, [rax + 0xa]
add r14d, ecx
mov rcx, rdi
lea edx, [r14 + r14]
call fcn.14000d360
mov rbx, rax
test rax, rax
je 0x14001a0cc
cmp byte [0x140030364], r15b
mov rdi, rax
je 0x14001a089
mov ecx, dword [0x14003033c]
mov r8, rbp
sub r14d, ecx
mov edx, r14d
lea rcx, [rax + rcx*2]
call fcn.14000dc10
jmp 0x14001a0c3
movsxd r14, r14d
lea r8, [0x140029730]
mov rdx, r14
mov rcx, rax
call fcn.14000db30
inc rsi
cmp word [rbx + rsi*2], r15w
jne 0x14001a09e
mov r8, rbp
mov dword [0x14003033c], esi
mov rdx, r14
mov rcx, rbx
call fcn.14000db30
mov byte [0x140030364], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
mov rcx, rdi
call fcn.14000b4a0
nop
jmp 0x14000cee0
Function at 0x14000e278
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov byte [0x14003e8a6], dil
test rdx, rdx
je 0x14000e2a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x14000e294
neg rax
sbb rax, rax
and rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentVariableW]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, qword [0x140036810]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
call fcn.14000e2ec
test ebx, ebx
mov qword [0x140036810], rax
mov rbx, qword [rsp + 0x30]
sete dil
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000e2ec
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_2_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
mov edi, ebp
test rax, rax
je 0x14000e36e
mov rcx, rax
cmp word [rax], bp
je 0x14000e32b
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14000e31a
cmp word [rcx], bp
jne 0x14000e31a
sub rcx, rbx
add rcx, 2
sar rcx, 1
lea esi, [rcx + rcx]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000e365
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_2_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