joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065860
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rsp + 0x60], 0
mov rbx, rcx
jne 0x1400658e1
cmp r8d, 0x100
jne 0x1400658e1
cmp r9, 0x41
jne 0x14006589e
lea ecx, [r9 - 0x30]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400658ca
mov r9, 0xffffffffffffffff
mov edx, 0xb1
jmp 0x1400658bd
cmp r9, 0x43
jne 0x1400658ca
lea ecx, [r9 - 0x32]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400658ca
xor r9d, r9d
mov edx, 0x301
mov rcx, qword [rbx + 8]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140067d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140067d95
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140067d95
call fcn.14005e1b0
mov ebx, eax
jmp 0x140067eba
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140067db6
call fcn.14005e1b0
jmp 0x140067ea9
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140067dd9
call fcn.14005e1b0
jmp 0x140067ea9
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140067dfb
mov ebx, 0x8007000e
jmp 0x140067eab
mov ecx, eax
test eax, eax
je 0x140067e30
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140067ef2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140067e30
lea rcx, [rsp + 0x60]
call fcn.1400403a0
jmp 0x140067e3a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140067e4d
cmp qword [rsp + 0x60], 0
jne 0x140067e5c
mov ebx, 0x8007000e
jmp 0x140067eab
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140067e86
call fcn.14005e1b0
jmp 0x140067ea9
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140067830
mov ebx, eax
test rdi, rdi
je 0x140067eba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140067ed1
lea rcx, [rsp + 0x60]
call fcn.1400418d0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140008df0
int3
Function at 0x14006c290
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rdx
mov qword [rsp + 0x20], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call fcn.1400b88a0
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x20]
mov edx, SafeArrayLock
mov rcx, rdi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jns 0x14006c2fe
xor ecx, ecx
call fcn.1400b0640
xor ecx, ecx
jmp 0x14006c384
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rax, str.Select_Remote_Computer
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x60], 0x1000
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test rax, rax
je 0x14006c35f
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov r8, qword [rcx]
call qword [r8 + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
lea rcx, [rsp + 0x80]
call fcn.1400b0640
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1400b0780
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
ret

Function at 0x14006f350
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x20
mov rbp, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14006f3fc
mov qword [rsp + 0x30], rbx
mov rcx, rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call fcn.1400b0850
mov ecx, 0x2002
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov rdi, rax
call fcn.1400b0850
mov rcx, rbp
lea ebx, [rax + 1]
add rbx, rbx
call fcn.1400b0200
mov rdx, rax
mov r8, rbx
mov rcx, rdi
call fcn.1400b9c80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
xor al, al
add rsp, 0x20
pop rbp
ret
Function at 0x14006f880
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14006f91b
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.14006f880
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14006f8f0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x140070a60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov r14, rcx
mov rcx, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
mov rcx, 0xffffffffffffffff
lea r8d, [rax + 1]
mov eax, 2
movsxd r9, r8d
mul r9
cmovo rax, rcx
mov rcx, rax
call fcn.1400b5c60
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.1400b0640
mov rdx, rax
mov rcx, rdi
call fcn.1400b0780
mov rcx, rdi
mov qword [r14], rax
call fcn.1400b56bc
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140071aa0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov qword [rsp + 0x28], rcx
cmp word [0x140142920], si
mov ebx, r8d
movaps xmm6, xmm1
mov rdi, rcx
jne 0x140071b0a
mov eax, 0x2e
lea r9d, [rsi + 5]
lea r8, [0x140142920]
mov word [0x140142920], ax
lea edx, [rsi + 0xe]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movaps xmm2, xmm6
lea rdx, str._.07f
movq r8, xmm6
lea rcx, [rsp + 0x30]
call fcn.1400225f0
movzx r8d, word [0x140142920]
lea rdx, [rsp + 0x30]
movzx eax, word [rdx]
cmp ax, 0x30
je 0x140071b3f
cmp ax, r8w
jne 0x140071b45
add rdx, 2
jmp 0x140071b30
test ax, ax
je 0x140071b6c
nop word [rax + rax]
test ebx, ebx
jle 0x140071b6c
movzx ecx, word [rdx]
lea eax, [rbx - 1]
add rdx, 2
cmp cx, r8w
cmove eax, ebx
mov ebx, eax
cmp word [rdx], si
jne 0x140071b50
lea rcx, [rsp + 0x30]
mov word [rdx], si
call fcn.1400b0640
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400b0780
mov qword [rdi], rax
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b5660
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x140071c20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
movzx esi, r9b
mov r10d, r8d
mov r8, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xor ebp, ebp
mov qword [rcx], rbp
mov dword [rsp + 0x20], 1
mov edx, r10d
mov rcx, r8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
test rax, rax
je 0x140071d01
test sil, sil
je 0x140071ccb
lea edx, [rbp + 3]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x140071ccb
mov word [rsp + 0x30], bp
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400b0450
lea rdx, reloc.WS2_32.dll_htons
mov rcx, rbx
call fcn.1400b0450
mov word [rsp + 0x30], bp
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400b0450
lea rdx, [0x1400f9ba0]
mov rcx, rbx
call fcn.1400b0450
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x140071dc0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea r8, [rsp + 0x50]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov ebx, ecx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x30], rax
lea r9d, [rax + 5]
mov word [rsp + 0x38], ax
lea edx, [rax + 0x11]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], ax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 5
lea r8, [rsp + 0x60]
mov ecx, ebx
lea edx, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 5
lea r8, [rsp + 0x20]
mov ecx, ebx
lea edx, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 5
lea r8, [rsp + 0x30]
mov ecx, ebx
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 5
lea r8, [rsp + 0x40]
mov ecx, ebx
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 5
lea r8, [rsp + 0x70]
mov edx, 0x1010
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rcx, [rsp + 0x50]
call fcn.1400c7bc8
lea rcx, [rsp + 0x60]
mov dword [rdi], eax
call fcn.1400c7bc8
lea rcx, [rsp + 0x20]
mov dword [rdi + 4], eax
call fcn.1400c7bc8
lea rcx, [rsp + 0x30]
mov dword [rdi + 8], eax
call fcn.1400d35e4
lea rcx, [rsp + 0x40]
mov qword [rdi + 0x18], rax
call fcn.1400d35e4
lea rcx, [rsp + 0x70]
mov qword [rdi + 0x10], rax
call fcn.1400c7bc8
mov dword [rdi + 0x20], eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x140071f90
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, edx
mov rdi, rcx
test edx, edx
jne 0x140071fc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400720ba
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2a0], rbp
xor ebp, ebp
mov r9d, 0x400
mov qword [rsp + 0x30], rbp
mov r8d, ebx
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x1400720d4
mov edx, 0x104
mov qword [rsp + 0x270], rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._fltlib.dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400cf5e4
xor edx, edx
lea r8d, [rbp + 2]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x30], rbp
mov r9d, 0x400
mov rsi, rax
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x40]
mov rdx, rsi
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov ecx, 0x900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007209c
lea rdx, [0x1400f8b10]
mov rcx, rdi
call fcn.1400b0450
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1400b0450
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1400720aa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x278
pop rdi
pop rbx
ret
lea rdx, [0x1400f8b10]
mov rcx, rdi
call fcn.1400b0450
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1400b0450
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400720b2

Function at 0x140072100
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rsi, rdx
xor r9d, r9d
mov r14, rcx
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, 0xffffffffffffffff
lea rbx, [rax + 1]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400b5c60
mov r9, rax
mov r8, rbx
mov edx, reloc.WS2_32.dll_listen
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.1400b0640
mov rdx, rax
mov rcx, rdi
call fcn.1400b0780
mov rcx, rdi
mov qword [r14], rax
call fcn.1400b56bc
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400729a0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x68], rbx
xor sil, sil
mov word [rsp + 0x7c], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], ebx
mov dl, 2
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x60]
call fcn.1400c5a8c
mov r9d, dword [rsp + 0x60]
lea edx, [rbx + 2]
mov rcx, qword [rsp + 0x70]
mov rdi, rax
lea rax, [rsp + 0x60]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140072aba
cmp ebx, dword [rdi]
jae 0x140072ab6
nop
mov rcx, qword [rsp + 0x68]
mov esi, ebx
add rsi, rsi
mov rdx, qword [rdi + rsi*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140072aae
mov eax, dword [rdi + rsi*8 + 0x10]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x140072ab4
inc ebx
cmp ebx, dword [rdi]
jb 0x140072a80
cmp ebx, dword [rdi]
setne sil
mov rcx, rdi
call fcn.1400c5a78
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b5660
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140073a70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140073ba4
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x80], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140073b9b
cmp dword [rsp + 0x88], 4
jne 0x140073b9b
mov ecx, dword [rsp + 0x80]
call fcn.1400b07e0
mov rbx, rax
mov qword [rsp + 0x48], rax
mov ebp, dword [rsp + 0x80]
test rax, rax
je 0x140073b30
mov rcx, rax
call fcn.1400b06e0
jmp 0x140073b33
mov rax, r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140073b8d
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x88], eax
jne 0x140073b8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
test rbx, rbx
je 0x140073b7d
mov rcx, rbx
call fcn.1400b04e0
nop
test rbx, rbx
je 0x140073b8b
mov rcx, rbx
call fcn.1400b0810
nop
jmp 0x140073ba7
test rbx, rbx
je 0x140073b9b
mov rcx, rbx
call fcn.1400b0810
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r14
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x140073bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x78], r14d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x78]
call fcn.1400b07e0
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140073c54
mov rcx, rax
call fcn.1400b06e0
jmp 0x140073c57
mov rax, r14
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140073c8f
mov qword [rdi], rbx
test rbx, rbx
je 0x140073c8d
mov rcx, rbx
call fcn.1400b04e0
nop
jmp 0x140073c92
mov qword [rdi], r14
test rbx, rbx
je 0x140073ca0
mov rcx, rbx
call fcn.1400b0810
nop
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140074100
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x50], 0
mov rax, qword [r8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400741d8
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400b03c0
lea rdx, [0x140107b88]
lea rcx, [rsp + 0x50]
call fcn.1400b0450
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400b03c0
lea rdx, [0x140107b88]
lea rcx, [rsp + 0x50]
call fcn.1400b0450
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400741aa
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400741a5
cmp rbx, qword [rax + 0x10]
jne 0x1400741a5
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140074192
mov rbx, rax
jmp 0x1400741cf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400741cf
nop word [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400741c0
cmp rbx, qword [rdi]
jne 0x140074140
lea rcx, [rsp + 0x50]
call fcn.1400b0850
lea ebx, [rax*2 + 2]
lea rcx, [rsp + 0x50]
call fcn.1400b0200
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140074226
call fcn.1400b0810
nop
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400746d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
test edx, edx
jne 0x14007470f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x14007480d
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, edi
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x1400747e6
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._fltlib.dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400cf5e4
xor edx, edx
lea r8d, [rbp + 2]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, edi
mov rdx, rsi
mov ecx, 0x900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400747d6
lea rdx, [0x1400f8b10]
mov rcx, rbx
call fcn.1400b0450
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400b0450
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x14007480d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14007480d
lea rdx, [0x1400f8b10]
mov rcx, rbx
call fcn.1400b0450
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400b0450
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.1400b0200
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1400f7478]
mov rdx, rax
mov rcx, qword [0x140143518]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x140074841
call fcn.1400b0810
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret