joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002b8d
lea rbx, [0x140035720]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002b74
cmp r10, 2
jb 0x140002b74
cmp byte [r9], r8b
jne 0x140002b74
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002b50
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002bcf
lea rbx, [0x140035720]
cmp r8b, 0x23
jne 0x140002bb3
cmp byte [r9], r8b
jne 0x140002bb3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002ba0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002d10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002d2a
mov qword [r8], 0
lea rdx, [0x1400352bc]
call fcn.140002be0
mov rbx, rax
test rax, rax
jne 0x140002d4a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002e21
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e21
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002e21
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e21
cmp rdi, 0xffffffffffffffff
je 0x140002e21
mov rax, qword [0x140041748]
test rax, rax
je 0x140002dbe
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002e21
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140002e0e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140041748]
test rax, rax
je 0x140002e03
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e2a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002e1c
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002e2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005e80
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140035720]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x140041748]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x140005f16
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140017a00
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400117a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140041748]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x140011801
cmp byte [rbx + 0x4a2e], 0
jne 0x140011801
movsx r9d, word [rbx + 0x5b32]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002ab0
test dil, 1
je 0x140011928
jmp 0x14001188a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b32]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14003a9bc]
mulss xmm1, dword [0x14003a9b0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14003a940]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.140002ab0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400118e0
lea r11, [0x140035720]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400118c3
cmp byte [r8], r9b
jne 0x1400118c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400118b0
not ecx
call fcn.140009530
test rax, rax
je 0x140011928
cmp byte [rax + 0xae], 0
je 0x140011928
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b32]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b32]
call fcn.140002ab0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000bd00
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140032100
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400163a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c18], 0
lea rbx, [rcx + 0x5c20]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140016447
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400163fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140018620
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400030e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c18]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c28]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140041740]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001644f
mov rcx, rbx
call fcn.1400030e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400169c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140041748]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140016a23
mov qword [rsp], rbx
lea rbx, [0x140035720]
nop dword [rax]
cmp r9b, 0x23
jne 0x140016a03
cmp byte [r8], r9b
jne 0x140016a03
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400169f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b90]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140016a57
mov r10, qword [r10 + 0x5b98]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140016a5e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140016a44
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140031600
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140041010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
mov ebx, edx
mov ecx, edx
mov rbp, r8
call fcn.14003279c
mov r8d, ebx
mov edx, 0x90
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rdi
call fcn.14003236c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140032100
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140032bec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032c36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140032c36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140032c36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140032c36
cmp dword [rcx + 0x84], 0xe
jbe 0x140032c36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140032c38
xor al, al
add rsp, 0x28
ret
Function at 0x19e20b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.019e2237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x19e20e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19e20c7
add dl, dl
jne 0x19e20ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19e214e
xor eax, eax
add dl, dl
jne 0x19e20fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19e2205
add dl, dl
jne 0x19e210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19e211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19e2128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19e2135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x19e2142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x19e20d6
mov eax, 1
add dl, dl
jne 0x19e215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19e216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19e2153
sub eax, ebx
mov ebx, 1
jne 0x19e21a4
mov ecx, 1
add dl, dl
jne 0x19e2186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19e2193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19e217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19e20d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x19e21c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19e21cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19e21b5
cmp eax, 0x7d00
jae 0x19e21f3
cmp eax, 0x500
jb 0x19e21ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19e20d6
cmp eax, 0x7f
ja 0x19e21f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19e20d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x19e222a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x19e20d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f540
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, 0x208
call fcn.14002c260
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [0x14004f888]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
jbe 0x14000f5a0
xor al, al
jmp 0x14000f6c6
test rdi, rdi
mov qword [rsp + 0x288], rbx
lea rcx, [rdi + 0x10]
cmove rcx, rsi
lea rdx, [rsp + 0x50]
call fcn.14000dd90
mov rcx, rax
lea rdx, str.Intel
call fcn.14000dd90
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140010d10
cmp qword [rax + 0x18], 8
jb 0x14000f5e3
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f603
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f603
mov bl, 1
jmp 0x14000f605
xor bl, bl
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14000f622
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140006870
test bl, bl
jne 0x14000f697
test rdi, rdi
lea rcx, [rdi + 0x10]
lea rdx, str.Logs
cmove rcx, rsi
call fcn.14000dd90
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140010d10
cmp qword [rax + 0x18], 8
jb 0x14000f654
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f674
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f674
mov bl, 1
jmp 0x14000f676
xor bl, bl
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14000f693
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140006870
test bl, bl
je 0x14000f69b
xor al, al
jmp 0x14000f6be
test rdi, rdi
lea rcx, [rdi + 0x10]
lea rdx, str.IntelCPHS.log
cmove rcx, rsi
call fcn.14000dd90
xor edx, edx
mov rcx, rax
call fcn.1400083e0
mov al, 1
mov rbx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400291d0
mov rsi, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x140014970
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x70], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov edi, dword [rsi + 8]
mov qword [rsp + 0x58], rcx
or edi, 0x2001f
mov qword [rsp + 0x60], rcx
mov r9d, edi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140014ac7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400149f3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140014ac7
xor edi, edi
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x140014a9f
nop word [rax + rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140014970
mov ebx, eax
test eax, eax
jne 0x140014ac7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140014a50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014ab4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140013410
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140014ad7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400291d0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001505e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001505e
call fcn.140012d70
mov ebx, eax
jmp 0x140015186
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001507f
call fcn.140012d70
jmp 0x140015175
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400150a2
call fcn.140012d70
jmp 0x140015175
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400150c4
mov ebx, 0x8007000e
jmp 0x140015177
mov ecx, eax
test eax, eax
je 0x1400150fc
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400150f2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400150fc
lea rcx, [rsp + 0x70]
call fcn.140012c60
jmp 0x140015106
mov ecx, 0x80070216
call fcn.140012fa0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140015119
cmp qword [rsp + 0x70], 0
jne 0x140015128
mov ebx, 0x8007000e
jmp 0x140015177
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jne 0x140015152
call fcn.140012d70
jmp 0x140015175
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140014de0
mov ebx, eax
test rdi, rdi
je 0x140015186
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001519d
lea rcx, [rsp + 0x70]
call fcn.140013530
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400291d0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140022500
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400720d0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400227d0
test eax, eax
je 0x140022531
mov eax, 1
jmp 0x1400226e5
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x140022717
cmp eax, 0x104
je 0x140022717
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14002275d
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140022618
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140021110
test eax, eax
jne 0x1400226d3
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003093c
test eax, eax
je 0x1400226d3
cmp eax, 0xc
je 0x140022731
cmp eax, 0x16
je 0x140022726
cmp eax, 0x22
je 0x140022726
cmp eax, 0x50
je 0x1400226d3
jmp 0x14002271b
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
lea rdx, [rdi + 0x68]
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdx
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
jne 0x1400226fe
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140021110
test eax, eax
jne 0x1400226d3
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003093c
test eax, eax
je 0x1400226d3
cmp eax, 0xc
je 0x140022752
cmp eax, 0x16
je 0x140022747
cmp eax, 0x22
je 0x140022747
cmp eax, 0x50
jne 0x14002273c
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400291d0
add rsp, 0xa90
pop rdi
ret
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1400226d5
xor eax, eax
jmp 0x1400226e5
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
mov ecx, 0x80004005
call fcn.140012fa0
int3
mov ecx, 0x80070057
call fcn.140012fa0
int3
mov ecx, 0x8007000e
call fcn.140012fa0
int3
call fcn.140029484
int3
Function at 0x1400249b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorLength]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.LaunchPermission
mov rcx, rdi
mov esi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140024a33
mov dword [rsp + 0x28], esi
lea r9d, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LaunchPermission
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
test eax, eax
je 0x140024a33
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140025310
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140025338
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140022850]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140025379
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret