joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414be0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00414bd0
mov ebx, eax
test ebx, ebx
je 0x414c2b
cmp dword [0x00545cc4], 0xffffffff
jne 0x414c04
mov ecx, 0xe2
call fcn.0040dbe0
mov ecx, ebx
call fcn.00414bb0
test rax, rax
jne 0x414c1d
mov ecx, 0xe2
call fcn.0040dbe0
jmp 0x414c2b
mov ecx, dword [0x00545cc4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x414c40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00567d64], 0
je 0x414c7b
mov ecx, dword [0x00545cc4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x414c8f
call fcn.00414be0
mov ecx, dword [0x00545cc4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x414c8f
mov rax, qword [0x00567d98]
jmp 0x414c8f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00545cc4]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4310b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4310d7
movzx rax, word [rbp + 0x2c]
jmp 0x4310d9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x4323a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00432140
mov ebx, eax
mov rax, qword [0x005628b8]
cmp byte [rax], 0
je 0x4324d8
mov rcx, qword [0x00562588]
call fcn.00409fe0
call fcn.00408720
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00432360]
mov r8d, 1
movsxd r9, esi
call fcn.00410c40
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00432578]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43251e
mov rcx, qword [0x00567d68]
call fcn.00410f60
mov rcx, rax
mov rax, qword [0x00562510]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00432360]
call fcn.00410e20
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4349d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040e580
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.004133c0
mov esi, eax
cmp esi, 0x104
jbe 0x434a2d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004083e0
mov rdi, rax
jmp 0x434a31
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.004133c0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x434a87
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x434a6b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x434a99
mov rcx, rdi
call fcn.00408410
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x53bc90
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
sub rsp, 0x460
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x470], rcx
mov qword [rbp + 0x478], rdx
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00420a18]
mov r8d, 1
xor r9, r9
call fcn.00410c40
xor rcx, rcx
mov edx, 1
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.wininet.dll_InternetOpenW
mov qword [rbp + 0x450], rax
cmp qword [rbp + 0x450], 0
jne 0x53bd14
mov rcx, qword [0x00421100]
mov dl, 1
lea r8, [0x0053bec4]
call fcn.004325a0
mov rcx, rax
call fcn.0040d090
nop
mov rcx, qword [rbp + 0x478]
call fcn.0040f140
mov rcx, qword [rbp + 0x450]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call sub.wininet.dll_InternetOpenUrlW
mov qword [rbp + 0x458], rax
cmp qword [rbp + 0x458], 0
jne 0x53bd75
mov rcx, qword [0x00421100]
mov dl, 1
lea r8, [0x0053bef0]
call fcn.004325a0
mov rcx, rax
call fcn.0040d090
nop
mov rcx, qword [rbp + 0x458]
lea rdx, [rbp + 0x50]
mov r8d, 0x400
lea r9, [rbp + 0x4c]
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x53bdb2
mov rcx, qword [0x00421100]
mov dl, 1
lea r8, [0x0053bf10]
call fcn.004325a0
mov rcx, rax
call fcn.0040d090
cmp dword [rbp + 0x4c], 0
jbe 0x53be1d
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.004108a0
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00420a18]
mov r8d, 1
mov r9d, dword [rbp + 0x4c]
lea r9, [rax + r9]
call fcn.00410c40
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.004108a0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x470]
mov rdx, qword [rdx]
lea rdx, [rdx + rax]
mov eax, dword [rbp + 0x4c]
neg rax
lea rdx, [rdx + rax]
mov r8d, dword [rbp + 0x4c]
call fcn.004087b0
cmp dword [rbp + 0x4c], 0
jne 0x53bd76
nop
mov rcx, qword [rbp + 0x458]
call sub.wininet.dll_InternetCloseHandle
nop
mov rcx, qword [rbp + 0x450]
call sub.wininet.dll_InternetCloseHandle
mov rax, qword [rbp + 0x470]
lea rsp, [rbp + 0x460]
pop rbp
ret

Function at 0x53bf30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov dword [rbp + 0x3c], 0x40
mov rcx, qword [rbp + 0x60]
call fcn.004108a0
xor rcx, rcx
mov rdx, rax
mov r8d, 0x1000
mov r9d, dword [rbp + 0x3c]
call sub.kernel32.dll_VirtualAlloc_1
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x53bf8e
mov rcx, qword [0x00421100]
mov dl, 1
lea r8, [0x0053c008]
call fcn.004325a0
mov rcx, rax
call fcn.0040d090
nop
mov rcx, qword [rbp + 0x60]
call fcn.004108a0
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, rax
call fcn.004087b0
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
call qword [rbp + 0x40]
nop
mov rcx, qword [rbp + 0x48]
xor rdx, rdx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree_1
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x140004164
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
mov r8, qword [rcx + 8]
mov rbx, rcx
mov dword [rsp + 0x50], eax
xor edx, edx
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov dword [rcx + 0x10], eax
mov rcx, qword [rcx]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.140006a40
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140004220
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
xor ebx, ebx
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], rbx
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea r9d, [rbx + 8]
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x68], 0x140
mov edx, 0x2000000
lea rcx, [rsp + 0xa0]
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x14000430e
lea rdx, str.SymbolicLinkValue
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp dword [rsp + 0x90], ebx
jbe 0x1400042fa
cmp eax, 0xc0000034
jne 0x140012044
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns ebx, ecx
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400042fa
test byte [rcx + 0x44], 0x20
je 0x1400042fa
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400abaf0]
mov edx, 0xa
mov r9, rsi
call fcn.14003304c
nop
jmp 0x1400042fa
Function at 0x1400089f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400ca10c], 0
je 0x14001412e
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]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400141c4
mov rax, qword [0x1400c82a8]
lea rcx, [0x1400c82a8]
cmp rax, rcx
je 0x140014198
test byte [rax + 0x44], 0x20
je 0x140014198
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x1400ab920]
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400ab3b8]
mov edx, eax
call fcn.14004a498
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14001420b
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14001420b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.14004a098
or edx, 0xffffffff
call fcn.140050c24
nop
jmp 0x140008a07
Function at 0x14000bbf0
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 [0x1400c87d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400c9474]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x140015d1e
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000bc79
cmp eax, 0x6bd
jne 0x140015d26
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, esi
jmp 0x14000bd6d
cmp dword [rsp + 0x60], 4
jne 0x140015d3c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
je 0x140015d61
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]
nop dword [rax + rax]
test eax, eax
je 0x140015d55
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]
nop dword [rax + rax]
test eax, eax
je 0x14000bd93
cmp dword [rsp + 0x64], esi
jne 0x14000bd33
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
js 0x140015d78
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000e2c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14000aaf0
mov ebx, eax
jmp 0x14000bd33
mov rax, rsi
jmp 0x14000bc3f
test eax, eax
jle 0x14000bd55
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000bd55
mov ecx, edi
mov ebx, 1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000bd6b
call fcn.14000aaf0
mov ebx, eax
jmp 0x14000bd44
call fcn.14000aaf0
mov ebx, eax
cmp eax, 0x800703f0
jne 0x14000bd55
jmp 0x14000bc64
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14000bd6b
test byte [rcx + 0x44], 0x20
je 0x14000bd6b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400ab970]
mov edx, 0x12
mov r9d, ebx
call fcn.140016ccc
nop
jmp 0x14000bd6b
Function at 0x14000e82c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000e878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e870
cmp dword [rcx + 0x3c], edx
jl 0x14000e870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000e870
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 0x14000e878
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000e9a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e9c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e9c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000f6e4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov dword [rbp + 0x30], 4
xor edi, edi
lea rcx, [rbp - 8]
mov dword [rbp + 0x28], edi
call fcn.14004b860
lea rcx, [rbp - 0x10]
call fcn.14004b860
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rbx
call fcn.14004f3b8
test eax, eax
jne 0x14000f78f
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000f78f
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.MaintainDefaultPrinter
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000f78f
lea eax, [rdi + 1]
cmp dword [rbp + 0x28], eax
cmove edi, eax
lea rcx, [rbp - 0x10]
call fcn.14004b888
lea rcx, [rbp - 8]
call fcn.14004b888
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14002e5d0
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14002e65a
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14002e650
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14002e650
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14002c500]
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]
nop dword [rax + rax]
test rax, rax
je 0x14002e638
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14002e650
mov rcx, qword [0x1400ca110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140031fa0
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 0x140031fd5
cmp qword [r8 + 8], 0
jne 0x140031fd5
mov eax, 0x57
jmp 0x140032096
mov ecx, dword [rsp + 0x60]
call fcn.140030bac
test eax, eax
je 0x14003208a
mov ecx, dword [0x1400c9478]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test rbx, rbx
je 0x14003200b
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
jmp 0x140032011
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400c9478]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
call fcn.140031c30
test ebx, ebx
je 0x140032046
xor eax, eax
jmp 0x140032096
mov rax, qword [0x1400c82a8]
lea rcx, [0x1400c82a8]
cmp rax, rcx
je 0x14003208a
test byte [rax + 0x44], 1
je 0x14003208a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab710]
mov edx, 0x1d
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400320c0
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.14002c538
xor edi, edi
test eax, eax
jne 0x1400320fd
mov eax, 0x57
jmp 0x1400321ce
cmp dword [r8], 3
je 0x140032116
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x1400320f3
mov ecx, esi
call fcn.140030bac
test eax, eax
jne 0x140032132
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400321ce
mov ecx, dword [0x1400c9470]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400c9470]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, esi
call fcn.140031c30
test ebx, ebx
jne 0x1400321cc
mov rax, qword [0x1400c82a8]
lea rcx, [0x1400c82a8]
cmp rax, rcx
je 0x1400321be
test byte [rax + 0x44], 1
je 0x1400321be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x1400ab710]
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
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 0x1400334cc
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, [0x1400b9680]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140033560
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14004a098
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 0x14004a0bd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14004a0bf
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, [0x1400b67d8]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.14004a2e0
mov rcx, qword [0x1400c82a8]
lea rbp, [0x1400c82a8]
cmp rcx, rbp
je 0x14004a131
test byte [rcx + 0x1c], 4
je 0x14004a131
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ab7d8]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.14001f06c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
jne 0x14004a1c1
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x14004a1b6
test byte [rcx + 0x1c], 4
je 0x14004a196
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab7d8]
mov edx, 0x20
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140016c88
mov rcx, qword [0x1400c82a8]
cmp rcx, rbp
je 0x14004a1b6
test byte [rcx + 0x1c], 4
je 0x14004a1b6
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ab7d8]
mov edx, 0x21
call fcn.140016c5c
xor eax, eax
movabs byte [0], al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret