joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x6c6c642e
mov byte [rsp + 0x2c], 0
call fcn.140001c10
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x140115028]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x140002320
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x14000233a
mov r15, rsi
xor r14d, r14d
jmp 0x1400021d1
add r14, 1
add r15, 4
cmp rbp, r14
je 0x140002350
mov ecx, dword [r15]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400021c0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
mov byte [rsp + 0x2e], 0
add rax, rbx
mov qword [0x14015b040], rax
mov rax, qword [0x140115030]
mov edx, 0x7373
mov dword [rsp + 0x28], 0x65726464
xor r14d, r14d
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x140002241
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x140002348
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140002230
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x14015b048], rax
mov rax, qword [0x140115038]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x1400022bd
jmp 0x140002336
add rbp, 1
add rsi, 4
cmp r13, rbp
je 0x140002336
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400022b0
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x14015b038], rax
call fcn.1400020a0
test rax, rax
mov qword [0x14015b030], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x14015b040], 0
mov qword [0x14015b048], 0
xor eax, eax
jmp 0x1400022ea
mov qword [0x14015b040], 0
nop dword [rax]
xor eax, eax
jmp 0x14000226c
mov qword [0x14015b040], 0
mov byte [rsp + 0x2e], 0
jmp 0x140002209
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140002130
Function at 0x140002370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x6c6c642e
mov byte [rsp + 0x2c], 0
call fcn.140001c10
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x140115028]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x140002320
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x14000233a
mov r15, rsi
xor r14d, r14d
jmp 0x1400021d1
add r14, 1
add r15, 4
cmp rbp, r14
je 0x140002350
mov ecx, dword [r15]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400021c0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
mov byte [rsp + 0x2e], 0
add rax, rbx
mov qword [0x14015b040], rax
mov rax, qword [0x140115030]
mov edx, 0x7373
mov dword [rsp + 0x28], 0x65726464
xor r14d, r14d
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x140002241
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x140002348
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140002230
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x14015b048], rax
mov rax, qword [0x140115038]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x1400022bd
jmp 0x140002336
add rbp, 1
add rsi, 4
cmp r13, rbp
je 0x140002336
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400022b0
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x14015b038], rax
call fcn.1400020a0
test rax, rax
mov qword [0x14015b030], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x14015b040], 0
mov qword [0x14015b048], 0
xor eax, eax
jmp 0x1400022ea
mov qword [0x14015b040], 0
nop dword [rax]
xor eax, eax
jmp 0x14000226c
mov qword [0x14015b040], 0
mov byte [rsp + 0x2e], 0
jmp 0x140002209
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140002130
Function at 0x140005930
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [0x1401151e0]
cmp r8d, 0x100
jne 0x140005962
add rdx, 0x10
lea rax, str.expand_32_byte_k
mov r8d, dword [rdx]
mov dword [rcx + 0x20], r8d
mov r8d, dword [rdx + 4]
mov dword [rcx + 0x24], r8d
mov r8d, dword [rdx + 8]
mov dword [rcx + 0x28], r8d
mov edx, dword [rdx + 0xc]
mov dword [rcx + 0x2c], edx
movsx edx, byte [rax + 1]
movsx r8d, byte [rax + 2]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax]
or edx, r8d
movsx r8d, byte [rax + 3]
shl r8d, 0x18
or edx, r8d
mov dword [rcx], edx
movsx edx, byte [rax + 5]
movsx r8d, byte [rax + 6]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 4]
or edx, r8d
movsx r8d, byte [rax + 7]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 4], edx
movsx edx, byte [rax + 9]
movsx r8d, byte [rax + 0xa]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 8]
or edx, r8d
movsx r8d, byte [rax + 0xb]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 8], edx
movsx edx, byte [rax + 0xd]
movsx r8d, byte [rax + 0xe]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 0xc]
movsx eax, byte [rax + 0xf]
or edx, r8d
shl eax, 0x18
or eax, edx
mov dword [rcx + 0xc], eax
ret

Function at 0x140005ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r8, rcx
movzx ecx, byte [rcx + 0x1f]
lea r9, [r8 + 0x20]
mov edx, ecx
and ecx, 0x7f
shr dl, 7
mov byte [r8 + 0x1f], cl
movzx edx, dl
lea eax, [rdx + rdx*8]
lea eax, [rdx + rax*2]
mov rdx, r8
nop word [rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
add eax, ecx
mov byte [rdx - 1], al
shr ax, 8
cmp rdx, r9
jne 0x140005b10
xor edx, edx
mov eax, 0x13
mov r9, rsp
nop
movzx ecx, byte [r8 + rdx]
add eax, ecx
mov byte [r9 + rdx], al
add rdx, 1
shr ax, 8
cmp rdx, 0x1f
jne 0x140005b30
movzx edx, byte [r8 + 0x1f]
movdqu xmm1, xmmword [r8]
pxor xmm1, xmmword [rsp]
lea eax, [rax + rdx - 0x80]
mov byte [rsp + 0x1f], al
sar ax, 0xf
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pand xmm1, xmm0
pxor xmm1, xmmword [rsp]
movups xmmword [r8], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
pxor xmm1, xmmword [rsp + 0x10]
pand xmm0, xmm1
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
add rsp, 0x28
ret
Function at 0x140006360
Capabilities:
Encrypt data using curve25519
Hash data using sha512

Disassembly:
push rsi
push rbx
sub rsp, 0xe8
movdqu xmm0, xmmword [0x140115620]
movdqu xmm1, xmmword [0x140115630]
movdqu xmm2, xmmword [0x140115640]
movdqu xmm3, xmmword [0x140115650]
movdqu xmm4, xmmword [rdx]
movdqu xmm5, xmmword [rdx + 0x10]
lea rax, [rsp + 0x60]
mov rbx, rcx
lea rsi, [rsp + 0x20]
mov qword [rsp + 0x80], 0
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov byte [rsp + pe_nt_image_headers64], 0x80
mov byte [rsp + 0xde], 1
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x60], xmm4
movups xmmword [rsp + 0x70], xmm5
call fcn.140005d80
mov r8d, 0x40
mov rdx, rbx
mov rcx, rsi
call fcn.140006250
movzx eax, byte [rbx + 0x1f]
and byte [rbx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rbx + 0x1f], al
add rsp, 0xe8
pop rbx
pop rsi
ret
Function at 0x140006650
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movdqu xmm0, xmmword [0x140115620]
movdqu xmm1, xmmword [0x140115630]
movdqu xmm2, xmmword [0x140115640]
movdqu xmm3, xmmword [0x140115650]
mov rbp, qword [rsp + 0xe0]
mov r14, rcx
mov ecx, r8d
mov r13, rdx
mov r12, r9
lea r15, [rbp + rcx]
movups xmmword [rsp + 0x30], xmm0
add rcx, rdx
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm3
cmp rbp, 0x7f
ja 0x140006720
cmp r15, 0x7f
jbe 0x1400067f0
mov edx, pe_nt_image_headers64
lea rdi, [rcx + 8]
mov rsi, r12
sub edx, r8d
mov r8, qword [r9]
and rdi, 0xfffffffffffffff8
mov eax, edx
lea r9, [r9 + rax]
mov qword [rcx], r8
mov r8, qword [r9 - 8]
mov qword [rsp + 0x20], r9
mov qword [rcx + rax - 8], r8
sub rcx, rdi
add edx, ecx
sub rsi, rcx
shr edx, 3
mov ecx, edx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140005d80
mov r9, qword [rsp + 0x20]
jmp 0x1400067ac
mov edx, pe_nt_image_headers64
lea rdi, [rcx + 8]
mov rsi, r12
sub edx, r8d
mov r8, qword [r9]
and rdi, 0xfffffffffffffff8
mov eax, edx
lea r9, [r9 + rax]
mov qword [rcx], r8
mov r8, qword [r9 - 8]
mov qword [rsp + 0x28], r9
mov qword [rcx + rax - 8], r8
sub rcx, rdi
sub rsi, rcx
add ecx, edx
mov qword [rsp + 0x20], rax
mov rdx, r13
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.140005d80
mov rax, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
lea rbx, [rax + 0x80]
cmp rbp, rbx
jb 0x1400067ac
lea rdi, [r12 - 0x80]
nop dword [rax + rax]
lea rdx, [rdi + rbx]
mov rcx, rsi
call fcn.140005d80
mov rax, rbx
sub rbx, 0xffffffffffffff80
cmp rbp, rbx
jae 0x140006790
lea r9, [r12 + rax]
mov r8, r15
mov rdx, r9
mov rcx, rsi
call fcn.140006090
mov rdx, r13
mov rcx, rsi
mov r8d, 0x40
call fcn.140006250
mov r8d, 0x40
mov rdx, r13
mov rcx, r14
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400064a0
mov r8, rbp
mov rdx, r9
lea rsi, [rsp + 0x30]
call sub.msvcrt.dll_memcpy
mov r8, r15
mov rdx, r13
mov rcx, rsi
call fcn.140006090
jmp 0x1400067ba
Function at 0x14000bea0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, rdx
lea rdi, [rsp + 0x5c]
lea rbx, [rsp + 0x58]
mov r15, rcx
call rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
mov r14d, eax
mov edx, 1
mov rcx, r12
mov rbp, qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call rbp
test eax, eax
je 0x14000bf10
mov eax, 1
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14000bf28
xor eax, eax
jmp 0x14000bef9
mov r13d, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test rax, rax
je 0x14000bf1d
mov qword [rsp + 0x28], rdi
mov r9d, dword [rsp + 0x58]
mov edx, 1
mov rcx, r12
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rax
call rbp
test eax, eax
je 0x14000bf1d
mov edx, dword [rsp + 0x5c]
test edx, edx
je 0x14000bef4
lea rdx, [rsp + 0x60]
mov qword [rsp + 0xe8], r12
xor eax, eax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0xe0], r15
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov rdi, rbp
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0xe0]
mov r8d, 0x24
shl rax, 4
mov rdx, qword [r15 + rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x14000bf1d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8, r15
mov edx, 1
mov r9d, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
call rdi
test eax, eax
je 0x14000bf1d
mov eax, dword [rsp + 0x5c]
test eax, eax
je 0x14000bef4
mov qword [rsp + 0x48], rdi
xor ecx, ecx
mov rbp, qword [rsp + 0x38]
mov r13, r15
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], r15
mov r15d, ecx
mov rdx, qword [r13]
mov rcx, qword [rsp + 0xe0]
mov r8d, 0x24
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14000bf1d
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000c0a7
jmp 0x14000bf1d
mov ecx, dword [rsp + 0x78]
call r12
xor edx, edx
mov qword [rsp + 0x20], rbx
mov r9d, 0x24
mov r8, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000bf1d
cmp dword [rsp + 0x64], 1
je 0x14000c0ae
call rsi
sub eax, r14d
cmp eax, 0x7530
ja 0x14000bf1d
cmp dword [rsp + 0x64], 1
jne 0x14000c068
mov edx, dword [rsp + 0x5c]
lea eax, [r15 + 1]
add r13, 0x30
cmp eax, edx
jae 0x14000c0c6
mov r15d, eax
jmp 0x14000c024
mov ecx, r15d
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
lea eax, [rcx + 2]
cmp eax, edx
jb 0x14000bfa3
jmp 0x14000bef4
Function at 0x14000c0f0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rdi, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, rcx
call rdi
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14000c2a0
mov rdx, rbx
mov r8d, 0x2c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000c2b0
lea rbp, [rsp + 0x40]
lea r12, [rsp + 0x3c]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], r12
mov r13, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r9d, 0x24
mov r8, rbp
call r13
test eax, eax
je 0x14000c190
mov eax, dword [rsp + 0x44]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 1
jne 0x14000c21a
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call rbx
mov rcx, r14
call rbx
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x58]
mov ecx, 0x3e8
cmp eax, 0x270f
jbe 0x14000c1e3
mov ecx, 0x2710
cmp eax, 0x186a9
ja 0x14000c1e3
mov ecx, eax
mov eax, 0xcccccccd
imul rcx, rax
shr rcx, 0x23
call r15
xor edx, edx
mov qword [rsp + 0x20], r12
mov r9d, 0x24
mov r8, rbp
mov rcx, rbx
call r13
test eax, eax
je 0x14000c190
cmp dword [rsp + 0x44], 1
je 0x14000c190
call rdi
sub eax, esi
cmp eax, 0x7530
ja 0x14000c190
mov eax, dword [rsp + 0x44]
cmp eax, 3
je 0x14000c1b8
mov rdx, rbx
mov rcx, r14
call fcn.14000bea0
mov r8, rbp
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x14000c28b
jmp 0x14000c190
mov ecx, dword [rsp + 0x58]
call r15
xor edx, edx
mov qword [rsp + 0x20], r12
mov r9d, 0x24
mov r8, rbp
mov rcx, rbx
call r13
test eax, eax
je 0x14000c190
cmp dword [rsp + 0x44], 1
je 0x14000c292
call rdi
sub eax, esi
cmp eax, 0x7530
ja 0x14000c190
cmp dword [rsp + 0x44], 1
jne 0x14000c250
mov eax, 1
jmp 0x14000c1a3
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000c1a1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000c1a1
Function at 0x14000c2c0
Capabilities:
Execute command
Modify service

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [0x14015b100]
lea rsi, [0x14015b100]
cmp rbx, rsi
je 0x14000c2f9
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call sub.msvcrt.dll_system
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14000c2e8
mov rbx, qword [0x14015b0e0]
lea rbp, [0x14015b0e0]
cmp rbx, rbp
je 0x14000c40f
mov r13, qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov r12, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000c33c
mov rbx, qword [rbx]
cmp rbx, rbp
je 0x14000c40f
mov rdi, qword [rbx + 0x10]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call r13
mov rsi, rax
test rax, rax
je 0x14000c330
mov rdx, rdi
mov r8d, 2
mov rcx, rax
call r14
mov rdi, rax
test rax, rax
je 0x14000c420
mov r9d, 0xffffffff
mov r8d, 4
mov edx, 0xffffffff
mov rcx, rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r15
mov rcx, rdi
call r12
mov rcx, rsi
call r12
mov rdx, qword [rbx + 0x10]
lea rcx, str.Service__s_disabled_successfully._n
call fcn.14010b490
mov rcx, qword [rbx + 0x10]
call fcn.14000c0f0
test al, al
je 0x14000c330
mov rdx, qword [rbx + 0x10]
lea rcx, str._tService__s_stopped_successfully._n
call fcn.14010b490
mov rbx, qword [rbx]
cmp rbx, rbp
jne 0x14000c33c
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000c330
Function at 0x14004c9d0
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 fcn.14005b4e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14005b4e0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14004d6a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14015bc88]
test eax, eax
je 0x14004d73a
lea rax, [0x14015bc60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14015bc90]
mov qword [rbp - 8], rax
jmp 0x14004d71e
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 0x14004d712
cmp qword [rbp - 0x10], 0
je 0x14004d712
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 0x14004d6d8
lea rax, [0x14015bc60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004d73b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14004d840
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 0x14004d868
mov eax, 0
jmp 0x14004d8b6
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 0x14004d891
mov eax, 0
jmp 0x14004d8b6
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 0x14004d8b1
mov eax, 0
jmp 0x14004d8b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004d8bc
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 0x14004d93a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14004d931
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 0x14004d931
mov rax, qword [rbp - 8]
jmp 0x14004d94f
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 0x14004d904
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14005dc10
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14005dd12
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14005dcea
add rax, 1
cmp rax, 0x6b
je 0x14005dd07
cmp byte [rcx + rax], 0
jne 0x14005dce0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14005dd07
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14005dcf8

Function at 0x14005e0b0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14015c880], 1
je 0x14005e128
lea rdi, [0x14015c880]
mov rcx, rdi
call fcn.14005d9a0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14005d2d0
mov esi, dword [0x14015c880]
test esi, esi
jne 0x14005e138
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401118b8], eax
cmp eax, 0xffffffff
je 0x14010e236
mov dword [0x14015c880], 1
mov rcx, rbp
call fcn.14005d5a0
test rbx, rbx
je 0x14005e128
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14005dd30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14005e108
mov ecx, 2
call qword [fcn.14005b4e0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14005e108
call sub.msvcrt.dll_abort
nop