joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406c7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c706f
add dl, dl
jne 0x1406c7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c70f6
xor eax, eax
add dl, dl
jne 0x1406c70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c71ad
add dl, dl
jne 0x1406c70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c707e
mov eax, 1
add dl, dl
jne 0x1406c7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c70fb
sub eax, ebx
mov ebx, 1
jne 0x1406c714c
mov ecx, 1
add dl, dl
jne 0x1406c712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c715d
cmp eax, 0x7d00
jae 0x1406c719b
cmp eax, 0x500
jb 0x1406c7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c707e
cmp eax, 0x7f
ja 0x1406c719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140676058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406761df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140676089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067606f
add dl, dl
jne 0x140676096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406760f6
xor eax, eax
add dl, dl
jne 0x1406760a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406761ad
add dl, dl
jne 0x1406760b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406760c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406760d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406760dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406760ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14067607e
mov eax, 1
add dl, dl
jne 0x140676106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140676113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406760fb
sub eax, ebx
mov ebx, 1
jne 0x14067614c
mov ecx, 1
add dl, dl
jne 0x14067612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140676123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140676168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140676175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067615d
cmp eax, 0x7d00
jae 0x14067619b
cmp eax, 0x500
jb 0x140676196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067607e
cmp eax, 0x7f
ja 0x14067619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406761d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14067607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004097a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004097b0]
mov dword [rax], 1
mov rax, qword [0x004097c0]
mov dword [rax], 1
mov rax, qword [0x00409740]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00409790]
mov dword [0x0040c020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00409870]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x00409850]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004096f0]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x401890
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040c0b4]
test esi, esi
mov rbx, rcx
jle 0x401a30
mov rax, qword [0x0040c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40194b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4019d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401930
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401a52
mov rax, qword [0x0040c0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4019ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4019e0
add dword [0x0040c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0040c0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4019ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401958
mov rax, qword [0x0040c0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c100]
test rbx, rbx
je 0x40204c
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 0x402043
test eax, eax
jne 0x402043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402028
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402290
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x4022dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x4022d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4022df
add rax, 0x28
cmp rax, r9
jne 0x4022c0
xor eax, eax
ret

Function at 0x4022e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x402370
mov rdx, qword [0x00409740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40235e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40235e
cmp word [rax + 0x18], 0x20b
jne 0x40235e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x402370
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x402349
add rbx, 0x28
cmp rbx, rdi
je 0x402370
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x402340
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x00409740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4023a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x4023fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4023f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4023a0
add rax, 0x28
cmp rax, r9
jne 0x4023e0
xor eax, eax
ret

Function at 0x402400
Capabilities:
Parse pe header

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

Function at 0x402440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00409740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402460
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x4024b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4024a7
test rcx, rcx
je 0x402460
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x402498
xor eax, eax
ret

Function at 0x4024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4024df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4024e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x402500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00409740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402520
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x402520
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402574
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402580
add rdx, 0x28
cmp rdx, r9
jne 0x402560
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x00409740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4025b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4025c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4025b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4025b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x4025b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x402615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402628
add rdx, 0x28
cmp r10, rdx
jne 0x402600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40261e
test ecx, ecx
jg 0x402630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140007960
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ebx, ecx
mov rsi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
xor edi, edi
call fcn.14002b360
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov dword [rsp + 0x20], 0x130
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400079d5
cmp dword [rsp + 0x28], ebx
je 0x1400079d1
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400079b7
jmp 0x1400079d5
mov edi, dword [rsp + 0x40]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140023220
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000c2b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140051fd0]
mov rbx, rcx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x30], rax
mov rax, qword [0x140051fc8]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx + 0xc]
add rax, 0x10
cmp rax, qword [0x140053d20]
mov qword [rsp + 0x78], rax
ja 0x14000c38c
cmp qword [0x140051fe0], 0xffffffffffffffff
jne 0x14000c307
mov eax, 0xfffffffd
add rsp, 0x60
pop rbx
ret
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x140053d18]
mov rdx, rbx
call fcn.140023560
mov rax, qword [0x140051fd0]
mov rcx, qword [0x140051fe0]
xor r11d, r11d
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
lea r8d, [r11 + 8]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c397
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000c397
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
add rsp, 0x60
pop rbx
ret
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14000c3d4
mov rcx, qword [0x140051fe0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
lea rcx, [0x140053e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
mov rcx, qword [0x140051fc8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140051fe0]
test eax, eax
je 0x14000c3b8
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea rcx, [0x140053e68]
test eax, eax
je 0x14000c3c5
mov eax, dword [rsp + 0x70]
neg eax
sbb ebx, ebx
neg ebx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [rbx - 1]
add rsp, 0x60
pop rbx
ret
Function at 0x14000e910
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140051fe0], 0xffffffffffffffff
je 0x14000e9af
cmp qword [0x140051fe8], 0xffffffffffffffff
jne 0x14000e9af
test rbx, rbx
je 0x14000e9af
mov rcx, qword [0x140051fc8]
mov qword [0x140053d48], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140051fc0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140051fb8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x48]
lea r8, [0x14000d480]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.140025024
test rax, rax
jne 0x14000e9c5
mov rcx, qword [0x140051fc0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [0x140051fe8], 0xffffffffffffffff
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140051fb8]
or edx, 0xffffffff
mov qword [0x140051fe8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140053e90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000ec40
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1f0fff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000ecf2
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ece9
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000ece3
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140023220
add rsp, 0x60
pop rbx
ret
Function at 0x14000ee10
Capabilities:
Create service
Start service

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140050808]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
xor bl, bl
call fcn.14000f660
lea r8, str.system32drivers_s.sys
lea rcx, [rsp + 0x70]
mov r9, rdi
mov edx, 0x104
call fcn.140025294
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x14000ee70
or eax, 0xffffffff
jmp 0x14000ef4e
xor eax, eax
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c0], r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov r12d, 1
lea rax, str.PNP_TDI
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov r8, rdi
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x14000eee9
mov rcx, rbp
jmp 0x14000ef06
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
je 0x14000ef23
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
mov rcx, rdi
call fcn.14000f120
mov r12, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1b8]
neg bl
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140023220
add rsp, 0x190
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000ef70
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dl, 1
mov rdi, rcx
xor bl, bl
call fcn.14000f120
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x14000efda
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14000efd1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
neg bl
mov rbx, qword [rsp + 0x30]
sbb eax, eax
neg eax
dec eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000f000
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r9
mov rsi, r8
mov rbp, rdx
test cl, cl
je 0x14000f0b3
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r8
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000f05d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000f0fe
mov ecx, dword [rsi]
add rcx, 4
call fcn.140024848
mov rcx, qword [rbx]
mov qword [rbp], rax
test rax, rax
je 0x14000f050
lea r9, [rsp + 0x40]
lea rdx, str.PNP_TDI
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test eax, eax
je 0x14000f0f0
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp]
call fcn.140023894
mov qword [rbp], rdi
xor al, al
jmp 0x14000f0fe
mov eax, dword [r8]
cmp eax, 4
jbe 0x14000f0c2
shr eax, 2
dec eax
jmp 0x14000f0c4
mov eax, edi
mov rcx, qword [rdx]
lea rdx, str.PNP_TDI
mov r9d, 3
mov dword [rcx], eax
mov eax, dword [r8]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret