joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d50
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140005f30]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x48], 1
setbe al
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
je 0x140002d88
call fcn.140002520
add rsp, 0x60
pop rbx
ret

Function at 0x140002d90
Capabilities:
Get local ipv4 addresses

Disassembly:
sub rsp, 0x28
lea rcx, [0x140005050]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x140005054]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x140005058]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x14000505c]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x140005060]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x140005064]
call fcn.140002ac0
test al, al
jne 0x140002e04
lea rcx, [0x140005068]
add rsp, 0x28
jmp fcn.140002ac0
mov al, 1
add rsp, 0x28
ret

Function at 0x140002e10
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, qword [0x140005f30]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x30], 0x7fffffff
setbe al
mov rdx, qword [rsp + 0x68]
sub rdx, qword [rbx]
je 0x140002e54
call fcn.140002520
add rsp, 0x70
pop rbx
ret
Function at 0x140001b34
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0xb8], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
and dword [rsp + 0x40], 0
lea r8, [0x140001750]
mov qword [rbx + 0xc0], rax
mov r9, rbx
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0xb0], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140002478
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140053408]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x41], 0
and dword [rbp - 0x49], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rbp - 0x41]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x140024620
mov r9d, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea ebx, [r8 + 1]
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
mov ecx, dword [rbp - 0x49]
call fcn.1400207d8
mov rcx, qword [rbp - 0x41]
mov rdi, rax
test rax, rax
je 0x14002461a
mov r9d, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14002460e
lea rcx, [rbp - 0x39]
call fcn.14000256c
mov rcx, qword [rdi]
lea rdx, [rax + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
lea rcx, [rbp - 0x39]
mov ebx, eax
call fcn.140004540
mov rcx, rdi
call fcn.1400207e0
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140020ba0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rcx, rdi
call fcn.1400207e0
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor eax, eax
jmp 0x140002549
Function at 0x140012018
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionTouchKeyboard
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, 0x80070000
test eax, eax
jg 0x140025ae8
js 0x1400120a9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
and dword [rsp + 0x30], 0
lea rdx, str.DelayStart
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jle 0x140012098
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x140025af4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.140012130
test byte [0x140054500], 1
jne 0x140025b1e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
cmp byte [0x140053bc8], 0
jne 0x140012129
and dword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140010ed0
cmp al, 1
jne 0x140012123
call fcn.140005b70
mov ebx, eax
mov rcx, qword [0x140053c28]
test rcx, rcx
jne 0x140025b30
test byte [0x140054500], 1
jne 0x140025b43
call fcn.14001e670
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov ebx, dword [rsp + 0x30]
jmp 0x1400120f9
or ebx, 0xffffffff
jmp 0x1400120f9
movzx eax, ax
or eax, ebx
test eax, eax
jmp 0x140012052
cmp dword [rsp + 0x30], 1
jne 0x14001209e
xor r9d, r9d
lea r8, str.TabTip_MessageBox__
lea rdx, str.TabTip_is_at_WinMain.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
jmp 0x14001209e
lea rdx, [0x140047df0]
call fcn.14002f298
nop
jmp 0x1400120bb
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
and qword [0x140053c28], 0
jmp 0x140012109
lea rdx, [0x140047e10]
call fcn.14002f298
nop
jmp 0x140012116
Function at 0x1400123f0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rcx
cmp qword [rcx + 0x38], 0
jne 0x1400125d7
call fcn.140012948
mov qword [rsi + 0x38], rax
cmp byte [0x140053c3b], 0
jne 0x1400125b2
cmp byte [0x140053c38], 0
jne 0x1400125b2
mov bl, 1
call fcn.140022690
lea rcx, [rsp + 0x80]
call fcn.14001e7b0
nop
mov r9d, 3
lea rcx, [rsp + 0x80]
call fcn.1400269a0
test eax, eax
js 0x1400124e8
mov edx, 0x58
mov rcx, qword [rsp + 0x80]
call fcn.140022668
mov dil, al
mov edx, 0x8e
mov rcx, qword [rsp + 0x80]
call fcn.140022668
mov bl, al
mov edx, 0x51
mov rcx, qword [rsp + 0x80]
call fcn.140022668
mov bpl, al
mov dl, 3
call fcn.1400226e4
call fcn.14002273c
test bl, bl
sete bl
test dil, dil
jne 0x1400124d8
test bpl, bpl
jne 0x1400124d8
call fcn.140022608
test al, al
jne 0x1400124d8
call fcn.1400225ac
test eax, eax
jne 0x1400124d8
mov al, 1
jmp 0x1400124da
xor al, al
test bl, bl
je 0x1400124e6
test al, al
je 0x1400124e6
xor bl, bl
jmp 0x1400124e8
mov bl, 1
lea rcx, [rsp + 0x80]
call fcn.1400266bc
test bl, bl
je 0x1400125b2
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
cmp word [rsp + 0x38], 9
je 0x14001252c
cmp word [rsp + 0x38], 0xc
jne 0x1400125b2
lea rdx, [rsi + 0x60]
xor r8d, r8d
lea rcx, [rsi + 0x68]
call fcn.140020120
mov rdx, qword [rsi + 0x68]
test rdx, rdx
je 0x140012567
lea rcx, [rsi + 0x58]
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r9, [rsi - 0x10]
lea r8, [0x140038470]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_RegisterWaitForSingleObject]
cmp word [rsp + 0x38], 0xc
jne 0x1400125b2
lea rbx, [rsi + 0x88]
lea rdx, [rsi + 0x80]
mov r8b, 1
mov rcx, rbx
call fcn.140020120
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400125b2
lea rcx, [rsi + 0x78]
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r9, [rsi - 0x10]
lea r8, [0x140038490]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_RegisterWaitForSingleObject]
lea rcx, [rsi + 0x40]
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
lea r8, [0x140038450]
mov rdx, qword [rsi + 0x38]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_RegisterWaitForSingleObject]
lea rcx, [rsi - 0x10]
call fcn.140012264
mov byte [rsi + 0x98], 1
lea r8, str.DFFDE213_8CB4_46a9_90EB_3DA843AF66F9_show
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov qword [rsi + 0x48], rax
cmp byte [0x140053c3b], 0
jne 0x14001262f
test rax, rax
je 0x14001262f
lea rcx, [rsi + 0x50]
and dword [rsp + 0x28], 0
or dword [rsp + 0x20], 0xffffffff
lea r9, [rsi - 0x10]
lea r8, [0x14001e820]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_RegisterWaitForSingleObject]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140012a10
Capabilities:
Check mutex on windows

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rdi, rdx
xor r14d, r14d
mov ebp, r14d
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140012a43
add rbx, 0xe
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400207d8
mov rsi, rax
test rax, rax
je 0x140012bae
mov word [rax], r14w
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140012d60
test eax, eax
js 0x140012bae
mov edx, r14d
lea rax, [rbx - 1]
cmp rax, 0x7ffffffe
ja 0x140025c80
test edx, edx
js 0x140025c8f
mov rcx, rbx
mov rax, rsi
mov edx, r14d
test rbx, rbx
je 0x140025c8a
cmp word [rax], dx
je 0x140012acb
add rax, 2
sub rcx, 1
jne 0x140012ab7
jmp 0x140025c8a
test rcx, rcx
je 0x140025c8a
mov r8, rbx
sub r8, rcx
test edx, edx
js 0x140012bae
mov rdx, rbx
sub rdx, r8
lea rax, [rsi + r8*2]
mov r10d, r14d
je 0x140025c97
mov rcx, rdx
sub rcx, rbx
add r8, 0x7ffffffe
add r8, rcx
lea r9, str.Tabtip_MainUI
sub r9, rax
nop
test r8, r8
je 0x140012b34
movzx ecx, word [r9 + rax]
test cx, cx
je 0x140012b34
mov word [rax], cx
add rax, 2
dec r8
sub rdx, 1
jne 0x140012b10
jmp 0x140025c97
test rdx, rdx
je 0x140025c97
mov word [rax], r14w
test r10d, r10d
js 0x140012bae
mov dword [rsp + 0x38], 0x18
lea rbx, [0x140041558]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x28]
call fcn.14000320c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r14d
mov r8, rsi
mov edx, 1
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rbp, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x140025ca6
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x28]
call fcn.140002b20
mov rcx, rsi
call fcn.1400207e0
mov rax, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
mov edx, 0x80070057
jmp 0x140012a9d
mov edx, 0x80070057
mov r8, r14
jmp 0x140012ada
sub rax, 2
mov r10d, 0x8007007a
jmp 0x140012b3d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbp, r14
jmp 0x140012b9f
Function at 0x14001ec2c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, qword [0x140053ce0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x88], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x78], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
and dword [rsp + 0x40], 0
lea r8, [0x14001eac0]
mov qword [rbx + 0x80], rax
mov r9, rbx
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x70], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140020464
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, str.CommonFilesDir__x86_
mov rdi, rcx
xor ebp, ebp
lea rsi, str.CommonFilesDir__Arm_
test dl, dl
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
cmove rsi, rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jg 0x140026572
test ebx, ebx
js 0x140020514
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov qword [rsp + 0x28], rdi
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jg 0x140026580
test ebx, ebx
js 0x140020509
cmp word [rdi], bp
mov eax, 0x80004005
cmove ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400204ba
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400204fa

Function at 0x1400211b0
Capabilities:
Parse pe header

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

Function at 0x140021414
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002141c
push rbx
sub rsp, 0x540
mov rax, qword [0x140053408]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140021499
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400214b9
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1400442b8]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140020ba0
add rsp, 0x540
pop rbx
ret
Function at 0x14002141c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002141c
push rbx
sub rsp, 0x540
mov rax, qword [0x140053408]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140021499
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1400214b9
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1400442b8]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140020ba0
add rsp, 0x540
pop rbx
ret

Function at 0x140022790
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
sub rsp, 0x58
and dword [rsp + 0x60], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
mov rcx, 0xffffffff80000002
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], 4
mov qword [r11 - 0x30], rax
mov r9d, 0x10000012
lea rax, [r11 + 8]
mov qword [r11 - 0x38], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ecx, 0xd
test eax, eax
jne 0x14002282d
cmp dword [rsp + 0x60], 4
jne 0x140022807
lea edx, [rcx - 0xc]
cmp dword [rsp + 0x78], edx
ja 0x14002283b
xor ecx, ecx
cmp dword [rsp + 0x78], edx
mov rax, qword [rsp + 0x80]
sete cl
mov dword [rax], ecx
xor ecx, ecx
jmp 0x140022844
cmp dword [rsp + 0x40], 4
jne 0x14002283b
movzx eax, word [rsp + 0x78]
mov edx, 1
sub ax, 0x30
cmp ax, dx
ja 0x14002283b
lea eax, [rdx + 0x30]
xor ecx, ecx
cmp ax, word [rsp + 0x78]
jmp 0x1400227f6
cmp eax, 0xea
cmove eax, ecx
mov ecx, eax
test eax, eax
jle 0x140022844
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x58
ret
Function at 0x14003fe50
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea ebp, [rbx + 1]
mov r8d, ebp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14003fed4
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, str.TabletInputService
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14003fecb
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
je 0x14003feb1
mov bl, bpl
jmp 0x14003fec2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x420
movzx ebx, bl
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140001eac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ea3
test rsi, rsi
je 0x140001ea3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000227d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002220
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005e80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000229f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000229f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005e80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002550
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002980
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Inject apc

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov r12, qword [0x140005f50]
xor r8d, r8d
xor r9d, r9d
mov rax, qword [r12]
mov qword [rsp + 0xe8], rax
xor eax, eax
lea rdi, [rsp + 0x80]
mov rbp, rcx
mov rsi, rdx
lea rdx, str.C:WindowsSystem32RuntimeBroker.exe
mov ecx, 0x1a
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x68]
mov ecx, 6
rep stosd dword [rdi], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140002ae3
cmp dword [rsp + 0x78], 0
je 0x140002ae3
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002ae3
cmp qword [rsp + 0x70], 0
je 0x140002ae3
xor eax, eax
xor edx, edx
mov dword [rsp + 0x20], 4
mov r8, rsi
mov dword [rsp + 0x5c], edx
mov r9d, 0x3000
xor edx, edx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
mov rbx, rax
je 0x140002ae3
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002ae3
cmp qword [rsp + 0x60], rsi
jne 0x140002ae3
lea rax, [rsp + 0x5c]
mov rcx, qword [rsp + 0x68]
mov r8, rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140002ae3
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x70]
call rbx
mov rax, qword [rsp + 0xe8]
sub rax, qword [r12]
je 0x140002af7
call fcn.140002520
nop
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret