joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180054e20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180054e57
call fcn.180059a98
mov dword [rax], 0x16
call fcn.180059924
xor eax, eax
jmp 0x180054ee5
mov rdx, r9
mov rcx, r8
call fcn.180054dbc
mov rbx, rax
test rax, rax
je 0x180054ee2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180054ce8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180054ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180059a0c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180054eb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180054ec5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18005f9a4
jmp 0x180054ee2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180054edf
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18005b7b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18005b81f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18005b81f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18005b81f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18005b81f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18005b81f
cmp dword [rcx + 0x84], 0xe
jbe 0x18005b81f
cmp dword [rcx + 0xf8], 0
je 0x18005b81f
mov ecx, ebx
call fcn.18005b8d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18005b6ac
nop
cmp dword [rbp + 0x20], 0
je 0x18005b86d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18005b878
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18005b7b0
Function at 0x18005c7ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005c802
mov al, 1
jmp 0x18005c862
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005c813
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005c860
mov ecx, dword [rcx + 0x18]
nop
call fcn.180067828
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005c860
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005c860
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005c860
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005c862
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18006234c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18004f100
sub rsp, rax
mov rax, qword [0x18008d100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005c6cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006239b
mov rax, rbp
jmp 0x1800624a3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xdddf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180063d6c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xdddf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006249f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006249f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180063d6c
test rax, rax
js 0x18006249f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006249f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180062491
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180062491
cmp byte [rcx], 0xd
jne 0x180062477
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180062486
cmp byte [rcx + 1], 0xa
jne 0x180062486
inc rcx
jmp 0x180062486
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8d530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180062459
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800624a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18004f050
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006310c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800dddf0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180063163
cmp word [rdx], r13w
jne 0x180063163
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180063168
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18006328d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800632ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800631a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800631c8
cmp r9, r8
jae 0x1800631d8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180063182
jmp 0x18006328d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180063282
cmp dword [rsp + 0x80], esi
je 0x180063282
lea r8, [0x1800dddf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18006325a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18006322a
mov word [rbx], r13w
jmp 0x18006328a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180063237
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18006328a
cmp word [rsp + 0x70], r13w
jne 0x180063267
cmp rbx, r14
je 0x180063224
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180063d74
cmp word [rsp + 0x70], r13w
je 0x18006328d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800dddf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180063287
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18006328d
Function at 0x18006706c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18006709c
xor eax, eax
jmp 0x18006715f
mov rbp, rbx
cmp word [rax], si
je 0x1800670c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800670a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800670a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180065784
movsxd r14, eax
test eax, eax
jne 0x1800670ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180067095
mov rcx, r14
call fcn.180060b28
mov rdi, rax
test rax, rax
jne 0x180067118
xor ecx, ecx
call fcn.18005f9a4
jmp 0x1800670f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180065784
test eax, eax
jne 0x180067149
mov rcx, rdi
call fcn.18005f9a4
jmp 0x180067153
xor ecx, ecx
call fcn.18005f9a4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180069ed4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18005ccf0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180069f75
cmp ebx, dword [rsp + 0x30]
je 0x180069f6e
test esi, esi
je 0x180069f6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180069f49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180069f56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180069f33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180069f5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180069f77
mov eax, 1
jmp 0x180069f77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006e908
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180063d74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180063d74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18006ea58
cmp rax, 0xffffffffffffffff
je 0x18006ea58
xor edi, edi
test rbp, rbp
jle 0x18006ea03
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005eb44
mov rbx, rax
test rax, rax
jne 0x18006e990
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18006e9f9
mov edx, 0x8000
mov ecx, r14d
call fcn.18006e78c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18005f69c
cmp eax, 0xffffffff
je 0x18006e9d9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18006e9a0
mov edx, r15d
mov ecx, r14d
call fcn.18006e78c
jmp 0x18006e9f9
cmp byte [rsi + 0x38], dil
je 0x18006e9f0
cmp dword [rsi + 0x34], 5
jne 0x18006e9f0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18006e9f9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005f9a4
jmp 0x18006ea6c
jns 0x18006ea6c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180063d74
cmp rax, 0xffffffffffffffff
jne 0x18006ea24
cmp byte [rsi + 0x30], dil
je 0x18006ea6c
mov edi, dword [rsi + 0x2c]
jmp 0x18006ea6c
mov ecx, r14d
call fcn.180067828
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006ea6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18006ea6c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18006ea65
mov eax, dword [rsi + 0x2c]
jmp 0x18006ea6a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180063d74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18006f290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18006f2b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18006f2b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14155a4f8
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14155a521
pop rbp
sub rbp, 0x29
sub rbp, 0x155a4f8
jmp 0x14155a581
sub rsp, 0x20
jmp 0x14155a591
mov rax, 0x155a4f8
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xffffffff8f113655
xor byte [rax], dl
inc rax
dec rcx
jne 0x14155a5b0
jmp 0x14155a5c7
sbb eax, 0xdcdebcdc
imul edx, dword [rbp + 0x55], 0x94d41d55
pop rbp
push rsp
push rbp
push rbp
sbb eax, 0x921dbc54
xchg ebp, eax
pop rax
push rbp
push rbp
push rbp
sbb eax, 0x557d9792
push rbp
push rbp
sbb eax, 0x541db7a2
xchg esp, eax
invalid
Function at 0x140001470
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
je 0x140001578
test r8, r8
je 0x140001578
cmp qword [rcx], 0
jne 0x1400014c6
mov ecx, 0x208
call fcn.140008d40
mov r8d, 0x104
xor ecx, ecx
mov rdx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [rsp + 0xa0], 0
mov ecx, 0x20
mov eax, 0x10
cmovne ecx, eax
mov rax, qword [rsp + 0xa8]
xor edx, edx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rax
mov rax, qword [rbx]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
lea r9d, [rdx + 2]
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x140001583
mov ebx, 1
test rsi, rsi
je 0x14000156b
lea r8, [rsp + 0x88]
mov edx, ebx
mov rcx, rax
mov qword [rsp + 0x88], rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, eax
test eax, eax
jne 0x14000156b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x140001585
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400015a0
Capabilities:
Delete service
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx edi, r8b
test rdx, rdx
jne 0x1400015dc
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008de0
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rcx + 8]
movzx eax, dil
mov qword [rsp + 0x78], rbx
neg al
sbb r8d, r8d
and r8d, 0x20
bts r8d, 0x10
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140001635
test dil, dil
je 0x140001643
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140001639
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x140001643
cmp eax, 0x45b
je 0x140001643
xor eax, eax
jmp 0x14000166b
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
test eax, eax
jne 0x140001660
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008de0
add rsp, 0x50
pop rdi
ret
Function at 0x1400026b0
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x6a0], rbx
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov word [rsp + 0x58], bx
xor eax, eax
mov dword [rsp + 0x5a], eax
mov word [rbp + 0x360], bx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x362]
call fcn.14000afa0
mov word [rsp + 0x60], bx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x62]
call fcn.14000afa0
mov word [rbp + 0x160], bx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x162]
call fcn.14000afa0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140005bd0
nop
cmp qword [rsi + 0x18], 8
jb 0x140002779
mov rcx, qword [rsi]
jmp 0x14000277c
mov rcx, rsi
lea rax, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x360]
lea rdx, [rsp + 0x58]
call fcn.14000987c
cmp word [rsp + 0x60], 0
jne 0x1400027ab
mov r8, rbx
jmp 0x1400027bf
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400027b4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400056a0
cmp word [rbp + 0x160], 0
je 0x1400027ed
lea rax, [rbp + 0x160]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400027e3
mov r8, rbx
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x38]
call fcn.1400056a0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
cmp qword [rsi + 0x18], 8
jb 0x14000281c
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
cmp qword [rsp + 0x50], 8
jb 0x14000283b
mov rcx, qword [rsp + 0x38]
call fcn.140008d38
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140008de0
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x670
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002a10
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov rbx, rcx
lea r8, [0x140003d50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x140003670]
xor r9d, r9d
mov qword [rbx + 0x30], rax
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x38], rax
add rsp, 0x30
pop rbx
ret
push rbx
sub rsp, 0x20
mov eax, dword [0x14004aef0]
mov rbx, rcx
test al, 1
jne 0x140003dc4
or eax, 1
lea rcx, [0x14004aeb8]
mov dword [0x14004aef0], eax
call fcn.1400022a0
lea rcx, [0x140035990]
call fcn.1400091d0
lea rdx, str.CServiceContext::OnServiceStart___ConnectPipe__
lea rcx, [0x14004aeb8]
call fcn.140003ee0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140002a10
Function at 0x140002f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [str.SystemCurrentControlSetControlPrintPrinters_]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x140036ce0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x140036cf0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x140036d00]
movaps xmmword [rsp + 0x80], xmm1
movaps xmm0, xmmword [0x140036d10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm1, xmmword [0x140036d20]
movaps xmmword [rsp + 0xa0], xmm1
movzx eax, word [0x140036d30]
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000309a
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 0x104
mov word [rsp + 0xc0], bx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xc2]
call fcn.14000afa0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.DefaultSpoolDirectory
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000308e
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.14000985c
test rax, rax
je 0x14000308e
lea r8, [rsp + 0xc0]
mov edx, esi
mov rcx, rdi
call fcn.1400097f0
lea r8, [0x140036b60]
mov edx, esi
mov rcx, rdi
call fcn.140009768
mov ebx, 1
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x1400030a2
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140008de0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003220
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x30], bx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x32]
call fcn.14000afa0
xor r9d, r9d
lea r8d, [rbx + 0x24]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400032c5
mov edx, 0x105
lea rcx, [rsp + 0x30]
call fcn.14000985c
test rax, rax
je 0x1400032c5
lea r8, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call fcn.1400097f0
lea r8, str.System32SpoolPrinters_
mov edx, esi
mov rcx, rdi
call fcn.140009768
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov eax, ebx
jmp 0x1400032cd
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140008de0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003300
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4b8], rbx
mov rax, qword [0x1400490b0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov esi, r8d
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [str.SystemCurrentControlSetControlPrintPrinters_]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x140036ce0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x140036cf0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x140036d00]
movaps xmmword [rsp + 0x80], xmm1
movaps xmm0, xmmword [0x140036d10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm1, xmmword [0x140036d20]
movaps xmmword [rsp + 0xa0], xmm1
movzx eax, word [0x140036d30]
mov word [rsp + 0xb0], ax
xor edx, edx
mov r8d, 0x1a6
lea rcx, [rsp + 0xb2]
call fcn.14000afa0
mov r8, r14
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140009768
lea r8, [0x140036b60]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140009768
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400034bc
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 0x104
mov word [rsp + 0x260], bx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x262]
call fcn.14000afa0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.SpoolDirectory
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400034b0
mov edx, 0x105
lea rcx, [rsp + 0x260]
call fcn.14000985c
test rax, rax
je 0x1400034b0
lea r8, [rsp + 0x260]
mov edx, esi
mov rcx, rdi
call fcn.1400097f0
lea r8, [0x140036b60]
mov edx, esi
mov rcx, rdi
call fcn.140009768
mov ebx, 1
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x1400034c4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140008de0
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x480
pop r14
pop rdi
pop rsi
ret