joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023b1c
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 [0x1400dae68]
mov edi, r8d
xor r12d, r12d
call fcn.140036b0c
mov rbx, rax
test rax, rax
je 0x140023b00
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x1400239fe
mov rcx, r13
call fcn.140024118
jmp 0x14002397c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x140023971
mov rcx, qword [rbx + 0x20]
call fcn.140024294
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.14002378c
lea r11, [rsp + 0x88]
lea r8, [0x140023838]
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 0x1400239d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x1400239e8
mov edx, edi
mov rcx, r13
call fcn.14002422c
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x140023aac
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x140023ab9
mov rcx, rax
call fcn.140023b28
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.140037448
mov rcx, qword [0x1400daf78]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x140023b00
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 0x140023a96
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.140024148
jmp 0x140023aa4
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 0x140023b00
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 0x140023ade
mov edx, edi
mov rcx, r13
call fcn.14002422c
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 0x140023b00
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 0x140023918
Function at 0x14002450c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140024583
movsxd rdx, ecx
lea rcx, [0x140024468]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400dae78]
test rbx, rbx
je 0x1400245f6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140024579
cmp byte [rbx + 0x20], 0
je 0x140024579
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 0x14002453f
jmp 0x1400245f6
mov rbx, qword [0x1400dae78]
test rbx, rbx
je 0x1400245f6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400245ee
cmp byte [rbx + 0x21], 0
je 0x1400245b2
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400245de
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, [0x1400dae78]
call fcn.14003748c
mov rbx, rdi
test rdi, rdi
jne 0x14002458f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140028568
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 [0x1400dc120]
call fcn.140036b0c
mov rsi, rax
test rax, rax
je 0x1400285e1
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400285a6
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400285e1
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400378a0
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.140037950
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002db58
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 0x14002dc6d
mov eax, dword [rsp + 0x30]
dec eax
je 0x14002dc4a
dec eax
jne 0x14002dc6d
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002dbc5
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14002dc43
dec eax
je 0x14002dc3c
dec eax
je 0x14002dc12
dec eax
jne 0x14002dc6d
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002dc06
dec eax
je 0x14002dbfa
dec eax
jne 0x14002dc6d
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14002dc6d
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14002dc6d
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14002dc6d
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002dc35
dec eax
je 0x14002dc2e
dec eax
jne 0x14002dc6d
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14002dc6d
mov ebx, 0x3c
jmp 0x14002dc6d
mov ebx, 0x32
jmp 0x14002dc6d
mov ebx, 0x14
jmp 0x14002dc6d
mov ebx, 5
jmp 0x14002dc6d
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002dc68
cmp eax, 0xa
je 0x14002dc61
cmp eax, 0x5a
jne 0x14002dc6d
lea ebx, [rax - 0x32]
jmp 0x14002dc6d
mov ebx, 0x1e
jmp 0x14002dc6d
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14002f1a4
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 0x14002f24d
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002f24d
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002f24d
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002f24d
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002f24d
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 0x14002f24d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14002f2f7
test rbx, rbx
je 0x14002f28c
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002f27f
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002f27f
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002f28c
mov edx, 1
mov rcx, rbx
call fcn.14002f150
test rdi, rdi
je 0x14002f2a6
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14002f2f7
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14002f2f7
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14002f2f7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14002f2f7
mov rcx, qword [0x1400dc150]
lea rdx, [rdi - 1]
call fcn.140036b0c
test rax, rax
je 0x14002f2f7
mov rax, qword [rax + 0x10]
jmp 0x14002f2f9
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002f514
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.1400378a0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14002f553
cmp byte [rbx + rdi - 1], 0x5c
je 0x14002f553
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.140037950
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 0x14002f654
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.1400378a0
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 0x14002f6c6
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002f6bd
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.140037950
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 0x14002f848
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14002f8bb
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 0x14002f8a7
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14002f89a
cmp al, 0x5c
je 0x14002f89a
cmp al, 0x2f
jne 0x14002f8a7
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14002f888
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14002f8bd
xor eax, eax
add rsp, 0x138
ret

Function at 0x14002f8c8
Capabilities:
Set current directory

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

Function at 0x14002f8e4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002f90f
test dl, 2
je 0x14002f902
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 0x14002f911
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002f8e4

Function at 0x14002f918
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002f90f
test dl, 2
je 0x14002f902
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 0x14002f911
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002f8e4

Function at 0x14002f920
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14002f93b
test rdx, rdx
je 0x14002f93b
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cdqe
jmp 0x14002f93d
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002f960
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 0x14002fa99
cmp byte [rcx], 0
je 0x14002fa99
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 0x14002f9c2
cmp r11d, 3
jne 0x14002f9f6
cmp byte [rsp + 0x21], 0x3a
jne 0x14002f9f6
cmp r11d, 2
jne 0x14002f9e0
lea rdx, [0x140087d2c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x14002fa99
jmp 0x14002fa71
cmp byte [rcx], 0x5c
je 0x14002fa00
cmp byte [rcx], 0x2f
jne 0x14002fa08
mov byte [rcx], 0
dec rcx
jmp 0x14002f9f6
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14002fa43
test byte [rbp + 0x30], 0x10
je 0x14002fa2e
mov rbx, 0xfffffffffffffffe
jmp 0x14002fa3b
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002fa99
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14002fa52
cmp al, 0x5c
je 0x14002fa5d
cmp byte [rsp + 0x20], 0x2e
jne 0x14002fa99
cmp al, 0x2e
jne 0x14002fa99
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002fa7a
test al, 0x10
je 0x14002fa99
mov rbx, 0xfffffffffffffffe
jmp 0x14002fa99
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 0x14002fab0
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 0x14002faf6
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 0x140030210
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
call fcn.140036b0c
mov rbx, rax
test rax, rax
je 0x140030264
cmp qword [rax + 8], 0
je 0x140030242
cmp dword [rax + 0x1c], 0
jne 0x140030242
mov rcx, rax
call fcn.14002fab0
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 0x140030270
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
mov byte [rsp + 0x48], 0
call fcn.140036b0c
test rax, rax
je 0x1400302ce
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x1400302b1
mov r8d, 1
mov rcx, rax
call fcn.140030780
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 0x1400302e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
mov dword [rsp + 0x48], 0
call fcn.140036b0c
test rax, rax
je 0x140030341
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x140030324
mov r8d, 4
mov rcx, rax
call fcn.140030780
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 0x140030350
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
mov byte [rsp + 0x48], 0
call fcn.140036b0c
test rax, rax
je 0x1400303af
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x140030392
mov r8d, 1
mov rcx, rax
call fcn.140030780
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 0x1400303c0
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 0x140030438
test r8d, r8d
je 0x140030438
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
call fcn.140036b0c
test rax, rax
je 0x140030434
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140030421
mov rcx, rax
call fcn.1400308b0
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 0x140030450
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.1400378a0
mov rcx, qword [0x1400dc1b0]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.140036b0c
mov rbx, rax
test rax, rax
je 0x14003059f
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 0x1400304c4
mov r8d, 1
mov rcx, rbx
call fcn.140030780
mov dword [rsp + 0x78], eax
jmp 0x1400304dd
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 0x1400304f0
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14003051e
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.1400378a0
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14003059a
cmp dword [rsp + 0x78], r13d
je 0x140030537
cmp dl, 0xd
je 0x140030537
cmp dl, 0xa
jne 0x1400304a0
dec rdi
cmp dl, 0xd
jne 0x14003059a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14003055a
mov r8d, 1
mov rcx, rbx
call fcn.140030780
jmp 0x140030573
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 0x14003059a
cmp qword [rbx + 8], r13
je 0x140030585
inc dword [rbx + 0x14]
jmp 0x14003059a
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.140037950
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400305c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.140036b0c
mov rdi, rax
test rax, rax
je 0x140030664
cmp qword [rax + 8], rbx
je 0x140030627
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140030780
test rax, rax
je 0x140030614
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 0x140030676
cmp dword [rsp + 0x58], ebx
je 0x140030676
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
Function at 0x140030690
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400dc1b0]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.140036b0c
mov rbx, rax
test rax, rax
je 0x140030770
test rsi, rsi
je 0x14003071b
cmp byte [rsi], bpl
je 0x14003071b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x1400306f8
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1400308b0
mov dword [rsp + 0x60], eax
jmp 0x140030716
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140087d30]
cmp qword [rbx + 8], rbp
je 0x140030749
mov rcx, rbx
call fcn.1400308b0
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x140030780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x1400307b4
call fcn.14002fab0
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140030819
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14003080f
dec rax
je 0x140030801
cmp rax, 2
je 0x1400307f5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140030894
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140030894
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140030894
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140030894
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x140030861
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x140030897
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret