joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b17c
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 0x14004b1c3
cmp edx, 2
jb 0x14004b3b9
cmp edx, 3
jbe 0x14004b1bc
cmp edx, 5
jne 0x14004b3b9
lea rbx, [0x1400d7790]
jmp 0x14004b1c3
lea rbx, [0x1400d7780]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x1400f1c20]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004b3b9
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 0x14004b3b3
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 0x14004b38e
cmp r11d, 0x400
ja 0x14004b38e
xor edx, edx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0xb0], 8
lea r8d, [rdx + 0x20]
call fcn.1400b93b0
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 0x14004b38e
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 0x14004b38e
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 0x14004b385
cmp r12d, dword [rsp + 0x64]
je 0x14004b398
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
mov r9d, ebp
jmp 0x14004b215
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 0x14004b3bb
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 0x14004b5ec
Capabilities:
Set environment variable

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

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, 0x50
mov rbx, rcx
xor esi, esi
call qword [sym.imp.USER32.dll_IsRectEmpty]
cmp eax, esi
je 0x14004b64e
xor eax, eax
jmp 0x14004b73a
mov r14d, dword [rbx]
mov r15d, dword [rbx + 4]
mov r13d, 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]
cmp r14d, esi
cmovl r14d, esi
cmp r15d, esi
cmovl r15d, esi
cmp r13d, ebx
cmovg r13d, ebx
cmp r12d, eax
cmovg r12d, eax
sub r13d, r14d
sub r12d, r15d
cmp r13d, esi
jle 0x14004b72e
cmp r12d, esi
jle 0x14004b72e
mov rcx, rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, r12d
mov edx, r13d
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r14d
mov r9d, r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rbp
mov rbx, rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, rsi
lea r11, [rsp + 0x50]
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 0x14004cbc0
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 0x14004cc93
mov r13d, 0x3a
cmp word [rcx + 2], r13w
jne 0x14004cc93
xor r12d, r12d
cmp word [rcx + 4], r12w
jne 0x14004cc93
mov word [rsp + 0x20], r12w
cmp r9, r12
je 0x14004cc1a
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 0x14004cc67
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 1]
cmp ebx, 4
jbe 0x14004cc67
cmp ebp, ebx
jae 0x14004cc4f
mov eax, ebx
jmp 0x14004cc99
movsxd r8, ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
add r8, r8
call fcn.1400177f8
lea eax, [rbx - 1]
jmp 0x14004cc99
cmp ebp, 4
jae 0x14004cc73
mov eax, 4
jmp 0x14004cc99
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 0x14004cc99
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 0x14004e170
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 0x14004e1fb
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 0x14004e1fb
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 0x14004e296
cmp rdi, rbp
je 0x14004e296
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.1400b93b0
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 0x14004e292
cmp rbx, 0xffffffffffffffff
je 0x14004e292
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14004e2ad
cmp rbx, rbp
je 0x14004e2aa
cmp rbx, 0xffffffffffffffff
je 0x14004e2aa
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 0x14004e340
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.140045d00
cmp eax, r12d
jne 0x14004e53f
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], r12d
test bpl, 1
je 0x14004e3ae
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1400d63f4]
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 edx, dword [rsp + 0xb8]
cmp edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x78]
mov edi, eax
cmovb edx, dword [rsp + 0x60]
mov dword [rsp + 0xb8], edx
lea edx, [rdx*4 + 8]
call fcn.14004bedc
cmp edi, r12d
jne 0x14004e528
mov rbx, qword [rsp + 0x78]
test bpl, 4
je 0x14004e4b0
mov esi, dword [rsp + 0x64]
dec esi
cmp esi, r12d
jl 0x14004e4b0
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 0x14004e491
mov edi, eax
jmp 0x14004e4ab
cmp word [rbx], r12w
je 0x14004e4ab
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 0x14004e449
test bpl, 2
je 0x14004e528
mov esi, dword [rsp + 0x68]
dec esi
cmp esi, r12d
jl 0x14004e528
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 0x14004e509
mov edi, eax
jmp 0x14004e523
cmp word [rbx], r12w
je 0x14004e523
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
call qword [0x1400f2060]
cmp eax, r12d
cmovne edi, eax
sub esi, 1
jns 0x14004e4c1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.140044f24
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 0x14004e670
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 0x14004e6fc
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 0x14004e6fc
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14004e6fc
lea eax, [rbx + 1]
jmp 0x14004e6fe
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 0x14004fd28
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.1400034e0
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14004fd88
mov rcx, rbx
call fcn.1400a8f20
mov rsi, rax
test rax, rax
jns 0x14004fd8a
xor esi, esi
lea rcx, [rsp + 0x78]
call fcn.14004bc1c
test rsi, rsi
jle 0x14004fddf
lea edx, [rsi + 5]
lea rcx, [rsp + 0x78]
call fcn.14004bd00
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 0x14004fde4
mov rdi, qword [rsp + 0x78]
or r9d, 0xffffffff
mov rdx, rdi
mov rcx, rbp
or r8d, r9d
call fcn.14004c024
lea rcx, [rsp + 0x78]
call fcn.140044f24
test rbx, rbx
je 0x14004fe14
cmp rbx, 0xffffffffffffffff
je 0x14004fe14
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 0x14004fed8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
cmp rdx, rsi
jne 0x14004fefd
lea rax, [0x1400d9b58]
jmp 0x14004ff85
mov eax, esi
mov edx, 0x26
jmp 0x14004ff0c
inc eax
add rdi, 2
cmp dx, word [rdi]
je 0x14004ff06
cmp word [rdi], si
je 0x14004fef1
cmp eax, esi
jne 0x14004ff57
xor ecx, ecx
lea rbx, [0x1400da228]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x38]
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jne 0x14004ff82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14004ff82
lea rbx, [0x1400d9b58]
jmp 0x14004ff82
cmp eax, 1
mov r8, rsi
mov rdx, rdi
cmovg r8, rcx
or r9d, 0xffffffff
call fcn.140012bb4
lea rcx, [0x1400da228]
lea rbx, [0x1400d9b58]
cmp rax, rsi
cmovne rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140050184
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x18], 0
mov rbx, rcx
je 0x1400501b4
mov r8d, dword [rcx + 0x10]
test r8d, r8d
jle 0x1400501b4
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 dword [rbx + 0x10], 0
lea rcx, [rbx + 8]
call fcn.140044f24
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400501d5
cmp rcx, 0xffffffffffffffff
je 0x1400501d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
add rsp, 0x30
pop rbx
ret
Function at 0x1400502d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov r12, rdx
mov rbp, rcx
call fcn.1400a8f20
xor edi, edi
mov rsi, rax
cmp eax, edi
jle 0x1400504c8
movsxd rdx, eax
mov rcx, r12
shr rdx, 1
add edx, 0xc
call fcn.14004bf70
mov rbx, qword [r12]
or dword [rsp + 0x60], 0xffffffff
lea r9, [rsp + 0x60]
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 + 0x60]
cmp esi, edi
jle 0x1400504c8
cmp eax, edi
je 0x1400504c8
lea rcx, [rbx + rsi]
lea r8d, [rdi + 0xa]
xor edx, edx
call fcn.1400b93b0
lea ebp, [rsi + 0xa]
lea rdx, [0x1400dc16c]
mov r8d, 2
mov rcx, rbx
call fcn.140044f54
cmp eax, edi
jne 0x14005037f
mov edx, esi
mov rcx, rbx
call fcn.140049c9c
lea rdx, [0x1400dc168]
mov r8d, 2
mov rcx, rbx
call fcn.140044f54
mov ecx, edi
cmp eax, edi
sete cl
cmp byte [rbx], dil
je 0x1400503ca
cmp byte [rbx + 1], dil
jne 0x1400503ca
lea rcx, [rbx + 2]
movsxd r8, ebp
mov rdx, rbx
call fcn.1400177b0
mov r11d, 0xfeff
add esi, 2
add ebp, 2
mov ecx, 1
mov word [rbx], r11w
cmp ecx, edi
jne 0x1400504c0
cmp byte [rbx], dil
jne 0x140050401
cmp byte [rbx + 1], dil
je 0x140050401
lea rcx, [rbx + 2]
movsxd r8, ebp
mov rdx, rbx
call fcn.1400177b0
mov r11d, 0xfffe
add esi, 2
mov word [rbx], r11w
add ebp, 2
jmp 0x14005035c
mov rax, qword [r12]
mov edx, esi
mov rcx, r12
mov qword [rsp + 0x68], rax
mov qword [r12], rdi
call fcn.14004bf70
movzx eax, word [0x1400dc168]
mov r11, qword [r12]
mov r10d, 3
lea rdx, [0x1400dc170]
mov r8d, r10d
mov rcx, rbx
mov word [r11], ax
call fcn.140044f54
cmp eax, edi
je 0x14005047e
mov rax, qword [r12]
lea edx, [r10 + 5]
mov r9d, esi
add rax, 2
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [0x1400f18d0]
cmp eax, edi
mov esi, eax
mov r10d, edi
jle 0x14005047e
lea rcx, [rsp + 0x68]
call fcn.140044f24
lea eax, [rsi + 1]
jmp 0x1400504ca
mov rcx, qword [r12]
mov r9d, esi
movsxd r8, r10d
add rcx, 2
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rcx
sub r9d, r10d
add r8, rbx
mov ecx, 0xfde9
call qword [0x1400f18d0]
lea rcx, [rsp + 0x68]
mov ebx, eax
call fcn.140044f24
lea ecx, [rbx + 1]
cmp ebx, edi
cmovg edi, ecx
mov eax, edi
jmp 0x1400504ca
movsxd rax, esi
shr rax, 1
jmp 0x1400504ca
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140050588
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.1400034e0
cmp qword [rsp + 0x80], rdi
jne 0x1400505d3
xor al, al
jmp 0x140050626
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.140048624
cmp qword [rsp + 0x80], 0xffffffffffffffff
mov dil, al
je 0x140050623
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
add rsp, 0x60
pop rdi
ret
Function at 0x140050984
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 esi, esi
mov edx, 0x100000
mov rdi, r9
mov r15d, r8d
mov r12d, eax
mov ebx, eax
mov word [rsp + 0x40], si
call fcn.14004bedc
cmp rdi, rsi
jne 0x1400509f6
lea rdx, [rsp + 0x40]
mov ecx, 0x104
mov r12d, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdi, [rsp + 0x40]
mov ebx, eax
cmp eax, esi
je 0x140050b3a
mov eax, 0xe0000000
mov ebp, 0xa0000000
cmp r12d, esi
cmovne ebp, eax
xor r9d, r9d
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 3]
mov rcx, r13
mov edx, ebp
mov dword [rsp + 0x298], esi
mov dword [rsp + 0x20], esi
call qword [0x1400f20a8]
mov rsi, rax
test rax, rax
jne 0x140050a88
cmp r12d, 1
jne 0x140050a75
lea rax, [rsp + 0x298]
mov r12d, 2
btr ebp, 0x1e
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, ebp
mov rcx, r13
call qword [0x1400f20a8]
mov rsi, rax
test rax, rax
je 0x140050a38
xor r13d, r13d
cmp rsi, r13
jne 0x140050a8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
jmp 0x140050a8b
xor r13d, r13d
cmp ebx, r13d
je 0x140050b2c
mov rdx, rdi
mov rcx, rsi
call qword [0x1400f20b0]
mov ebx, eax
cmp eax, r13d
jne 0x140050ab2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rsi
call qword [0x1400f20b8]
mov rdi, rax
cmp rax, r13
jne 0x140050acf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
cmp ebx, r13d
je 0x140050b1e
mov eax, 0x200
mov ebp, r13d
cmp r12d, r13d
cmove ebp, eax
mov rdx, r14
mov rcx, rdi
mov r8d, ebp
call qword [0x1400f20c0]
mov ebx, eax
cmp eax, r13d
jne 0x140050b1e
cmp r12d, 2
jne 0x140050b13
bts ebp, 9
mov rdx, r14
mov rcx, rdi
mov r8d, ebp
call qword [0x1400f20c0]
mov ebx, eax
cmp ebx, r13d
jne 0x140050b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, r13
je 0x140050b2c
mov rcx, rdi
call qword [0x1400f20c8]
cmp rsi, r13
je 0x140050b3a
mov rcx, rsi
call qword [0x1400f20c8]
lea rcx, [rsp + 0x30]
call fcn.140044f24
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 0x140050ee8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
sub rsp, 0x40
or dword [rax - 0x28], 0xffffffff
lea rax, [rax + 8]
mov rsi, r9
mov r12, r8
xor r13d, r13d
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov ebp, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, r13d
jne 0x14005100b
mov rbx, qword [rsp + 0x80]
mov edx, 0x1000
mov rcx, rsi
mov dword [rbx], 0xffa
call fcn.14004bd00
mov r11, qword [rsi]
mov byte [r11], r13b
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x60]
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 0x140050fb9
add dword [rbx], 0xa
mov edx, dword [rbx]
mov rcx, rsi
add edx, 6
call fcn.14004bd00
mov r11, qword [rsi]
mov rcx, qword [rsp + 0x60]
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 + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebp, 0xffffffff
cmp edi, r13d
jne 0x14005100b
cmp dword [rbx], r13d
jge 0x140050fd4
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 edx, dword [rbx]
add edx, 5
mov rcx, rsi
call fcn.14004bd00
mov eax, dword [rsp + 0x30]
jmp 0x14005101d
mov rax, qword [rsp + 0x88]
cmp rax, r13
je 0x14005101a
mov dword [rax], edi
lea eax, [rbp - 1]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret