joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014ff0
Capabilities:
Contain obfuscated stackstrings
Packed with generic packer

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
xor eax, eax
test eax, eax
je 0x140015210
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
outsb dx, byte gs:[rsi]
jb 0x140015080
invalid
add esi, eax
cmp ebx, 0xfff1
jb 0x140015090
sub ebx, 0xfff1
add byte [r9 + 0x44ff0002], sil
rcpps xmm0, xmmword [rax]
add dword [rax], eax
add byte [rax], al
add byte [rax], al
pop rcx
pop rcx
mov dword fs:[rax], edx
push 0x689929
lea eax, [rbp - 0x88]
add eax, dword [rax]
add byte [rax], al
add byte [rax], al
or byte [rax], al
add cl, byte [rax]
cmp dword fs:[rax + rax], eax
add byte [rsi + 2], ah
add byte [rax], al
pushfq
adc byte [rax], al
add dword [rax], eax
add eax, 0x65646e49
js 0x1400150a6
sub dword [rcx - 0x7a72ff98], ebx
js 0x1400150ad
invalid
invalid
invalid
xor eax, eax
test eax, eax
je 0x140015427
nop
nop
nop
nop
nop
nop
add byte [r10], r8b
hlt
mov ecx, 0x726774c
call int.14000e6d0
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov byte [rsp + 0x20], 0x75
mov byte [rsp + 0x21], 0x73
mov byte [rsp + 0x22], 0x65
mov byte [rsp + 0x23], 0x72
mov byte [rsp + 0x24], 0x33
mov byte [rsp + 0x25], 0x32
mov byte [rsp + 0x26], 0x2e
mov byte [rsp + 0x27], 0x64
mov byte [rsp + 0x28], 0x6c
mov byte [rsp + 0x29], 0x6c
mov byte [rsp + 0x2a], 0
xor eax, eax
test eax, eax
je 0x140015687
nop
nop
nop
nop
nop
nop
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
invalid

Function at 0x14001606c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
outsb dx, byte [rsi]
jb 0x1400160d9
mov dword [rsp + 4], eax
sub al, 0x54
outsb dx, byte [rsi]
jne 0x14001614c
insd dword [rdi], dx
outsb dx, byte gs:[rsi]
jb 0x140016151
invalid
je 0x140016157
mov edx, esi
push 0x20002e00
add byte [rsi], ch
add byte [rax], ah
add byte [rax], dl
jb 0x14001615a
add byte [rdx], dh
outsd dx, dword [rsi]
add byte [rbx], ah
add byte gs:[rax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400018a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, str.ntdll.dll
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x1400018c0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14000191e
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call fcn.14000be4c
test eax, eax
je 0x140001930
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x14000191e
test rbx, rbx
jne 0x1400018f0
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140001cd0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x860], rax
call fcn.140001f50
mov rcx, rax
call fcn.140005420
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.1400047e0
mov rcx, rax
mov rdi, rax
call fcn.140004e90
mov rcx, qword [rdi + 0x80]
xor esi, esi
mov rbx, rax
test rcx, rcx
je 0x140001d3b
call fcn.14000bcb0
mov qword [rdi + 0x80], rsi
mov rcx, rdi
call fcn.14000bcb0
mov rcx, rbp
call fcn.14000bcb0
test rbx, rbx
jne 0x140001d57
xor eax, eax
jmp 0x140001f26
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x830
call fcn.1400075a0
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
lea r8, str.FltGlobals
mov dword [rsp + 0x30], 0x58
mov dword [rsp + 0x80], 0x7d1
call qword [sym.imp.dbghelp.dll_SymGetTypeFromName]
test eax, eax
je 0x140001da5
mov rax, qword [rsp + 0x68]
sub rax, qword [rbx + 8]
jmp 0x140001da8
mov rax, rsi
lea r8, str.DriverInit
mov qword [0x140037d80], rax
lea rdx, str._DRIVER_OBJECT
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.Links
lea rdx, str._FLTP_FRAME
mov qword [0x140037dc0], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.RegisteredFilters
lea rdx, str._FLTP_FRAME
mov qword [0x140037d98], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.DriverObject
lea rdx, str._FLT_FILTER
mov qword [0x140037da0], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.InstanceList
lea rdx, str._FLT_FILTER
mov qword [0x140037db0], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.CallbackNodes
lea rdx, str._FLT_INSTANCE
mov qword [0x140037db8], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.FilterLink
lea rdx, str._FLT_INSTANCE
mov qword [0x140037dc8], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.PrimaryLink
lea rdx, str._FLT_OBJECT
mov qword [0x140037dd0], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.rList
lea rdx, str._FLT_RESOURCE_LIST_HEAD
mov qword [0x140037da8], rax
mov rcx, rbx
call fcn.140005220
mov eax, eax
lea r8, str.FrameList
lea rdx, str._GLOBALS
mov qword [0x140037d90], rax
mov rcx, rbx
call fcn.140005220
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov eax, eax
mov qword [0x140037d88], rax
call qword [sym.imp.dbghelp.dll_SymUnloadModule64]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.dbghelp.dll_SymCleanup]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx]
call fcn.14000bcb0
mov rcx, rbx
mov qword [rbx], rsi
call fcn.14000bcb0
cmp qword [0x140037d80], rsi
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140006640
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001f50
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rbx, [0x140037de0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140001f80
test rax, rax
jne 0x140001fdf
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400075a0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.drivers
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.fltMgr.sys
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140006640
add rsp, 0x240
pop rbx
ret
Function at 0x1400039a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, 0xffffffffffffffff
lea rbx, [0x140038250]
mov rcx, rax
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x1400039d0
test rcx, rcx
jne 0x140003a5d
mov qword [rsp + 0x240], rdi
lea rdi, [0x140038450]
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400039f0
test rax, rax
jne 0x140003a1d
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str._ntoskrnl.exe
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call fcn.1400075a0
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.140005510
lea r9, [rsp + 0x20]
mov edx, 0x100
lea r8, str.ntoskrnl__s.exe
mov rcx, rbx
call fcn.1400019a0
mov rdi, qword [rsp + 0x240]
mov rax, rbx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140006640
add rsp, 0x230
pop rbx
ret
Function at 0x1400047e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov edx, 0x98
mov ecx, 1
call fcn.140008418
mov rbx, rax
test rax, rax
je 0x140004997
mov dword [rax], esi
lea rdx, [rdi + 0x3c]
xor esi, esi
mov qword [rax + 8], 0xffffffffffffffff
mov rcx, rax
mov dword [rax + 4], esi
mov dword [rax + 0x10], esi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x28], rdi
call fcn.140004610
mov edx, eax
mov rcx, rbx
add rdx, qword [rbx + 0x20]
mov qword [rbx + 0x30], rdx
lea rax, [rdx + 0x18]
add rdx, 0x14
mov qword [rbx + 0x38], rax
add rax, 0x70
mov qword [rbx + 0x40], rax
call fcn.140004570
mov rdx, qword [rbx + 0x40]
movzx ecx, ax
add rcx, qword [rbx + 0x38]
mov qword [rbx + 0x48], rcx
mov rcx, rbx
call fcn.140004610
test eax, eax
jne 0x14000488c
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x68], rsi
mov qword [rbx + 0x70], rsi
jmp 0x140004903
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rcx, rbx
mov qword [rbx + 0x50], rax
lea rdx, [rax + 0x20]
call fcn.140004610
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x1c
mov qword [rbx + 0x58], rax
call fcn.140004610
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x24
mov qword [rbx + 0x68], rax
call fcn.140004610
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rdx, qword [rbx + 0x50]
mov rcx, rbx
add rdx, 0x18
mov qword [rbx + 0x70], rax
call fcn.140004610
mov dword [rbx + 0x60], eax
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
add rdx, 0x30
mov qword [rbx + 0x80], rsi
call fcn.140004610
test eax, eax
je 0x14000497d
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rcx, rbx
mov qword [rbx + 0x88], rax
lea rdx, [rax + 0xc]
call fcn.140004610
cmp eax, 2
jne 0x14000497d
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
add rdx, 0x14
call fcn.140004610
mov edx, eax
mov rcx, rbx
call fcn.140004290
mov rdx, rax
mov qword [rbx + 0x90], rax
mov rcx, rbx
call fcn.140004610
cmp eax, 0x53445352
je 0x140004984
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 1
call fcn.14000d9cc
int3
Function at 0x140005420
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000547e
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006640
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x68], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov esi, eax
call fcn.14000dbc4
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400054ce
cmp dword [rsp + 0x40], esi
je 0x1400054d8
mov rcx, rbx
call fcn.14000bcb0
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006640
add rsp, 0x50
pop rdi
ret

Function at 0x140005510
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x3c]
mov rbp, rcx
mov dword [rsp + 0x3c], eax
mov rcx, r8
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rsi, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1400055f3
mov ecx, edi
mov qword [rsp + 0x78], rbx
mov edx, 1
call fcn.140008418
mov rbx, rax
test rax, rax
jne 0x14000557b
lea rcx, str.____Couldnt_allocate_memory_to_retrieve_version_data
call fcn.14000bd98
jmp 0x1400055ee
mov r9, rbx
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400055e6
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x14002aa5c]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400055e6
cmp dword [rsp + 0x38], 0
je 0x1400055e6
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0xfeef04bd
jne 0x1400055e6
mov r9d, dword [rax + 0xc]
lea r8, [0x14002aa60]
movzx eax, r9w
mov edx, 0x100
shr r9d, 0x10
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1400019a0
mov rcx, rbx
call fcn.14000bcb0
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006640
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005c90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push r14
sub rsp, 0x88
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rbx, rcx
cmp edx, 3
jbe 0x140005cd0
mov r8, rcx
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.140001010
xor eax, eax
jmp 0x140005e72
mov qword [rsp + 0xb0], rbp
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rsi
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
mov r15d, esi
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140005d5e
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x140005d3f
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x140005d5e
mov rdx, rbx
lea rcx, str.____s_service_stopped_n
call fcn.140001010
jmp 0x140005da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x140005d7c
mov rdx, rbx
lea rcx, str.____s_service_not_running_n
call fcn.140001010
jmp 0x140005da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x140005e2d
mov rdx, rbx
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140005e41
mov r8d, 0x10004
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140005e1c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140005e1c
cmp dword [rsp + 0x24], 1
mov rcx, rdi
je 0x140005e0b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140005e41
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x140005e41
mov eax, esi
jmp 0x140005e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.140001010
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.140005c90
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006640
add rsp, 0x88
pop r14
pop rbx
ret
Function at 0x14000d9cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d85f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d85f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d85f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d85f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d85f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d85f
cmp dword [rcx + 0xf8], 0
je 0x14000d85f
mov ecx, ebx
call fcn.14000d900
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d6f0
cmp dword [rbp + 0x20], 0
je 0x14000d8ac
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d8b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d7f8
Function at 0x140012d34
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140012d11
call fcn.14000fe8c
mov dword [rax], 0x16
call fcn.14000fd6c
or eax, 0xffffffff
jmp 0x140012d2e
sub dword [rcx + 0x10], 1
jns 0x140012d20
add rsp, 0x28
jmp 0x140019388
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140012cf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1400193ba
call fcn.14000fe8c
mov dword [rax], 0x16
call fcn.14000fd6c
jmp 0x1400194d7
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400194d7
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400194d7
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400193e9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400194d7
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400193fd
call fcn.14001b40c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.140012124
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140019c3c
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400194c5
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140019490
mov rcx, rdi
call fcn.140012124
cmp eax, esi
je 0x14001947b
mov rcx, rdi
call fcn.140012124
cmp eax, 0xfffffffe
je 0x14001947b
mov rcx, rdi
call fcn.140012124
movsxd rbx, eax
lea r14, [0x1400376a0]
mov rcx, rdi
sar rbx, 6
call fcn.140012124
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140019482
lea rdx, [0x140036160]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140019490
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1400194b4
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1400194b4
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1400194b4
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1400194da
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400194f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14001921a
call fcn.14000fe8c
mov dword [rax], 0x16
call fcn.14000fd6c
jmp 0x140019365
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140019365
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140019365
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140019249
lock or dword [rcx + 0x14], 0x10
jmp 0x140019365
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001925d
call fcn.14001b40c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14001926d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140019270
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140012124
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140019c3c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140019353
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140019301
mov rcx, rbx
call fcn.140012124
cmp eax, 0xffffffff
je 0x1400192ec
mov rcx, rbx
call fcn.140012124
cmp eax, 0xfffffffe
je 0x1400192ec
mov rcx, rbx
call fcn.140012124
movsxd rdi, eax
lea r14, [0x1400376a0]
mov rcx, rbx
sar rdi, 6
call fcn.140012124
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400192f3
lea rdx, [0x140036160]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140019301
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140019325
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140019325
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140019325
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140019343
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14001934e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14001936a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1400191e4
Function at 0x1400016b0
Capabilities:
Accept command line arguments
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 8], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x200
lea r8, [0x140005620]
mov rcx, rax
mov qword [0x140005618], rax
mov edx, 0xfb0
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140001791
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
cmp dword [rbp - 0x20], ebx
jne 0x1400017a7
mov ecx, 0xfa0
call fcn.140001130
mov eax, 1
jmp 0x1400017d2
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
test rax, rax
jne 0x1400017bf
mov eax, 2
jmp 0x1400017d2
mov rcx, rax
call fcn.14000152c
test eax, eax
jne 0x1400017d0
call fcn.1400011b4
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400024f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1400017f8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
test eax, eax
je 0x1400018f0
lea rax, [rsp + 0x48]
mov r9d, 0x10008
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400018f5
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x1400018c9
test eax, eax
jne 0x1400018dd
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400017f8
mov ebx, eax
test eax, eax
je 0x140001868
jmp 0x1400018dd
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400018f5
mov ebx, 0x3f2
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400024f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret