joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ca40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47cb0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403340
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47caef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004df5e0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044e220
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0047e3a0
inc rbx
cmp rcx, rbx
jae 0x47cade
mov edi, 1
lea rsi, [0x004df5e0]
call fcn.0044e300
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0052fa18]
lea rsi, [0x0052f280]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00467700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047ca40

Function at 0x4946e0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x494e1f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x49470d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x494991
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4949bd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x005311c0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004df4e0]
lea rbx, [0x0052f7f0]
call fcn.00437560
inc rax
cmp rax, r8
jge 0x4949e2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x494a17
lea rdi, [0x004df560]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x494703
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4949fb
jmp 0x4949d0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00467700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004946e0

Function at 0x494fc0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x494fd7
inc rax
cmp rax, 4
jge 0x494fef
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x494fd4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x495000
inc rax
cmp rax, 4
jge 0x49500e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x495037
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49501b
jmp 0x494ffd
Function at 0x4acf60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4ad0ae
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x005d18f0]
call fcn.00495240
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [0x004ad0c0]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call fcn.00403340
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4ad072
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x4ad0a8
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4ad09d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call fcn.00469aa0
call fcn.00469a20
nop
call fcn.00467700
jmp fcn.004acf60
Function at 0x10005c88c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100082b00], rdi
je 0x10005c8ec
cmp rax, rdi
jne 0x10005c8df
mov r12d, 1
jmp 0x10005c8ec
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005c8c5
mov eax, dword [0x100082af8]
cmp eax, 1
jne 0x10005c901
lea ecx, [rax + 0x1e]
call fcn.100134000
jmp 0x10005c968
mov eax, dword [0x100082af8]
cmp eax, ebx
jne 0x10005c95e
mov dword [0x100082af8], 1
lea r13, [0x100001cb0]
lea rdi, [0x100001c98]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10005c950
cmp eax, ebx
jne 0x10005c950
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10005c945
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10005c92e
cmp eax, ebx
je 0x10005c968
mov eax, 0xff
jmp 0x10005cab0
mov dword [0x100081a4c], 1
mov eax, dword [0x100082af8]
cmp eax, 1
jne 0x10005c990
lea rdx, [0x100001c90]
lea rcx, [0x100001b90]
call sub.msvcrt.dll__initterm
mov dword [0x100082af8], 2
cmp r12d, ebx
jne 0x10005c99f
mov rax, rbx
xchg qword [0x100082b00], rax
cmp qword [0x100082b18], rbx
je 0x10005c9c7
lea rcx, [0x100082b18]
call fcn.10005d32c
cmp eax, ebx
je 0x10005c9c7
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100082b18]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10005c9dd
mov eax, 0xff
jmp 0x10005cab0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10005ca62
cmp word [rcx], bx
je 0x10005c9f8
cmp edx, ebx
jne 0x10005ca62
cmp word [rcx], bx
je 0x10005ca0e
cmp word [rcx], 0x20
ja 0x10005ca0e
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10005c9f8
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100018f40
mov dword [0x100081a48], eax
cmp dword [0x100081a2c], ebx
jne 0x10005ca4c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100081a4c], ebx
jne 0x10005ca60
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100081a48]
jmp 0x10005cab0
cmp word [rcx], 0x22
jne 0x10005ca75
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10005c9e9
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10005d440
add rsp, 0x28
jmp 0x10005c88c
Function at 0x39db51b11
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
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 rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
test eax, eax
jne 0x39db51b56
mov eax, 0
jmp 0x39db51c32
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
mov eax, eax
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x28]
cmp dword [rbp - 4], eax
jge 0x39db51c2d
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov ecx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov ecx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
add rax, rdx
movzx eax, word [rax]
mov word [rbp - 0x32], ax
movzx eax, word [rbp - 0x32]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov ecx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x38], eax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x39db51c24
mov edx, dword [rbp - 0x38]
mov rax, qword [rbp + 0x10]
add rax, rdx
jmp 0x39db51c32
add dword [rbp - 4], 1
jmp 0x39db51b81
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x39db51ea0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x39db51f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x39db8e054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x39db520c0
mov rax, qword [0x39db8e058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x39db51f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x39db51fe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x39db51f40
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x39db5211d
mov rax, qword [0x39db8e058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x39db8e058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x39db52102
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x39db51fe0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x39db52070
add dword [0x39db8e054], 1
cmp ebx, 8
jae 0x39db52018
test bl, 4
jne 0x39db520d0
test ebx, ebx
je 0x39db52009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x39db520f0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x39db52009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x39db5204a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x39db8e058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x39db51fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x39db51f67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x39db52009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x39db52009
mov rax, qword [0x39db8e058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x39db52420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x39db8e080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x39db8e060]
test rbx, rbx
je 0x39db52474
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x39db5246b
test r12, r12
je 0x39db5246b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x39db52450
lea rcx, [0x39db8e080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x39db526a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x39db526b0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x39db526c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x39db52705
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x39db526fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x39db52707
add rax, 0x28
cmp rax, r9
jne 0x39db526e8
xor eax, eax
ret

Function at 0x39db527b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x39db8b200]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x39db52829
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x39db52829
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x39db52826
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x39db5281d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x39db52829
add r8, 0x28
cmp r8, r9
jne 0x39db52808
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x39db52910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x39db8b200]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x39db5297f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x39db5297f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x39db5297d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x39db52974
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x39db52988
add rax, 0x28
cmp rax, r9
jne 0x39db52960
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x39db529a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x39db8b200]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x39db52a18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x39db52a18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x39db52a18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x39db52a18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x39db52a0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x39db52a20
add rdx, 0x28
cmp rdx, r10
jne 0x39db529f8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x39db52a30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x39db52a3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x39db52a15
test r8d, r8d
jg 0x39db52a28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140005ae0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140005b74
lea r8d, [rbx + 4]
mov qword [rsp + 0x80], rsi
lea rdx, [0x1400909c0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005b63
lea rax, [rsp + 0x30]
xor edx, edx
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov rcx, rsi
cmovne ebx, dword [rsp + 0x54]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007ded0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140005ba0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
cmp qword [rcx + 0x18], 0xf
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
jbe 0x140005bef
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov rdx, rcx
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140005c52
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14007ded0
add rsp, 0xf8
ret
Function at 0x140005c70
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.140005ae0
mov ebx, eax
test eax, eax
je 0x140005ddd
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, Ordinal_50
lea rdx, str.C:WindowsSystem32_bp.exe__accepteula__nobanner
lea rcx, [rsp + 0x48]
call fcn.14000c440
nop
lea r10, [rsp + 0x7d]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r10], bl
mov ebx, edx
test edx, edx
jne 0x140005cd0
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x7d]
mov rdx, r10
lea rcx, [rsp + 0x28]
call fcn.1400108c0
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14000aa50
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140005d6f
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e16c
lea rcx, [rsp + 0x48]
call fcn.140005ba0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, reloc.WLDAP32.dll_Ordinal_200
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005e1a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005dd6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e16c
jmp 0x140005e1a
lea rcx, [0x1400909fc]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, [0x140090a00]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14000b670
lea rdx, [0x14000b840]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14007ded0
add rsp, 0x90
pop rbx
ret
Function at 0x140005e40
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.140005ae0
mov ebx, eax
test eax, eax
je 0x140005f8c
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, gethostname
lea rdx, str.C:WindowsSystem32_bp.exe__accepteula__r__nobanner
lea rcx, [rsp + 0x48]
call fcn.14000c440
nop
lea r10, [rsp + 0x7d]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r10], bl
mov ebx, edx
test edx, edx
jne 0x140005ea0
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x7d]
mov rdx, r10
lea rcx, [rsp + 0x28]
call fcn.1400108c0
nop
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14000aa50
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140005f3f
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e16c
lea rcx, [rsp + 0x48]
call fcn.140005ba0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005fc9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e16c
jmp 0x140005fc9
lea rcx, [0x1400909fc]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, [0x140090a00]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14000b670
lea rdx, [0x14000b840]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14007ded0
add rsp, 0x90
pop rbx
ret