joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440da0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x440f0f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x440db8
cmp edx, ecx
jne 0x440efd
nop dword [rax]
test rsi, rsi
jne 0x440efd
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x440e16
nop
call fcn.0045c9c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.00440ca0
mov rcx, qword [0x00508508]
mov rdx, qword [0x00508500]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
sar esi, 5
mov r8d, esi
shl esi, 5
sub edi, esi
test edi, edi
jl 0x440ef8
cmp edi, 0x20
sbb esi, esi
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x440eed
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00508e50]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00508e50], rbx
mov edx, 1
lea rsi, [0x00508e58]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x440edc
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1228], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x0048dced]
mov ebx, 0x28
call fcn.00432b80
mov rcx, rax
mov rax, rsi
call fcn.0045b0c0
call fcn.00431140
lea rax, [0x0048d408]
mov ebx, 0x23
call fcn.00432b80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00458a00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00440da0
Function at 0x44b0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44b238
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44b0fc
test r8b, r8b
jne 0x44b0fc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44b10f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44b1f8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44b1e6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44b1dc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44b163
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44b1a6
mov eax, 1
cmp rax, rbx
ja 0x44b195
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045b180
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44b1d4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44b19d
mov r8d, eax
mov eax, r10d
jmp 0x44b168
mov rcx, rbx
call fcn.0045b0c0
xor eax, eax
mov rcx, rax
call fcn.0045b0c0
mov eax, r8d
mov rcx, rbx
call fcn.0045b180
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44b22e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44b1f1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44b115
mov eax, edx
mov rcx, rbx
call fcn.0045b0c0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045b0c0
nop
int3
Function at 0x452ac0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x452b7b
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00452bc0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004588c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00458a00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00452ac0
Function at 0x45ab80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0055c560]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0055c2b0], 0
je 0x45abb6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0055c880]
aesenc xmm0, xmmword [0x0055c890]
aesenc xmm0, xmmword [0x0055c8a0]
movq rax, xmm0
ret
jmp 0x408880

Function at 0x45c4e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x0055c800]
mov qword [rsp + 8], rdx
lea r8d, [0x0055c2c8]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045aa60
add rsp, 0x30
ret
Function at 0x10002daf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10002db45
cmp rcx, 0xffffffffffffffff
je 0x10002db45
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002db3d
cmp dword [rcx + 0x3c], edx
jl 0x10002db3d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10002db3d
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 0x10002db45
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140005074
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x140005107
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400af060]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x140023f9a
or edx, 0xffffffff
mov rcx, rbx
call fcn.140005120
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x140005108
lea rcx, [0x1400af060]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14000510f
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140023fa8
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x1400050f0
mov rcx, qword [0x1400af198]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [0x1400af198]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
add rsp, 0x20
pop rbx
ret
call fcn.140005150
jmp 0x1400050b4
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1400050cb
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x140005096
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140023fc2
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
and qword [rbx + 0x40], 0
jmp 0x1400050d8
Function at 0x14000cd98
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ce98
cmp dword [rsp + 0x30], 3
jne 0x14000ce98
cmp dword [rsp + 0x68], 0x48
jbe 0x14000ce98
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rdi], rax
test rax, rax
je 0x14000ce91
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000ce82
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14000ce51
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14000ce51
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14000cec9
mov ebx, 0xd
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14000ce82
test byte [rcx + 0x1c], 4
je 0x14000ce82
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, str._avD
call fcn.14002ef94
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
and qword [rdi], 0
jmp 0x14000cec9
mov ebx, 8
jmp 0x14000cec9
mov ebx, 0xd
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14000cec9
test byte [rcx + 0x1c], 4
je 0x14000cec9
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, str._avD
call fcn.14002ef94
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ded0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002d687
cmp dword [rcx], 0x6060
jne 0x14002d687
mov rax, qword [0x1400aede0]
cmp qword [rcx + 8], rax
jne 0x14002d616
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 0x2b0]
call qword [0x14008f7f0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x14002d67d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
or qword [rbx + 0x38], 0xffffffffffffffff
cmp qword [rbx + 0x40], 0
je 0x14002d67d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, qword [rbx + 0x40]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14002d658
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test rdi, rdi
je 0x14002d665
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400af198]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
and qword [rbx + 0x40], 0
mov eax, 1
jmp 0x14000df14
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14000df14
Function at 0x14000f5e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400aede8], 0
je 0x14000f5fe
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140029572
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rdi, rdi
je 0x14000f64b
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
je 0x1400295d0
or edx, 0xffffffff
call fcn.140013d88
jmp 0x14000f5f3
mov rax, qword [0x1400ad2f8]
lea rcx, [0x1400ad2f8]
cmp rax, rcx
je 0x1400295b0
test byte [rax + 0x1c], 0x20
je 0x1400295b0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400ad2f8]
lea r8, [0x1400936e0]
mov r9d, eax
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
call fcn.14002efb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor r8d, r8d
lea rcx, [0x140092180]
mov edx, eax
call fcn.14005200c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, 0x69
call fcn.140051c38
nop
jmp 0x14000f64b
Function at 0x14000fa60
Capabilities:
Get thread local storage value
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1400af184]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x140029be4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
mov ebx, eax
test eax, eax
jne 0x14000fbae
cmp dword [rsp + 0x60], 4
jne 0x140029c02
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov ebx, 1
lea r9, [rsp + 0x70]
mov rcx, rax
mov r8d, ebx
lea edx, [rbx + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x14000fbbd
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 1]
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
movzx edx, bl
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140029c2a
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x140029c0c
cmp dword [rsp + 0x64], esi
jne 0x14000fb61
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
js 0x140029c48
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x140029bec
mov ebx, esi
jmp 0x14000fb77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000fbd2
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800703f0
je 0x14000fbb9
jmp 0x14000fb77
mov rax, rsi
jmp 0x14000faa3
test eax, eax
jle 0x14000fb77
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000fb77
mov ebx, 1
jmp 0x14000fb77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000fb61
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000fb61
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14000fb6c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000fb6c
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14000fb87
test byte [rcx + 0x1c], 0x20
je 0x14000fb87
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400937b8]
mov edx, 0xe
mov r9d, ebx
call fcn.14002efb8
nop
jmp 0x14000fb87
Function at 0x140010284
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, qword [0x1400aee28]
mov rdi, rdx
mov rcx, rsi
call fcn.140010300
mov ebx, eax
cmp eax, 1
je 0x14002d8fe
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor r15d, r15d
lea rdx, [rbp - 0x29]
mov rcx, rdi
mov qword [rbp - 0x29], r15
mov r14, rax
call fcn.140015670
test eax, eax
jne 0x14002d9b9
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x14002d9af
lea r8, [rbp - 0x29]
mov qword [rbp - 0x29], r15
mov rdx, rsi
call fcn.14006bd40
mov rcx, rsi
mov ebx, eax
call fcn.14001a78c
test ebx, ebx
jne 0x14002d9af
lea ecx, [rbx + 0x40]
call fcn.14001a74c
test rax, rax
je 0x14002d969
mov rdx, rdi
mov rcx, rax
call fcn.140011c08
mov r9, rax
jmp 0x14002d96c
mov r9, r15
test r9, r9
je 0x14002d977
mov eax, dword [r9 + 0x3c]
jmp 0x14002d97c
mov eax, 0x8007000e
test eax, eax
js 0x14002d996
mov rcx, qword [rbp - 0x29]
mov rdx, r9
mov rcx, qword [rcx + 0x48]
call fcn.140011b2c
test eax, eax
cmovns r9, r15
test r9, r9
je 0x14002d9af
mov rax, qword [r9]
mov edx, 1
mov rcx, r9
mov rax, qword [rax]
call qword [0x14008f7f0]
mov ebx, 0x80004005
jmp 0x14002da88
mov r8d, 0x74736c74
mov byte [rsp + 0x20], r15b
lea rdx, [0x140075118]
mov dword [rbp - 0x19], r8d
mov ecx, 0x6b6e6c74
mov qword [rbp - 0x11], rdx
lea rax, [rbp - 0x11]
mov dword [rbp - 9], ecx
mov qword [rbp - 1], rax
lea r9, [rbp + 0xf]
lea rax, [rbp - 0x11]
mov dword [rbp + 0xf], r8d
mov qword [rbp + 7], rax
lea r8, [rbp - 0x19]
lea rax, [rbp + 0x17]
mov qword [rbp + 0x17], rdx
mov qword [rbp + 0x27], rax
mov rdx, rdi
lea rax, [rbp + 0x17]
mov dword [rbp + 0x1f], ecx
mov rcx, rsi
mov qword [rbp + 0x2f], rax
call fcn.140014f5c
mov ebx, eax
test eax, eax
jne 0x14002da32
lea r8, [rbp - 0x19]
mov rdx, rdi
mov rcx, rsi
call fcn.14006ab6c
mov ebx, eax
jmp 0x14002da76
cmp ax, 0x2af9
jne 0x14002da76
lea rax, [0x1400af054]
mov dword [rbp - 0x29], 0x67727473
lea rdx, [rbp - 0x29]
mov qword [rbp - 0x21], rax
mov rcx, rdi
call fcn.14006b734
mov ebx, eax
test eax, eax
jne 0x14002da6d
mov rdx, qword [rbp - 0x21]
mov r8, rdi
mov rcx, rsi
call fcn.14006acf0
mov ebx, eax
mov rdx, qword [rbp - 0x21]
call fcn.140011f88
lea rcx, [rbp + 0xf]
call fcn.14004cd0c
lea rcx, [rbp - 0x19]
call fcn.14004cd0c
mov rcx, r14
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x1400102ce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x140010d40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x38
xor esi, esi
cmp dword [0x1400ad788], esi
je 0x140010e4e
lea rax, [rbp + 0x40]
xor r8d, r8d
lea ebx, [rsi + 1]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.SystemSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010e4e
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.SystemSetupInProgress
lea rax, [0x1400ad788]
mov dword [0x1400ad788], esi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [0x1400ad788]
test eax, eax
mov edi, eax
cmovne ecx, esi
mov dword [0x1400ad788], ecx
test ecx, ecx
je 0x140010e44
lea r8, [rbp + 0x30]
mov dword [rbp + 0x38], esi
mov dword [rbp + 0x30], esi
call fcn.14001fd20
test eax, eax
je 0x140010df4
cmp dword [rbp + 0x30], ebx
jne 0x140010df4
mov edi, esi
jmp 0x140010df6
mov ebx, esi
test edi, edi
jne 0x140010e44
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.MiniSetupInProgress
lea rax, [rbp + 0x38]
mov dword [rbp + 0x28], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140010e44
cmp dword [rbp + 0x38], esi
jne 0x140010e44
mov eax, dword [0x1400ad788]
test ebx, ebx
cmovne eax, esi
mov dword [0x1400ad788], eax
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [0x1400ad788]
add rsp, 0x38
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140012210
Capabilities:
Set registry value

Disassembly:
push rsi
push r12
push r13
push r15
sub rsp, 0x468
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, r9
mov r15, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x140012249
xor eax, eax
jmp 0x140012416
mov qword [rsp + 0x4a0], rbx
lea r9, str.winspool
mov qword [rsp + 0x460], rbp
lea r8, [0x140093828]
mov ebp, 0x208
mov qword [rsp + 0x458], rdi
mov edx, ebp
mov qword [rsp + 0x450], r14
lea rcx, [rsp + 0x30]
call fcn.14001243c
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400122a0
mov eax, ecx
mov edx, ebp
sub edx, ecx
xor edi, edi
lea rcx, [rsp + 0x30]
lea r14, [rax + rax]
test r15, r15
jne 0x140012307
mov eax, dword [rsi]
lea r9, [0x140093808]
add r14, rcx
mov dword [rsp + 0x20], eax
mov rcx, r14
lea r8, str._s_.2d:
call fcn.14001243c
inc dword [rsi]
cmp dword [rsi], 0x63
jbe 0x1400122e8
mov dword [rsi], edi
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, r14
mov rsi, rax
call fcn.140012520
test rsi, rsi
je 0x14001232d
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x14001232d
add rcx, r14
mov r8, r15
call fcn.140010a10
lea rcx, [rsp + 0x30]
mov edx, 0x2c
add rcx, r14
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14001232d
mov word [rax], di
mov r14, qword [rsp + 0x450]
lea rcx, [rsp + 0x30]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x140012340
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, rbp
lea rax, [rsp + 0x30]
nop
cmp word [rax], di
je 0x14001238f
add rax, 2
sub rcx, 1
jne 0x140012380
mov rax, rbp
sub rax, rcx
test rcx, rcx
cmovne rdi, rax
je 0x1400123b9
sub rbp, rdi
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rdi*2]
mov rdx, rbp
lea r9, str._15_45
call fcn.140037ee8
mov rdi, qword [rsp + 0x458]
lea rcx, [rsp + 0x30]
mov rbp, qword [rsp + 0x460]
nop
cmp word [rcx + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400123d0
lea r8d, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x4a0]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001aad0
add rsp, 0x468
pop r15
pop r13
pop r12
pop rsi
ret