joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008920
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rsp + 0x30], 0x70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.18000b960
mov rcx, qword [0x18002fe10]
add rcx, 0xffffffffffffffe8
call fcn.180001750
lea rbx, [rax + 0x18]
mov qword [rsp + 0xe0], rbx
lea rdi, str.Coupon.exe
mov r15, 0xffffffffffffffff
mov rax, r15
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x180008990
mov rbp, rdi
sub rbp, rbx
sar rbp, 1
mov r12d, dword [rbx - 0x10]
test eax, eax
js 0x180008aaa
movsxd rdx, eax
mov rcx, rdi
call fcn.18000e100
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, r12d
jl 0x180008ab5
lea esi, [r12 + rax]
test esi, esi
js 0x180008a94
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x180008a01
mov edx, esi
lea rcx, [rsp + 0xe0]
call fcn.180004d30
mov rbx, qword [rsp + 0xe0]
cmp rbp, r12
ja 0x180008a0a
lea rdi, [rbx + rbp*2]
movsxd rdx, r14d
lea rcx, [rbx + r12*2]
mov r9d, r14d
mov r8, rdi
call fcn.180006410
cmp esi, dword [rbx - 0xc]
jg 0x180008a9f
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
mov dword [rsp + 0x34], 0x40
lea rax, str.open
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x180008a78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.1800016f0
int3
mov ecx, 0x80070057
call fcn.1800016f0
int3
mov ecx, 0x80070057
call fcn.1800016f0
int3
mov ecx, 0x80070057
call fcn.1800016f0
int3
Function at 0x1800092a0
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x18002f048]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r15d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbx, rcx
call fcn.180002c40
mov rcx, rax
test rax, rax
je 0x180009441
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
xor r12d, r12d
mov qword [rsp + 0x3c], r12
mov qword [rsp + 0x44], r12
mov qword [rsp + 0x4c], r12
mov qword [rsp + 0x54], r12
mov qword [rsp + 0x5c], r12
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x70], r12
lea rdx, [0x1800220e0]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r12w
jne 0x180009336
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.1800056c0
mov dword [rsp + 0x30], 0x50
mov qword [rsp + 0x34], 0x1c6
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x6c]
call fcn.18000b960
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800093b8
cmp dword [rbp - 0x6c], 5
jbe 0x1800093b8
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1800093b1
mov rcx, qword [rbx + 0x88]
mov rax, r12
test rcx, rcx
je 0x1800093b1
call fcn.180009520
mov qword [rbx + 0x80], rax
mov qword [rsp + 0x78], rax
jmp 0x1800093bd
mov qword [rsp + 0x78], rdi
mov rbx, qword [rsp + 0x20]
cmp dword [rbx - 8], 1
jle 0x1800093da
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180001f00
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x68], rbx
mov eax, dword [rbx - 0x10]
inc eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x40], r15d
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.USER32.dll_InsertMenuItemW]
mov esi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18000941e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.18000a020
add rsp, 0x1c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1800016f0
int3
Function at 0x100001bec
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
lea rdx, [0x100001570]
lea rax, [0x100001ca8]
xor ebx, ebx
xor ecx, ecx
mov qword [r11 - 0x28], rdx
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x10], rbx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [0x100008700], rax
cmp rax, rbx
je 0x100001c99
lea rcx, [0x100001580]
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.100003b40
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x100001c65
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100001c9b
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 0x100001d48
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x50
and qword [rsp + 0x40], 0
call fcn.100003ad0
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 0x100001db4
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 0x100001ea6
lea rcx, [0x1000086f8]
call fcn.100001f68
test eax, eax
je 0x100001df1
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.100003ba8
jmp 0x100001ea6
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x100002550]
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 0x100001e45
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.100003ddc
jmp 0x100001e63
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 4]
call fcn.100001ef8
or edx, 0xffffffff
mov rcx, qword [0x1000086f0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test rsi, rsi
je 0x100001e71
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 0x1000023d8
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 0x10000245a
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.100003ba8
jmp 0x10000249c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rdi + 0x10]
cmp rax, 0x1388
jbe 0x10000249c
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.100003d3c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1000024b4
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, [0x1000029d8]
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 0x10000252c
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.100003ba8
xor eax, eax
jmp 0x10000253d
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 0x100002f68
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
and dword [rax - 0x30], 0
and dword [rax - 0x2c], 0
xor esi, esi
mov qword [rax + 0x18], rsi
and qword [rax + 0x20], rsi
lea r8, [rax - 0x30]
lea rdx, [0x1000016e0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100002fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100003168
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 0x100002fe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100003168
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 0x100003032
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100003168
lea rdx, [rsp + 0x88]
lea rcx, [0x100001710]
call fcn.100002e6c
mov edi, eax
test eax, eax
jne 0x100003168
mov ecx, r12d
test r12d, r12d
je 0x1000030f4
sub ecx, 1
je 0x1000030d4
sub ecx, 1
je 0x1000030b4
cmp ecx, 1
je 0x100003094
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.100003ddc
jmp 0x1000030f6
lea rdx, [rsp + 0x80]
lea rcx, [0x100001740]
call fcn.100002e6c
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030f6
lea rdx, [rsp + 0x80]
lea rcx, [0x100001758]
call fcn.100002e6c
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030f6
lea rdx, [rsp + 0x80]
lea rcx, [0x100001720]
call fcn.100002e6c
mov edi, eax
mov rsi, qword [rsp + 0x80]
jmp 0x1000030f6
xor edi, edi
test edi, edi
jne 0x100003168
test r13d, r13d
je 0x10000315a
lea rcx, [0x100001698]
call sub.FLTLIB.DLL_FilterUnload
test rsi, rsi
je 0x100003133
lea r8d, [rdi + 0x11]
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100003133
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100003168
lea rcx, [0x100001698]
call sub.FLTLIB.DLL_FilterLoad
mov edi, eax
test eax, eax
je 0x100003153
cmp eax, 0x800700b7
je 0x100003153
cmp eax, 0x80070420
jne 0x100003168
call fcn.100003ad0
jmp 0x100003168
lea rcx, [0x100001698]
call sub.FLTLIB.DLL_FilterUnload
mov edi, eax
test rsi, rsi
je 0x100003181
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 0x1000031a5
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 0x1000031b5
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 0x100003ad0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1000037f8]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x100003b2b
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.100003ba8
jmp 0x100003b34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret

Function at 0x100003b40
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 0x100003b75
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 0x1000040b0
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, [0x1000018f8]
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 0x1000040f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100004197
and qword [rsp + 0x60], rbx
and qword [rsp + 0x58], rbx
lea rax, [0x1000018e8]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], rbx
lea rax, [0x100001968]
mov qword [rsp + 0x40], rax
lea rax, [0x100001930]
lea rdx, [0x100001698]
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 0x100004178
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100004180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rdi, rdi
je 0x10000418e
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 0x1000041b4
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.100002f68
mov rcx, qword [0x100008700]
xor ebp, ebp
lea edx, [rbp + 4]
lea r8d, [rbp + 3]
cmp eax, ebp
je 0x100004203
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], eax
mov r9d, 0x4002010e
mov qword [rsp + 0x20], rbp
call fcn.100003ba8
jmp 0x100004227
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 0x10000424b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000042a8
lea rdx, [0x100001698]
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbp
jne 0x10000427c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x424
jne 0x100004291
mov ebx, ebp
jmp 0x100004291
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebp
jne 0x100004291
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, rbp
je 0x10000429f
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 0x100004d48
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
mov qword [r11 + 0x10], rdi
push r12
push r13
push r14
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 r9d, 0x20000002
lea r8, [0x100001a38]
lea rdx, [0x100001a50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
je 0x100004dd3
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.100003ddc
jmp 0x100004f60
mov ecx, dword [rsp + 0x80]
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x100004e1f
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.100003ddc
lea edi, [r12 + 8]
jmp 0x100004f60
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
and qword [rsp + 0x20], 0
mov r9d, 0x20000002
lea r8, [0x100001a38]
lea rdx, [0x100001a50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, eax
test eax, eax
je 0x100004e86
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.100003ddc
jmp 0x100004f60
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 rdi, [rdx + rcx + 5]
mov qword [rsp + 0x88], rdi
lea rcx, [rdi + rdi]
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x100004ef5
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.100003ddc
lea edi, [rsi + 8]
jmp 0x100004f60
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
lea rax, [0x100001ab0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1000042c8
test eax, eax
jns 0x100004f53
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.100003ddc
mov edi, 0xa1
jmp 0x100004f60
xor edi, edi
mov qword [r13], rsi
xor esi, esi
mov qword [rsp + 0x40], rsi
test r12, r12
je 0x100004f6e
mov rcx, r12
call qword [sym.imp.msvcrt.dll_free]
test rsi, rsi
je 0x100004f7c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop r13
pop r12
ret
Function at 0x100005428
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 0x100005476
cmp rax, rdi
jne 0x100005469
mov edi, 1
mov r12d, edi
jmp 0x10000547b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000544d
mov edi, 1
mov eax, dword [0x100008718]
cmp eax, edi
jne 0x100005491
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1000054ee
mov eax, dword [0x100008718]
test eax, eax
jne 0x1000054e8
mov dword [0x100008718], edi
lea r13, [0x1000013d8]
lea rsi, [0x1000013c0]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x1000054da
test eax, eax
jne 0x1000054da
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000054cf
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000054b8
test eax, eax
je 0x1000054ee
mov eax, 0xff
jmp 0x1000055c0
mov dword [0x100008164], edi
mov eax, dword [0x100008718]
cmp eax, edi
jne 0x100005515
lea rdx, [0x1000013b8]
lea rcx, [0x1000013a8]
call sub.msvcrt.dll__initterm
mov dword [0x100008718], 2
test r12d, r12d
jne 0x100005523
xor eax, eax
xchg qword [0x100008720], rax
cmp qword [0x100008728], 0
je 0x10000554c
lea rcx, [0x100008728]
call fcn.10000582c
test eax, eax
je 0x10000554c
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.100001bec
mov dword [0x100008160], eax
cmp dword [0x100008144], 0
jne 0x10000557c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100008164], 0
jne 0x100005591
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100008160]
jmp 0x1000055c0
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 0x100005428
Function at 0x1000056e0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100008110]
jne 0x1000056fb
rol rcx, 0x10
test cx, 0xffff
jne 0x1000056f7
ret 0
ror rcx, 0x10
jmp 0x1000059fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100008220]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100008318]
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 0x100005a81
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, [0x100008220]
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 0x100005aa3
mov rax, qword [rsp + 0x88]
mov qword [0x100008318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000082b8], rax
mov rax, qword [0x100008318]
mov qword [0x100008190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000082a0], rax
mov dword [0x100008180], 0xc0000409
mov dword [0x100008184], 1
mov rax, qword [0x100008110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100008118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001400]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x100005898
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000058e5
cmp rcx, 0xffffffffffffffff
je 0x1000058e5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1000058dd
cmp dword [rcx + 0x3c], edx
jl 0x1000058dd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000058dd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000058e5
mov rax, rdx
add rsp, 0x18
ret