joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034288
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140034280
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.140031884
or eax, 0xffffffff
jmp 0x140034282
xor eax, eax
add rsp, 0x28
ret
jmp 0x140034260

Function at 0x140034e40
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140034c64

Function at 0x140036284
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x140035fc3
call fcn.1400318f4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14002c548
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14002a0e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140035f8a
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140036031
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jb 0x140036004
cmp eax, 3
jbe 0x140036021
cmp eax, 8
je 0x140036011
cmp eax, 0x12
je 0x140036021
call fcn.1400318f4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x140035f9a
call fcn.1400318f4
mov dword [rax], listen
jmp 0x140035f9a
call fcn.1400318f4
mov dword [rax], 2
jmp 0x140035f9a
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.1400361cc
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.1400361cc
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.1400361cc
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.1400324f8
test eax, eax
jne 0x14003608f
mov rax, rdi
jmp 0x140035f9e
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14002c568
int3
jmp 0x140035f5c
Function at 0x140003950
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003984
cmp word [rcx], 0x5a4d
jne 0x140003984
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003984
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003984
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003890
test eax, eax
jne 0x1400039a0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003900
test rax, rax
je 0x140003995
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004149
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004050
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003ff0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140529a38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140529a34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044f2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044ea
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045d9
inc ebx
add rax, 0x28
jmp 0x1400044ca
mov rcx, r12
call fcn.140004cd1
mov rbp, rax
test rax, rax
jne 0x140004511
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004440
movsxd rbx, ebx
mov rax, qword [0x140529a38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d7f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140529a38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004573
mov rax, qword [0x140529a38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004440
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045d3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045d3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140529a38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004440
inc dword [0x140529a34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a00
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140529aa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140529a80]
test rbx, rbx
je 0x140004a4c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a46
test eax, eax
jne 0x140004a46
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a1e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c23
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c23
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c24
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c5e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c55
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c60
inc r8d
add rax, 0x28
jmp 0x140004c3c
xor eax, eax
ret

Function at 0x140004cd1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140525c50]
mov r8, rcx
mov rcx, r9
call fcn.140004c00
test eax, eax
je 0x140004cfd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c24
xor eax, eax
add rsp, 0x28
ret
Function at 0x140009f8c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r8d
mov rbx, rdx
xor edi, edi
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140009fea
test byte [rcx + 0x1c], 4
je 0x140009fea
cmp byte [rcx + 0x19], 5
jb 0x140009fea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xea
call fcn.140001024
lea rcx, str.SentItems
test esi, esi
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140087e60]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a06a
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a052
test byte [rcx + 0x1c], 4
je 0x14000a052
cmp byte [rcx + 0x19], 2
jb 0x14000a052
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xeb
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
jmp 0x14000a0c5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a0c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a0c3
test byte [rcx + 0x1c], 4
je 0x14000a0c3
cmp byte [rcx + 0x19], 2
jb 0x14000a0c3
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xec
mov dword [rsp + 0x20], eax
lea r8, [0x140088370]
call fcn.140001328
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a0f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebp, r8d
mov rbx, rdx
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
lea r12, [0x140088370]
cmp rcx, r15
je 0x14000a15d
test byte [rcx + 0x1c], 4
je 0x14000a15d
cmp byte [rcx + 0x19], 5
jb 0x14000a15d
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.140001024
lea rcx, str.SentItems
test ebp, ebp
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140087e60]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a1da
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a1c1
test byte [rcx + 0x1c], 4
je 0x14000a1c1
cmp byte [rcx + 0x19], 2
jb 0x14000a1c1
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14000a2c6
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a2b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x14000a285
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a237
test byte [rcx + 0x1c], 4
je 0x14000a237
cmp byte [rcx + 0x19], 5
jb 0x14000a237
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.1400011fc
lea rdx, [rsp + 0x30]
call fcn.140009eb8
test eax, eax
jne 0x14000a281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140001050
jmp 0x14000a2c6
xor eax, eax
jmp 0x14000a2be
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140001328
jmp 0x14000a2c6
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x14000a2c6
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a618
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14000a679
test byte [rcx + 0x1c], 4
je 0x14000a679
cmp byte [rcx + 0x19], 5
jb 0x14000a679
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xfa
call fcn.140001024
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a6d9
test byte [rcx + 0x1c], 4
je 0x14000a6d9
cmp byte [rcx + 0x19], 3
jb 0x14000a6d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14007e3c0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x14000a775
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a775
test byte [rcx + 0x1c], 4
je 0x14000a775
cmp byte [rcx + 0x19], 2
jb 0x14000a775
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14000a7bd
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a7bd
test byte [rcx + 0x1c], 4
je 0x14000a7bd
cmp byte [rcx + 0x19], 2
jb 0x14000a7bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088370]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.140001094
cmp ebx, 0x12
jne 0x14000a6d9
mov qword [r14], rbp
xor eax, eax
jmp 0x14000a6db
Function at 0x14000b288
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14000b2d4
test byte [rcx + 0x1c], 4
je 0x14000b2d4
cmp byte [rcx + 0x19], 5
jb 0x14000b2d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088440]
mov edx, 0x20
call fcn.140001024
mov r9d, 2
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14006aa3c
xor ebx, ebx
mov rsi, rax
test rax, rax
jne 0x14000b349
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14000b3aa
test byte [rax + 0x1c], 4
je 0x14000b3aa
cmp byte [rax + 0x19], 3
jb 0x14000b3aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rsi + 0x21]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140088440]
mov rcx, qword [rcx + 0x10]
call fcn.140001328
jmp 0x14000b3aa
lea rdx, str.NTUserName
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14000b39b
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000b39b
test byte [rcx + 0x1c], 4
je 0x14000b39b
cmp byte [rcx + 0x19], 3
jb 0x14000b39b
mov rcx, qword [rcx + 0x10]
lea r9, str.NTUserName
mov edx, 0x22
mov dword [rsp + 0x20], eax
lea r8, [0x140088440]
call fcn.140001328
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call fcn.14006b314
test eax, eax
jne 0x14000b3ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000b3ff
test byte [rcx + 0x1c], 4
je 0x14000b3ff
cmp byte [rcx + 0x19], 2
jb 0x14000b3ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088440]
mov edx, 0x23
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140001328
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000be48
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14000be9e
test byte [rcx + 0x1c], 4
je 0x14000be9e
cmp byte [rcx + 0x19], 5
jb 0x14000be9e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088440]
mov edx, 0x44
call fcn.140001024
mov rax, qword [rsi + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000bece
mov rbp, qword [rbx + 0x10]
mov rcx, r14
mov rdx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14000beec
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 8]
jne 0x14000beaa
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rdi, rdi
je 0x14000bef4
mov qword [rdi], rbx
mov rax, rbp
jmp 0x14000bed0
Function at 0x140022cac
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x60
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov esi, ebp
lea edx, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140022d12
test byte [rcx + 0x1c], 4
je 0x140022d12
cmp byte [rcx + 0x19], 5
jb 0x140022d12
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
lea r8, str._j_
call fcn.140001024
call fcn.14006d118
lea rax, [0x140087e50]
mov qword [0x14009f060], rbp
lea rbx, [0x14009f050]
mov qword [0x14009f078], rax
mov qword [0x14009b028], rbx
lea rdi, [0x14009f078]
mov qword [0x14009f050], rbp
mov qword [0x14009f068], 1
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rcx, [0x140021f10]
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r8
lea rdi, [rdi + 8]
mov qword [rsp + 0x50], rbp
mov r9d, 1
mov qword [rsp + 0x28], rbp
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
nop dword [rax + rax]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140022d53
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140022dea
test byte [rax + 0x1c], 4
je 0x140022dea
cmp byte [rax + 0x19], 5
jb 0x140022dea
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rbx + 0x18]
mov r9d, eax
lea r8, str._j_
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov ecx, 1
call qword [sym.imp.GDI32.dll_EnableEUDC]
nop dword [rax + rax]
test eax, eax
je 0x140022e5a
lea rcx, section..data
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x140022e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rbx, qword [0x14009b028]
cmp rbx, r14
je 0x140022ebd
test byte [rbx + 0x1c], 4
je 0x140022e8e
cmp byte [rbx + 0x19], 2
jb 0x140022e8e
mov rcx, qword [rbx + 0x10]
lea r8, str._j_
mov edx, 0x19
mov r9d, eax
call fcn.140001050
jmp 0x140022e87
mov rbx, qword [0x14009b028]
cmp rbx, r14
je 0x140022ebd
test byte [rbx + 0x1c], 4
je 0x140022e8e
cmp byte [rbx + 0x19], 2
jb 0x140022e8e
mov rcx, qword [rbx + 0x10]
lea r8, str._j_
mov edx, 0x1a
call fcn.140001024
mov rbx, qword [0x14009b028]
cmp rbx, r14
je 0x140022ebd
jmp 0x140022eb1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140022eae
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
nop dword [rax + rax]
mov qword [rbx + 8], rbp
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140022e95
mov qword [0x14009b028], r14
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [0x14009f524], eax
add eax, ebx
jne 0x140022eee
mov rcx, qword [0x14009bd40]
cmp rcx, rbx
je 0x140022eee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [0x14009bd40], rbx
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140023854
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14002389d
test byte [rcx + 0x1c], 4
je 0x14002389d
cmp byte [rcx + 0x19], 5
jb 0x14002389d
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2b
call fcn.140001024
mov r9d, 0x2001f
lea rdx, str.SoftwareMicrosoftFaxReceipts
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006aa3c
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140023915
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140023a1c
test byte [rax + 0x1c], 4
je 0x140023a1c
cmp byte [rax + 0x19], 2
jb 0x140023a1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rdi + 0x2c]
mov r9d, eax
lea r8, str._j_
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140023a1c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140077968
mov rbx, rax
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1400239e9
test eax, eax
je 0x14002399f
test rbx, rbx
lea r8, [0x140087e38]
mov rcx, rdi
cmovne r8, rbx
call fcn.140077590
test eax, eax
jne 0x1400239e9
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14002399f
test byte [rax + 0x1c], 4
je 0x14002399f
cmp byte [rax + 0x19], 2
jb 0x14002399f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, str._j_
mov r9d, eax
mov edx, 0x2d
mov rcx, qword [rcx + 0x10]
call fcn.140001050
lea rdx, str.Password
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400239e9
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x1400239e9
test byte [rcx + 0x1c], 4
je 0x1400239e9
cmp byte [rcx + 0x19], 2
jb 0x1400239e9
mov rcx, qword [rcx + 0x10]
lea r8, str._j_
mov edx, 0x2e
mov r9d, eax
call fcn.140001050
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x140023a1c
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x140023a01
add rcx, rcx
xor eax, eax
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.140066f24
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140024d3c
Capabilities:
Listen for remote procedure calls

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
sub rsp, 0x20
mov rcx, qword [0x14009b028]
lea rsi, [0x14009b028]
lea rbp, str._j_
cmp rcx, rsi
je 0x140024d82
test byte [rcx + 0x1c], 4
je 0x140024d82
cmp byte [rcx + 0x19], 5
jb 0x140024d82
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, rbp
call fcn.140001024
call fcn.140024b10
mov ebx, eax
test eax, eax
je 0x140024dc0
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x140024db9
test byte [rcx + 0x1c], 4
je 0x140024db9
cmp byte [rcx + 0x19], 2
jb 0x140024db9
mov edx, 0x64
mov r9d, eax
mov rcx, qword [rcx + 0x10]
mov r8, rbp
call fcn.140001050
mov eax, ebx
jmp 0x140024f12
call fcn.14006bd84
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x140024e76
cmp eax, 0x20
je 0x140024e76
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140024e76
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x140024e24
test byte [rcx + 0x1c], 4
je 0x140024e24
cmp byte [rcx + 0x19], 2
jb 0x140024e24
mov rcx, qword [rcx + 0x10]
mov edx, 0x65
mov r9d, eax
mov r8, rbp
call fcn.140001050
xor edx, edx
lea rcx, [0x140084770]
lea r8d, [rdx + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
nop dword [rax + rax]
test eax, eax
je 0x140024db9
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x140024db9
test byte [rcx + 0x1c], 4
je 0x140024db9
cmp byte [rcx + 0x19], 2
jb 0x140024db9
mov edx, 0x66
mov r9d, eax
jmp 0x140024dad
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140024f10
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x140024ec1
test byte [rcx + 0x1c], 4
je 0x140024ec1
cmp byte [rcx + 0x19], 2
jb 0x140024ec1
mov rcx, qword [rcx + 0x10]
mov edx, 0x67
mov r9d, eax
mov r8, rbp
call fcn.140001050
xor edx, edx
lea rcx, [0x140084770]
lea r8d, [rdx + 1]
call qword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
nop dword [rax + rax]
test eax, eax
je 0x140024db9
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x140024db9
test byte [rcx + 0x1c], 4
je 0x140024db9
cmp byte [rcx + 0x19], 2
jb 0x140024db9
mov edx, 0x68
jmp 0x140024e6e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret