joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000ee38
Capabilities:
Get local ipv4 addresses

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov eax, dword [rcx + 0x20]
mov r9, qword [rcx + 0x18]
mov rsi, rcx
mov dword [rsp + 0x50], eax
lea rax, [r11 + 8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [r11 - 0x28], rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
xor edi, edi
mov ebx, 0x80070000
test eax, eax
je 0x10000ee87
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
cmp di, 0x6f
jne 0x10000eee8
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [rsp + 0x50]
and dword [rsi + 0x20], 0
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r9, rax
mov qword [rsi + 0x18], rax
test rax, rax
jne 0x10000eebb
mov edi, 0x8007000e
jmp 0x10000f015
mov eax, dword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov dword [rsi + 0x20], eax
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
xor edi, edi
test eax, eax
je 0x10000eee8
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x10000f015
xor ebp, ebp
or r8d, 0xffffffff
cmp dword [rsi + 8], ebp
jbe 0x10000efa9
lea r13d, [rbp + 1]
xor r12d, r12d
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x10000ef39
cmp dword [rdx + 0x64], 0x18
je 0x10000ef2d
cmp dword [rdx + 0x110], 0
jne 0x10000ef2d
mov rax, qword [rsi]
mov rcx, qword [r12 + rax]
mov eax, dword [rdx + 4]
cmp dword [rcx + 8], eax
je 0x10000ef33
mov rdx, qword [rdx + 8]
jmp 0x10000ef0a
mov dword [rdx + 4], r8d
jmp 0x10000ef97
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [r12 + rbx]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r11d, dword [rsi + 8]
cmp r11d, r13d
jbe 0x10000ef78
mov rcx, qword [rsi]
sub r11d, ebp
mov eax, r13d
lea r8d, [r11 - 1]
lea rdx, [rcx + rax*8]
lea rcx, [rcx + rbp*8]
shl r8, 3
call fcn.100022c0a
mov ecx, dword [rsi + 8]
mov rax, qword [rsi]
or r8d, 0xffffffff
dec ecx
add ebp, r8d
add r13d, r8d
and qword [rax + rcx*8], 0
add dword [rsi + 8], r8d
sub r12, 8
inc ebp
inc r13d
add r12, 8
cmp ebp, dword [rsi + 8]
jb 0x10000ef06
mov rbx, qword [rsi + 0x18]
jmp 0x10000f00c
cmp dword [rbx + 0x64], 0x18
je 0x10000f002
cmp dword [rbx + 0x110], 0
jne 0x10000f002
cmp dword [rbx + 4], r8d
je 0x10000f002
mov eax, dword [rsi + 8]
cmp eax, 0x20
jae 0x10000f002
lea edx, [rax*8 + 8]
mov rcx, rsi
call fcn.10000ed10
mov edi, eax
test eax, eax
js 0x10000f015
mov ecx, dword [rsi + 8]
mov rax, qword [rsi]
mov r8, rbx
lea rdx, [rax + rcx*8]
lea eax, [rcx + 1]
mov rcx, rsi
mov dword [rsi + 8], eax
call fcn.10000f0e4
mov edi, eax
test eax, eax
js 0x10000f015
mov rbx, qword [rbx + 8]
mov r8d, 0xffffffff
test rbx, rbx
jne 0x10000efaf
test edi, edi
jns 0x10000f019
and dword [rsi + 8], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x10000f718
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov edi, 0x64
mov rbx, rdx
lea rdx, [rsp + 0x30]
lea r9d, [rdi - 0x5a]
mov r8, rdi
call fcn.100022c16
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor edi, edi
cmp di, word [0x10002ae68]
jne 0x10000f792
lea r9d, [rdi + 4]
lea r8, [0x10002ae68]
lea edx, [rdi + 0xe]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rdx, [0x10002ae68]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rdi
je 0x10000f7aa
mov word [rax], di
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.100022bc0
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
ret

Function at 0x10001362c
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edi, edi
mov rdx, qword [rsi + 0x20]
cmp rdx, rdi
je 0x10001366e
mov r8d, dword [rsi + 0x28]
lea r9, [rsp + 0x38]
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, edi
jge 0x1000136cf
cmp eax, 0xc0000004
jne 0x1000136e1
mov ecx, dword [rsp + 0x38]
jmp 0x100013674
mov ecx, edi
mov dword [rsp + 0x38], ecx
mov rbx, qword [rsi + 0x20]
cmp rbx, rdi
je 0x100013699
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rsp + 0x38]
mov qword [rsi + 0x20], rdi
mov eax, ecx
shr eax, 4
lea ebx, [rax + rcx + 0x1000]
mov qword [rsi + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi + 0x20], rax
cmp rax, rdi
jne 0x100013640
mov edi, 0x8007000e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov edi, 0x80004005
jmp 0x1000136cf
Function at 0x1000152f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r9d, 0xa
mov ebx, r8d
mov rdi, rdx
lea r8d, [r9 + 0x36]
lea rdx, [rsp + 0x30]
call fcn.100022c22
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor ebx, ebx
cmp bx, word [0x10002ae68]
jne 0x10001536f
lea r9d, [rbx + 4]
lea r8, [0x10002ae68]
lea edx, [rbx + 0xe]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rdx, [0x10002ae68]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
cmp rax, rbx
je 0x100015387
mov word [rax], bx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.100022bc0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x1000167d8
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor r13d, r13d
xor ebp, ebp
and dword [rax + 0x20], ebx
mov r15, r8
mov r14d, edx
mov rsi, rcx
test r9d, r9d
jne 0x1000168c6
add rcx, 0x290
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword [rsi + 0x18]
xor ecx, ecx
mov edx, dword [rax]
test edx, edx
jle 0x100016840
mov rax, qword [rax + 8]
mov rdi, qword [rax]
cmp dword [rdi + 8], r14d
je 0x100016842
inc ecx
add rax, 8
cmp ecx, edx
jl 0x10001682d
xor edi, edi
test rdi, rdi
je 0x100016858
mov rcx, rdi
call fcn.100013b9c
mov r13, qword [rdi + 0xc0]
mov ebp, eax
lea rcx, [rsi + 0x290]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rdi, rdi
jne 0x100016874
mov eax, 0x57
jmp 0x100016947
mov edx, 0x2713
mov rcx, rsi
test ebp, ebp
je 0x10001689a
mov dword [rsp + 0x28], 0x273b
lea r9d, [rdx + 0x27]
lea r8d, [rdx + 0x29]
mov dword [rsp + 0x20], 0x273d
jmp 0x1000168b0
and dword [rsp + 0x28], ebx
mov r9d, 0x2730
mov dword [rsp + 0x20], 0x2731
lea r8d, [r9 - 1]
call fcn.100012e00
cmp eax, 1
je 0x1000168c1
xor eax, eax
jmp 0x100016947
test r13, r13
jne 0x10001686a
xor edx, edx
mov r8d, r14d
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x10001691a
lea r8, [rsp + 0x78]
mov rdx, r15
mov ecx, r14d
call fcn.100016734
test eax, eax
js 0x100016913
cmp dword [rsp + 0x78], ebx
je 0x100016913
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10001691a
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x100016922
mov ebx, 6
jmp 0x100016922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x100016930
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100016945
mov rcx, qword [rsi + 8]
mov r8d, ebx
mov edx, 0x2721
call fcn.10000ac38
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100017660
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rdx
mov ebx, ecx
mov r8d, ecx
xor esi, esi
xor edx, edx
mov ecx, 0x1000
mov word [rsp + 0x90], si
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, rsi
je 0x1000176c1
lea r8, [rsp + 0x90]
mov r9, rax
mov rdx, rdi
mov ecx, ebx
call fcn.1000174e4
mov ebx, eax
jmp 0x1000176c6
mov ebx, 0x80004005
cmp ebx, esi
jl 0x100017732
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
lea rax, [0x100006b20]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rax
mov rax, qword [0x10002a358]
mov dword [rsp + 0x24], 0x400c
mov qword [rsp + 0x28], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [0x10002a358]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x86
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100022bc0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100017760
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x100028110]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, qword [0x10002a358]
and dword [rsp + 0x50], 0
mov edi, edx
xor edx, edx
lea rcx, [rsp + 0x54]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0xc0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1000177de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100017901
lea rcx, [0x1000068b8]
test edi, edi
lea rax, [0x100006b38]
cmovne rax, rcx
mov rcx, qword [0x10002a350]
mov dword [rsp + 0x50], 0x70
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x54], 0x400
mov qword [rsp + 0x68], rax
lea rax, [0x100006b48]
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x70], rax
test rcx, rcx
je 0x10001784a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x10002a350], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100017860
xor ebx, ebx
jmp 0x100017901
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x100017901
xor ecx, ecx
call fcn.10000a048
movzx eax, bx
mov r8d, 0x4ec
cmp eax, r8d
jne 0x100017901
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1000178be
xor ebx, ebx
jmp 0x1000178e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000178d8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000178dd
mov ebx, 0x80004005
test ebx, ebx
js 0x100017901
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x10002a358]
lea r8, [rsp + 0xc0]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100017911
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.100022bc0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100019000
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 0x6400
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor esi, esi
jmp 0x10001908b
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp eax, esi
je 0x10001905f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, rsi
cmp edi, 0xc0000004
jne 0x1000190a5
mov ecx, dword [rsp + 0x30]
mov eax, ecx
shr eax, 4
lea edi, [rax + rcx + 0x2000]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rsi
jne 0x10001902c
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp edi, esi
cmovl rbx, rsi
mov rax, rbx
jmp 0x100019095
Function at 0x100019b14
Capabilities:
Accept command line arguments

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 r12
push r13
push r15
sub rsp, 0x30
mov rsi, r9
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r13d, r13d
mov rbx, rax
cmp rax, r13
jne 0x100019b64
xor eax, eax
jmp 0x100019c90
mov dword [rax], ebp
mov qword [rax + 0x18], rsi
mov eax, dword [rsi + 0x10]
and eax, 0x20
cmp al, r13b
jne 0x100019b85
lea rax, [rdi + 0x30b0]
mov qword [rbx + 8], rax
jmp 0x100019c8d
lea r15, [0x1000069b0]
mov r8d, 1
mov rcx, r12
mov qword [rbx + 8], r15
mov rdx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
cmp rax, r13
je 0x100019c8d
lea rdx, [rdi + 0x70]
lea r9, [rsp + 0x24]
mov r8d, 0x2000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp eax, r13d
je 0x100019c84
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
cmp rax, r13
je 0x100019c84
mov rcx, qword [rax]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, r13
jne 0x100019c05
mov rax, qword [rsi]
jmp 0x100019c09
add rax, 2
lea rcx, [0x100006bd8]
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r13d
jne 0x100019c7b
mov edi, 1
cmp dword [rsp + 0x20], edi
jle 0x100019c7b
lea rbp, [rsi + 8]
mov rdx, qword [rbp]
lea rcx, [0x100006bf0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, r13d
je 0x100019c51
inc edi
add rbp, 8
cmp edi, dword [rsp + 0x20]
jl 0x100019c2d
jmp 0x100019c7b
lea eax, [rdi + 1]
cmp eax, dword [rsp + 0x20]
jge 0x100019c7b
movsxd rax, edi
mov rcx, qword [rsi + rax*8 + 8]
cmp r13w, word [rcx]
je 0x100019c7b
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rbx + 8], rax
cmp rax, r13
jne 0x100019c7b
mov qword [rbx + 8], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
Function at 0x10001a680
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xa8
cmp edx, 0xdaf
je 0x10001a6cb
cmp edx, 0xdb3
jbe 0x10001a740
cmp edx, 0xdb7
ja 0x10001a740
lea r8, [0x10002a030]
lea rcx, [0x10001a750]
mov edx, edx
call qword [sym.imp.KERNEL32.dll_TrySubmitThreadpoolCallback]
test eax, eax
jne 0x10001a740
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x10001a740
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
lea rax, [0x100006b38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [0x100006c80]
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x48], rax
mov rax, qword [0x10002a358]
mov dword [rsp + 0x34], 0x600
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.100012c74
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, 0xdaf
mov ecx, eax
call fcn.100021bd0
add rsp, 0xa8
ret
Function at 0x10001b414
Capabilities:
Enumerate threads

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0x11e0
call fcn.1000235f0
sub rsp, rax
mov r13, rdx
mov r12d, ecx
mov dword [rdx], 1
xor edx, edx
xor ecx, ecx
or rdi, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_OpenThreadWaitChainSession]
mov r15d, 0x80070000
mov rbp, rax
test rax, rax
jne 0x10001b46d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10001b5cc
mov edx, r12d
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
test rax, rax
je 0x10001b488
cmp rax, 0xffffffffffffffff
jne 0x10001b4a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10001b5aa
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x40], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10001b4be
xor ebx, ebx
jmp 0x10001b4d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10001b5aa
cmp dword [rsp + 0x4c], r12d
jne 0x10001b60a
test rdi, rdi
je 0x10001b4f6
cmp rdi, 0xffffffffffffffff
je 0x10001b4f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x10001b5f9
cmp rax, 0xffffffffffffffff
je 0x10001b5f9
lea rdx, [rsp + 0x1228]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x1228], 0x103
jne 0x10001b60a
mov r9d, dword [rsp + 0x48]
lea rax, [rsp + 0x1238]
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea r8d, [rdx + 7]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1230]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x1230], 0x10
call qword [sym.imp.ADVAPI32.dll_GetThreadWaitChain]
test eax, eax
je 0x10001b5e0
xor ebx, ebx
cmp dword [rsp + 0x1238], 0
je 0x10001b60a
and dword [r13], 0
test rdi, rdi
je 0x10001b5aa
cmp rdi, 0xffffffffffffffff
je 0x10001b5aa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x10001b5be
cmp rsi, 0xffffffffffffffff
je 0x10001b5be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x10001b5cc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseThreadWaitChainSession]
mov eax, ebx
add rsp, 0x11e0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x10001b587
xor ebx, ebx
jmp 0x10001b60a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x10001b596
jmp 0x10001b4d7
Function at 0x10001ca38
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, r8
mov rbx, rcx
mov dword [rcx + 0x60], 1
cmp qword [rcx + 0x68], rdi
jne 0x10001ca70
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x68], rax
cmp qword [rbx + 0x70], rdi
jne 0x10001ca8a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x68]
test rax, rax
je 0x10001cb02
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x10001cb02
and dword [rbx + 0x58], edi
lea r9, [rbx + 0x38]
mov qword [rbx + 0x40], rsi
and qword [r9], rdi
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rcx
cmp qword [rbx + 0x78], rdi
jne 0x10001cae0
lea rax, [rsp + 0x40]
lea r8, [0x10001ba7c]
xor edx, edx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x78], rax
cmp rax, rdi
je 0x10001cb02
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbx + 0x70]
mov r9d, 0x40
or r8d, 0xffffffff
xor ecx, ecx
call fcn.100021aa8
mov edi, dword [rbx + 0x5c]
and dword [rbx + 0x60], 0
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x10001e424
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x100006fb0]
mov rbx, rcx
mov dword [rcx + 0x10], 0x6a
mov qword [rcx], rax
mov eax, 0xf0
mov dword [rcx + 0x14], 2
mov word [rcx + 8], ax
lea rax, [rsp + 0x58]
lea rdx, [0x1000061a0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001e518
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100006d10]
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001e4c5
cmp dword [rsp + 0x48], 4
jne 0x10001e4c5
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x10], eax
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100006ce8]
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001e50d
cmp dword [rsp + 0x48], 4
jne 0x10001e50d
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x10001e528
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [0x100006fb0]
mov rbx, rcx
mov qword [rcx], rax
lea rax, [r11 + 8]
lea r9, [0x1000064a8]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea rdx, [0x1000061a0]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001e5e1
mov rcx, qword [rsp + 0x60]
lea rax, [rbx + 0x10]
lea rdx, [0x100006d10]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
lea r11, [rbx + 0x14]
lea rdx, [0x100006ce8]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret