joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071604
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov rbp, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], r13b
jne 0x14007162e
xor eax, eax
jmp 0x140071752
mov esi, 0x80070057
test rbp, rbp
je 0x140071750
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x140071640
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x140071750
lea rcx, [rdi + 0x20]
call fcn.140004608
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r14d, r13d
mov r12d, eax
mov eax, r13d
mov r15d, r13d
cmp dword [rdi + 8], r13d
jbe 0x1400716f3
mov rcx, qword [rdi + 0x18]
mov r13d, eax
mov dword [rsp + 0x60], r14d
mov eax, r15d
lea rsi, [rax + rax*2]
lea rcx, [rcx + rsi*8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400716e4
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14007171a
mov rcx, qword [rdi + 0x18]
mov eax, r12d
lea r8, [rcx + rsi*8]
sub eax, dword [r8 + 8]
cmp eax, dword [rdi + 0xc]
ja 0x1400716e1
cmp eax, r13d
mov r14d, r15d
cmovbe r14d, dword [rsp + 0x60]
inc r15d
cmp eax, r13d
cmovbe eax, r13d
cmp r15d, dword [rdi + 8]
jb 0x140071681
jmp 0x1400716f3
mov rcx, r8
mov rdx, rbp
call fcn.14007353c
mov esi, eax
cmp eax, 1
jne 0x140071747
mov eax, dword [rdi + 8]
mov rdx, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x140071732
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.14007353c
mov esi, eax
test eax, eax
js 0x140071747
inc dword [rdi + 8]
jmp 0x140071747
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rsi*8 + 8], eax
xor esi, esi
jmp 0x140071747
mov eax, r14d
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.14007353c
mov esi, eax
lea rcx, [rdi + 0x20]
call fcn.14000463c
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400735f0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0x54535357
lea rdx, [rcx + 8]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
test eax, eax
jle 0x140073620
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x1a0], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140073638
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r14d, r14d
mov rsi, rdx
mov qword [rdx], r14
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
je 0x140073796
cmp word [rcx], r14w
je 0x140073796
lea rcx, [rbp - 0x80]
call fcn.1400735f0
mov ebx, dword [rbp + 0x120]
test ebx, ebx
js 0x140073781
xorps xmm0, xmm0
mov qword [rsp + 0x40], r14
movups xmmword [rsp + 0x48], xmm0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], 4
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140073758
mov rcx, rdi
call fcn.1400737c8
test eax, eax
js 0x140073742
mov ecx, 0x804
call fcn.140013050
mov rbx, rax
test rax, rax
je 0x140073742
mov rcx, qword [rsp + 0x40]
mov r9d, 0x401
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14007373a
mov qword [rsi], rbx
jmp 0x140073742
mov rcx, rbx
call fcn.140013044
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
mov ebx, r14d
jmp 0x140073781
cmp eax, 0x2af9
jne 0x140073766
mov ebx, 1
jmp 0x140073781
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140073781
movzx ebx, ax
or ebx, 0x80070000
cmp dword [rbp + 0x120], r14d
jne 0x140073796
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400133c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140073b7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140073c30
mov rcx, qword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
and dword [rbp + 0x30], 0
call fcn.140010f34
mov ebx, eax
test eax, eax
jne 0x140073c30
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x30]
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140073c23
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.140073b7c
movzx ebx, ax
mov rcx, qword [rbp - 0x10]
call fcn.14001458c
test ebx, ebx
je 0x140073bbb
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140073c45
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
cmp ebx, 0x103
cmovne eax, ebx
test eax, eax
jne 0x140073c6e
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x140073c78
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret

Function at 0x140073f08
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x140073f53
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140073f63
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
test ecx, ecx
jle 0x140073f70
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140073f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140073fe4
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jle 0x140073fee
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret
Function at 0x140074150
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
mov r8, qword [rcx + 8]
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx]
mov dword [rsp + 0x50], eax
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
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.14001a0bc
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140074200
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400b99f8]
test rdx, rdx
jne 0x14007421b
mov eax, 0x80070057
add rsp, 0x28
ret
mov eax, dword [rcx + 8]
test eax, eax
js 0x14007424a
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 4
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
nop dword [rax + rax]
test eax, eax
je 0x140074245
xor eax, eax
add rsp, 0x28
ret
call fcn.1400411d8
add rsp, 0x28
ret

Function at 0x1400743e8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x140074415
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x1400743f3
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x1400745cc
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
je 0x140074602
xor ebx, ebx
jmp 0x14007467e
call fcn.14000dcb4
mov ebx, eax
test eax, eax
jns 0x14007467e
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14007467e
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b94dc]
cmovo rax, rcx
mov rcx, rax
call fcn.140013eb8
mov rdi, rax
test rax, rax
jne 0x140074649
mov ebx, 0x8007000e
jmp 0x14007467e
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x140074671
call fcn.14000dcb4
mov ebx, eax
test eax, eax
js 0x14007467e
mov rdx, rdi
mov rcx, rsi
call fcn.140010b68
mov ebx, eax
mov rcx, rdi
call fcn.140013044
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140077160
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400b7c44], 0xffffffff
jne 0x140077211
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400b7c44], ebx
lea rdx, [0x1400acb10]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077211
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077200
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400b7c44], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400b7c44]
add rsp, 0x30
pop rbx
ret

Function at 0x140077820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x1400778c7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400778b6
cmp dword [rsp + 0x58], 4
jne 0x1400778b6
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x50], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007790b
test byte [rcx + 0x1c], 2
je 0x14007790b
cmp dword [rdi + 0x50], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400acb90]
mov edx, 0xe
call fcn.1400413f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400779fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140077a9d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077a82
cmp dword [rsp + 0x60], ebx
je 0x140077a87
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140077aa4
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x140077ae8
test byte [rcx + 0x1c], 2
je 0x140077ae8
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400acb90]
mov edx, 0xd
call fcn.1400413f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007ad24
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]
nop dword [rax + rax]
test eax, eax
jne 0x14007ae3c
cmp dword [rsp + 0x30], 3
jne 0x14007ae3c
cmp dword [rsp + 0x68], 0x48
jbe 0x14007ae3c
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14007ae35
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007ae20
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14007adef
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14007adef
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14007ae6d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007ae20
test byte [rcx + 0x1c], 4
je 0x14007ae20
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x14009cdf8]
call fcn.140030ccc
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14007ae6d
mov ebx, 8
jmp 0x14007ae6d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007ae6d
test byte [rcx + 0x1c], 4
je 0x14007ae6d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x14009cdf8]
call fcn.140030ccc
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140011488
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400b35a8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
lea rax, [rsp + 0x30]
mov qword [rdx], r12
lea r8, [rsp + 0x30]
mov r14d, r12d
sub rcx, rax
mov r15, rdx
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x1400114fd
movzx eax, word [rcx + r8]
test ax, ax
je 0x1400114fd
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x1400114d9
lea rax, [r8 - 2]
test r9, r9
lea rcx, [rsp + 0x30]
cmovne rax, r8
lea r8, [0x140088a10]
mov word [rax], r12w
call fcn.140007bfc
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001156c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140011661
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.1400094dc
mov esi, eax
jmp 0x140011645
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r12d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.140009a88
mov esi, eax
test eax, eax
jns 0x1400115aa
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.1400094a0
mov rcx, rbx
call fcn.1400095b4
jmp 0x140011645
lea r8, [0x140088a18]
lea rcx, [rsp + 0x30]
call fcn.140007bfc
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400115ed
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.1400094dc
mov esi, eax
jmp 0x14001159d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140009a88
mov esi, eax
test eax, eax
jns 0x140011621
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.1400094a0
mov rcx, rdi
call fcn.1400095b4
jmp 0x14001159d
mov rcx, rdi
call fcn.1400095b4
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.1400095b4
mov esi, r12d
test esi, esi
jns 0x140011661
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.1400094a0
mov eax, esi
jmp 0x140011666
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140067670
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002c5fc
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400b35a8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.14000501c
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006b0c
xor ebx, ebx
test al, al
je 0x14002c699
lea rdi, [rsi + 8]
test rdi, rdi
je 0x14002c699
cmp byte [rsi + 0x4c], bl
je 0x14002c699
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
je 0x14002c699
cmp byte [rsp + 0x6c], bl
je 0x14002c699
lea rcx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
je 0x14002c699
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.1400052d8
mov al, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140067670
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002c7cc
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400b35a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x140088418]
lea rcx, [rsp + 0x40]
call fcn.14000510c
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14002c83c
cmp dword [rsp + 0x34], 0
setne bl
xor dil, dil
jmp 0x14002c843
mov dil, 1
mov bl, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400052d8
test dil, dil
je 0x14002c856
xor al, al
jmp 0x14002c85c
mov al, bl
jmp 0x14002c85c
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140067670
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x14002ca2c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor ebx, ebx
mov qword [rbp - 0x10], rbx
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.140038ed0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov r8d, eax
test eax, eax
je 0x14002cae5
mov rcx, qword [rbp - 0x18]
mov rax, rcx
mov rdx, qword [rbp - 0x20]
sub rax, rdx
sar rax, 1
cmp r8, rax
jbe 0x14002cac5
mov edx, r8d
lea rcx, [rbp - 0x20]
call fcn.140038ed0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov r8d, eax
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
test r8d, r8d
je 0x14002cae5
sub rcx, rdx
sar rcx, 1
mov eax, r8d
cmp rax, rcx
ja 0x14002cae5
mov rcx, rdi
call fcn.140004374
nop
mov bl, 1
jmp 0x14002cae5
lea rcx, [rbp - 0x20]
call fcn.140020b54
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x140041a34
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400b35a8]
xor rax, rsp
mov qword [rbp + 0x80], rax
cmp dword [0x1400b47e0], 0
je 0x140041a6a
mov eax, dword [0x1400b47dc]
jmp 0x140041af1
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x118
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop dword [rax + rax]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rbp + 0x7a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rbp + 0x78]
mov word [rsp + 0x20], ax
call fcn.140041b10
mov dword [0x1400b47dc], eax
mov dword [0x1400b47e0], 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140067670
add rsp, 0x190
pop rbp
ret

Function at 0x140042be8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, r8
mov rsi, rdx
mov r14, rcx
and dword [rbp + 0x48], 0
and dword [rbp + 0x38], 0
cmp qword [rdx + 0x18], 8
jb 0x140042c16
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140042d1d
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x140042d18
mov eax, dword [rbp + 0x48]
dec eax
cmp eax, 1
ja 0x140042d18
lea rbx, [rcx + 2]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140042f48
mov r8, rbx
xor edx, edx
mov rdi, qword [rbp - 0x20]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rdi + rbx]
mov qword [rbp - 0x18], rax
cmp qword [rsi + 0x18], 8
jb 0x140042c99
mov rsi, qword [rsi]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140042cd2
mov rdx, rdi
mov rcx, r15
call fcn.140004374
nop
test rdi, rdi
je 0x140042d14
mov rdx, qword [rbp - 0x10]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140042d0c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042d0c
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
mov rcx, rdi
call fcn.140067998
mov eax, ebx
jmp 0x140042d1d
mov eax, 0x65e
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret