joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005380
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
xor eax, eax
lea rdx, [0x140006310]
xor ebx, ebx
mov qword [rbp - 7], rax
lea rcx, [rbp - 9]
mov word [rbp - 9], bx
mov dword [rbp + 1], eax
mov word [rbp + 5], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x6f], rbx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x1f01ff
mov byte [rsp + 0x28], bl
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x14000555d
mov rax, qword [rbp + 0x6f]
mov r8d, ebx
mov qword [rbp + 0x77], rbx
mov r10, qword [rax + 0x18]
movsxd rcx, dword [r10 + 0x3c]
lea rdx, [r10 + 0x18]
add rdx, rcx
movzx eax, word [rcx + r10 + 0x14]
movzx r9d, word [rcx + r10 + 6]
add rdx, rax
test r9d, r9d
je 0x140005469
lea r11, [0x140006760]
nop dword [rax]
mov rax, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r11 + rax - 1]
jne 0x14000545d
cmp rax, 6
jne 0x140005440
mov r8d, dword [rdx + 0x10]
mov eax, dword [rdx + 0xc]
jmp 0x14000546f
add rdx, 0x28
inc r8d
cmp r8d, r9d
jb 0x140005430
mov r8d, dword [rbp + 0x77]
mov eax, ebx
mov ecx, eax
test eax, eax
je 0x1400054ff
add rcx, r10
lea rdx, [0x140006770]
call fcn.140003970
xor ecx, ecx
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp + 0xf], rcx
mov rcx, qword [sym.imp.ntoskrnl.exe_PsProcessType]
lea rdx, [0x140006780]
mov qword [rbp + 7], rcx
lea rcx, [rbp + 0x2f]
mov qword [rbp + 0x29], rax
mov dword [rbp + 0xf], 3
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x31], rax
mov qword [rbp + 0x39], rax
mov qword [rbp + 0x41], rax
mov dword [rbp + 0x49], eax
mov word [rbp + 0x4d], ax
mov dword [rbp + 0x27], 0x10100
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 7]
mov qword [rbp + 0x47], rax
lea rax, [0x140005d20]
mov qword [rbp + 0x3f], rax
call fcn.1400036b0
test al, al
jne 0x140005515
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
lea rdx, [0x140018228]
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntoskrnl.exe_ObRegisterCallbacks]
cmp qword [0x140018b58], 0
mov ebx, eax
je 0x140005551
call fcn.140003da0
test rax, rax
je 0x140005551
mov r8d, 4
lea rdx, [0x140018b58]
mov rcx, rax
call fcn.140004e10
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
Function at 0x140005640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor edi, edi
mov r15, rdx
mov rsi, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r12d, dword [r8 + 0x1c]
mov r14d, dword [r8 + 0x20]
add r12, rcx
mov r13d, dword [r8 + 0x24]
add r14, rcx
mov ebp, dword [r8 + 0x18]
add r13, rcx
test rbp, rbp
je 0x1400056de
nop dword [rax]
nop word [rax + rax]
mov ebx, dword [r14 + rdi*4]
add rbx, rsi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000570c
mov rax, r15
sub rbx, r15
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rbx]
sub edx, ecx
jne 0x1400056d2
inc rax
test ecx, ecx
jne 0x1400056c0
test edx, edx
je 0x1400056fd
inc rdi
cmp rdi, rbp
jb 0x1400056a0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r13 + rdi*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x1400056e0
or rax, 0xffffffffffffffff
jmp 0x1400056e0
Function at 0x1400059a0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor eax, eax
lea rdx, [0x1400064e0]
mov rsi, rcx
mov qword [rsp + 0x22], rax
xor ebp, ebp
mov dword [rsp + 0x2a], eax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], bp
mov word [rsp + 0x2e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
je 0x140005a93
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140005a93
mov qword [rsp + 0x40], rbx
mov ebx, ebp
nop word [rax + rax]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rbp
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140005a59
mov rcx, qword [rsp + 0x48]
call rdi
test rax, rax
je 0x140005a59
mov rcx, rsi
sub rax, rsi
nop dword [rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + rax]
sub r8d, edx
jne 0x140005a54
inc rcx
test edx, edx
jne 0x140005a40
test r8d, r8d
je 0x140005a7d
add rbx, 4
cmp rbx, 0x7530
jb 0x140005a10
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140003280
test eax, eax
je 0x140005a66
mov ecx, eax
mov rax, qword [rsp + 0x48]
mov rax, qword [rcx + rax]
jmp 0x140005a68
mov rbp, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140005dc0
Capabilities:
Check os version
Enumerate pe sections

Disassembly:
sub rsp, 0x28
lea rcx, [0x140018230]
mov dword [0x140018230], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov ecx, dword [0x14001823c]
lea eax, [rcx - 0x1db0]
cmp eax, 1
jbe 0x140001b56
cmp ecx, 0x55f0
jne 0x140001b4d
add rsp, 0x28
jmp 0x140001c40
add rsp, 0x28
jmp 0x140001b60
add rsp, 0x28
jmp 0x140001d20
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x30]
lea rcx, [0x140006330]
call fcn.1400030f0
xor r9d, r9d
mov r11, rax
movsxd rdx, dword [rax + 0x3c]
lea r8, [rax + 0x18]
add r8, rdx
movzx ecx, word [rdx + rax + 0x14]
movzx r10d, word [rdx + rax + 6]
add r8, rcx
mov edx, r9d
test r10d, r10d
je 0x140001be9
lea rbx, [0x140006580]
nop word [rax + rax]
mov rax, r9
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x140001bde
cmp rax, 5
jne 0x140001bc0
mov r9d, dword [r8 + 0x10]
mov eax, dword [r8 + 0xc]
jmp 0x140001bec
add r8, 0x28
inc edx
cmp edx, r10d
jb 0x140001bb0
mov eax, r9d
mov ecx, eax
lea rdx, [0x140006590]
add rcx, r11
mov r8d, r9d
call fcn.140003970
mov r8d, 0x200
lea rdx, [0x140006620]
mov rcx, rax
call fcn.140003970
movsxd rdx, dword [rax + 5]
add rdx, rax
mov rax, qword [rdx + 9]
mov qword [0x140018220], rax
lea rax, [0x140001840]
mov qword [rdx + 9], rax
mov al, 1
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x30]
lea rcx, [0x140006330]
call fcn.1400030f0
xor r9d, r9d
mov r11, rax
movsxd rdx, dword [rax + 0x3c]
lea r8, [rax + 0x18]
add r8, rdx
movzx ecx, word [rdx + rax + 0x14]
movzx r10d, word [rdx + rax + 6]
add r8, rcx
mov edx, r9d
test r10d, r10d
je 0x140001cc9
lea rbx, [0x140006580]
nop word [rax + rax]
mov rax, r9
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x140001cbe
cmp rax, 5
jne 0x140001ca0
mov r9d, dword [r8 + 0x10]
mov eax, dword [r8 + 0xc]
jmp 0x140001ccc
add r8, 0x28
inc edx
cmp edx, r10d
jb 0x140001c90
mov eax, r9d
mov ecx, eax
lea rdx, [0x140006650]
add rcx, r11
mov r8d, r9d
call fcn.140003970
mov r8d, 0x200
lea rdx, [0x140006620]
mov rcx, rax
call fcn.140003970
movsxd rdx, dword [rax + 5]
add rdx, rax
mov rax, qword [rdx + 9]
mov qword [0x140018220], rax
lea rax, [0x140001840]
mov qword [rdx + 9], rax
mov al, 1
add rsp, 0x20
pop rbx
ret
push rbx
sub rsp, 0x40
xor eax, eax
lea rdx, [0x140006530]
xor ebx, ebx
mov qword [rsp + 0x22], rax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], bx
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov edx, dword [rax + 0x10]
add rdx, rax
mov rcx, qword [rdx + 0x14]
mov qword [0x140018210], rcx
mov rcx, qword [rdx + 0x1c]
mov qword [0x140018218], rcx
lea rcx, [0x1400017e0]
mov qword [rdx + 0x14], rbx
mov qword [rdx + 0x1c], rbx
mov qword [rsp + 0x30], rcx
lea rcx, [0x140001810]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x30]
call rax
add rsp, 0x40
pop rbx
ret
jmp 0x140001b10
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rcx + 0x28be7d34], edx
adc ebx, dword [rcx + 0x6e]
jg 0x1400a13a2
invalid
Function at 0x1400016f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140001727
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140001748
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000174a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400017a3
test ecx, ecx
jle 0x140001783
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400017a3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400017a3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400017d0
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 0x1400017f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001808
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 0x140001824
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001826
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140001860
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001907
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000189b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400018e1
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140001920
cmp rbx, rax
ja 0x1400018b0
mov r8, rdi
test rdi, rdi
je 0x140001907
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000190a
Function at 0x140001d30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001d5d
xor eax, eax
jmp 0x140001eb2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140001d88
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140001d88
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140001eb2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001ea5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140001dcb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140001df6
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 0x140001eaa
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 0x140001e65
sub eax, 1
je 0x140001e65
cmp eax, 2
jne 0x140001ea5
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 0x140001eaa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001e93
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 0x140001ea5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140001eaa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005710
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400022b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002383
cmp byte [rcx + 0x71], 0
je 0x140002383
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000237f
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 0x140002344
sub eax, 1
je 0x140002348
cmp eax, 2
jne 0x14000237f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005710
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002376
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 0x14000237f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000232c
xor al, al
jmp 0x14000232c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005710
add rsp, 0x60
pop rbx
ret
Function at 0x1400029f0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x4d0
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002bfc
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002bf3
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
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 0x140002acd
mov rdi, rsi
nop dword [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 0x140002ab0
mov ebx, r14d
mov rdi, r15
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140002afd
inc ebx
add rdi, 8
cmp ebx, 0x65
jb 0x140002ad3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002bb5
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.140004370
mov edx, 0x10
lea ecx, [rdx - 0xf]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002ba1
mov rcx, qword [0x14013e420]
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]
test eax, eax
mov eax, dword [rsp + 0x40]
setne dil
test eax, eax
je 0x140002b85
mov r8d, eax
lea rcx, [rsp + 0x48]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
je 0x140002ba1
lea rcx, str.Killed_process:__s__n
cmp qword [rsp + 0x48], r14
jne 0x140002ba8
lea rcx, str.Failed_to_kill:__s_n
lea rdx, [rsp + 0x8c]
call fcn.140002990
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002a73
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.140005710
add rsp, 0x4d0
pop rbp
ret
Function at 0x1400041e0
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x14013e420]
test rcx, rcx
je 0x140004207
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x14013e428]
test rbx, rbx
je 0x1400042ab
xor edx, edx
mov qword [rsp + 0x60], rdi
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140004253
lea r8, [rsp + 0x20]
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 [0x14013e428]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400042a6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140004294
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140004294
mov rcx, rbx
jmp 0x1400042a0
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 + 0x40]
xor rcx, rsp
call fcn.140005710
add rsp, 0x50
pop rbx
ret

Function at 0x140004370
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
xor r10d, r10d
lea rbx, [0x14013da60]
mov r11, rcx
movabs rdi, 0x22aaaa8a20000
movabs rsi, 0x71d67fffeda60000
movabs rbp, 0x555555555
lea r9d, [r10 + 1]
nop dword [rax]
nop word [rax + rax]
lea eax, [r9 - 1]
mov rcx, qword [rbx + rax*8]
mov r8, rcx
mov rax, rcx
shl rax, 0x11
shr r8, 0xc
and r8, rdi
xor r8, rax
mov rax, rcx
shr rax, 0x1d
and r8, rsi
and rax, rbp
xor r8, rax
mov eax, r9d
xor r8, rcx
lea rdx, [r11 + rax*8]
mov rcx, r8
mov rax, r8
shr rax, 0x25
and ecx, 0x7ffbf40
xor rcx, rax
inc r9d
shr rcx, 6
mov rax, r8
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, qword [r11]
add rax, r10
add r10, 0x10
xor rcx, rax
xor rcx, qword [rdx]
xor rcx, r8
mov qword [rdx], rcx
cmp r9d, 2
jb 0x1400043c0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret