joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e974
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp r8d, 2
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
jle 0x14005e99c
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x14005e9bf
movzx eax, word [rdi]
cmp word [rsi], ax
jne 0x14005e9bd
movzx eax, word [rdi + 2]
cmp word [rsi + 2], ax
jne 0x14005e9bd
mov ecx, 0x3a
cmp cx, ax
jne 0x14005e9bd
lea ebx, [rcx - 0x38]
jmp 0x14005e9bf
xor ebx, ebx
movsxd rax, ebx
xor r8d, r8d
mov rcx, rdi
lea rdx, [rsi + rax*2]
call fcn.14005e7d0
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CopyFileW]

Function at 0x14005ea40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
and dword [rax + 8], 0
mov rsi, r8
mov r8d, 0x40
lea r13d, [r8 - 0x28]
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
lea r9, [rax + 8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x40]
lea r8d, [r13 + 0x28]
lea rcx, [rdi + 8]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [0x14011cd10]
lea rcx, [rdi + 8]
mov r8, r13
call fcn.14001d310
mov qword [rdi + 0x15], rbx
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14005eac6
lea r8, [rdi + 8]
lea edx, [r13 - 0x1c]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
test rsi, rsi
je 0x14005eac6
mov qword [rsi], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret

Function at 0x14005f11c
Capabilities:
Write 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
xor ebx, ebx
mov r12, r9
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov edi, r8d
mov dword [r9], ebx
mov r13d, 0x80
cmp r8d, ebx
jbe 0x14005f1ce
mov ebp, dword [rsp + 0x80]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, r14
mov rcx, r15
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x14005f1a0
mov ecx, dword [rsp + 0x70]
cmp ecx, ebx
jne 0x14005f193
cmp r13d, ebx
jg 0x14005f190
mov ecx, edi
jmp 0x14005f193
dec r13d
add dword [r12], ecx
mov eax, ecx
add r14, rax
sub esi, ecx
jmp 0x14005f1ca
mov r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x14005f1ce
cmp edi, ebp
jbe 0x14005f1ce
cmp esi, ebp
jbe 0x14005f1c8
lea edi, [rdi + rbp - 1]
shr edi, 1
cmp edi, ebp
jbe 0x14005f1ca
and edi, 0xfffffe00
jmp 0x14005f1ca
mov edi, esi
cmp esi, ebx
ja 0x14005f15e
cmp dword [r12], ebx
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005f254
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test byte [0x1401346b7], 1
mov bl, cl
je 0x14005f2b5
lea rcx, [0x140135110]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11d, dword [0x140134794]
mov dl, byte [0x1401346b7]
dec r11d
mov al, dl
or al, bl
mov dword [0x140134794], r11d
test al, 0xfe
je 0x14005f2a8
or dl, 0x10
mov byte [0x1401346b7], dl
test r11d, r11d
jg 0x14005f2a8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [0x140135110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret

Function at 0x14005f2bc
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x128
and dword [0x1401347b4], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [0x1401347b4]
mov cl, 0x80
test byte [rsp + 0x31], cl
je 0x14005f2ec
or eax, 2
mov dword [0x1401347b4], eax
test byte [rsp + 0x30], cl
je 0x14005f2fb
or eax, 4
mov dword [0x1401347b4], eax
test byte [rsp + 0x32], cl
je 0x14005f30a
or eax, 1
mov dword [0x1401347b4], eax
test byte [rsp + 0x7b], cl
je 0x14005f319
or eax, 8
mov dword [0x1401347b4], eax
test byte [rsp + 0x7c], cl
je 0x14005f328
or eax, 8
mov dword [0x1401347b4], eax
add rsp, 0x128
ret

Function at 0x14005f3c8
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rdx
lea rdx, [rsp + 0x20]
xor esi, esi
mov r8d, 0x208
mov rdi, rcx
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, esi
je 0x14005f416
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140060948
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4b0
xor ebx, ebx
mov rdi, r8
mov r13d, ecx
cmp r8, rbx
jne 0x14006098a
cmp edx, 2
jb 0x140060b67
cmp edx, 3
jbe 0x140060b5b
cmp edx, 5
jne 0x140060b67
lea rdi, [0x140116820]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [0x140133ec8]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140060b67
xor eax, eax
mov r12d, ebx
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x4f0], ebx
mov dword [rsp + 0x70], 0x20
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov r8, rdi
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp eax, ebx
je 0x140060b7b
lea rax, [rsp + 0x70]
mov r9d, r12d
mov r8, rdi
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea rax, [rsp + 0x4f0]
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x4f0], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp dword [rsp + 0x4f0], ebx
je 0x140060b50
cmp dword [rsp + 0x4f0], 0x400
ja 0x140060b50
xor edx, edx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0xb0], 8
lea r8d, [rdx + 0x20]
call fcn.1400fa350
mov r9d, dword [rsp + 0x4f0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4f0]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov rcx, rbp
mov dword [rsp + 0x90], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp eax, ebx
je 0x140060b50
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0xb4]
lea r8d, [r9 + 3]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140060b50
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x4f8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4f8], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x140060b47
cmp r13d, dword [rsp + 0x64]
je 0x140060b6b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r12d
mov r9d, r12d
jmp 0x1400609dd
lea rdi, [0x140116810]
jmp 0x14006098a
xor eax, eax
jmp 0x140060b86
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0xa4]
mov rcx, rbp
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, ebx
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060dd8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call fcn.140060d64
lea rcx, [rbx + 4]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
Function at 0x14006288c
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
sub rsp, 0x230
cmp word [rcx], 0x7a
mov rsi, r8
mov ebp, edx
mov rdi, rcx
jbe 0x14006295f
mov r13d, 0x3a
cmp word [rcx + 2], r13w
jne 0x14006295f
xor r12d, r12d
cmp word [rcx + 4], r12w
jne 0x14006295f
mov word [rsp + 0x20], r12w
cmp r9, r12
je 0x1400628e6
mov qword [r9], r12
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [rsp + 0x20]
cmp word [rdi], ax
jne 0x140062933
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 1]
cmp ebx, 4
jbe 0x140062933
cmp ebp, ebx
jae 0x14006291b
mov eax, ebx
jmp 0x140062965
movsxd r8, ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
add r8, r8
call fcn.14001d310
lea eax, [rbx - 1]
jmp 0x140062965
cmp ebp, 4
jae 0x14006293f
mov eax, 4
jmp 0x140062965
movzx eax, word [rdi]
mov word [rsi + 2], r13w
mov word [rsi + 6], r12w
mov word [rsi], ax
mov eax, 0x5c
mov word [rsi + 4], ax
mov eax, 3
jmp 0x140062965
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400641ec
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov rbx, rbp
cmp rdx, rbp
jne 0x140064277
mov qword [rax - 0x58], rbp
mov dword [rax - 0x60], ebp
lea r8d, [rbp + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x68], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
cmove rdi, rbp
mov rbx, rdi
cmp rdi, rbp
jne 0x140064277
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
cmove rdi, rbp
mov rbx, rdi
cmp rdi, 0xffffffffffffffff
je 0x140064312
cmp rdi, rbp
je 0x140064312
xor eax, eax
lea rcx, [rsp + 0x54]
xor edx, edx
lea r8d, [rax + 0x24]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0x50], ebp
call fcn.1400fa350
mov r11d, 0x28
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea r9d, [r11 - 0x1c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r11d
mov edx, 0x2d1400
mov rcx, rdi
mov dword [rsp + 0x54], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x6c]
cmp rbx, rbp
je 0x14006430e
cmp rbx, 0xffffffffffffffff
je 0x14006430e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x140064329
cmp rbx, rbp
je 0x140064326
cmp rbx, 0xffffffffffffffff
je 0x140064326
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14006472c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov edx, 0x20019
mov dword [rax + 0x18], 0x32
mov dword [rax + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rdi, rax
test rax, rax
je 0x1400647b8
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x98]
lea rdx, str.Class
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400647b8
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400647b8
lea eax, [rbx + 1]
jmp 0x1400647ba
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140066164
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x20], 0
and qword [rax + 0x18], 0
mov dword [rax - 0x28], 0x80
mov rbp, rdx
mov rdx, rcx
mov dword [rax - 0x30], 3
and qword [rax - 0x38], 0
lea rcx, [rax + 0x18]
mov r9d, 7
mov r8d, 0x80000000
call fcn.1400037a0
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400661c4
mov rcx, rbx
call fcn.1400df220
mov rsi, rax
test rax, rax
jns 0x1400661c6
xor esi, esi
lea rcx, [rsp + 0x78]
call fcn.140061664
test rsi, rsi
jle 0x14006621e
lea eax, [rsi + 5]
lea rcx, [rsp + 0x78]
movsxd rdx, eax
call fcn.140061744
mov rdi, qword [rsp + 0x78]
and dword [rsp + 0x70], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rdx, rdi
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x70]
cmp r11, rsi
cmovg r11d, esi
movsxd rax, r11d
mov byte [rax + rdi], 0
jmp 0x140066223
mov rdi, qword [rsp + 0x78]
or rsi, 0xffffffffffffffff
mov rdx, rdi
mov rcx, rbp
mov r9, rsi
mov r8, rsi
call fcn.140061afc
lea rcx, [rsp + 0x78]
call fcn.140059370
test rbx, rbx
je 0x140066255
cmp rbx, rsi
je 0x140066255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006631c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
cmp rdx, rsi
jne 0x140066341
lea rax, [0x1401188a0]
jmp 0x1400663ce
mov eax, esi
mov edx, 0x26
jmp 0x140066350
inc eax
add rdi, 2
cmp dx, word [rdi]
je 0x14006634a
cmp word [rdi], si
je 0x140066335
cmp eax, esi
jne 0x14006639b
xor ecx, ecx
lea rbx, [0x1401194e8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jne 0x1400663cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x1400663cb
lea rbx, [0x1401188a0]
jmp 0x1400663cb
cmp eax, 1
mov r8, rsi
mov rdx, rdi
cmovg r8, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x20], rsi
call fcn.140018664
lea rcx, [0x1401194e8]
lea rbx, [0x1401188a0]
cmp rax, rsi
cmovne rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400665cc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x20], 0
mov rbx, rcx
je 0x1400665fe
cmp qword [rcx + 0x10], 0
jle 0x1400665fe
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rbx + 0x10], 0
lea rcx, [rbx + 8]
call fcn.140059370
mov rcx, qword [rbx]
test rcx, rcx
je 0x140066620
cmp rcx, 0xffffffffffffffff
je 0x140066620
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
add rsp, 0x30
pop rbx
ret
Function at 0x140066724
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov ebp, r8d
mov r13, rdx
mov r12, rcx
and ebp, 1
call fcn.1400df220
xor ebx, ebx
cmp eax, ebx
mov rsi, rax
jle 0x140066944
add eax, 0xc
mov rcx, r13
movsxd rdx, eax
call fcn.140061a40
mov rdi, qword [r13]
or dword [rsp + 0x70], 0xffffffff
lea r9, [rsp + 0x70]
mov rdx, rdi
mov r8d, esi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x70]
cmp esi, ebx
jle 0x140066944
cmp eax, ebx
je 0x140066944
lea rcx, [rdi + rsi]
lea r8d, [rbx + 0xa]
xor edx, edx
call fcn.1400fa350
lea r12d, [rsi + 0xa]
lea r14d, [rbx + 2]
lea rdx, [0x14011c02c]
mov r8, r14
mov rcx, rdi
call fcn.1400593a0
cmp eax, ebx
jne 0x1400667d4
mov edx, esi
mov rcx, rdi
call fcn.14005eb54
lea rdx, [0x14011c028]
mov r8, r14
mov rcx, rdi
call fcn.1400593a0
mov ecx, ebx
cmp eax, ebx
sete cl
cmp byte [rdi], bl
je 0x14006681a
cmp byte [rdi + 1], bl
jne 0x14006681a
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001d2c8
mov r11d, 0xfeff
add esi, r14d
add r12d, r14d
mov ecx, 1
mov word [rdi], r11w
cmp ecx, ebx
jne 0x14006693c
cmp byte [rdi], bl
jne 0x14006684f
cmp byte [rdi + 1], bl
je 0x14006684f
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001d2c8
mov r11d, 0xfffe
add esi, r14d
mov word [rdi], r11w
add r12d, r14d
jmp 0x1400667b4
mov rax, qword [r13]
movsxd rdx, esi
mov rcx, r13
mov qword [rsp + 0x78], rax
mov qword [r13], rbx
call fcn.140061a40
movzx eax, word [0x14011c028]
mov r11, qword [r13]
mov r10d, 3
lea rdx, [0x14011c030]
mov r8, r10
mov rcx, rdi
mov word [r11], ax
call fcn.1400593a0
cmp eax, ebx
je 0x140066899
cmp ebp, ebx
je 0x1400668d7
mov r10d, ebx
mov rcx, qword [r13]
lea eax, [rsi + 1]
mov r9d, esi
add rcx, r14
movsxd r8, r10d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
sub r9d, r10d
mov edx, 8
mov ecx, 0xfde9
add r8, rdi
call qword [0x140133970]
movsxd r12, eax
cmp ebp, ebx
je 0x140066923
cmp r12, rbx
jg 0x140066923
or ebp, r14d
mov rcx, qword [r13]
lea eax, [rsi + 1]
mov r9d, esi
add rcx, r14
mov dword [rsp + 0x28], eax
mov r8, rdi
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, 8
call qword [0x140133970]
mov r10d, ebx
movsxd r12, eax
cmp r12, rbx
jg 0x14006690c
cmp ebp, ebx
je 0x140066899
lea rcx, [rsp + 0x78]
call fcn.140059370
lea ecx, [r12 + 1]
cmp r12, rbx
cmovg ebx, ecx
jmp 0x140066938
lea rcx, [rsp + 0x78]
call fcn.140059370
lea eax, [r12 + 1]
cmp r12, rbx
cmovg ebx, eax
mov eax, ebx
jmp 0x140066946
movsxd rax, esi
shr rax, 1
jmp 0x140066946
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140066a10
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
xor edi, edi
mov rdx, rcx
lea rcx, [rax + 0x18]
mov qword [rax - 0x30], rdi
mov dword [rax - 0x38], edi
mov dword [rax - 0x40], 3
lea r9d, [rdi + 7]
mov r8d, 0x80000000
mov byte [rax - 0x28], dil
mov dword [rax + 0x10], edi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x48], rdi
call fcn.1400037a0
cmp qword [rsp + 0x80], rdi
jne 0x140066a5b
xor al, al
jmp 0x140066aae
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 0x20
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.14005d484
cmp qword [rsp + 0x80], 0xffffffffffffffff
mov dil, al
je 0x140066aab
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
add rsp, 0x60
pop rdi
ret

Function at 0x1400671f0
Capabilities:
Query or enumerate registry value

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
or dword [rax - 0x28], 0xffffffff
xor r13d, r13d
lea rax, [rax - 0x20]
mov qword [rax], r13
mov rsi, r9
mov r12, r8
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov ebp, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, qword [rsp + 0x80]
mov edi, eax
cmp eax, r13d
jne 0x140067318
mov edx, 0x1000
mov rcx, rsi
mov dword [rbx], 0xffa
call fcn.140061744
mov r11, qword [rsi]
lea r9, [rsp + 0x30]
mov byte [r11], r13b
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
jne 0x1400672c3
add dword [rbx], 0xa
mov eax, dword [rbx]
mov rcx, rsi
add eax, 6
movsxd rdx, eax
call fcn.140061744
mov r11, qword [rsi]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebp, 0xffffffff
cmp edi, r13d
jne 0x140067318
cmp dword [rbx], r13d
jge 0x1400672de
mov dword [rbx], r13d
movsxd rcx, dword [rbx]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
movsxd rax, dword [rbx]
inc rax
shr rax, 1
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2 + 2], r13w
mov word [rax + rcx*2], r13w
mov eax, dword [rbx]
add eax, 5
mov rcx, rsi
movsxd rdx, eax
call fcn.140061744
mov eax, dword [rsp + 0x30]
jmp 0x14006732d
mov rax, qword [rsp + 0x88]
mov dword [rbx], r13d
cmp rax, r13
je 0x14006732a
mov dword [rax], edi
lea eax, [rbp - 1]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400675e4
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
sub rsp, 0x1e0
and qword [rax + 0x18], 0
mov rdi, r8
mov rsi, rdx
test r8, r8
je 0x140067607
or qword [r8], 0xffffffffffffffff
and qword [rsp + 0x38], 0
mov rdx, rcx
mov r9d, 3
mov dword [rsp + 0x30], 0x20000000
mov dword [rsp + 0x28], r9d
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x200]
mov r8d, 0x100080
call fcn.1400037a0
cmp qword [rsp + 0x200], 0
jne 0x14006764f
or eax, 0xffffffff
jmp 0x1400676eb
and qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x200]
or dword [rsp + 0x44], 0xffffffff
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2d1080
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400676b3
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x140067647
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140067647
test rsi, rsi
je 0x1400676be
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov esi, dword [rsp + 0x44]
test rdi, rdi
je 0x1400676d0
mov ecx, dword [rsp + 0x48]
mov dword [rdi + 4], esi
mov dword [rdi], ecx
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x1400676e9
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x1400679e8
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
and qword [rsp + 0x78], 0
mov r14, qword [rsp + 0x90]
mov ebx, 1
test r14, r14
lea rdi, [rsp + 0x78]
mov ebp, r9d
cmovne rbx, r14
cmp qword [rsp + 0x98], 0
mov eax, r8d
cmovne rdi, qword [rsp + 0x98]
mov r12, rdx
mov rsi, rcx
test r9d, r9d
jg 0x140067a53
mov rcx, qword [rcx]
mov edx, 0x200
call fcn.14005da94
mov ebp, eax
mov eax, dword [rsp + 0x80]
shl rax, 7
xor edx, edx
movsxd r13, ebp
lea rax, [rax + r13 - 1]
mov rcx, r12
div r13
xor edx, edx
add eax, 2
mov qword [rsp + 0x90], rax
lea r8d, [rax + 2]
imul r8d, ebp
call fcn.1400fa350
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsi]
and dword [rsp + 0x88], 0
xor r8d, r8d
call fcn.14005a8d8
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test r14, r14
jne 0x140067adb
mov eax, 0x1c2
cmp byte [rax + r12], 0xee
jne 0x140067acf
mov ebx, dword [rax + r12 + 4]
add rax, 0x10
cmp rax, 0x1f2
jle 0x140067ac3
mov rcx, qword [rsi]
mov rdx, r13
xor r8d, r8d
imul rdx, rbx
add rdx, qword [rsp + 0xa0]
call fcn.14005a8d8
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
inc r8d
lea r14, [r13 + r12]
imul r8d, ebp
lea r9, [rsp + 0x88]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp qword [rsp + 0x98], 0
lea eax, [rbp + rbp]
cdqe
lea r12, [rax + r12 + 0x10000]
je 0x140067b8d
mov r8, r13
xor edx, edx
mov rcx, r12
call fcn.1400fa350
cmp qword [rdi], 2
jae 0x140067b56
mov rax, qword [r14 + 0x20]
mov qword [rdi], rax
mov rdx, qword [rdi]
mov rcx, qword [rsi]
xor r8d, r8d
imul rdx, r13
add rdx, qword [rsp + 0xa0]
call fcn.14005a8d8
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rbx
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret