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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4890
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d41b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d424a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d422e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4222
cmp qword [rbp - 0x10], 0
je 0x2fc4d4222
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d41e8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d424b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4350
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4378
mov eax, 0
jmp 0x2fc4d43c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d43a1
mov eax, 0
jmp 0x2fc4d43c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d43c1
mov eax, 0
jmp 0x2fc4d43c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d43cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d444a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4441
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4441
mov rax, qword [rbp - 8]
jmp 0x2fc4d445f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4414
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc557800
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc5588e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc558202
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57a108]
test eax, eax
je 0x2fc55829a
lea rax, [0x2fc57a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57a110]
mov qword [rbp - 8], rax
jmp 0x2fc55827e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc558272
cmp qword [rbp - 0x10], 0
je 0x2fc558272
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc558238
lea rax, [0x2fc57a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55829b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5583a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5583c8
mov eax, 0
jmp 0x2fc558416
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc5583f1
mov eax, 0
jmp 0x2fc558416
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc558411
mov eax, 0
jmp 0x2fc558416
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55841c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55849a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc558491
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc558491
mov rax, qword [rbp - 8]
jmp 0x2fc5584af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc558464
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001030
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x38
mov rax, qword [0x1400056d8]
mov rbp, r9
mov r15, r8
mov r12, rdx
mov r13, rcx
test rax, rax
jne 0x140001147
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], r14
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14000110d
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14000110d
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0xd7ec92df
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x140001108
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x1400010d0
cmp r10d, 0xa4bd75db
je 0x140001115
test r11d, r11d
jne 0x1400010b0
mov rax, qword [rax]
jmp 0x140001080
mov ecx, dword [rsi + 0x24]
mov r14, qword [rsp + 0x30]
add rcx, rbx
mov rdi, qword [rsp + 0x70]
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
mov rsi, qword [rsp + 0x68]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov rbx, qword [rsp + 0x60]
mov qword [0x1400056d8], rax
mov rcx, qword [r13 + 0x10]
mov r9, rbp
mov r8, r15
mov qword [rsp + 0x20], 0
mov rdx, r12
call rax
test eax, eax
setne al
add rsp, 0x38
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x140001170
Capabilities:
Access peb ldr_data
Encode data using xor
Enumerate processes
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
sub rsp, 0x168
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001200
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400011f7
nop
lea rdx, [rsp + 0x4c]
lea rcx, str.ReadyOrNot_Win64_Shipping.exe
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
test eax, eax
je 0x14000121c
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400011d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001e20
add rsp, 0x168
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x28]
mov dword [rbp + 0x18], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400056e8]
test rax, rax
jne 0x14000133b
mov rax, qword gs:[0x60]
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x160], r14
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1400012fd
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1400012fd
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x37facb0c
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x1400012f8
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x1400012c0
cmp r10d, 0xce848581
je 0x140001305
test r11d, r11d
jne 0x1400012a0
mov rax, qword [rax]
jmp 0x140001270
mov ecx, dword [rsi + 0x24]
mov r14, qword [rsp + 0x160]
add rcx, rbx
mov rdi, qword [rsp + 0x190]
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
mov rsi, qword [rsp + 0x188]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
mov qword [0x1400056e8], rax
mov r8d, dword [rbp + 0x18]
xor edx, edx
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x10], rax
mov al, 1
mov byte [rbp + 8], 1
jmp 0x140001202
Function at 0x10001af38
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x290
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov r12, r8
mov rbp, rdx
mov r13d, 0x104
lea rcx, [rsp + 0x60]
xor edi, edi
mov r8, r13
xor edx, edx
mov qword [rsp + 0x38], rdi
call fcn.100028c50
xor r11d, r11d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x50], r11
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov dword [rsp + 0x50], 8
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
call fcn.10001e574
cmp eax, edi
je 0x10001affa
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea ebx, [rdi + 2]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8d, ebx
xor edx, edx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x20], 1
call sub.WINSPOOL.DRV_GetPrinterDriverA
mov ecx, dword [rsp + 0x30]
call fcn.10002157c
mov rcx, qword [rsp + 0x38]
cmp rax, rdi
mov rsi, rax
jne 0x10001b023
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100021240
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8d, ebx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x20], eax
call sub.WINSPOOL.DRV_GetPrinterDriverA
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp ebx, edi
je 0x10001affa
mov r8, qword [rsi + 0x20]
mov rdx, r13
lea rcx, [rsp + 0x60]
mov r9d, edi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rdi
je 0x10001b085
mov al, byte [r8]
cmp al, dil
je 0x10001b085
mov byte [rcx], al
add r8, 1
add rcx, 1
sub rdx, 1
jne 0x10001b061
cmp rdx, rdi
jne 0x10001b094
sub rcx, 1
mov r9d, 0x8007007a
cmp r9d, edi
mov byte [rcx], dil
je 0x10001b0a9
mov rcx, rsi
call fcn.100021570
jmp 0x10001affa
lea rcx, [rsp + 0x60]
mov edx, 0x5c
call fcn.100021540
cmp rax, rdi
jne 0x10001b0e1
mov rax, qword [rsi + 0x20]
lea r8, [0x100019628]
lea rcx, [rsp + 0x60]
mov r9, rbp
mov rdx, r13
mov qword [rsp + 0x20], rax
call fcn.10001ab98
cmp eax, edi
jne 0x10001b09c
mov rcx, rsi
call fcn.100021570
lea rcx, [rsp + 0x170]
mov r8, r13
xor edx, edx
call fcn.100028c50
lea r11, [rsp + 0x60]
lea r9, [rsp + 0x170]
mov qword [rsp + 0x28], r11
lea r8, [0x100019620]
lea rdx, [0x100019630]
lea rcx, [0x100019640]
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r11, [rsp + 0x170]
lea r8, [0x100019628]
mov r9, rbp
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], r11
call fcn.10001ab98
cmp eax, edi
sete dil
mov eax, edi
jmp 0x10001affc
Function at 0x10001b450
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x490
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
mov r12, r8
mov rbp, rdx
lea rcx, [rsp + 0x60]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x38], rdi
call fcn.100028c50
xor r11d, r11d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x50], r11
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov dword [rsp + 0x50], 8
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
call sub.WINSPOOL.DRV_OpenPrinterW
cmp eax, edi
je 0x10001b508
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor edx, edx
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], edi
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov ecx, dword [rsp + 0x30]
call fcn.10002157c
mov rcx, qword [rsp + 0x38]
cmp rax, rdi
mov rsi, rax
jne 0x10001b528
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.100021240
add rsp, 0x490
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x30]
xor edx, edx
mov r9, rsi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
lea r8d, [rdx + 2]
mov dword [rsp + 0x20], eax
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp ebx, edi
je 0x10001b508
mov r8, qword [rsi + 0x20]
mov ebx, 0x104
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov r9d, edi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rdi
je 0x10001b592
movzx eax, word [r8]
cmp ax, di
je 0x10001b592
mov word [rcx], ax
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x10001b56c
cmp rdx, rdi
jne 0x10001b5a1
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, edi
mov word [rcx], di
je 0x10001b5b6
mov rcx, rsi
call fcn.100021570
jmp 0x10001b508
lea rcx, [rsp + 0x60]
mov dx, 0x5c
call fcn.10002132c
cmp rax, rdi
jne 0x10001b5ed
mov rax, qword [rsi + 0x20]
lea r8, [0x100019668]
lea rcx, [rsp + 0x60]
mov r9, rbp
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.10001ac04
cmp eax, edi
jne 0x10001b5a9
mov rcx, rsi
call fcn.100021570
lea rcx, [rsp + 0x270]
xor edx, edx
mov r8d, 0x208
call fcn.100028c50
lea r11, [rsp + 0x60]
lea r9, [rsp + 0x270]
mov qword [rsp + 0x28], r11
lea r8, [0x100019624]
lea rdx, [0x100019678]
lea rcx, [0x1000196a0]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r11, [rsp + 0x270]
lea r8, [0x100019668]
mov r9, rbp
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], r11
call fcn.10001ac04
cmp eax, edi
sete dil
mov eax, edi
jmp 0x10001b50a
Function at 0x10001c230
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea r9, [0x100019708]
lea r8, [0x100019730]
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov dword [0x100035f7c], 1
call fcn.10001ac04
xor ebx, ebx
cmp eax, ebx
je 0x10001c27c
xor eax, eax
jmp 0x10001c2d6
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rcx, [0x100019748]
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
cmp eax, ebx
jne 0x10001c278
lea rcx, [0x1000195c0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
cmp eax, ebx
jne 0x10001c278
cmp dword [0x100035f84], ebx
mov r8d, 1
mov edx, 0x4d2
cmovne r8d, ebx
mov ecx, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.100021240
add rsp, 0x240
pop rbx
ret
Function at 0x10001ce08
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp dword [0x100035f84], 0
jne 0x10001ced2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x100019708]
xor ecx, ecx
mov dword [0x100035f80], eax
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ecx, dword [0x100035f80]
mov dword [rsp + 0x20], ecx
lea r9, [0x100019708]
lea r8, [0x100019b48]
lea rcx, [rsp + 0x60]
mov edx, 0x100
mov rbx, rax
call fcn.10001ac04
test eax, eax
jne 0x10001ced2
test rbx, rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [0x100019b00]
mov qword [rsp + 0x58], rax
je 0x10001ced2
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r8d, r8d
mov dx, 1
mov rcx, rbx
mov word [rsp + 0x28], 2
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100021240
add rsp, 0x270
pop rbx
ret
Function at 0x10001cef4
Capabilities:
Create service
Persist via windows service

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0x680], rax
lea rdx, [r11 - 0x418]
mov r8d, 0x200
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jne 0x10001cf66
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rdx, [0x100019b68]
lea rcx, [0x100019b98]
mov r8, rax
call fcn.100021ab8
xor eax, eax
jmp 0x10001d0b9
mov edi, 0xf003f
xor edx, edx
xor ecx, ecx
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp rax, rbx
mov rsi, rax
je 0x10001d097
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x208
call fcn.100028c50
mov r8d, edi
xor edx, edx
xor ecx, ecx
lea rbp, [0x100019bd0]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp rax, rbx
je 0x10001cfc0
lea rcx, [rsp + 0x70]
mov rdx, rax
call fcn.10001d5a0
mov edi, eax
jmp 0x10001cfc2
mov edi, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x70]
cmp edi, 1
lea r8, [0x100019b68]
lea rdx, [0x100019708]
cmovne rax, rbp
mov r9d, 0xf01ff
mov rcx, rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x280]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp rax, rbx
mov rbp, rax
je 0x10001d06c
lea rdx, [0x100019b68]
lea rcx, [0x100019bd8]
call fcn.100021ab8
mov rcx, rbp
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
jne 0x10001d08c
lea rdx, [0x100019708]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.10001d754
jmp 0x10001d08c
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019bf8]
mov rdx, rax
call fcn.100021ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001d0b7
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019c30]
mov rdx, rax
call fcn.100021ab8
mov eax, ebx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.100021240
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10001d0e8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0x400f003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x10001d1ad
lea rdx, [0x100019708]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rsi, rax
je 0x10001d182
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov edi, eax
je 0x10001d157
lea rdx, [0x100019b68]
lea rcx, [0x100019c68]
jmp 0x10001d172
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019c88]
mov rdx, rax
call fcn.100021ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001d1a2
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019cc0]
mov rdx, rax
call fcn.100021ab8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001d1cd
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019c30]
mov rdx, rax
call fcn.100021ab8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x10001d1e8
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp rax, rbx
mov rsi, rax
je 0x10001d2fa
lea rdx, [0x100019708]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp rax, rbx
mov rdi, rax
je 0x10001d2cf
lea r8, [0x100035f40]
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
je 0x10001d2c4
lea rdx, [0x100019b68]
lea rcx, [0x100019cf8]
call fcn.100021ab8
jmp 0x10001d274
cmp eax, 3
jne 0x10001d299
lea rcx, [0x100019d14]
call fcn.100021ab8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x100035f40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
mov eax, dword [0x100035f44]
jne 0x10001d263
cmp eax, 1
lea rdx, [0x100019b68]
jne 0x10001d2b8
lea rcx, [0x100019d18]
call fcn.100021ab8
mov ebx, 1
jmp 0x10001d2c4
lea rcx, [0x100019d38]
call fcn.100021ab8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001d2ef
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019cc0]
mov rdx, rax
call fcn.100021ab8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10001d31a
lea rcx, [0x100035b30]
mov edx, 0x100
call fcn.10001d4ec
lea rcx, [0x100019c30]
mov rdx, rax
call fcn.100021ab8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret