joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006320c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax + 0x20], 0
mov dword [rax - 0x48], 0x80
mov rdi, rdx
mov rdx, rcx
mov rbp, r8
mov dword [rax - 0x50], 3
and qword [rax - 0x58], 0
lea rcx, [rax + 0x20]
mov r9d, 1
mov r8d, 0x80000000
call fcn.1400037e4
mov rbx, qword [rsp + 0x98]
test rbx, rbx
jne 0x140063277
xor eax, eax
jmp 0x14006335c
and qword [rsp + 0x98], 0
lea r13, [rsp + 0x98]
test rdi, rdi
cmovne r13, rdi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
xor r14d, r14d
test rbp, rbp
setne r14b
mov esi, eax
mov qword [r13], rsi
test r14d, r14d
je 0x1400632e5
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov qword [rbp], rax
test rax, rax
jne 0x1400632d7
cmp rbx, 0xffffffffffffffff
je 0x140063270
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x140063270
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
mov rdi, rax
jmp 0x14006331b
mov rcx, qword [0x140118190]
lea r8, [rsi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14006330d
lea ecx, [rax + 2]
call fcn.140059c00
cmp eax, 4
je 0x1400632e5
mov dword [rdi + 4], 0xaa55
mov qword [rdi], rsi
add rdi, 8
test rdi, rdi
je 0x1400632c6
mov r8d, dword [r13]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test r14d, r14d
je 0x14006334a
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp rbx, 0xffffffffffffffff
je 0x140063359
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140064068
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
mov rbx, rdx
mov rsi, rcx
mov edi, 0x104
mov rdx, rdi
mov rcx, rbx
call fcn.14005a250
mov r11, qword [rbx]
xor ebp, ebp
mov word [r11], bp
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp eax, ebp
mov edi, eax
jle 0x1400640d6
mov rcx, qword [rbx]
cmp word [rcx], bp
jne 0x1400640d6
lea ecx, [rax + 2]
movsxd rdx, ecx
mov rcx, rbx
call fcn.14005a250
mov rdx, qword [rbx]
lea r8d, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006422c
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
xor edi, edi
mov esi, edx
mov eax, 3
cmp edx, edi
jge 0x140064331
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14006425d
mov eax, 0xffdf
and cx, ax
mov r8d, 0x3a
mov word [rsp + 0x40], cx
mov word [rsp + 0x50], cx
lea edx, [r8 + 0x22]
mov word [rsp + 0x42], r8w
mov word [rsp + 0x52], r8w
lea eax, [rdx - 0x2e]
mov word [rsp + 0x44], dx
mov word [rsp + 0x48], dx
mov word [rsp + 0x4a], dx
mov word [rsp + 0x4e], dx
mov qword [rsp + 0x30], rdi
lea r8d, [rax - 0x2b]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], edi
mov word [rsp + 0x46], di
mov word [rsp + 0x4c], ax
mov word [rsp + 0x54], di
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400642db
mov eax, 1
jmp 0x14006441b
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rbp
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, edi
lea rcx, [rsp + 0x40]
cmovne esi, dword [rsp + 0x64]
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp esi, 0xffffffff
je 0x1400642d1
xor r8d, r8d
mov edx, eax
mov ecx, esi
mov dword [rsp + 0x2a8], edi
call fcn.1400592f4
cmp eax, edi
je 0x1400642d1
lea rcx, [rsp + 0x2a8]
xor r8d, r8d
mov edx, eax
mov dword [rsp + 0x2b8], edi
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x2b0], edi
mov dword [rsp + 0x2a8], eax
call qword [sym.imp.SETUPAPI.DLL_CM_Get_Parent]
mov r8d, dword [rsp + 0x2a8]
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x2b8]
xor r9d, r9d
call qword [sym.imp.SETUPAPI.DLL_CM_Get_DevNode_Status]
mov ebx, dword [rsp + 0x2b8]
mov esi, 1
shr ebx, 0xe
mov ebp, 0x208
and bl, 1
mov ecx, dword [rsp + 0x2a8]
mov word [rsp + 0x70], di
mov dword [rsp + 0x20], edi
mov r9d, ebp
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x2b0]
cmp bl, dil
je 0x1400643db
call qword [sym.imp.SETUPAPI.DLL_CM_Request_Device_EjectW]
jmp 0x1400643e1
call qword [sym.imp.SETUPAPI.DLL_CM_Query_And_Remove_SubTreeW]
cmp eax, edi
jne 0x1400643ee
cmp dword [rsp + 0x2b0], edi
je 0x14006440e
lea rcx, [0x140117fa0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc8
call fcn.14001d848
inc esi
cmp esi, 3
jg 0x140064411
jmp 0x1400643ae
mov dil, 1
neg dil
sbb eax, eax
not eax
and eax, 2
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400665c0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov ebp, r8d
lea r8, [rax - 0x28]
xor r12d, r12d
mov r9d, 0x2001b
mov dword [rax - 0x78], 4
mov qword [rax - 0x28], r12
call fcn.140053348
cmp eax, r12d
jne 0x1400667bf
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
test bpl, 1
je 0x14006662e
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1400f9548]
call qword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyW]
mov ecx, dword [rsp + 0xb8]
cmp ecx, dword [rsp + 0x60]
mov edi, eax
cmovb ecx, dword [rsp + 0x60]
mov dword [rsp + 0xb8], ecx
lea edx, [rcx*4 + 8]
lea rcx, [rsp + 0x78]
call fcn.14005a1c4
cmp edi, r12d
jne 0x1400667a8
mov rbx, qword [rsp + 0x78]
test bpl, 4
je 0x140066730
mov esi, dword [rsp + 0x64]
dec esi
cmp esi, r12d
jl 0x140066730
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
cmp eax, r12d
je 0x140066711
mov edi, eax
jmp 0x14006672b
cmp word [rbx], r12w
je 0x14006672b
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x1400666c9
test bpl, 2
je 0x1400667a8
mov esi, dword [rsp + 0x68]
dec esi
cmp esi, r12d
jl 0x1400667a8
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea eax, [rax*4 + 1]
lea r9, [rsp + 0x6c]
mov r8, rbx
mov dword [rsp + 0x6c], eax
mov word [rbx], r12w
mov rcx, qword [rsp + 0x70]
mov edx, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
cmp eax, r12d
je 0x140066789
mov edi, eax
jmp 0x1400667a3
cmp word [rbx], r12w
je 0x1400667a3
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [0x140118230]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x140066741
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.140052160
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400667d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rdi, r8
lea rcx, [rsp + 0x78]
or r8, 0xffffffffffffffff
call fcn.140064d54
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rbx, qword [rax]
mov rdx, rdi
call fcn.140064d54
lea rdx, [0x1401029b8]
lea rcx, [0x140117fa0]
mov r9, qword [rax]
mov r8, rbx
call fcn.1400172b0
lea rcx, [rsp + 0x78]
call fcn.140052160
lea rcx, [rsp + 0x30]
call fcn.140052160
mov rax, qword [0x1401029a8]
mov rcx, qword [rsi]
lea r11, [rsp + 0x38]
mov r9d, 4
lea rdx, [0x140102998]
mov qword [r11], rax
mov al, byte [0x1401029b0]
mov dword [rsp + 0x28], r9d
mov byte [r11 + 8], al
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 1
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov rcx, qword [rsi]
mov ebx, 9
lea rax, [rsp + 0x38]
lea rdx, [0x140102988]
lea r9d, [rbx - 2]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov rcx, qword [rsi]
lea rax, [rsp + 0x38]
lea r9d, [rbx - 2]
lea rdx, [0x140102978]
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov rcx, qword [rsi]
lea rbx, [0x1400f9f10]
lea rdx, [0x140102968]
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
test rdi, rdi
je 0x140066940
cmp byte [rdi], 0x2d
cmovne rbx, rdi
cmp byte [rdi], 0
je 0x140066940
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
lea rdx, [0x140102958]
mov r9d, 1
movsxd rcx, eax
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140069284
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor edi, edi
cmp byte [0x14011821e], dil
jne 0x1400694a4
lea rcx, [rsp + 0x48]
mov edx, 0x1122
call fcn.14005a1c4
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x80]
mov qword [rsi], rdi
mov word [rsi], di
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x90]
lea r8, [0x140102d18]
lea rdx, [0x1400fa5c8]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x80], 0x1ffe
mov qword [rsp + 0x98], rsi
mov r12, rsi
mov qword [rsp + 0x20], rsi
call fcn.1400533dc
mov ebp, edi
cmp eax, edi
sete bpl
mov eax, ebp
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x80]
mov dword [rsp + 0x80], ecx
mov eax, ecx
shr rax, 1
mov word [rsi + rax*2], di
cmp word [rsi], di
jne 0x14006948a
lea rdx, [rsi + 0x2000]
mov r8d, 0x104
xor ecx, ecx
mov word [rsi + 0x2000], di
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea rdx, [0x140102d00]
lea rcx, [rsi + 0x2000]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x80
lea r9d, [rdi + 7]
lea rdx, [rsi + 0x2000]
lea rcx, [rsp + 0x40]
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rdi
call fcn.1400037e4
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x88], edi
lea r9, [rsp + 0x88]
mov rcx, rbx
mov r8d, 0x1ffe
mov rdx, rsi
mov word [rsi], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov r11d, dword [rsp + 0x88]
shr r11d, 1
mov eax, 0xffe
cmp r11d, eax
cmova r11d, eax
movsxd rax, r11d
mov dword [rsp + 0x88], r11d
mov word [rsi + rax*2], di
mov eax, 0xfeff
cmp ax, word [rsi]
jne 0x14006940f
add rsi, 2
mov qword [rsp + 0x98], rsi
cmp word [rsi], di
je 0x140069476
lea rcx, [rsp + 0x98]
call fcn.140052130
mov rsi, qword [rsp + 0x98]
mov edx, 0xa
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x98]
call fcn.1400523c4
mov r8d, edx
lea rdx, [0x140102ce8]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
cmp eax, edi
mov rax, qword [rsp + 0x98]
je 0x140069465
cmp word [rax], di
jne 0x140069414
jmp 0x140069476
cmp word [rax], di
je 0x14006946d
mov word [rax], di
lea r12, [rsi + 0x14]
mov ebp, 1
cmp rbx, rdi
je 0x14006948a
cmp rbx, 0xffffffffffffffff
je 0x14006948a
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebp, edi
mov rcx, r12
setne dil
mov edx, edi
call fcn.1400691c8
lea rcx, [rsp + 0x48]
call fcn.140052160
mov rax, qword [0x140118e90]
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140069998
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov eax, 1
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x30]
xor ebp, ebp
mov edx, 0x100000
mov rdi, r9
mov r15d, r8d
mov r12d, eax
mov ebx, eax
mov word [rsp + 0x40], bp
call fcn.14005a1c4
cmp rdi, rbp
jne 0x140069a0a
lea rdx, [rsp + 0x40]
mov ecx, 0x104
mov r12d, ebp
call qword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea rdi, [rsp + 0x40]
mov ebx, eax
cmp eax, ebp
je 0x140069b8a
mov eax, 0xe0000000
mov esi, 0xa0000000
cmp r12d, ebp
cmovne esi, eax
xor r9d, r9d
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 3]
mov rcx, r13
mov edx, esi
mov dword [rsp + 0x298], ebp
mov dword [rsp + 0x20], ebp
call qword [0x140118290]
mov rbp, rax
test rax, rax
jne 0x140069a9c
cmp r12d, 1
jne 0x140069a89
lea rax, [rsp + 0x298]
mov r12d, 2
btr esi, 0x1e
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, esi
mov rcx, r13
call qword [0x140118290]
mov rbp, rax
test rax, rax
je 0x140069a4c
xor r13d, r13d
cmp rbp, r13
jne 0x140069a9f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, r13d
jmp 0x140069a9f
xor r13d, r13d
cmp ebx, r13d
je 0x140069b7c
mov rdx, rdi
mov rcx, rbp
call qword [0x140118298]
mov ebx, eax
cmp eax, r13d
jne 0x140069ac6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rbp
call qword [0x1401182a0]
mov rsi, rax
cmp rax, r13
jne 0x140069ae3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, r13d
cmp ebx, r13d
je 0x140069b6e
mov eax, 0x600
mov edi, 0x400
cmp r12d, r13d
cmove edi, eax
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x1401182a8]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, r13d
jne 0x140069b6e
bt edi, 0xa
jae 0x140069b43
cmp eax, 0x57
jne 0x140069b43
btr edi, 0xa
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x1401182a8]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp ebx, r13d
je 0x140069b18
cmp ebx, r13d
jne 0x140069b6e
cmp r12d, 2
jne 0x140069b68
bts edi, 9
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x1401182a8]
mov ebx, eax
cmp eax, r13d
jne 0x140069b6e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp rsi, r13
je 0x140069b7c
mov rcx, rsi
call qword [0x1401182b0]
cmp rbp, r13
je 0x140069b8a
mov rcx, rbp
call qword [0x1401182b0]
lea rcx, [rsp + 0x30]
call fcn.140052160
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006a24c
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, r9d
mov r14, r8
mov r13, rdx
mov rbp, rcx
cmp r8, r15
jne 0x14006a29f
movzx eax, word [rdx]
lea r14, [r11 + 0x18]
mov word [rsp + 0x70], ax
movzx eax, word [rdx + 2]
mov word [rsp + 0x72], ax
lea eax, [r15 + 0x5c]
mov word [rsp + 0x74], ax
mov word [r11 + 0x1e], r15w
lea rcx, [rsp + 0x20]
mov edx, 0x209
call fcn.14005a1c4
mov rbx, qword [rsp + 0x20]
lea rcx, [0x140102d70]
mov r8d, 8
mov rdx, rbp
mov word [rbx], r15w
call fcn.140053674
cmp al, r15b
jne 0x14006a30d
lea rcx, [0x140102d60]
mov r8d, 0xc
mov rdx, rbp
call fcn.140053674
cmp al, r15b
jne 0x14006a30d
cmp word [rbp], r15w
je 0x14006a310
cmp word [rbp + 2], r15w
je 0x14006a310
lea rcx, [rbp + 4]
mov edx, 0x3a
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
cmp rax, r15
je 0x14006a310
or edi, 1
lea rcx, [0x140102d50]
mov r8d, 0xb
mov rdx, rbp
call fcn.140053674
mov sil, byte [rsp + 0x80]
cmp al, r15b
je 0x14006a33a
and edi, 0xfffffffe
cmp sil, r15b
jne 0x14006a367
cmp sil, r15b
je 0x14006a349
movzx ecx, word [r13]
call fcn.140056698
mov r8, rbp
mov rdx, r13
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
mov r12d, eax
cmp eax, r15d
jne 0x14006a37b
cmp sil, r15b
jl 0x14006a3c9
mov sil, r15b
mov r8d, 0x208
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x14006a3a8
cmp sil, r15b
jle 0x14006a3c9
mov r8d, 0x208
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
cmp eax, r15d
je 0x14006a3c9
mov ecx, edi
mov r8, rbp
mov rdx, r13
or ecx, 0xe
call qword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
cmp sil, r15b
mov r12d, eax
jl 0x14006a3c9
cmp eax, r15d
jne 0x14006a3c9
mov sil, 0xff
jmp 0x14006a33a
lea rcx, [rsp + 0x20]
call fcn.140052160
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, r12d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006b344
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
and dword [rax + 0x20], 0
mov r14, rdx
mov esi, 0x200
mov edx, esi
mov r13d, r9d
mov r15, r8
mov rdi, rcx
shl r14, 9
call fcn.140056818
cmp eax, esi
lea rcx, [rsp + 0x78]
cmovge esi, eax
lea edx, [rsi + rsi + 0x200]
call fcn.140059ed8
mov rbp, qword [rsp + 0x78]
xor r8d, r8d
add rbp, 0x200
mov rdx, r14
mov rcx, rdi
and rbp, 0xfffffffffffffe00
mov r12d, esi
lea rbx, [rsi + rbp]
call fcn.140053560
cmp rax, r14
jne 0x14006b461
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14006b461
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14001b7a8
cmp r13d, 1
jne 0x14006b409
lea rcx, [rbx + 0x1ce]
lea r8d, [r13 + 0xf]
mov rdx, r15
call fcn.14001b7a8
xor eax, eax
mov ecx, 0xaa55
cmp r13d, 1
cmove ax, cx
xor r8d, r8d
mov rcx, rdi
mov rdx, r14
mov word [rbx + 0x1fe], ax
call fcn.140053560
cmp rax, r14
jne 0x14006b461
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.140052190
test eax, eax
je 0x14006b461
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
lea rcx, [rsp + 0x78]
call fcn.140052160
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006b780
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov r15, rdx
xor esi, esi
mov dword [rdx], esi
lea rcx, [rax + 0x20]
mov edx, 0x4008
mov r12, r8
call fcn.140059ed8
mov rbx, qword [rsp + 0x88]
lea rdi, [rbx + 0x800]
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
mov dword [rsp + 0x78], esi
call fcn.1400dd9e0
lea r9, [rsp + 0x78]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x14006b9b7
mov eax, dword [rbx + 0x1b4]
movzx ecx, word [rbx + 0x1fe]
mov r13b, sil
cmp eax, 0x46424246
je 0x14006b8cf
cmp eax, 0x534c5055
je 0x14006b8cf
cmp eax, 0x5352424d
jne 0x14006b9b7
cmp ecx, 0xaa55
jne 0x14006b9b7
cmp dword [rbx + 0x1c], esi
jne 0x14006b9b7
mov ebp, 0x200
xor edx, edx
mov rcx, rdi
mov r8, rbp
call fcn.1400dd9e0
xor r8d, r8d
mov edx, 0x4a00
mov rcx, r14
call fcn.140053560
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x14006b9b7
cmp dword [rdi + 0x1b4], 0x5352424d
movzx eax, word [rdi + 0x1fe]
jne 0x14006b9b7
cmp eax, 0xaa55
jne 0x14006b9b7
cmp dword [rdi + 0x1c], 0x25
jne 0x14006b9b7
movzx esi, byte [rdi + 0x67]
xor eax, eax
cmp ax, si
jne 0x14006b8bb
lea esi, [rax + 1]
mov ebx, dword [rdi + 0x5c]
movzx eax, si
add ebx, eax
mov eax, dword [rdi + 0x60]
shl rax, 0x20
add rbx, rax
jmp 0x14006b936
mov ebp, 0x200
mov esi, 1
xor edx, edx
mov r8, rbp
mov rcx, rdi
mov r13b, sil
call fcn.1400dd9e0
xor r8d, r8d
mov edx, 0x8600
mov rcx, r14
call fcn.140053560
lea r9, [rsp + 0x78]
xor ebx, ebx
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
je 0x14006b9b7
mov al, byte [rdi + 0x1f8]
and al, 0xc0
cmp al, 0x40
jne 0x14006b9b7
mov rbx, qword [rdi + 0x1f0]
add rbx, rsi
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.1400dd9e0
mov rdx, rbx
shl rdx, 9
jmp 0x14006b989
lea rdx, [0x140102ea8]
lea rcx, [rdi + 3]
mov r8d, 0xa
call fcn.140052190
cmp eax, r9d
je 0x14006b9dd
cmp rbx, 0x41
je 0x14006b9b7
cmp r13b, r9b
jne 0x14006b9b7
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov ebx, 0x41
call fcn.1400dd9e0
mov edx, 0x8200
xor r8d, r8d
mov rcx, r14
call fcn.140053560
xor eax, eax
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
xor r9d, r9d
cmp eax, r9d
jne 0x14006b94c
lea rcx, [rsp + 0x88]
call fcn.140052160
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rdi + 0x2c]
mov ebx, dword [rdi + 0x68]
mov eax, dword [rdi + 0x28]
and ecx, 0xffffffc0
shl rbx, 0x20
shl ecx, 9
or rbx, rax
mov dword [r15], ecx
cmp r12, r9
je 0x14006ba07
mov rcx, qword [rdi + 0x74]
shl rcx, 9
mov qword [r12], rcx
lea rcx, [rsp + 0x88]
call fcn.140052160
shl rbx, 9
mov rax, rbx
jmp 0x14006b9c8