joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400107b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405b7694]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010940
mov rax, qword [0x1405b7698]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400107fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010885
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400107e0
mov rcx, rdi
call fcn.140011310
test rax, rax
mov r12, rax
je 0x140010992
mov rax, qword [0x1405b7698]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011450
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405b7698]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010975
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001087e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400108f0
add dword [0x1405b7694], 1
cmp ebx, 8
jae 0x1400108b1
test bl, 4
jne 0x140010950
test ebx, ebx
je 0x1400108a6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010964
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400108a6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400108ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1405b7698]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001087e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010740
xor esi, esi
jmp 0x140010807
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400108a6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400108a6
mov rax, qword [0x1405b7698]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010740
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010740
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140010f60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405b7700]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405b76e0]
test rbx, rbx
je 0x140010fb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140010fab
test rsi, rsi
je 0x140010fab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010f90
lea rcx, [0x1405b7700]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b2290]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001137f
mov rcx, r9
call fcn.1400111e0
test eax, eax
je 0x14001137f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001137d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011374
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001137f
add rdx, 0x28
cmp rdx, r9
jne 0x140011360
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x6d7d2850
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d29d8
mov rax, qword [0x6d7f35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d289c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d2925
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d2880
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d2a0d
mov rax, qword [0x6d7f35e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d29f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d291e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d2980
add dword [0x6d7f35e4], 1
cmp edi, 8
jae 0x6d7d2953
test dil, 4
jne 0x6d7d29c4
test edi, edi
je 0x6d7d2948
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d29df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d2948
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d296c
jmp 0x6d7d2948
add rsi, qword [0x6d7f35e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d291e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d2948
xor esi, esi
jmp 0x6d7d28a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d2948
mov rax, qword [0x6d7f35e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d3160
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f38a0]
test rbx, rbx
je 0x6d7d31b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d31ab
test rsi, rsi
je 0x6d7d31ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d3190
lea rcx, [0x6d7f38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d33f0
Capabilities:
Parse pe header

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

Function at 0x6d7d3410
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 0x6d7d3451
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d3448
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d3453
add rax, 0x28
cmp rax, r9
jne 0x6d7d3434
xor eax, eax
ret

Function at 0x6d7d34f0
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d3660
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d3680
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d3678
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d36dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d36d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d36e4
add rax, 0x28
cmp rax, r9
jne 0x6d7d36c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d3700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d376e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d376e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d376e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d376e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d3765
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d3775
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d3750
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d3788
jmp 0x6d7d376e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d3796
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d376e
test r9d, r9d
jg 0x6d7d3780
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d3ad0
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
nop
nop
nop
nop
nop
nop
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140a0ef78
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a0f0ff
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 0x140a0efa9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0ef8f
add dl, dl
jne 0x140a0efb6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0f016
xor eax, eax
add dl, dl
jne 0x140a0efc5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0f0cd
add dl, dl
jne 0x140a0efd6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0efe3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0eff0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0effd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a0f00a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a0ef9e
mov eax, 1
add dl, dl
jne 0x140a0f026
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a0f033
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0f01b
sub eax, ebx
mov ebx, 1
jne 0x140a0f06c
mov ecx, 1
add dl, dl
jne 0x140a0f04e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0f05b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0f043
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0ef9e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a0f088
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0f095
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0f07d
cmp eax, 0x7d00
jae 0x140a0f0bb
cmp eax, 0x500
jb 0x140a0f0b6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0ef9e
cmp eax, 0x7f
ja 0x140a0f0be
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0ef9e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a0f0f2
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 0x140a0ef9e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005730
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rcx]
test rbx, rbx
je 0x1400057d2
cmp qword [rbx], 0
je 0x1400057b7
lea rcx, [0x1400184f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
test rax, rax
je 0x1400057bd
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
test rax, rax
je 0x1400057bd
mov qword [rsp + 0x28], 0
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rbx + 8], 0
jne 0x1400057d2
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140006ca0
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x160
mov rbx, rdx
lea rsi, [rax + 0x18]
mov rdi, rcx
call fcn.14000d070
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x60]
xor esi, esi
mov r9, rbx
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
or rcx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x178], esi
je 0x140006d59
lea rdx, [rdi + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rbx, rax
test rax, rax
je 0x140006d64
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea ecx, [rsi + 1]
mov dword [rsp + 0x30], esi
lea edx, [rsi + 4]
mov word [rsp + 0x28], cx
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0x160
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add rsp, 0x160
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007420
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x40]
call fcn.140006f30
nop
mov ebx, eax
test eax, eax
jne 0x140007544
mov dword [rsp + 0x180], 0x100
lea rax, [rsp + 0x190]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
nop
test eax, eax
jne 0x14000751c
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140007420
nop
mov ebx, eax
test eax, eax
jne 0x140007544
mov dword [rsp + 0x180], 0x100
lea rax, [rsp + 0x190]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
nop
test eax, eax
je 0x1400074c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007532
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.140005730
nop
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000755a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rsp + 0x40], rbp
mov eax, ebx
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009d80
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x240
cmp dword [rcx + 0x178], 0
mov rbx, rcx
jne 0x140009deb
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1f8
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x180]
lea rdx, [rsp + 0x40]
mov ecx, 2
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x68
mov dword [rsp + 0x50], 0
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov rcx, qword [rbx + 0x180]
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
add rsp, 0x240
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x250], rdi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x140009e2f
lea rdx, str.Couldnt_open_service_manager
lea rcx, [0x140029b38]
call fcn.14000fbe0
mov rdi, qword [rsp + 0x250]
add rsp, 0x240
pop rbx
ret
lea rdx, [rbx + 0x50]
mov r8d, 0x10020
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x140009e77
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.Couldnt_open_service
lea rcx, [0x140029b38]
call fcn.14000fbe0
mov rdi, qword [rsp + 0x250]
add rsp, 0x240
pop rbx
ret
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
lea rdx, str.Sending_service_manager_STOP
lea rcx, [0x140029b38]
call fcn.14000fab0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x250]
add rsp, 0x240
pop rbx
ret

Function at 0x140009fe0
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call fcn.1400064e0
test eax, eax
jne 0x140009ffd
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x58], rdi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x14000a025
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
lea rdx, [rbx + 0x50]
mov qword [rsp + 0x50], rsi
mov r8d, 0x10020
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x14000a060
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x58]
test ebx, ebx
setne al
add rsp, 0x40
pop rbx
ret
Function at 0x14000b720
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x228
xor edx, edx
lea r8, str.VRAY_FOR_MAYA2023_DRPORT
mov eax, edx
movzx ecx, byte [rax + r8]
test cl, cl
je 0x14000b74c
mov byte [rsp + rax + 0x20], cl
inc edx
inc rax
cmp rax, 0x1ff
jl 0x14000b732
movsxd rax, edx
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14000b772
mov eax, dword [section..data]
add rsp, 0x228
ret
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [section..data]
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x228
ret
Function at 0x14000c580
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov ecx, dword [0x140029e00]
xor ebp, ebp
mov edi, ebp
test ecx, ecx
jle 0x14000c603
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov esi, ebp
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [0x140029e08]
add rbx, rsi
cmp qword [rbx], rbp
je 0x14000c5ef
mov dword [rsp + 0x30], ebp
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x30], 0x103
jne 0x14000c5e6
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x140029e00]
mov qword [rbx], rbp
inc edi
add rsi, 0x30
cmp edi, ecx
jl 0x14000c5b0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret