joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bdf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000be3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000be3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000be3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000be3a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000be3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000be3c
xor al, al
add rsp, 0x28
ret

Function at 0x14102c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14102c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14102c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102c0c7
add dl, dl
jne 0x14102c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102c14e
xor eax, eax
add dl, dl
jne 0x14102c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14102c205
add dl, dl
jne 0x14102c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14102c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14102c0d6
mov eax, 1
add dl, dl
jne 0x14102c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14102c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102c153
sub eax, ebx
mov ebx, 1
jne 0x14102c1a4
mov ecx, 1
add dl, dl
jne 0x14102c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14102c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14102c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14102c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14102c1b5
cmp eax, 0x7d00
jae 0x14102c1f3
cmp eax, 0x500
jb 0x14102c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102c0d6
cmp eax, 0x7f
ja 0x14102c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14102c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14102c22a
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 0x14102c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000d984
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 [0x140017850], eax
call fcn.14000d6d0
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 [0x140017850], 0
jne case.default.0x14000d9da
mov ecx, 1
call fcn.14000d6d0
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]
Function at 0x140002e80
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x10440
call fcn.140024ca0
sub rsp, rax
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x10430], rax
mov qword [rsp + 0x28], r8
mov rsi, rcx
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x30]
lea r9, str.NSSM_HOOK__s__s
or r8, 0xffffffffffffffff
mov edx, 0x200
call fcn.140018170
test eax, eax
jns 0x140002edb
mov eax, 1
jmp 0x140002f26
lea rcx, [rsp + 0x430]
xor edx, edx
mov r8d, 0x10000
call fcn.140018830
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x30]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0x430]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14000d020
neg eax
sbb eax, eax
and eax, 2
mov rcx, qword [rsp + 0x10430]
xor rcx, rsp
call fcn.140018800
add rsp, 0x10440
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006960
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
test rdx, rdx
je 0x1400069f0
test r8, r8
je 0x1400069f0
mov eax, dword [rdx]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400069f0
mov ecx, dword [r8]
mov dword [rsp + 0x30], ecx
mov ecx, dword [r8 + 4]
mov dword [rsp + 0x34], ecx
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400069f0
cmp rdx, rax
jb 0x1400069f0
sub rdx, rax
or r8, 0xffffffffffffffff
movabs rax, 0x346dc5d63886594b
lea r9, str._llu
lea rcx, [rsp + 0x38]
mul rdx
shr rdx, 0xb
mov qword [rsp + 0x20], rdx
lea edx, [r8 + 0x11]
call fcn.140018170
lea rdx, [rsp + 0x38]
jmp 0x1400069f7
lea rdx, [0x140026ddc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018800
add rsp, 0x60
pop rbx
ret
Function at 0x14000a050
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
xor eax, eax
mov dl, 2
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x20], eax
mov byte [0x140062151], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000a0e9
mov rdx, qword [rsp + 0x60]
lea r8, [0x140062151]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140018800
add rsp, 0x88
ret

Function at 0x14000a180
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov edi, r8d
mov rsi, rdx
call fcn.140017f4c
lea rcx, [rax + 0x60]
mov edx, edi
call fcn.1400026b0
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.140018830
lea rax, str.runas
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
call fcn.14000a160
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, 0xfffe
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000a221
call fcn.140017f4c
lea r9, str.elevate__
lea r8, str.GetCommandLine__
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.1400026b0
lea eax, [rbx + 0x6f]
jmp 0x14000a2bf
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [0x140026d5c]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018170
mov rdi, qword [rsi]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
cmp word [rbx], 0x22
not rcx
mov rdi, rcx
jne 0x14000a260
add rdi, 2
movzx ecx, word [rbx + rdi*2]
call fcn.140019440
test eax, eax
je 0x14000a281
nop dword [rax]
movzx ecx, word [rbx + rdi*2 + 2]
inc rdi
call fcn.140019440
test eax, eax
jne 0x14000a270
lea rax, [rbx + rdi*2]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x50], rax
xor edi, edi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov ecx, 0x64
cmove edi, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000cab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rcx
mov rsi, r8
mov rax, rdx
lea rcx, [rsp + 0x34]
mov rdi, r9
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000cba3
mov qword [rsp + 0x68], rbx
mov ebx, dword [rsp + 0xb0]
cmp eax, 2
je 0x14000cb9c
cmp dword [rsp + 0x30], 4
je 0x14000cb74
or r8, 0xffffffffffffffff
lea r9, [0x1400272a8]
lea rcx, [rsp + 0x38]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], ebx
call fcn.140018170
mov edx, dword [rsp + 0xb8]
mov r11d, 2
lea rax, [rsp + 0x38]
movzx ecx, r11w
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.1400025f0
jmp 0x14000cb9c
mov ecx, eax
call fcn.140002430
mov r8, rsi
mov edx, 0xc00003fa
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.1400025f0
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018800
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000cf10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x60], rax
test rdx, rdx
mov rdi, rdx
mov rsi, r8
sete al
lea rdx, str.AppExit
mov r8d, 0x20019
mov qword [rsp + 0x38], r9
mov rbp, rcx
mov byte [r9], al
call fcn.14000cd20
mov rbx, rax
test rax, rax
jne 0x14000cf61
lea eax, [rbx + 1]
jmp 0x14000cffe
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x10
test rdi, rdi
jne 0x14000cfb6
xor eax, eax
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x14000cff6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x14000cffc
jmp 0x14000cfe2
mov eax, dword [rdi]
or r8, 0xffffffffffffffff
lea r9, [0x1400272a8]
lea edx, [r8 + 0x11]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.140018170
test eax, eax
jns 0x14000cf7d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rsp + 0x38]
mov r8, rsi
xor edx, edx
mov rcx, rbp
call fcn.14000cf10
jmp 0x14000cffe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140018800
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000d020
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x248
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x28], rdx
mov r12, r9
mov rbp, rcx
lea rax, str.AppEvents
mov r13, r8
lea r9, [0x1400267c0]
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0xff
mov qword [rsp + 0x20], rax
call fcn.140018170
test eax, eax
jns 0x14000d0a8
mov ebx, 1
lea r9, str.set_hook__
lea r8, str.hook_registry
mov edx, 0xc00003eb
movzx ecx, bx
mov qword [rsp + 0x20], 0
call fcn.1400025f0
mov eax, ebx
jmp 0x14000d194
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x240], rdi
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x14000d11b
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x20019
mov rcx, rbp
call fcn.14000cd00
mov rbx, rax
test rax, rax
je 0x14000d117
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
jne 0x14000d11b
xor eax, eax
jmp 0x14000d18c
lea rdx, [rsp + 0x30]
mov r8d, 0x20006
mov rcx, rbp
call fcn.14000cd20
mov rbp, rax
test rax, rax
jne 0x14000d13b
lea eax, [rbp + 1]
jmp 0x14000d18c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov ebx, 1
not rcx
cmp rcx, rbx
je 0x14000d16a
movzx r9d, bl
mov r8, r12
mov rdx, r13
mov rcx, rbp
call fcn.14000bfc0
mov ebx, eax
jmp 0x14000d181
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14000d17f
cmp eax, 2
jne 0x14000d181
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018800
add rsp, 0x248
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x14000fce0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
test r8, r8
je 0x14000fd03
cmp word [r8], 0
je 0x14000fd03
mov qword [rsp + 0x50], r8
jmp 0x14000fd0f
lea rcx, [0x140026ddc]
mov qword [rsp + 0x50], rcx
mov edi, 1
lea r8, [rsp + 0x50]
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x14000fd35
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, rbx
mov edx, 0x40000428
movzx ecx, di
mov r9, rax
mov qword [rsp + 0x20], 0
call fcn.1400025f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140010fd0
Capabilities:
Delete service

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rcx, rcx
jne 0x140010fe7
lea eax, [rcx + 1]
add rsp, 0x30
pop rsi
ret
mov ecx, 5
mov qword [rsp + 0x58], rdi
call fcn.14000ee10
mov rdi, rax
test rax, rax
jne 0x14001101f
call fcn.140017f4c
mov edx, 0x400001fb
lea rcx, [rax + 0x60]
call fcn.1400026b0
lea eax, [rdi + 2]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
lea r9, [rsi + 2]
lea rdx, [rsi + 2]
mov r8d, 0x10000
mov rcx, rax
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x20], 0x100
call fcn.14000ee50
mov qword [rsi + 0x704f0], rax
test rax, rax
jne 0x14001106c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, 3
add rsp, 0x30
pop rsi
ret
lea r9, [rsp + 0x40]
lea r8, [rsi + 0x202]
lea rdx, [rsi + 2]
mov rcx, rdi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_GetServiceDisplayNameW]
lea r9, [rsp + 0x40]
lea r8, [rsi + 2]
lea rdx, [rsi + 0x202]
mov rcx, rdi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_GetServiceKeyNameW]
mov rcx, qword [rsi + 0x704f0]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x1400110fa
call fcn.140017f4c
mov edx, 0x40000221
lea rcx, [rax + 0x60]
call fcn.1400026b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, 4
add rsp, 0x30
pop rsi
ret
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140017f4c
lea r8, [rsi + 2]
lea rcx, [rax + 0x30]
mov edx, 0x40000222
call fcn.1400026b0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x140011130
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, 1
mov rbx, rcx
mov rcx, qword [rcx + 0x704f0]
lea edx, [rdi + 3]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], edi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14001118e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
je 0x14001118e
mov ecx, eax
call fcn.140002430
lea r8, [rbx + 2]
mov edx, 0x40000413
movzx ecx, di
mov r9, rax
mov qword [rsp + 0x20], 0
call fcn.1400025f0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400133a0
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rcx
test rcx, rcx
jne 0x1400133b7
lea eax, [rcx + 1]
add rsp, 0x70
pop rdi
ret
mov ecx, 3
mov qword [rsp + 0x90], rsi
call fcn.14000ee10
mov rsi, rax
test rax, rax
jne 0x1400133fd
call fcn.140017f4c
mov edx, 0x400001fb
lea rcx, [rax + 0x60]
call fcn.1400026b0
mov rcx, rdi
call fcn.1400102f0
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbp
lea rbx, [rdi + 0x842c]
call fcn.14000a160
lea r9, [0x140026d5c]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018170
xor eax, eax
lea r8, [rdi + 2]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
lea rdx, [rdi + 2]
mov r9d, 0xf01ff
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rdi + 0x704f0], rax
test rax, rax
jne 0x1400134c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov rbx, rax
call fcn.140017f4c
mov r8, rbx
lea rcx, [rax + 0x60]
mov edx, 0x40000203
call fcn.1400026b0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 5
jmp 0x140013514
xor edx, edx
mov rcx, rdi
call fcn.140012160
test eax, eax
je 0x1400134f2
mov rcx, qword [rdi + 0x704f0]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 6
jmp 0x140013514
call fcn.140017f4c
lea r8, [rdi + 2]
mov edx, 0x4000021e
lea rcx, [rax + 0x30]
call fcn.1400026b0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140019124
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001a91c
nop
cmp dword [0x1400621c8], 1
je 0x1400190d0
mov dword [0x1400621c4], 1
mov byte [0x1400621c0], r12b
test ebx, ebx
jne 0x1400190bc
mov rcx, qword [0x140063338]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400190a9
mov rcx, qword [0x140063330]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140019048
call fcn.14001c4b0
cmp qword [rdi], rax
jne 0x140019048
jmp 0x14001902e
cmp rdi, rsi
jb 0x1400190a9
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001c4b0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140063338]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140063330]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140019087
cmp r13, rax
je 0x1400190a7
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001902e
lea rdx, [0x140026780]
lea rcx, [0x140026768]
call fcn.140018e78
lea rdx, [0x140026790]
lea rcx, [0x140026788]
call fcn.140018e78
nop
test r12d, r12d
je 0x1400190df
mov ecx, 8
call fcn.14001a81c
test r12d, r12d
jne 0x14001910a
mov dword [0x1400621c8], 1
lea ecx, [r12 + 8]
call fcn.14001a81c
mov ecx, r15d
call fcn.140018e0c
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140018f98

Function at 0x140019130
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140018f98
Function at 0x14001c9a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140030f90]
jne 0x14001881a
rol rcx, 0x10
test cx, 0xffff
jne 0x140018816
repz ret
ror rcx, 0x10
jmp 0x14001c900
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140062510]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140062608]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001c985
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140062510]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001c9a7
mov rax, qword [rsp + 0x88]
mov qword [0x140062608], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400625a8], rax
mov rax, qword [0x140062608]
mov qword [0x140062480], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140062590], rax
mov dword [0x140062470], 0xc0000409
mov dword [0x140062474], 1
mov rax, qword [0x140030f90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140030f98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140062508], eax
mov ecx, 1
call fcn.140021b38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400292e8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140062508], 0
jne 0x14001ca2e
mov ecx, 1
call fcn.140021b38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140023a88
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001c4b0
xor ebx, ebx
mov rdi, rax
cmp qword [0x140062fa0], rbx
jne 0x140023b8e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140023c63
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023c63
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140062fa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140062fa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140062fb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140062fc0], rax
test rax, rax
je 0x140023b85
lea rdx, [0x14002a420]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140062fb8], rax
jmp 0x140023b95
mov rax, qword [0x140062fb8]
jmp 0x140023b9c
mov rax, qword [0x140062fb8]
mov r11, qword [0x140062fc0]
cmp rax, rdi
je 0x140023c04
cmp r11, rdi
je 0x140023c04
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140062fc0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140023c04
test rax, rax
je 0x140023c04
call rsi
test rax, rax
je 0x140023bfe
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140023bfe
test byte [rsp + 0x38], 1
jne 0x140023c04
bts ebp, 0x15
jmp 0x140023c42
mov rcx, qword [0x140062fa8]
cmp rcx, rdi
je 0x140023c42
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023c42
call rax
mov rbx, rax
test rax, rax
je 0x140023c42
mov rcx, qword [0x140062fb0]
cmp rcx, rdi
je 0x140023c42
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023c42
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140062fa0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023c63
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140023c65
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret