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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400143a0
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x1400258a0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1a100
call fcn.140247340
sub rsp, rax
mov ebx, r9d
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test r9d, r9d
jne 0x1400258d5
xor eax, eax
jmp 0x1400259aa
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xa098
call fcn.140249b10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x1a128]
mov qword [rsp + 0x48], rbp
lea rdx, [rsp + 0x40]
xor ebp, ebp
mov dword [rsp + 0x44], eax
mov r8d, 0xa098
mov dword [rsp + 0x1a128], ebp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x1005
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x1a128]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
lea rcx, [rsp + 0xa0e0]
mov r8d, 0x10018
call fcn.140249b10
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 0x10018
mov dword [rsp + 0x30], ebp
lea rdx, [rsp + 0xa0e0]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x1a130]
mov eax, dword [rsp + 0xa0ec]
mov dword [rcx], eax
mov ecx, dword [rsp + 0xa0e0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0xa0e8]
lea r11, [rsp + 0x1a100]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002beb0
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x80
lea rax, vtable.CSABMD5.0
mov rsi, rcx
mov qword [rcx], rax
test r8d, r8d
je 0x14002bf95
xor eax, eax
mov qword [r11 + 8], rbx
mov qword [rcx + 8], rax
mov r9d, r8d
mov qword [rcx + 0x10], rax
mov r8, rdx
mov qword [rcx + 0x18], rax
lea rdx, [r11 - 0x68]
mov qword [r11 - 0x50], rax
xor ebx, ebx
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x68], rbx
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [r11 + 0x10], rdi
lea rdi, [rcx + 8]
mov qword [rcx + 0x30], rax
mov byte [rcx + 0x38], al
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.1400390f0
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140039210
nop
movzx r8d, byte [rdi]
lea ecx, [rbx + rbx]
add rcx, 0x18
lea rdx, [0x14028a478]
add rcx, rsi
call fcn.140006bc0
inc ebx
lea rdi, [rdi + 1]
cmp ebx, 0x10
jb 0x14002bf60
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rax, rsi
add rsp, 0x80
pop rsi
ret

Function at 0x14002c0d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov esi, r9d
mov edi, r8d
mov r14, rcx
lea rax, vtable.CProcessListRealtime2::CWatchFolder.0
mov qword [rcx], rax
lea rax, vtable.CSABStringW.0
mov qword [rcx + 8], rax
xor ebp, ebp
mov qword [rcx + 0x10], rbp
mov dword [rcx + 0x18], ebp
add rcx, 8
call fcn.14002a980
mov dword [r14 + 0x1c], 1
mov qword [r14 + 0x20], rbp
mov qword [r14 + 0x28], rbp
mov qword [r14 + 0x30], rbp
mov qword [r14 + 0x38], rbp
mov rax, qword [rsp + 0x90]
mov qword [r14 + 0x40], rax
mov dword [r14 + 0x48], edi
mov dword [r14 + 0x8c], esi
mov eax, dword [rsp + 0x80]
mov dword [r14 + 0x90], eax
mov eax, dword [rsp + 0x88]
mov dword [r14 + 0x94], eax
lea rcx, [0x14028b028]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [r14 + 0x20], rax
test rax, rax
je 0x14002c195
lea rdx, str.ReadDirectoryChangesW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14 + 0x28], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [r14 + 0x50], rax
mov dword [r14 + 0x88], ebp
mov ecx, dword [r14 + 0x8c]
call fcn.140247068
mov qword [r14 + 0x78], rax
mov ecx, dword [r14 + 0x8c]
call fcn.140247068
mov qword [r14 + 0x80], rax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x10000
mov r9, r14
lea r8, [0x1400385c0]
mov edx, 0x100000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x38], rax
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14002e2a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x840
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x170]
mov rax, qword [rcx]
call qword [rax + SysAllocStringByteLen]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002e37f
mov rcx, rbx
mov qword [rsp + 0x850], rsi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x820
mov rsi, rax
call fcn.140249b10
test rsi, rsi
je 0x14002e377
cmp dword [rdi + 0x708], 0
je 0x14002e377
mov rcx, qword [rdi + 0x700]
lea rdx, [rsp + 0x20]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14002e320
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rdi + 0x170]
lea r8, [rsp + 0x20]
xor r9d, r9d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov rcx, qword [rdi + 0x170]
lea rdx, [rsp + 0x20]
mov r9d, 4
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov rsi, qword [rsp + 0x850]
xor r9d, r9d
mov r8, rbx
lea edx, [r9 + 5]
lea ecx, [rdx - 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov rbx, qword [rsp + 0x858]
mov eax, 1
add rsp, 0x840
pop rdi
ret
Function at 0x140033110
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
lea rdx, str.SeDebugPrivilege
call fcn.140030270
mov rcx, qword [rdi + 0x170]
xor r8d, r8d
mov r9d, ebx
mov rax, qword [rcx]
lea edx, [r8 + 1]
call qword [rax + 0x320]
mov rdx, rax
test rax, rax
je 0x14003316a
mov rcx, qword [rdi + 0x170]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400372c0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rsi, rcx
lea rdx, str.SeDebugPrivilege
call fcn.140030270
mov rcx, qword [rsi + 0x170]
mov ebp, 1
mov r9d, ebx
xor r8d, r8d
mov edx, ebp
xor edi, edi
mov rax, qword [rcx]
call qword [rax + 0x320]
mov rbx, rax
test rax, rax
je 0x140037339
mov rcx, qword [rsi + 0x170]
xor r8d, r8d
mov rdx, rax
mov r9, qword [rcx]
call qword [r9 + 0x328]
mov rcx, qword [rsi + 0x170]
mov rdx, rbx
test eax, eax
cmovne edi, ebp
mov r8, qword [rcx]
call qword [r8 + 0x38]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140037bf0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov edi, edx
mov rbx, rcx
lea rax, vtable.CProcessListRealtime2::CFunctionEnterExit.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
cmp qword [rcx + 0x180], 0
je 0x140037c72
lea rsi, str.StartRealtimeProtection
mov qword [rsp + 0x40], rsi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.140249b10
mov r8, rsi
lea rdx, [0x1402862f8]
lea rcx, [rsp + 0x50]
call fcn.140006bc0
mov rcx, qword [rbx + 0x180]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
jmp 0x140037c77
mov rsi, qword [rsp + 0x40]
test edi, edi
jne 0x140037c85
mov rcx, rbx
call fcn.140037d30
jmp 0x140037ccc
mov dword [rsp + 0x168], 0
mov dword [rbx + 0x108], edi
lea rax, [rsp + 0x168]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, rbx
lea r8, [0x140037ad0]
mov edx, 0x100000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbx + 0x180], 0
je 0x140037d0f
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.140249b10
mov r8, rsi
lea rdx, str._s___Leavex
lea rcx, [rsp + 0x50]
call fcn.140006bc0
mov rcx, qword [rbx + 0x180]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
nop
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140037e40
Capabilities:
Get common file path
Print debug messages

Disassembly:
push rdi
mov eax, 0x1090
call fcn.140247340
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x10a8], rbx
mov rbx, rcx
xor edx, edx
mov r8d, 0x820
lea rcx, [rsp + 0x50]
call fcn.140249b10
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xb]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [rsp + 0x50], 0
jne 0x140037eaf
mov eax, dword [0x14028c7b4]
mov dword [rsp + 0x50], eax
movzx eax, word [0x14028c7b8]
mov word [rsp + 0x54], ax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, str.start_menu_folder
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x98
call fcn.14018ef40
mov qword [rsp + 0x10a0], rax
xor edi, edi
test rax, rax
je 0x140037f1a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x101
mov dword [rsp + 0x20], 1
mov r9d, dword [rbx + 0xcd8]
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14002c0d0
jmp 0x140037f1d
mov rax, rdi
mov qword [rbx + 0x2d8], rax
xor edx, edx
mov r8d, 0x820
lea rcx, [rsp + 0x870]
call fcn.140249b10
lea rax, [rsp + 0x870]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x16]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [rsp + 0x870], 0
je 0x140037fb6
mov ecx, 0x98
call fcn.14018ef40
mov qword [rsp + 0x10a0], rax
test rax, rax
je 0x140037faf
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x101
mov dword [rsp + 0x20], 1
mov r9d, dword [rbx + 0xcd8]
mov r8d, 1
lea rdx, [rsp + 0x870]
mov rcx, rax
call fcn.14002c0d0
mov rdi, rax
mov qword [rbx + 0x2e0], rdi
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1090
pop rdi
ret
Function at 0x14003b830
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1090
call fcn.140247340
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x10a8], rbx
mov rdi, rcx
lea rax, vtable.CPluggableParseListEnterExit.0
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], r8
lea rax, vtable.CSABTimer.0
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x40], 0
mov dword [rcx + 0x48], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rbx, rax
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
nop
lea rax, vtable.CSABProcessMemoryInformation.0
mov qword [rsp + 0x30], rax
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140249b10
mov rax, qword [rsp + 0x38]
mov rbx, rax
test rax, rax
jne 0x14003b8fb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov rax, qword [rsp + 0x38]
test rbx, rbx
je 0x14003b920
mov dword [rsp + 0x40], 0x50
mov r8d, 0x50
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14003b934
test rbx, rbx
je 0x14003b934
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x90]
call fcn.140249b10
mov r9, qword [rsp + 0x50]
mov r8, qword [rdi + 0x10]
lea rdx, str._s___Working_Set_Size___Enter:__10d
lea rcx, [rsp + 0x90]
call fcn.140006bc0
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0xd68]
test rcx, rcx
je 0x14003b984
mov rax, qword [rcx]
lea rdx, [rsp + 0x90]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rbx, rax
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1090
pop rdi
ret
Function at 0x140043b10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x120
mov dword [r8], 0
mov r14, r8
mov rdx, qword [rcx + 0x7d0]
mov rsi, rcx
movzx ebx, word [rdx + 0x14]
movzx eax, word [rdx + 0x1a]
mov edi, dword [rdx + 0x1c]
shl ebx, 0x10
or ebx, eax
nop dword [rax]
test edi, edi
je 0x140043ba2
mov rcx, qword [rsi + 8]
mov eax, edi
mov edx, ebx
cmp edi, dword [rcx + 0x68]
cmovae eax, dword [rcx + 0x68]
sub edi, eax
call fcn.14004a1b0
movzx ebx, ax
lea rdx, [0x14028ea38]
mov r8d, ebx
lea rcx, [rsp + 0x20]
call fcn.140006bc0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
and eax, 0xfff
cmp eax, 0xfff
je 0x140043b9e
test ebx, ebx
jne 0x140043b50
test edi, edi
je 0x140043baf
mov rax, qword [rsi + 0x7d0]
cmp dword [rax + 0x1c], 0
jne 0x140043bb8
mov dword [r14], 0x64
jmp 0x140043bbf
mov dword [r14], SafeArrayUnaccessData
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x1400491b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x898
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor r9d, r9d
mov r8, qword [rcx + 0x30]
mov rdx, qword [rcx + 0x20]
lea rcx, [rsp + 0x38]
call fcn.14006a9c0
nop
mov dword [rsp + 0x8a8], 0x410
mov dword [rsp + 0x8a0], 0x410
lea rax, [rsp + 0x8a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8a8]
lea r8, [rsp + 0x480]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14006ab70
test eax, eax
je 0x14004928d
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x38]
call fcn.14006ab50
mov dword [rsp + 0x8a8], 0x410
mov dword [rsp + 0x8a0], 0x410
lea rax, [rsp + 0x8a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8a8]
lea r8, [rsp + 0x480]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14006ab70
test eax, eax
jne 0x140049223
lea rcx, [rsp + 0x38]
call fcn.14006aa90
mov eax, 1
add rsp, 0x898
ret

Function at 0x1400492c0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rbp, rdx
mov rdi, rcx
call fcn.1400491b0
lea rax, vtable.CSABString.0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x3c], 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.SHLWAPI.dll_PathGetDriveNumberA]
cmp eax, 0xffffffff
jne 0x14004938f
add rdi, 0xc
je 0x14004936c
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140049340
inc eax
mov esi, eax
mov ecx, eax
call fcn.140247068
mov rbx, rax
test rax, rax
je 0x14004938f
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call fcn.1402496a0
jmp 0x140049382
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rbx, rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
test rbx, rbx
je 0x14004938f
mov rcx, rbx
call fcn.140247060
mov rdx, qword [rbp + 8]
lea rcx, [rsp + 0x28]
call fcn.140028ca0
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
cmp dword [rsp + 0x3c], 1
jne 0x1400493c0
test rbx, rbx
je 0x1400493c0
mov rcx, rbx
call fcn.140247060
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004a3a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x1094], 4
mov rdi, r9
mov esi, r8d
mov rbx, rcx
jne 0x14004a3f2
mov eax, dword [rcx + 0x1098]
test eax, eax
je 0x14004a3d5
cmp eax, 0xa
je 0x14004a3de
cmp eax, 0x5a
jmp 0x14004a3dc
cmp dword [rcx + 0x10a0], 1
jne 0x14004a3f2
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp fcn.14004a200
mov rax, qword [rcx + 0x1078]
lea r8, [rsp + 0x50]
xor r9d, r9d
movzx ecx, word [rax + 0xb]
mov eax, edx
imul rcx, rax
mov rax, rcx
mov edx, ecx
mov rcx, qword [rbx + 0x60]
shr rax, 0x20
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbx + 0x1078]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], 0
movzx r8d, word [rax + 0xb]
imul r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x58]
mov eax, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14004a470
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x28
add rcx, 0xc
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14004c4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x80
cmp dword [rcx + 0x1094], 4
mov rbp, r9
mov r14d, r8d
mov r15d, edx
mov rbx, rcx
jne 0x14004c68a
mov eax, dword [rcx + 0x1098]
test eax, eax
je 0x14004c523
cmp eax, 0xa
je 0x14004c530
cmp eax, 0x5a
jmp 0x14004c52a
cmp dword [rcx + 0x10a0], 1
jne 0x14004c68a
xor edi, edi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x30], rdi
lea rcx, str.._vwin32
mov dword [rsp + 0x28], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004c679
mov r8d, dword [rbx + 0x74]
lea r9d, [rdi + 1]
mov rdx, rax
mov dword [rsp + 0x20], 2
mov rcx, rbx
call fcn.140049a90
mov r8d, dword [rbx + 0x74]
lea r9d, [rdi + 2]
mov rdx, rsi
mov dword [rsp + 0x20], 2
mov rcx, rbx
call fcn.140049a90
mov r8d, dword [rbx + 0x74]
lea r9d, [rdi + 3]
mov rdx, rsi
mov dword [rsp + 0x20], 2
mov rcx, rbx
call fcn.140049a90
mov eax, dword [rbx + 0x74]
lea r9d, [rdi + 0x1c]
inc eax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x5c], eax
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4e], ebp
mov dword [rsp + 0x58], eax
lea edx, [rdi + 6]
lea rax, [rsp + 0xa0]
mov word [rsp + 0x4c], r14w
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x6c], 0x4001
mov dword [rsp + 0x64], 0x7305
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14004c67e
test byte [rsp + 0x70], 1
jne 0x14004c67e
mov r8d, dword [rbx + 0x74]
mov rdx, rsi
mov rcx, rbx
call fcn.14004a4a0
mov r8d, dword [rbx + 0x74]
mov rdx, rsi
mov rcx, rbx
call fcn.14004a4a0
mov r8d, dword [rbx + 0x74]
mov rdx, rsi
mov rcx, rbx
call fcn.14004a4a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov rsi, qword [rsp + 0xa8]
mov eax, edi
jmp 0x14004c6ea
mov rax, qword [rcx + 0x1078]
lea r8, [rsp + 0xa0]
xor r9d, r9d
movzx ecx, word [rax + 0xb]
imul rcx, r15
mov rax, rcx
mov edx, ecx
mov rcx, qword [rbx + 0x60]
shr rax, 0x20
mov dword [rsp + 0xa0], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbx + 0x1078]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx + 0x60]
xor edi, edi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
movzx r8d, word [rax + 0xb]
imul r8d, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [rdi + 1]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004ece0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x1094], 4
mov rdi, r9
mov esi, r8d
mov rbx, rcx
jne 0x14004ed32
mov eax, dword [rcx + 0x1098]
test eax, eax
je 0x14004ed15
cmp eax, 0xa
je 0x14004ed1e
cmp eax, 0x5a
jmp 0x14004ed1c
cmp dword [rcx + 0x10a0], 1
jne 0x14004ed32
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp fcn.14004a200
mov rax, qword [rcx + 0x1078]
lea r8, [rsp + 0x50]
xor r9d, r9d
movsx rcx, word [rax + 0xb]
mov eax, edx
imul rcx, rax
mov rax, rcx
mov edx, ecx
mov rcx, qword [rbx + 0x60]
shr rax, 0x20
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rbx + 0x1078]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], 0
movsx r8d, word [rax + 0xb]
imul r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x58]
mov eax, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret