joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ceb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.14000d334
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.14000d36c
test eax, eax
js 0x14000cf3a
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140022a52
lea rcx, [rsp + 0x40]
call fcn.1400101e0
mov rdx, qword [rsp + 0x60]
call fcn.14000d544
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [0x14009a050]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.14005b1b0
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140022aff
lea rdx, str.SplIsValidUserPropertyBag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140022aff
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x140022aff
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x140088740]
test al, al
jne 0x140022afb
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
inc ebx
jmp 0x140022a9e
lea rcx, [rsp + 0x50]
call fcn.14005b1b0
nop
jmp 0x14000cf30

Function at 0x14000da14
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x10], 0
lea r9, [r11 + 8]
and qword [r11 - 0x18], 0
mov rbx, rcx
mov eax, dword [rcx + 0x14]
xor edx, edx
and dword [rcx + 0x10], 0
mov r8, qword [rcx + 8]
and qword [r11 - 0x20], 0
mov rcx, qword [rcx]
and qword [r11 - 0x28], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jle 0x14000da5d
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret
Function at 0x14000ead0
Capabilities:
Get token privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [r11 - 0x38], 0
lea rax, [rbp - 0x18]
and dword [rbp - 0x1c], 0
lea rsi, [rcx + 8]
and qword [rbp - 0x18], 0
lea rdx, str.Printers
mov qword [r11 - 0x40], rax
mov rbx, rcx
and qword [r11 - 0x48], 0
xor r9d, r9d
mov rcx, qword [rsi]
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002362c
mov rcx, qword [rbp - 0x18]
call fcn.14000f16c
mov dword [rbp - 0x20], eax
test eax, eax
jne 0x14002362c
lea rcx, [rbp - 0x18]
call fcn.1400101e0
cmp dword [0x1400a6f08], 0
je 0x14002366b
mov rcx, qword [rbx]
call fcn.14000cd30
test eax, eax
jne 0x14000ec39
mov rdx, rsi
xor ecx, ecx
call fcn.14000ecf0
test eax, eax
je 0x14000ebec
mov edx, 1
mov rcx, rsi
call fcn.14000b300
mov rcx, qword [rbx]
lea rax, [0x1400a6be8]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x67727473
call fcn.14000cf70
test eax, eax
js 0x140023688
lea rdx, str._Classes
lea rcx, [rbp - 0x18]
call fcn.14000d36c
test eax, eax
js 0x140023688
mov rdi, qword [rbp - 0x10]
mov rcx, rdi
call fcn.14000ceb0
mov rdx, rdi
call fcn.14000d544
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 3]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rbx]
lea rax, [rbp - 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x1c]
lea edx, [r9 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14000ec39
mov r8d, dword [rbp - 0x1c]
mov edx, 1
mov ecx, edx
mov r9, rbx
call fcn.14000942c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000ec7d
mov rcx, rsi
call fcn.14000ec8c
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14000ec41
mov rcx, qword [0x1400a52b8]
lea rdx, [0x1400a52b8]
cmp rcx, rdx
je 0x14000eb59
test byte [rcx + 0x1c], 0x20
je 0x14000eb59
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009a850]
mov edx, 0xb
mov r9d, eax
call fcn.140024908
nop
jmp 0x14000eb59
mov edx, 0x1d4c0
call fcn.140040480
test eax, eax
jns 0x14000eb6f
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x14000eb6f
mov rdi, qword [rbp - 0x10]
jmp 0x14000ebe4
Function at 0x14000f380
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x440
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14000f406
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x140023811
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov r9, rbx
lea edx, [rdi + 0xe]
mov rcx, rax
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x140023808
test rbx, rbx
je 0x14000f3f4
cmp dword [0x1400a6f08], edi
je 0x14002382b
mov rcx, rbx
call fcn.14000ead0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x14000f3f6
lea rcx, [rbx + 8]
call fcn.14000ec8c
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, rdi
jmp 0x14000f3db
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000ead0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x140023861
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x14000f3f4
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rbx + 8]
call fcn.14000ec8c
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
jmp 0x14000f3f4

Function at 0x14001096c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400109b8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400109b0
cmp dword [rcx + 0x3c], edx
jl 0x1400109b0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400109b0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400109b8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140030620
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x140030694
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14003068a
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14003068a
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14002eb60]
mov edx, 0x10000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x140030678
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14003068a
mov rcx, qword [0x1400a6ef0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140032700
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov esi, edx
mov rbp, rcx
test r8, r8
je 0x140032735
cmp qword [r8 + 8], 0
jne 0x140032735
mov eax, 0x57
jmp 0x1400327e5
mov ecx, dword [rsp + 0x60]
call fcn.14000630c
test eax, eax
je 0x1400327df
mov ecx, dword [0x1400a6fb4]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test rbx, rbx
je 0x140032762
mov r9, qword [rbx + 8]
jmp 0x140032765
xor r9d, r9d
test rbx, rbx
je 0x14003276f
mov r8d, dword [rbx]
jmp 0x140032772
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400a6fb4]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, dword [rsp + 0x60]
call fcn.140006290
test ebx, ebx
je 0x1400327a1
xor eax, eax
jmp 0x1400327e5
mov rax, qword [0x1400a52b8]
lea rcx, [0x1400a52b8]
cmp rax, rcx
je 0x1400327df
test byte [rax + 0x44], 1
je 0x1400327df
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14008ba00]
mov r9d, eax
mov edx, 0xd
mov rcx, qword [rcx + 0x38]
call fcn.140024908
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140032800
Capabilities:
Set thread local storage value

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 r14, rcx
mov esi, r9d
mov rcx, r8
mov rbx, r8
mov rbp, rdx
call fcn.14002eb94
xor edi, edi
test eax, eax
jne 0x14003283d
mov eax, 0x57
jmp 0x1400328ea
cmp dword [r8], 3
je 0x140032850
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x140032833
mov ecx, esi
call fcn.14000630c
test eax, eax
jne 0x140032866
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1400328ea
mov ecx, dword [0x1400a6fb0]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400a6fb0]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, esi
call fcn.140006290
test ebx, ebx
jne 0x1400328e8
mov rax, qword [0x1400a52b8]
lea rcx, [0x1400a52b8]
cmp rax, rcx
je 0x1400328e0
test byte [rax + 0x44], 1
je 0x1400328e0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea edx, [rbx + 0x46]
mov r9d, eax
lea r8, [0x14008ba00]
mov rcx, qword [rcx + 0x38]
call fcn.140024908
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov eax, edi
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
Function at 0x1400334c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140096eb0]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140033546
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140044768
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x60
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x140044787
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140044789
mov eax, ebx
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rcx, [0x1400958c8]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.140044988
mov rcx, qword [0x1400a52b8]
lea rbp, [0x1400a52b8]
cmp rcx, rbp
je 0x1400447fb
test byte [rcx + 0x1c], 4
je 0x1400447fb
mov rcx, qword [rcx + 0x10]
lea r8, str.ciX
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.14002b208
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
test eax, eax
jne 0x140044879
mov rcx, qword [0x1400a52b8]
cmp rcx, rbp
je 0x14004486e
test byte [rcx + 0x1c], 4
je 0x14004484e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, str.ciX
mov r9d, eax
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
call fcn.140024908
mov rcx, qword [0x1400a52b8]
cmp rcx, rbp
je 0x14004486e
test byte [rcx + 0x1c], 4
je 0x14004486e
mov rcx, qword [rcx + 0x10]
lea r8, str.ciX
mov edx, 0x21
call fcn.1400248e4
xor eax, eax
movabs byte [0], al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140045264
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
test eax, eax
jne 0x14004533a
cmp dword [rbp + 0x27], edi
je 0x14004533a
lea ebx, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x14004533a
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140045330
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x140045326
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400454b4
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x270], rax
xor r14d, r14d
mov r15, r8
cmp qword [0x1400a7220], r14
mov rbx, rcx
jne 0x140045500
mov eax, 0x80004005
jmp 0x1400456ef
mov r12, r14
mov r13b, r14b
mov edi, 1
test rbx, rbx
je 0x14004558a
mov rax, qword gs:[0x30]
cmp dword [rax + 0x179c], r14d
jne 0x14004553e
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
test eax, eax
jle 0x140045536
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004553e
mov r12, rbx
mov r13b, dil
mov rcx, rbx
call fcn.140045264
test al, al
je 0x14004558a
mov rcx, qword [0x1400a52b8]
lea rsi, [0x1400a52b8]
cmp rcx, rsi
je 0x1400456df
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x1400456df
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x140099c98]
call fcn.1400248e4
jmp 0x1400456df
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x29c
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x2b0
lea rsi, [0x1400a52b8]
mov r14d, 2
movups xmm0, xmmword [0x140099c88]
movdqu xmmword [rsp + 0x34], xmm0
test r15, r15
je 0x1400455d6
mov r8, r15
lea rcx, [rbp - 0x28]
mov edx, 0x104
call fcn.140009080
jmp 0x140045630
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x28]
mov ecx, r14d
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
jne 0x140045630
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x140045606
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400a52b8]
cmp rcx, rsi
je 0x140045630
test byte [rcx + 0x1c], dil
je 0x140045630
mov rcx, qword [rcx + 0x10]
lea r8, [0x140099c98]
mov edx, 0xb
mov r9d, eax
call fcn.140024908
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call fcn.140045090
mov ebx, eax
test eax, eax
js 0x14004565c
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1e0]
call fcn.1400451e0
mov ebx, eax
test eax, eax
jns 0x14004569b
mov rcx, qword [0x1400a52b8]
cmp rcx, rsi
je 0x140045686
test byte [rcx + 0x1c], r14b
je 0x140045686
mov rcx, qword [rcx + 0x10]
lea r8, [0x140099c98]
mov edx, 0xc
mov r9d, ebx
call fcn.140024908
mov word [rsp + 0x58], r14w
xor r14d, r14d
mov dword [rsp + 0x5c], r14d
cmp word [rbp - 0x28], r14w
je 0x1400456dd
mov rax, qword [0x1400a7220]
lea rcx, [rsp + 0x30]
call qword [0x140088740]
mov ebx, eax
test eax, eax
jns 0x1400456dd
mov rcx, qword [0x1400a52b8]
cmp rcx, rsi
je 0x1400456dd
test byte [rcx + 0x1c], dil
je 0x1400456dd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140099c98]
mov edx, 0xd
mov r9d, eax
call fcn.140024908
mov edi, ebx
test r13b, r13b
je 0x1400456ed
mov rcx, r12
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
mov eax, edi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400106e0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140045cb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor ecx, ecx
mov rbx, rax
test rax, rax
jne 0x140045ce7
mov edi, 0xc0000017
jmp 0x140045d20
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rdx, rbx
mov rcx, rdi
call fcn.140045c28
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140048c98
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14009a750]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048d1a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.DnsOnWire
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140049704
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rdx, str.OpenPrinterW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ClosePrinter
mov rcx, rbx
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DocumentPropertiesW
mov rcx, rbx
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerDevQueryPrintW
mov rcx, rbx
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SpoolerPrinterEvent
mov rcx, rbx
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd4
mov rcx, rbx
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd5
mov rcx, rbx
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd6
mov rcx, rbx
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xd7
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0xfb
mov rcx, rbx
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov qword [rdi + 0x48], rax
cmp qword [rdi], rcx
je 0x140049808
cmp qword [rdi + 8], rcx
je 0x140049808
cmp qword [rdi + 0x20], rcx
je 0x140049808
cmp qword [rdi + 0x18], rcx
je 0x140049808
cmp qword [rdi + 0x10], rcx
je 0x140049808
cmp qword [rdi + 0x28], rcx
je 0x140049808
cmp qword [rdi + 0x30], rcx
je 0x140049808
cmp qword [rdi + 0x38], rcx
je 0x140049808
test rax, rax
je 0x140049808
xor eax, eax
jmp 0x14004980e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004b86c
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400a7348]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
test rcx, rcx
je 0x14004b8ab
cmp dword [rcx + 8], ebx
jl 0x14004b8ab
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
lea edx, [rbx + 4]
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
test eax, eax
jne 0x14004b8a7
call fcn.14003ff78
test eax, eax
js 0x14004b8ab
mov ebx, dword [rsp + 0x30]
mov eax, ebx
add rsp, 0x20
pop rbx
ret