joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b5d
xor eax, eax
jmp 0x140002cc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002cc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002cbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002bda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002c05
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c74
sub eax, 1
je 0x140002c74
cmp eax, 2
jne 0x140002cbc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002ca2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002cbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004110
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400031a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003273
cmp byte [rcx + 0x71], 0
je 0x140003273
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000326f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003234
sub eax, 1
je 0x140003238
cmp eax, 2
jne 0x14000326f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004110
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003266
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000326f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000321c
xor al, al
jmp 0x14000321c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004110
add rsp, 0x60
pop rbx
ret
Function at 0x140003770
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400037d1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003790
mov ecx, dword [r9]
jmp 0x1400038b8
cmp ecx, 0x4e0
jb 0x1400038b8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400037f0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003840
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140004bb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004c02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004c02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004c02
cmp dword [rcx + 0x84], 0xe
jbe 0x140004c02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004c04
xor al, al
add rsp, 0x28
ret
Function at 0x100001bf8
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [0x100001580]
lea rax, [0x100001cbc]
xor ebx, ebx
xor ecx, ecx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [0x100008700], rax
cmp rax, rbx
je 0x100001cad
lea rcx, [0x100001590]
lea edx, [rbx + 4]
lea r8d, [rbx + 1]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
mov r9d, 0x40020150
mov rcx, rax
call fcn.100003af8
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x100001c79
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100001caf
mov rcx, qword [0x100008700]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov edx, 4
mov dword [rsp + 0x30], ebx
mov r9d, 0x40020101
lea r8d, [rdx - 3]
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
xor eax, eax
add rsp, 0x70
pop rbx
ret

Function at 0x100001d5c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x50
and qword [rsp + 0x40], 0
call fcn.100003a88
xor r9d, r9d
xor r8d, r8d
lea edi, [r9 + 1]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1000086f0], rax
test rax, rax
jne 0x100001dc8
mov dword [0x100008744], edi
and dword [0x10000874c], eax
and dword [0x100008758], eax
mov dword [0x100008748], edi
and dword [0x100008754], eax
lea rdx, [0x100008740]
mov rcx, qword [0x100008760]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
jmp 0x100001eba
lea rcx, [0x1000086f8]
call fcn.100001f7c
test eax, eax
je 0x100001e05
mov r8d, 2
mov edx, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
and qword [rsp + 0x20], 0
mov r9d, 0xc0020111
mov rcx, qword [0x100008700]
call fcn.100003b60
jmp 0x100001eba
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x100002564]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x100001e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rsi + 2]
mov edx, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
mov r9d, 0xc0020104
mov rcx, qword [0x100008700]
call fcn.100003d94
jmp 0x100001e77
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call fcn.100001f0c
or edx, 0xffffffff
mov rcx, qword [0x1000086f0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test rsi, rsi
je 0x100001e85
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100008744], edi
and dword [0x10000874c], 0
and dword [0x100008758], 0
mov dword [0x100008748], edi
and dword [0x100008754], 0
lea rdx, [0x100008740]
mov rcx, qword [0x100008760]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rsi, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1000023ec
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov esi, dword [rcx + 0x18]
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov bl, dl
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x10000246e
mov rdx, qword [rdi + 0x20]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov rcx, qword [rdi]
mov edx, 0x5b4
call qword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [rsp + 0x30], 0
mov rcx, qword [0x100008700]
mov edx, 1
mov r9d, 0xc0020147
mov dword [rsp + 0x28], esi
and qword [rsp + 0x20], 0
lea r8d, [rdx + 1]
call fcn.100003b60
jmp 0x1000024b0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rdi + 0x10]
cmp rax, 0x1388
jbe 0x1000024b0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
and dword [rsp + 0x30], 0
mov rcx, qword [0x100008700]
sub eax, dword [rdi + 0x10]
mov edx, 2
mov r9d, 0x80020148
mov dword [rsp + 0x28], eax
mov r8d, edx
mov dword [rsp + 0x20], esi
call fcn.100003cf4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1000024c8
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
and qword [rsp + 0x28], 0
lea r8, [0x1000029ec]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
test rax, rax
jne 0x100002540
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100008700]
mov edx, 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
and qword [rsp + 0x20], 0
lea r8d, [rdx + 1]
mov r9d, 0xc002010a
call fcn.100003b60
xor eax, eax
jmp 0x100002551
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x100002f74
Capabilities:
Move file
Unload minifilter driver

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov r12d, edx
mov r13d, ecx
and qword [rax - 0x38], 0
xor esi, esi
mov qword [rax + 0x18], rsi
and qword [rax + 0x20], rsi
lea r8, [rax - 0x30]
lea rdx, [0x1000016f0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100002fbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10000316c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100002fe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10000316c
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], 2
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100003036
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10000316c
lea rdx, [rsp + 0x88]
lea rcx, [0x100001720]
call fcn.100002e78
mov edi, eax
test eax, eax
jne 0x10000316c
mov ecx, r12d
test r12d, r12d
je 0x1000030f8
sub ecx, 1
je 0x1000030d8
sub ecx, 1
je 0x1000030b8
cmp ecx, 1
je 0x100003098
mov edi, 0x800707d1
lea edx, [rax + 1]
lea r8d, [rax + 3]
and dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, 0xc0020114
mov rcx, qword [0x100008700]
call fcn.100003d94
jmp 0x1000030fa
lea rdx, [rsp + 0x80]
lea rcx, [0x100001750]
call fcn.100002e78
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030fa
lea rdx, [rsp + 0x80]
lea rcx, [0x100001768]
call fcn.100002e78
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030fa
lea rdx, [rsp + 0x80]
lea rcx, [0x100001730]
call fcn.100002e78
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030fa
xor edi, edi
test edi, edi
jne 0x10000316c
test r13d, r13d
je 0x10000315e
lea rcx, [0x1000016a8]
call sub.FLTLIB.DLL_FilterUnload
test rsi, rsi
je 0x100003137
lea r8d, [rdi + 0x11]
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100003137
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10000316c
lea rcx, [0x1000016a8]
call sub.FLTLIB.DLL_FilterLoad
mov edi, eax
test eax, eax
je 0x100003157
cmp eax, 0x800700b7
je 0x100003157
cmp eax, 0x80070420
jne 0x10000316c
call fcn.100003a88
jmp 0x10000316c
lea rcx, [0x1000016a8]
call sub.FLTLIB.DLL_FilterUnload
mov edi, eax
test rsi, rsi
je 0x100003185
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x88], 0
je 0x1000031a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000031b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r13
pop r12
pop rdi
ret
Function at 0x100003a88
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1000037b0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x100003ae3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
mov r9d, 0xc0020144
mov dword [rsp + 0x30], ecx
lea r8d, [rcx + 2]
mov edx, ecx
mov rcx, qword [0x100008700]
mov dword [rsp + 0x28], eax
and qword [rsp + 0x20], 0
call fcn.100003b60
jmp 0x100003aec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret

Function at 0x100003af8
Capabilities:
Access the windows event log

Disassembly:
sub rsp, 0x68
xor eax, eax
xor r11d, r11d
lea r10d, [rax + 1]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
cmp rax, r11
je 0x100003b2d
lea r10d, [r11 + 2]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r11d
mov word [rsp + 0x28], r10w
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
add rsp, 0x68
ret
Function at 0x100004068
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
lea rax, [0x100001908]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
mov qword [r11 + 8], rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1000040aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10000414f
and qword [rsp + 0x60], rbx
and qword [rsp + 0x58], rbx
lea rax, [0x1000018f8]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], rbx
lea rax, [0x100001978]
mov qword [rsp + 0x40], rax
lea rax, [0x100001940]
lea rdx, [0x1000016a8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x100004130
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100004138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x100004146
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10000416c
Capabilities:
Access the windows event log
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
xor edx, edx
xor ecx, ecx
call fcn.100002f74
mov rcx, qword [0x100008700]
xor ebp, ebp
lea edx, [rbp + 4]
lea r8d, [rbp + 3]
cmp eax, ebp
je 0x1000041bb
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], eax
mov r9d, 0x4002010e
mov qword [rsp + 0x20], rbp
call fcn.100003b60
jmp 0x1000041df
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov r9d, 0xc002010f
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebx, ebp
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbp
jne 0x100004203
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100004260
lea rdx, [0x1000016a8]
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbp
jne 0x100004234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x424
jne 0x100004249
mov ebx, ebp
jmp 0x100004249
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebp
jne 0x100004249
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, rbp
je 0x100004257
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x100004cf8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, rdx
mov r14, rcx
and dword [r11 + 0x18], 0
xor r12d, r12d
mov qword [r11 - 0x20], r12
xor esi, esi
mov qword [r11 - 0x28], rsi
lea rax, [r11 + 0x18]
mov qword [r11 - 0x38], rax
and qword [r11 - 0x40], rsi
and qword [r11 - 0x48], rsi
mov r15d, 0x20000002
mov r9d, r15d
lea r8, [0x100001a48]
lea rdx, [0x100001a60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
je 0x100004d8a
lea edx, [rsi + 1]
lea r8d, [r12 + 5]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r9d, 0xc002012d
mov rcx, qword [0x100008700]
call fcn.100003d94
jmp 0x100004f0e
mov ecx, dword [rsp + 0x80]
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x100004dd6
lea edx, [rax + 1]
lea r8d, [rax + 5]
and dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
mov r9d, 0xc002012e
mov rcx, qword [0x100008700]
call fcn.100003d94
lea edi, [r12 + 8]
jmp 0x100004f0e
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
and qword [rsp + 0x20], 0
mov r9d, r15d
lea r8, [0x100001a48]
lea rdx, [0x100001a60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
je 0x100004e3a
mov edx, 1
lea r8d, [rdx + 4]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r9d, 0xc002012f
mov rcx, qword [0x100008700]
call fcn.100003d94
jmp 0x100004f0e
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea edi, [rdx + rcx + 5]
mov r15d, edi
lea rcx, [rdi + rdi]
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x100004ea3
lea ecx, [rdi + rdi]
lea edx, [rax + 1]
lea r8d, [rax + 5]
and dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, 0xc002012e
mov rcx, qword [0x100008700]
call fcn.100003d94
lea edi, [rsi + 8]
jmp 0x100004f0e
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
lea rax, [0x100001ac0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call fcn.100004280
test eax, eax
jns 0x100004f01
mov edx, 1
lea r8d, [rdx + 4]
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, 0xc0020135
mov rcx, qword [0x100008700]
call fcn.100003d94
mov edi, 0xa1
jmp 0x100004f0e
xor edi, edi
mov qword [r13], rsi
xor esi, esi
mov qword [rsp + 0x40], rsi
test r12, r12
je 0x100004f1c
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
test rsi, rsi
je 0x100004f2a
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
lea r11, [rsp + 0x50]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x1000053dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100008720], rdi
je 0x10000542a
cmp rax, rdi
jne 0x10000541d
mov edi, 1
mov r12d, edi
jmp 0x10000542f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100005401
mov edi, 1
mov eax, dword [0x100008718]
cmp eax, edi
jne 0x100005445
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1000054a2
mov eax, dword [0x100008718]
test eax, eax
jne 0x10000549c
mov dword [0x100008718], edi
lea r13, [0x1000013d8]
lea rsi, [0x1000013c0]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x10000548e
test eax, eax
jne 0x10000548e
mov rcx, qword [rsi]
test rcx, rcx
je 0x100005483
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x10000546c
test eax, eax
je 0x1000054a2
mov eax, 0xff
jmp 0x100005574
mov dword [0x100008164], edi
mov eax, dword [0x100008718]
cmp eax, edi
jne 0x1000054c9
lea rdx, [0x1000013b8]
lea rcx, [0x1000013a8]
call sub.msvcrt.dll__initterm
mov dword [0x100008718], 2
test r12d, r12d
jne 0x1000054d7
xor eax, eax
xchg qword [0x100008720], rax
cmp qword [0x100008728], 0
je 0x100005500
lea rcx, [0x100008728]
call fcn.1000057dc
test eax, eax
je 0x100005500
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100008728]
mov r8, qword [0x100008148]
mov rdx, qword [0x100008150]
mov ecx, dword [0x100008140]
call fcn.100001bf8
mov dword [0x100008160], eax
cmp dword [0x100008144], 0
jne 0x100005530
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100008164], 0
jne 0x100005545
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100008160]
jmp 0x100005574
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.10009a000
add rsp, 0x28
jmp 0x1000053dc