joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140191590
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1403a7038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1401916ec
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14033b990]
lea r14, [rsp + 0x40]
movaps xmmword [r14], xmm0
movaps xmmword [r14 - 0x10], xmm0
movaps xmmword [r14 - 0x20], xmm0
lea r12, [rsp + 0x30]
lea r15, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8, rsi
call qword [0x1403db008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r12
mov r8, rsi
call qword [0x1403db008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r15
mov rdx, r14
mov r8, rsi
call qword [0x1403db008]
test rdi, rdi
je 0x140191680
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rdi, rax
jne 0x140191670
lea rdi, [rsi + 0xf8]
mov eax, dword [0x1403befd4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1401916f0
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1401916bb
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [r14]
movups xmmword [r15], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d1390
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1401916cf
bt eax, 9
jae 0x140191710
call fcn.140004450
lea rax, [0x140004920]
test rdi, rdi
je 0x1401916bb
lea rcx, [0x140004620]
jmp 0x1401916b8
call fcn.140248e60
lea rax, [0x140249680]
test rdi, rdi
je 0x1401916bb
lea rcx, [0x140248d40]
jmp 0x1401916b8

Function at 0x140199a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x140199a3b
xor ecx, ecx
lea r9, [0x140383770]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140199a20
ret
Function at 0x1400c0a3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400c42e8]
test rax, rax
je 0x1400c0a86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c0a86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c0a86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c0a86
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c0a86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c0a88
xor al, al
add rsp, 0x28
ret
Function at 0x140001b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r14
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r14d, r14d
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
mov dword [rdx], r14d
lea rcx, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x58], r14
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x50], r14
mov r9d, 0x20019
mov qword [rsp + 0x60], r14
call fcn.140001fd4
test eax, eax
jne 0x140001cda
mov r8d, 0x105
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
ja 0x140001cd4
lea r9d, [r14 + 1]
mov edx, r14d
mov ecx, r14d
cmp word [rsp + 0x70], r14w
je 0x140001c17
cmp ecx, 0x7fffffff
jae 0x140001ccd
mov eax, ecx
movzx r8d, word [rsp + rax*2 + 0x70]
cmp r8w, 0x5c
je 0x140001c09
cmp r8w, 0x2f
je 0x140001c09
cmp r8w, 0x3a
jne 0x140001c0c
cmp ecx, r9d
jne 0x140001c0c
lea edx, [rcx + 1]
add ecx, r9d
cmp word [rsp + rcx*2 + 0x70], r14w
jne 0x140001bdb
mov eax, edx
cmp word [rsp + rax*2 + 0x70], r14w
je 0x140001ccd
cmp edx, 0xffffffff
je 0x140001ccd
mov eax, edx
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea r8, [r8 + rax*2]
mov qword [rsp + 0x48], r14
call fcn.140001fd4
test eax, eax
jne 0x140001c9c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.PauseOnStartup
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001c9c
cmp dword [rsp + 0x34], 4
je 0x140001cb6
mov eax, 0xd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x140001cb9
mov ebx, r14d
cmp qword [rsp + 0x38], r14
je 0x140001cf2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001cf2
mov ebx, 0x80004005
jmp 0x140001cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
cmp qword [rsp + 0x50], r14
je 0x140001d04
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
invalid
invalid
invalid
invalid
Function at 0x140002a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14002a088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x38], 7
xor r12d, r12d
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp qword [rcx + 0x18], 8
jb 0x140002ab6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or r13, 0xffffffffffffffff
test rax, rax
je 0x140002bfe
lea rax, [rbp - 0x50]
cmp rax, rdi
je 0x140002ae4
mov r9, r13
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1400018d0
xor r8d, r8d
lea rdx, [0x140025948]
lea rcx, [rbp - 0x30]
call fcn.140001780
mov eax, 0x2e
mov word [rbp - 0x60], ax
mov rcx, qword [rbp - 0x40]
cmp rcx, 1
jb 0x140002bd5
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
lea rbx, [rcx - 1]
lea rbx, [rax + rbx*2]
cmp word [rbx], 0x2e
sete al
test al, al
je 0x140002b6a
mov ecx, 1
lea rdx, [rbp - 0x60]
mov r8, rbx
nop dword [rax + rax]
movzx eax, word [rdx]
cmp word [r8], ax
jne 0x140002b59
add r8, 2
add rdx, 2
sub rcx, 1
je 0x140002b7e
jmp 0x140002b40
mov ecx, 1
cmp word [r8], ax
cmovb ecx, r13d
test ecx, ecx
je 0x140002b7e
lea rcx, [rbp - 0x50]
call fcn.140001640
cmp rbx, rax
je 0x140002bd5
sub rbx, 2
jmp 0x140002b24
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
sub rbx, rax
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140002bd5
mov r9, r13
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400018d0
cmp qword [rbp - 0x40], rbx
jae 0x140002bbe
lea rcx, str.invalid_string_position
call fcn.140004c28
int3
mov qword [rbp - 0x40], rbx
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov word [rax + rbx*2], r12w
mov r8d, 5
lea rdx, str._Copy
lea rcx, [rbp - 0x50]
call fcn.140002740
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400028b0
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002c1b
test al, 0x10
je 0x140002c36
lea rax, [rbp - 0x50]
cmp rax, rdi
je 0x140002c36
mov r9, r13
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.1400018d0
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r15], rax
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140002c67
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140001d00
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x140002c92
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.140001d00
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400052c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000d47c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000d250
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d250
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d250
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d250
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d250
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d250
cmp dword [rcx + 0xf8], esi
je 0x14000d250
mov ecx, r14d
call fcn.14000d398
mov ecx, 2
call fcn.14000a4a0
nop
cmp byte [0x14002ba50], 0
jne 0x14000d31a
mov r15d, 1
mov eax, r15d
xchg dword [0x14002ba40], eax
test ebx, ebx
jne 0x14000d2c3
mov rdi, qword [0x14002a088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14002ba48]
cmp rcx, rax
je 0x14000d2ba
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001630]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14002bb88]
jmp 0x14000d2cf
cmp ebx, r15d
jne 0x14000d2d5
lea rcx, [0x14002bba0]
call fcn.14000df30
nop
test ebx, ebx
jne 0x14000d2ec
lea rdx, [0x140018428]
lea rcx, [0x140018408]
call fcn.14000e26c
lea rdx, [0x140018438]
lea rcx, [0x140018430]
call fcn.14000e26c
movzx eax, byte [0x14002ba50]
test esi, esi
cmove eax, r15d
mov byte [0x14002ba50], al
jmp 0x14000d31a
mov ecx, 2
call fcn.14000a4f4
test esi, esi
jne 0x14000d331
mov ecx, r14d
call fcn.14000d34c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000d1e0
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
movsd dword [rdi], dword [rsi]
jle 0x140023312
jmp qword [rsp + rbx*4 - 0x64faa960]
movsb byte [rdi], byte [rsi]
pushfq
movabs al, byte [0x5f7397af979b0556]
mov cl, 0x98
pop rbp
stosb byte [rdi], al
jb 0x1400233a0
sbb eax, 0x586aff66
sub eax, 0x363408a9
or byte [rsi + rsi], dh
push 0xffffffffac4e42fe
int 0x2f
sbb al, 0x35
push rcx
invalid
hlt
xchg edi, eax
pop rcx
fisubr word [rbx]
jae 0x14002332c
jmp 0x14002341c
sar dword [rdi - 0x342cf2be], cl
mov ch, 0x65
jge 0x140023400
je 0x14002335a
hlt
fistp dword [rsi]
imul edx, esp, 0x7e
sti
xor dword [rdx], ebx
push rdx
sub eax, 0x88e3f68f
cmpsd dword [rsi], dword [rdi]
test edx, esi
je 0x1400233ab
out dx, eax
cld
mov ecx, 0x1a599ff3
outsb dx, byte [rsi]
sub dl, byte [rsi]
invalid
sbb ch, byte [rsi + 0x2a]
invalid
xchg dword [rdx], ebp
xchg edx, eax
cmpsb byte [rsi], byte [rdi]
jb 0x1400233e7
sbb dword [rdx], edi
invalid
Function at 0x10001df60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, [0x10001dca0]
xor r9d, r9d
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x100036170], rax
test rax, rax
jne 0x10001e002
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001b80]
lea rcx, [0x100001ba0]
movzx ebx, ax
mov edx, 0x130
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
call fcn.1000267e8
test ebx, ebx
jns 0x10001e002
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.100021dec
mov r11, qword [rsp + 0x40]
lea r8, [0x100001b60]
lea rcx, [0x100001ba0]
mov r9d, ebx
mov edx, 0x134
mov qword [rsp + 0x20], r11
call fcn.1000267e8
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1000203c4
Capabilities:
Accept command line arguments
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov eax, dword [0x100036280]
mov ebx, dword [0x1000361c0]
xor esi, esi
xor edi, edi
test eax, eax
je 0x1000203fe
cmp dword [0x10003627c], esi
mov edi, 0xbc9
lea ecx, [rdi - 7]
cmovge edi, ecx
mov r9d, dword [0x10003624c]
test r9d, r9d
jne 0x1000205a3
test eax, eax
je 0x1000205a3
lea r12d, [r9 + 1]
cmp ebx, r12d
je 0x1000205a3
lea rcx, [0x100002f80]
call fcn.10002232c
mov esi, eax
test eax, eax
jns 0x100020443
lea r8, [0x100002fa8]
mov edx, 0x5ab
jmp 0x1000204bb
test ebx, ebx
jne 0x100020453
cmp dword [0x1000361b4], ebx
lea eax, [rbx + 4]
cmove ebx, eax
mov r8d, 2
xor edx, edx
xor ecx, ecx
sub ebx, r8d
je 0x10002054b
sub ebx, r12d
je 0x10002051a
cmp ebx, r12d
je 0x1000204cc
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x1000204d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5e4
movzx esi, ax
lea r8, [0x100002fd8]
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
lea rcx, [0x100002f58]
call fcn.1000267e8
jmp 0x1000205c3
mov r9d, 0x80020011
call qword [sym.imp.SHELL32.dll_RestartDialogEx]
mov r9, qword [0x100036208]
lea r8, [0x100003000]
lea rcx, [0x100002f58]
mov edx, 0x5e9
call fcn.1000267e8
cmp dword [0x1000361ac], 0
mov rbx, qword [0x100036208]
je 0x10002057c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rbx
mov rdx, rax
call fcn.100026af0
jmp 0x10002058d
mov r8d, dword [0x100036238]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x1000204d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5cd
jmp 0x10002049c
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80020011
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x1000204d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5bf
jmp 0x10002049c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rbx
mov rdx, rax
call fcn.1000269b4
cmp dword [0x10003627c], 0
mov edi, 0xbca
mov eax, 0x669
cmovge edi, eax
jmp 0x1000205c3
lea r8, [0x100002f00]
lea rcx, [0x100002f58]
mov edx, 0x5a6
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.1000267e8
test esi, esi
jns 0x1000205fe
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, esi
call fcn.100021dec
mov r11, qword [rsp + 0x40]
lea r8, [0x100001b60]
lea rcx, [0x100002f58]
mov r9d, esi
mov edx, 0x5ff
mov qword [rsp + 0x20], r11
call fcn.1000267e8
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x100021910
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
lea rax, [r11 - 0x30]
mov rdi, rcx
mov qword [r11 - 0x48], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
lea r8d, [rsi + 0x20]
lea rcx, [r11 - 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], esi
mov ebx, esi
mov byte [rsp + 0x78], sil
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x79], sil
mov byte [rsp + 0x7a], sil
mov byte [rsp + 0x7b], sil
mov byte [rsp + 0x7c], sil
mov byte [rsp + 0x7d], 5
mov qword [r11 - 0x30], rsi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, esi
jne 0x1000219b3
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100003ae0]
lea edx, [rsi + 0x3d]
jmp 0x1000219db
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, esi
jne 0x100021a01
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100003b40]
mov edx, 0x42
movzx ebx, ax
lea rcx, [0x100003b20]
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, esi
cmovge ebx, eax
call fcn.1000267e8
jmp 0x100021a07
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x100021a17
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp ebx, esi
jge 0x100021a51
lea rdx, [rsp + 0x70]
mov ecx, ebx
mov qword [rsp + 0x70], rsi
call fcn.100021dec
mov r11, qword [rsp + 0x70]
lea r8, [0x100001b60]
lea rcx, [0x100003b20]
mov r9d, ebx
mov edx, 0x4e
mov qword [rsp + 0x20], r11
call fcn.1000267e8
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.100033670
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100022b40
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x64], edi
jne 0x100022bb3
mov rcx, qword [rcx + 0x28]
cmp rcx, rdi
je 0x100022b67
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x28], rdi
mov rcx, qword [rbx + 0x30]
cmp rcx, rdi
je 0x100022b7a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x38]
cmp rcx, rdi
je 0x100022b8d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x38], rdi
mov rcx, qword [rbx + 0x40]
cmp rcx, rdi
je 0x100022ba0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x40], rdi
mov rcx, qword [rbx + 0x48]
cmp rcx, rdi
je 0x100022bb3
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 0x48], rdi
cmp dword [rbx + 0x128], edi
je 0x100022bc8
lea rcx, [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [rbx + 0xec], edi
jne 0x100022be0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rbx + 0xec], 1
mov rcx, qword [rbx + 0x90]
cmp rcx, rdi
je 0x100022bf9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x90], rdi
mov rcx, qword [rbx + 0xc8]
cmp rcx, rdi
je 0x100022c11
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + 0xc8], rdi
mov rcx, qword [rbx + 0xb8]
lea rax, [rbx + 0xc0]
cmp rcx, rax
je 0x100022c35
cmp rcx, rdi
je 0x100022c35
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + 0xb8], rdi
mov rcx, rbx
call fcn.100022d04
lea r8, [0x100001930]
lea rdx, [0x1000018d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov rcx, qword [rbx + 0x18]
cmp rcx, rdi
je 0x100022c85
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, edi
jne 0x100022c85
lea r8, [0x1000042d0]
lea rcx, [0x100004308]
mov edx, 0x118
call fcn.1000267e8
jmp 0x100022cb0
mov rcx, qword [rbx + 0x20]
cmp rcx, rdi
je 0x100022c97
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x98]
cmp rcx, rdi
je 0x100022cb0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x98], rdi
mov rcx, qword [rbx + 0x18]
cmp rcx, rdi
je 0x100022cc3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], rdi
mov rcx, qword [0x100036a00]
cmp rcx, rdi
je 0x100022cd5
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
mov rcx, qword [rbx + 0xf0]
cmp rcx, 0xffffffffffffffff
je 0x100022cf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 0xf0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100025d14
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x150], rax
and qword [rcx], 0
mov rsi, rcx
mov rcx, 0xffffffffffffffff
mov ebx, 0x104
mov eax, 2
mov dword [rsp + 0x30], 0x5c3a63
mul rbx
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
jne 0x100025d91
lea r8, [0x100005af0]
lea rcx, [0x100005b18]
mov edx, 0x1d2
call fcn.1000267e8
mov ebx, 0x8007000e
jmp 0x100025e29
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100025de7
cmp eax, ebx
jae 0x100025de7
mov al, byte [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov byte [rsp + 0x30], al
call fcn.100025938
mov ebx, eax
test eax, eax
jns 0x100025de2
lea r8, [0x100002010]
mov edx, 0x1e8
jmp 0x100025e11
mov qword [rsi], rdi
jmp 0x100025e25
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005b40]
mov edx, 0x1e2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
lea rcx, [0x100005b18]
call fcn.1000267e8
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
test ebx, ebx
jns 0x100025e60
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ecx, ebx
call fcn.100021dec
mov r11, qword [rsp + 0x38]
lea r8, [0x100001b60]
lea rcx, [0x100005b18]
mov r9d, ebx
mov edx, 0x1f1
mov qword [rsp + 0x20], r11
call fcn.1000267e8
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.100033670
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000263ac
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x10], 0
and qword [rax - 0x48], 0
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
mov rdi, rcx
lea rdx, [rax + 0x10]
lea rcx, [rax - 0x48]
mov dword [rax - 0x18], 0x100
call fcn.100024ffc
mov ebx, eax
test eax, eax
jns 0x100026412
lea r8, [0x100005938]
lea rcx, [0x100005dc0]
mov edx, 0x2a3
call fcn.1000267e8
jmp 0x100026471
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100026471
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100026471
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100005a20]
lea rcx, [0x100005dc0]
movzx ebx, ax
mov r9, rdi
mov edx, 0x2aa
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov dword [rsp + 0x20], ebx
call fcn.1000267e8
test ebx, ebx
jns 0x1000264b5
and qword [rsp + 0x88], 0
lea rdx, [rsp + 0x88]
mov ecx, ebx
call fcn.100021dec
mov r11, qword [rsp + 0x88]
lea r8, [0x100001b60]
lea rcx, [0x100005dc0]
mov r9d, ebx
mov edx, 0x2ae
mov qword [rsp + 0x20], r11
call fcn.1000267e8
lea rcx, [rsp + 0x30]
call fcn.100025898
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x100028078
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x100036110]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov ebx, ecx
mov dil, dl
mov ebp, 0x3ff
lea rcx, [rsp + 0x30]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll__vsnprintf]
xor esi, esi
cmp eax, esi
jl 0x10002811b
movsxd rcx, eax
cmp rcx, rbp
ja 0x10002811b
movzx eax, byte [rsp + 0x42f]
cmove eax, esi
mov byte [rsp + 0x42f], al
cmp dil, sil
je 0x100028110
mov ecx, ebx
call fcn.100027fe4
lea r9, [rsp + 0x30]
lea r8, [0x1000064e8]
mov qword [rsp + 0x28], rax
lea edx, [rbp + 1]
lea rcx, [rsp + 0x430]
mov dword [rsp + 0x20], ebx
call fcn.1000264d8
cmp eax, esi
jl 0x10002811b
lea rcx, [rsp + 0x430]
jmp 0x100028115
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.100033670
mov rbx, qword [rsp + 0x868]
add rsp, 0x840
pop rdi
pop rsi
pop rbp
ret