joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400213e8
Capabilities:
Get file size
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
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140021526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x1400214c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140022078
mov rsi, rax
test rax, rax
je 0x14002151d
mov rcx, qword [0x1400d9f08]
mov rdx, r13
call fcn.14003453c
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14002201c
mov rcx, rsi
mov rbx, rax
call fcn.140021ff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140021d50
mov qword [rbp], rax
test rax, rax
je 0x1400214bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14002151d
mov rcx, rsi
call fcn.140022030
jmp 0x14002151d
mov rcx, qword [0x1400d8f00]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14002151d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.140021d48
mov rcx, qword [0x1400d8f00]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400213e8
Function at 0x140021544
Capabilities:
Get file size
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
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140021526
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x1400214c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140022078
mov rsi, rax
test rax, rax
je 0x14002151d
mov rcx, qword [0x1400d9f08]
mov rdx, r13
call fcn.14003453c
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.14002201c
mov rcx, rsi
mov rbx, rax
call fcn.140021ff4
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140021d50
mov qword [rbp], rax
test rax, rax
je 0x1400214bd
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x14002151d
mov rcx, rsi
call fcn.140022030
jmp 0x14002151d
mov rcx, qword [0x1400d8f00]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14002151d
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.140021d48
mov rcx, qword [0x1400d8f00]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400213e8
Function at 0x1400218dc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [0x1400d9f08]
mov edi, r8d
xor r12d, r12d
call fcn.1400345dc
mov rbx, rax
test rax, rax
je 0x1400218c0
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x1400217be
mov rcx, r13
call fcn.140021ed8
jmp 0x14002173c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x140021731
mov rcx, qword [rbx + 0x20]
call fcn.140022054
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.14002154c
lea r11, [rsp + 0x88]
lea r8, [0x1400215f8]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], r12d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140021799
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x1400217a8
mov edx, edi
mov rcx, r13
call fcn.140021fec
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x14002186c
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x140021879
mov rcx, rax
call fcn.1400218e8
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.140034f18
mov rcx, qword [0x1400da018]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400218c0
mov rcx, qword [rsp + 0x30]
mov byte [r12 + 9], bpl
mov byte [r12 + 8], sil
mov qword [r12], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp edi, 0xffffffff
je 0x140021856
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.140021f08
jmp 0x140021864
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400218c0
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp edi, 0xffffffff
je 0x14002189e
mov edx, edi
mov rcx, r13
call fcn.140021fec
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400218c0
mov r12, rsi
mov byte [rbx + 0x2c], sil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
or r8d, 0xffffffff
xor edx, edx
jmp 0x1400216d8
Function at 0x1400222cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140022343
movsxd rdx, ecx
lea rcx, [0x140022228]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400d9f18]
test rbx, rbx
je 0x1400223b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140022339
cmp byte [rbx + 0x20], 0
je 0x140022339
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400222ff
jmp 0x1400223b6
mov rbx, qword [0x1400d9f18]
test rbx, rbx
je 0x1400223b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400223ae
cmp byte [rbx + 0x21], 0
je 0x140022372
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14002239e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400d9f18]
call fcn.140034f5c
mov rbx, rdi
test rdi, rdi
jne 0x14002234f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140026328
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1400db070]
call fcn.1400345dc
mov rsi, rax
test rax, rax
je 0x1400263a1
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140026366
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400263a1
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140035370
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.140035420
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b624
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002b739
mov eax, dword [rsp + 0x30]
dec eax
je 0x14002b716
dec eax
jne 0x14002b739
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002b691
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14002b70f
dec eax
je 0x14002b708
dec eax
je 0x14002b6de
dec eax
jne 0x14002b739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002b6d2
dec eax
je 0x14002b6c6
dec eax
jne 0x14002b739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14002b739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14002b739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14002b739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002b701
dec eax
je 0x14002b6fa
dec eax
jne 0x14002b739
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14002b739
mov ebx, 0x3c
jmp 0x14002b739
mov ebx, 0x32
jmp 0x14002b739
mov ebx, 0x14
jmp 0x14002b739
mov ebx, 5
jmp 0x14002b739
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002b734
cmp eax, 0xa
je 0x14002b72d
cmp eax, 0x5a
jne 0x14002b739
lea ebx, [rax - 0x32]
jmp 0x14002b739
mov ebx, 0x1e
jmp 0x14002b739
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14002cc6c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14002cd15
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002cd15
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002cd15
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002cd15
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002cd15
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14002cd15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14002cdbf
test rbx, rbx
je 0x14002cd54
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002cd47
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002cd47
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002cd54
mov edx, 1
mov rcx, rbx
call fcn.14002cc18
test rdi, rdi
je 0x14002cd6e
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14002cdbf
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14002cdbf
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14002cdbf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14002cdbf
mov rcx, qword [0x1400db0a0]
lea rdx, [rdi - 1]
call fcn.1400345dc
test rax, rax
je 0x14002cdbf
mov rax, qword [rax + 0x10]
jmp 0x14002cdc1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002cfdc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140035370
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14002d01b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14002d01b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140035420
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14002d11c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140035370
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14002d18e
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d185
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140035420
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002d310
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14002d383
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14002d36f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14002d362
cmp al, 0x5c
je 0x14002d362
cmp al, 0x2f
jne 0x14002d36f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14002d350
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14002d385
xor eax, eax
add rsp, 0x138
ret

Function at 0x14002d390
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14002d3a3
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cdqe
jmp 0x14002d3a5
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002d3ac
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002d3d7
test dl, 2
je 0x14002d3ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14002d3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002d3ac

Function at 0x14002d3e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002d3d7
test dl, 2
je 0x14002d3ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14002d3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002d3ac

Function at 0x14002d3e8
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14002d403
test rdx, rdx
je 0x14002d403
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cdqe
jmp 0x14002d405
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002d428
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x14002d561
cmp byte [rcx], 0
je 0x14002d561
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rbp + 0x24], 0
call sub.msvcrt.dll_strlen
mov r11, rax
cdqe
lea rcx, [rsp + rax + 0x1f]
cmp r11d, 2
je 0x14002d48a
cmp r11d, 3
jne 0x14002d4be
cmp byte [rsp + 0x21], 0x3a
jne 0x14002d4be
cmp r11d, 2
jne 0x14002d4a8
lea rdx, [0x140084c7c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x14002d561
jmp 0x14002d539
cmp byte [rcx], 0x5c
je 0x14002d4c8
cmp byte [rcx], 0x2f
jne 0x14002d4d0
mov byte [rcx], 0
dec rcx
jmp 0x14002d4be
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14002d50b
test byte [rbp + 0x30], 0x10
je 0x14002d4f6
mov rbx, 0xfffffffffffffffe
jmp 0x14002d503
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002d561
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14002d51a
cmp al, 0x5c
je 0x14002d525
cmp byte [rsp + 0x20], 0x2e
jne 0x14002d561
cmp al, 0x2e
jne 0x14002d561
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002d542
test al, 0x10
je 0x14002d561
mov rbx, 0xfffffffffffffffe
jmp 0x14002d561
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret

Function at 0x14002d580
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14002d5c6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14002dce0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400db100]
call fcn.1400345dc
mov rbx, rax
test rax, rax
je 0x14002dd34
cmp qword [rax + 8], 0
je 0x14002dd12
cmp dword [rax + 0x1c], 0
jne 0x14002dd12
mov rcx, rax
call fcn.14002d580
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, r11
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x14002dd40
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400db100]
mov byte [rsp + 0x48], 0
call fcn.1400345dc
test rax, rax
je 0x14002dd9e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002dd81
mov r8d, 1
mov rcx, rax
call fcn.14002e250
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14002ddb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400db100]
mov dword [rsp + 0x48], 0
call fcn.1400345dc
test rax, rax
je 0x14002de11
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002ddf4
mov r8d, 4
mov rcx, rax
call fcn.14002e250
movsxd rax, dword [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14002de20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400db100]
mov byte [rsp + 0x48], 0
call fcn.1400345dc
test rax, rax
je 0x14002de7f
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002de62
mov r8d, 1
mov rcx, rax
call fcn.14002e250
movsx rax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx rax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14002de90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14002df08
test r8d, r8d
je 0x14002df08
mov rdx, rcx
mov rcx, qword [0x1400db100]
call fcn.1400345dc
test rax, rax
je 0x14002df04
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14002def1
mov rcx, rax
call fcn.14002e380
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14002df20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
mov ebp, 0x1000
mov r12d, edx
mov ecx, ebp
call fcn.140035370
mov rcx, qword [0x1400db100]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.1400345dc
mov rbx, rax
test rax, rax
je 0x14002e06f
mov qword [rsp + 0x60], r13
xor r13d, r13d
nop word [rax + rax]
mov byte [rsp + 0x70], r13b
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14002df94
mov r8d, 1
mov rcx, rbx
call fcn.14002e250
mov dword [rsp + 0x78], eax
jmp 0x14002dfad
mov rcx, qword [rbx]
lea r9, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, byte [rsp + 0x70]
test dl, dl
je 0x14002dfc0
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14002dfee
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.140035370
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14002e06a
cmp dword [rsp + 0x78], r13d
je 0x14002e007
cmp dl, 0xd
je 0x14002e007
cmp dl, 0xa
jne 0x14002df70
dec rdi
cmp dl, 0xd
jne 0x14002e06a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14002e02a
mov r8d, 1
mov rcx, rbx
call fcn.14002e250
jmp 0x14002e043
mov rcx, qword [rbx]
lea r9, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x70], 0xa
je 0x14002e06a
cmp qword [rbx + 8], r13
je 0x14002e055
inc dword [rbx + 0x14]
jmp 0x14002e06a
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [rsp + 0x60]
sub esi, edi
mov byte [rdi], 0
lea ecx, [rbp + rsi]
call fcn.140035420
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002e090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400db100]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.1400345dc
mov rdi, rax
test rax, rax
je 0x14002e134
cmp qword [rax + 8], rbx
je 0x14002e0f7
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14002e250
test rax, rax
je 0x14002e0e4
inc dword [rdi + 0x14]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e146
cmp dword [rsp + 0x58], ebx
je 0x14002e146
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 0xffffffff
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret