joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400555c0
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x350
and qword [rsp + 0x40], 0
mov rsi, rcx
mov r12, rdx
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x308
call fcn.1400d4180
and dword [rsp + 0x380], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, 1
test eax, eax
jne 0x140055620
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140055620
mov edi, ebx
jmp 0x140055622
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140055664
xor eax, eax
jmp 0x1400556f5
mov rcx, r12
mov dword [rsp + 0x40], 0xa0000003
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov rdx, r12
add ax, ax
mov word [rsp + 0x4a], ax
add ax, 2
mov word [rsp + 0x4c], ax
call fcn.1400d4758
and qword [rsp + 0x38], 0
movzx r9d, word [rsp + 0x4a]
lea rax, [rsp + 0x380]
lea r8, [rsp + 0x40]
add r9d, 0xc
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x44], r9d
mov edx, 0x900a4
add r9d, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400556ea
test edi, edi
jne 0x1400556e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x140055798
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140055812
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x2000
movsxd rdx, eax
lea rbx, [rdx + rdx + 2]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.14001aac4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140055824
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 0x14005584c
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x14005586f
movzx eax, word [rdi]
cmp word [rsi], ax
jne 0x14005586d
movzx eax, word [rdi + 2]
cmp word [rsi + 2], ax
jne 0x14005586d
mov ecx, 0x3a
cmp cx, ax
jne 0x14005586d
lea ebx, [rcx - 0x38]
jmp 0x14005586f
xor ebx, ebx
movsxd rax, ebx
xor r8d, r8d
mov rcx, rdi
lea rdx, [rsi + rax*2]
call fcn.140055710
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]
invalid
mov dl, dh
nop
mov dh, 0xa1
invalid
in eax, 0x46
sub al, 0x4d
pop rbx
sbb edi, dword [rbp - 0x5179e4e0]
sub eax, 0xedc05c28
mov ebx, 0x27de70cd
pop rdx
cmc
invalid

Function at 0x1400558f0
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, [0x1400f7fc0]
lea rcx, [rdi + 8]
mov r8, r13
call fcn.14001aac4
mov qword [rdi + 0x15], rbx
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140055976
lea r8, [rdi + 8]
lea edx, [r13 - 0x1c]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
test rsi, rsi
je 0x140055976
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 0x140056110
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 0x1400561c2
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 0x140056194
mov ecx, dword [rsp + 0x70]
cmp ecx, ebx
jne 0x140056187
cmp r13d, ebx
jg 0x140056184
mov ecx, edi
jmp 0x140056187
dec r13d
add dword [r12], ecx
mov eax, ecx
add r14, rax
sub esi, ecx
jmp 0x1400561be
mov r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x1400561c2
cmp edi, ebp
jbe 0x1400561c2
cmp esi, ebp
jbe 0x1400561bc
lea edi, [rdi + rbp - 1]
shr edi, 1
cmp edi, ebp
jbe 0x1400561be
and edi, 0xfffffe00
jmp 0x1400561be
mov edi, esi
cmp esi, ebx
ja 0x140056152
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 0x140056248
Capabilities:
Terminate process

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

Function at 0x1400562b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x128
and dword [0x14010e574], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [0x14010e574]
mov cl, 0x80
test byte [rsp + 0x31], cl
je 0x1400562e0
or eax, 2
mov dword [0x14010e574], eax
test byte [rsp + 0x30], cl
je 0x1400562ef
or eax, 4
mov dword [0x14010e574], eax
test byte [rsp + 0x32], cl
je 0x1400562fe
or eax, 1
mov dword [0x14010e574], eax
test byte [rsp + 0x7b], cl
je 0x14005630d
or eax, 8
mov dword [0x14010e574], eax
test byte [rsp + 0x7c], cl
je 0x14005631c
or eax, 8
mov dword [0x14010e574], eax
add rsp, 0x128
ret

Function at 0x1400563bc
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 0x14005640a
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 0x140057448
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 0x14005748f
cmp edx, 2
jb 0x140057685
cmp edx, 3
jbe 0x140057488
cmp edx, 5
jne 0x140057685
lea rbx, [0x1400f2380]
jmp 0x14005748f
lea rbx, [0x1400f2370]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x14010dd10]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140057685
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 0x14005767f
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 0x14005765a
cmp r11d, 0x400
ja 0x14005765a
xor edx, edx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0xb0], 8
lea r8d, [rdx + 0x20]
call fcn.1400d4180
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 0x14005765a
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 0x14005765a
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 0x140057651
cmp r12d, dword [rsp + 0x64]
je 0x140057664
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
mov r9d, ebp
jmp 0x1400574e1
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 0x140057687
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 0x1400577ac
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call fcn.140057738
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 0x1400577dc
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 0x140057814
xor eax, eax
jmp 0x140057929
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 0x14005791d
cmp r12d, ecx
jle 0x14005791d
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 0x1400578d2
mov qword [rsi], rbx
mov qword [rsi + 8], rax
jmp 0x14005791d
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 0x140058fbc
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 0x14005908f
mov r13d, 0x3a
cmp word [rcx + 2], r13w
jne 0x14005908f
xor r12d, r12d
cmp word [rcx + 4], r12w
jne 0x14005908f
mov word [rsp + 0x20], r12w
cmp r9, r12
je 0x140059016
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 0x140059063
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax + 1]
cmp ebx, 4
jbe 0x140059063
cmp ebp, ebx
jae 0x14005904b
mov eax, ebx
jmp 0x140059095
movsxd r8, ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
add r8, r8
call fcn.14001aac4
lea eax, [rbx - 1]
jmp 0x140059095
cmp ebp, 4
jae 0x14005906f
mov eax, 4
jmp 0x140059095
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 0x140059095
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 0x14005a794
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 0x14005a81f
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 0x14005a81f
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 0x14005a8ba
cmp rdi, rbp
je 0x14005a8ba
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.1400d4180
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 0x14005a8b6
cmp rbx, 0xffffffffffffffff
je 0x14005a8b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14005a8d1
cmp rbx, rbp
je 0x14005a8ce
cmp rbx, 0xffffffffffffffff
je 0x14005a8ce
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 0x14005acf4
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 0x14005ad80
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 0x14005ad80
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14005ad80
lea eax, [rbx + 1]
jmp 0x14005ad82
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 0x14005c250
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.140003568
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14005c2b0
mov rcx, rbx
call fcn.1400c3794
mov rsi, rax
test rax, rax
jns 0x14005c2b2
xor esi, esi
lea rcx, [rsp + 0x78]
call fcn.140057eb0
test rsi, rsi
jle 0x14005c30a
lea eax, [rsi + 5]
lea rcx, [rsp + 0x78]
movsxd rdx, eax
call fcn.140057f90
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 0x14005c30f
mov rdi, qword [rsp + 0x78]
or rsi, 0xffffffffffffffff
mov rdx, rdi
mov rcx, rbp
mov r9, rsi
mov r8, rsi
call fcn.140058348
lea rcx, [rsp + 0x78]
call fcn.14005041c
test rbx, rbx
je 0x14005c341
cmp rbx, rsi
je 0x14005c341
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 0x14005c408
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 0x14005c42d
lea rax, [0x1400f45a8]
jmp 0x14005c4ba
mov eax, esi
mov edx, 0x26
jmp 0x14005c43c
inc eax
add rdi, 2
cmp dx, word [rdi]
je 0x14005c436
cmp word [rdi], si
je 0x14005c421
cmp eax, esi
jne 0x14005c487
xor ecx, ecx
lea rbx, [0x1400f5240]
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 0x14005c4b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14005c4b7
lea rbx, [0x1400f45a8]
jmp 0x14005c4b7
cmp eax, 1
mov r8, rsi
mov rdx, rdi
cmovg r8, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x20], rsi
call fcn.140016268
lea rcx, [0x1400f5240]
lea rbx, [0x1400f45a8]
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 0x14005c6b8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x20], 0
mov rbx, rcx
je 0x14005c6ea
cmp qword [rcx + 0x10], 0
jle 0x14005c6ea
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.14005041c
mov rcx, qword [rbx]
test rcx, rcx
je 0x14005c70c
cmp rcx, 0xffffffffffffffff
je 0x14005c70c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
add rsp, 0x30
pop rbx
ret
Function at 0x14005c810
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.1400c3794
xor ebx, ebx
cmp eax, ebx
mov rsi, rax
jle 0x14005ca30
add eax, 0xc
mov rcx, r13
movsxd rdx, eax
call fcn.14005828c
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 0x14005ca30
cmp eax, ebx
je 0x14005ca30
lea rcx, [rdi + rsi]
lea r8d, [rbx + 0xa]
xor edx, edx
call fcn.1400d4180
lea r12d, [rsi + 0xa]
lea r14d, [rbx + 2]
lea rdx, [0x1400f737c]
mov r8, r14
mov rcx, rdi
call fcn.14005047c
cmp eax, ebx
jne 0x14005c8c0
mov edx, esi
mov rcx, rdi
call fcn.140055ae4
lea rdx, [0x1400f7378]
mov r8, r14
mov rcx, rdi
call fcn.14005047c
mov ecx, ebx
cmp eax, ebx
sete cl
cmp byte [rdi], bl
je 0x14005c906
cmp byte [rdi + 1], bl
jne 0x14005c906
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001aa7c
mov r11d, 0xfeff
add esi, r14d
add r12d, r14d
mov ecx, 1
mov word [rdi], r11w
cmp ecx, ebx
jne 0x14005ca28
cmp byte [rdi], bl
jne 0x14005c93b
cmp byte [rdi + 1], bl
je 0x14005c93b
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001aa7c
mov r11d, 0xfffe
add esi, r14d
mov word [rdi], r11w
add r12d, r14d
jmp 0x14005c8a0
mov rax, qword [r13]
movsxd rdx, esi
mov rcx, r13
mov qword [rsp + 0x78], rax
mov qword [r13], rbx
call fcn.14005828c
movzx eax, word [0x1400f7378]
mov r11, qword [r13]
mov r10d, 3
lea rdx, [0x1400f7380]
mov r8, r10
mov rcx, rdi
mov word [r11], ax
call fcn.14005047c
cmp eax, ebx
je 0x14005c985
cmp ebp, ebx
je 0x14005c9c3
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 [0x14010d8e8]
movsxd r12, eax
cmp ebp, ebx
je 0x14005ca0f
cmp r12, rbx
jg 0x14005ca0f
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 [0x14010d8e8]
mov r10d, ebx
movsxd r12, eax
cmp r12, rbx
jg 0x14005c9f8
cmp ebp, ebx
je 0x14005c985
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea ecx, [r12 + 1]
cmp r12, rbx
cmovg ebx, ecx
jmp 0x14005ca24
lea rcx, [rsp + 0x78]
call fcn.14005041c
lea eax, [r12 + 1]
cmp r12, rbx
cmovg ebx, eax
mov eax, ebx
jmp 0x14005ca32
movsxd rax, esi
shr rax, 1
jmp 0x14005ca32
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