joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055340
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x4b0
mov rbx, r8
mov r12d, ecx
test r8, r8
jne 0x140055387
cmp edx, 2
jb 0x14005557d
cmp edx, 3
jbe 0x140055380
cmp edx, 5
jne 0x14005557d
lea rbx, [0x1400eb210]
jmp 0x140055387
lea rbx, [0x1400eb200]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x140106cd0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005557d
xor eax, eax
xor ebp, ebp
mov dword [rsp + 0x40], 0x20
and dword [rsp + 0x44], ebp
and dword [rsp + 0x4e0], eax
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 0x20
lea rax, [rsp + 0x40]
mov r8, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov rcx, rdi
test eax, eax
je 0x140055577
lea rax, [rsp + 0x70]
mov r9d, ebp
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
and qword [rsp + 0x28], 0
and dword [rsp + 0x4e0], 0
lea rax, [rsp + 0x4e0]
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov r11d, dword [rsp + 0x4e0]
test r11d, r11d
je 0x140055552
cmp r11d, 0x400
ja 0x140055552
xor edx, edx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0xb0], 8
lea r8d, [rdx + 0x20]
call fcn.1400cc8d0
mov r9d, dword [rsp + 0x4e0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4e0]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov dword [rsp + 0x90], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x140055552
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xb4]
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140055552
and qword [rsp + 0x38], 0
and dword [rsp + 0x4e8], 0
lea rax, [rsp + 0x4e8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140055549
cmp r12d, dword [rsp + 0x64]
je 0x14005555c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
mov r9d, ebp
jmp 0x1400553d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0xa4]
jmp 0x14005557f
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140055784
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call fcn.140055710
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 0x1400557b4
Capabilities:
Capture screenshot

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, 0x50
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
mov rdi, rbp
call qword [sym.imp.USER32.dll_IsRectEmpty]
cmp eax, ebp
je 0x1400557ec
xor eax, eax
jmp 0x140055901
mov r15d, dword [rbx]
mov r13d, dword [rbx + 4]
mov r14d, dword [rbx + 8]
mov r12d, dword [rbx + 0xc]
lea rcx, str.DISPLAY
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.GDI32.dll_CreateDCA]
mov edx, 8
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, 0xa
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ecx, ecx
cmp r15d, ecx
cmovl r15d, ecx
cmp r13d, ecx
cmovl r13d, ecx
cmp r14d, ebx
cmovg r14d, ebx
cmp r12d, eax
mov dword [rsp + 0x90], r13d
cmovg r12d, eax
sub r14d, r15d
sub r12d, r13d
cmp r14d, ecx
jle 0x1400558f5
cmp r12d, ecx
jle 0x1400558f5
mov rcx, rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, r12d
mov edx, r14d
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov r13, rax
test rsi, rsi
je 0x1400558aa
mov qword [rsi], rbx
mov qword [rsi + 8], rax
jmp 0x1400558f5
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140056dfc
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 0x140056ecf
mov r13d, 0x3a
cmp word [rcx + 2], r13w
jne 0x140056ecf
xor r12d, r12d
cmp word [rcx + 4], r12w
jne 0x140056ecf
mov word [rsp + 0x20], r12w
cmp r9, r12
je 0x140056e56
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 0x140056ea3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 1]
cmp ebx, 4
jbe 0x140056ea3
cmp ebp, ebx
jae 0x140056e8b
mov eax, ebx
jmp 0x140056ed5
movsxd r8, ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
add r8, r8
call fcn.14001a4c0
lea eax, [rbx - 1]
jmp 0x140056ed5
cmp ebp, 4
jae 0x140056eaf
mov eax, 4
jmp 0x140056ed5
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 0x140056ed5
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 0x140058540
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 0x1400585cb
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 0x1400585cb
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 0x140058666
cmp rdi, rbp
je 0x140058666
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.1400cc8d0
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 0x140058662
cmp rbx, 0xffffffffffffffff
je 0x140058662
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14005867d
cmp rbx, rbp
je 0x14005867a
cmp rbx, 0xffffffffffffffff
je 0x14005867a
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 0x140058a5c
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 0x140058ae8
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 0x140058ae8
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140058ae8
lea eax, [rbx + 1]
jmp 0x140058aea
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 0x140059fd4
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.140003590
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14005a034
mov rcx, rbx
call fcn.1400bbcc0
mov rsi, rax
test rax, rax
jns 0x14005a036
xor esi, esi
lea rcx, [rsp + 0x78]
call fcn.140055d78
test rsi, rsi
jle 0x14005a08e
lea eax, [rsi + 5]
lea rcx, [rsp + 0x78]
movsxd rdx, eax
call fcn.140055e58
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 0x14005a093
mov rdi, qword [rsp + 0x78]
or rsi, 0xffffffffffffffff
mov rdx, rdi
mov rcx, rbp
mov r9, rsi
mov r8, rsi
call fcn.140056188
lea rcx, [rsp + 0x78]
call fcn.14004ea6c
test rbx, rbx
je 0x14005a0c5
cmp rbx, rsi
je 0x14005a0c5
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 0x14005a18c
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 0x14005a1b1
lea rax, [0x1400ed548]
jmp 0x14005a23e
mov eax, esi
mov edx, 0x26
jmp 0x14005a1c0
inc eax
add rdi, 2
cmp dx, word [rdi]
je 0x14005a1ba
cmp word [rdi], si
je 0x14005a1a5
cmp eax, esi
jne 0x14005a20b
xor ecx, ecx
lea rbx, [0x1400ee470]
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 0x14005a23b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14005a23b
lea rbx, [0x1400ed548]
jmp 0x14005a23b
cmp eax, 1
mov r8, rsi
mov rdx, rdi
cmovg r8, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x20], rsi
call fcn.140015a64
lea rcx, [0x1400ee470]
lea rbx, [0x1400ed548]
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 0x14005a43c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x20], 0
mov rbx, rcx
je 0x14005a46e
cmp qword [rcx + 0x10], 0
jle 0x14005a46e
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.14004ea6c
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005a490
cmp rcx, 0xffffffffffffffff
je 0x14005a490
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
add rsp, 0x30
pop rbx
ret
Function at 0x14005a594
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rdx
mov rbp, rcx
call fcn.1400bbcc0
xor edi, edi
mov rsi, rax
cmp eax, edi
jle 0x14005a780
movsxd rdx, eax
mov rcx, r12
shr rdx, 1
add rdx, 0xc
call fcn.1400560cc
mov rbx, qword [r12]
or dword [rsp + 0x70], 0xffffffff
lea r9, [rsp + 0x70]
mov rdx, rbx
mov r8d, esi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x70]
cmp esi, edi
jle 0x14005a780
cmp eax, edi
je 0x14005a780
lea rcx, [rbx + rsi]
lea r8d, [rdi + 0xa]
xor edx, edx
call fcn.1400cc8d0
lea ebp, [rsi + 0xa]
lea r13d, [rdi + 2]
lea rdx, [0x1400f077c]
mov r8, r13
mov rcx, rbx
call fcn.14004ea9c
cmp eax, edi
jne 0x14005a63b
mov edx, esi
mov rcx, rbx
call fcn.1400539e8
lea rdx, [0x1400f0778]
mov r8, r13
mov rcx, rbx
call fcn.14004ea9c
mov ecx, edi
cmp eax, edi
sete cl
cmp byte [rbx], dil
je 0x14005a683
cmp byte [rbx + 1], dil
jne 0x14005a683
lea rcx, [rbx + 2]
movsxd r8, ebp
mov rdx, rbx
call fcn.14001a478
mov r11d, 0xfeff
add esi, r13d
add ebp, r13d
mov ecx, 1
mov word [rbx], r11w
cmp ecx, edi
jne 0x14005a778
cmp byte [rbx], dil
jne 0x14005a6ba
cmp byte [rbx + 1], dil
je 0x14005a6ba
lea rcx, [rbx + 2]
movsxd r8, ebp
mov rdx, rbx
call fcn.14001a478
mov r11d, 0xfffe
add esi, r13d
mov word [rbx], r11w
add ebp, r13d
jmp 0x14005a61b
mov rax, qword [r12]
movsxd rdx, esi
mov rcx, r12
mov qword [rsp + 0x78], rax
mov qword [r12], rdi
call fcn.1400560cc
movzx eax, word [0x1400f0778]
mov r11, qword [r12]
mov r10d, 3
lea rdx, [0x1400f0780]
mov r8, r10
mov rcx, rbx
mov word [r11], ax
call fcn.14004ea9c
cmp eax, edi
je 0x14005a737
mov rax, qword [r12]
lea edx, [r10 + 5]
mov r9d, esi
add rax, r13
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [0x140106900]
cmp eax, edi
mov esi, eax
mov r10d, edi
jle 0x14005a737
lea rcx, [rsp + 0x78]
call fcn.14004ea6c
lea eax, [rsi + 1]
jmp 0x14005a782
mov rcx, qword [r12]
mov r9d, esi
movsxd r8, r10d
add rcx, r13
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rcx
sub r9d, r10d
add r8, rbx
mov ecx, 0xfde9
call qword [0x140106900]
lea rcx, [rsp + 0x78]
mov ebx, eax
call fcn.14004ea6c
lea ecx, [rbx + 1]
cmp ebx, edi
cmovg edi, ecx
mov eax, edi
jmp 0x14005a782
movsxd rax, esi
shr rax, 1
jmp 0x14005a782
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005a844
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.140003590
cmp qword [rsp + 0x80], rdi
jne 0x14005a88f
xor al, al
jmp 0x14005a8e2
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.140052460
cmp qword [rsp + 0x80], 0xffffffffffffffff
mov dil, al
je 0x14005a8df
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
add rsp, 0x60
pop rdi
ret

Function at 0x14005ad5c
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 rbp, r9
mov r12, r8
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov esi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, r13d
jne 0x14005ae89
mov rbx, qword [rsp + 0x80]
mov edx, 0x1000
mov rcx, rbp
mov dword [rbx], 0xffa
call fcn.140055e58
mov r11, qword [rbp]
mov byte [r11], r13b
mov rax, qword [rbp]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
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 0x14005ae32
add dword [rbx], 0xa
mov eax, dword [rbx]
mov rcx, rbp
add eax, 6
movsxd rdx, eax
call fcn.140055e58
mov r11, qword [rbp]
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 esi, 0xffffffff
cmp edi, r13d
jne 0x14005ae89
cmp dword [rbx], r13d
jge 0x14005ae4d
mov dword [rbx], r13d
movsxd rcx, dword [rbx]
mov rax, qword [rbp]
mov byte [rcx + rax], r13b
movsxd rax, dword [rbx]
inc rax
shr rax, 1
movsxd rcx, eax
mov rax, qword [rbp]
mov word [rax + rcx*2 + 2], r13w
mov word [rax + rcx*2], r13w
mov eax, dword [rbx]
add eax, 5
mov rcx, rbp
movsxd rdx, eax
call fcn.140055e58
mov eax, dword [rsp + 0x30]
jmp 0x14005ae9b
mov rax, qword [rsp + 0x88]
cmp rax, r13
je 0x14005ae98
mov dword [rax], edi
lea eax, [rsi - 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 0x14005b100
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1e0
and qword [rsp + 0x38], 0
and qword [rax + 0x18], 0
mov rdi, rdx
mov rdx, rcx
mov r9d, 3
mov dword [rsp + 0x30], 0x20000000
mov dword [rsp + 0x28], r9d
and qword [rsp + 0x20], 0
lea rcx, [rax + 0x18]
mov r8d, 0x100080
call fcn.140003590
cmp qword [rsp + 0x200], 0
jne 0x14005b157
or eax, 0xffffffff
jmp 0x14005b1e5
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 0x14005b1bb
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x14005b14f
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005b14f
test rdi, rdi
je 0x14005b1c6
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
cmp qword [rsp + 0x200], 0xffffffffffffffff
mov edi, dword [rsp + 0x44]
je 0x14005b1e3
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0x1e0
pop rdi
ret
Function at 0x14005b704
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 edi, 1
test r14, r14
lea rsi, [rsp + 0x78]
mov r12d, r9d
cmovne rdi, r14
cmp qword [rsp + 0x98], 0
mov eax, r8d
cmovne rsi, qword [rsp + 0x98]
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
jg 0x14005b76b
mov rcx, qword [rcx]
call fcn.140052b68
mov r12d, eax
mov eax, dword [rsp + 0x80]
shl rax, 7
xor edx, edx
movsxd r13, r12d
lea rax, [rax + r13 - 1]
mov rcx, rbx
div r13
xor edx, edx
add eax, 2
mov qword [rsp + 0x90], rax
lea r8d, [rax + 2]
imul r8d, r12d
call fcn.1400cc8d0
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rbp]
and dword [rsp + 0x88], 0
xor r8d, r8d
call fcn.14004fd5c
mov rcx, qword [rbp]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r12d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test r14, r14
jne 0x14005b7f3
mov eax, 0x1c2
cmp byte [rax + rbx], 0xee
jne 0x14005b7e7
mov edi, dword [rax + rbx + 4]
add rax, 0x10
cmp rax, 0x1f2
jle 0x14005b7dd
mov rcx, qword [rbp]
mov rdx, r13
xor r8d, r8d
imul rdx, rdi
add rdx, qword [rsp + 0xa0]
call fcn.14004fd5c
mov r8, qword [rsp + 0x90]
mov rcx, qword [rbp]
and qword [rsp + 0x20], 0
inc r8d
lea rdx, [r13 + rbx]
imul r8d, r12d
lea r9, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp qword [rsp + 0x98], 0
lea eax, [r12 + r12]
cdqe
lea r14, [rax + rbx + 0x10000]
je 0x14005b8a9
mov r8, r13
xor edx, edx
mov rcx, r14
call fcn.1400cc8d0
cmp qword [rsi], 2
jae 0x14005b870
mov rax, qword [rbx + 0x220]
mov qword [rsi], rax
mov rdx, qword [rsi]
mov rcx, qword [rbp]
xor r8d, r8d
imul rdx, r13
add rdx, qword [rsp + 0xa0]
call fcn.14004fd5c
mov rcx, qword [rbp]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r12d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rdi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005bd40
Capabilities:
Read file on windows
Write 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, 0x630
and dword [rax + 0x20], 0
mov r12, rdx
lea rsi, [rax - 0x428]
mov r13, r8
shl r12, 9
xor r8d, r8d
mov rdx, r12
mov ebp, r9d
mov rdi, rcx
and rsi, 0xfffffffffffffe00
call fcn.14004fd5c
cmp rax, r12
jne 0x14005be48
and qword [rsp + 0x20], 0
mov r14d, 0x200
lea r9, [rsp + 0x678]
lea rdx, [rsi + 0x200]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005be48
lea rdx, [rsi + 0x200]
mov r8, r14
mov rcx, rsi
call fcn.14001a4c0
cmp ebp, 1
jne 0x14005bde9
lea rcx, [rsi + 0x3ce]
lea r8d, [rbp + 0xf]
mov rdx, r13
call fcn.14001a4c0
xor eax, eax
mov ecx, 0xaa55
cmp ebp, 1
cmove ax, cx
xor r8d, r8d
mov rcx, rdi
mov rdx, r12
mov word [rsi + 0x3fe], ax
call fcn.14004fd5c
cmp rax, r12
jne 0x14005be48
lea rdx, [rsi + 0x200]
mov r8, r14
mov rcx, rsi
call fcn.14004ea9c
test eax, eax
je 0x14005be48
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x678]
lea rdx, [rsi + 0x200]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r11, [rsp + 0x630]
mov eax, 1
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 0x14005c06c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
cmp byte [rcx], 0x23
mov r12, rdx
mov esi, ebx
sete sil
mov rdi, rcx
cmp esi, ebx
je 0x14005c09c
inc rdi
cmp byte [rdi], 0x23
mov bpl, bl
jne 0x14005c0ba
mov bpl, byte [rdi + 1]
cmp bpl, bl
jne 0x14005c0b4
xor eax, eax
jmp 0x14005c160
inc esi
add rdi, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [rax + rax*2]
movsxd rdx, ecx
mov rcx, r12
call fcn.140055e58
mov r11, qword [r12]
mov r8d, ebx
mov byte [r11], bl
mov r13, r11
mov cl, bl
jmp 0x14005c100
mov al, byte [rdi]
cmp al, 0x3d
jne 0x14005c179
cmp cl, bl
jle 0x14005c0fd
mov byte [r11], r8b
mov cl, bl
inc r11
mov r8d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x14005c0e4
mov rcx, r13
mov byte [r11], bl
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, ebx
je 0x14005c15c
movsxd r8, eax
mov r9, rbx
cmp r8, rbx
jle 0x14005c15c
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
inc ebx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
lea rax, [0x1400f13a8]
mov al, byte [rcx + rax]
xor al, byte [r9 + r13]
xor al, bpl
mov byte [r9 + r13], al
inc r9
cmp r9, r8
jl 0x14005c11f
mov rax, qword [r12]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
cmp al, 0x2b
jne 0x14005c181
mov al, bl
jmp 0x14005c19f
cmp al, 0x2f
jne 0x14005c189
mov al, 1
jmp 0x14005c19f
cmp al, 0x39
ja 0x14005c191
add al, 0xd2
jmp 0x14005c19f
cmp al, 0x5a
ja 0x14005c199
add al, 0xcb
jmp 0x14005c19f
cmp al, 0x7a
ja 0x14005c1a4
add al, 0xc5
movzx edx, al
jmp 0x14005c1a7
or edx, 0xffffffff
cmp edx, ebx
jl 0x14005c0ad
shl edx, cl
or r8d, edx
add cl, 6
cmp cl, 8
jge 0x14005c1cc
cmp cl, bl
jle 0x14005c0fd
cmp byte [rdi], bl
jne 0x14005c0fd
mov byte [r11], r8b
inc r11
shr r8d, 8
add cl, 0xf8
jmp 0x14005c1b7