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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8745e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d853648
mov rax, qword [0x6d8745e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d85350c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d853595
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8534f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d85367d
mov rax, qword [0x6d8745e8]
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 [0x6d8745e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d853660
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d85358e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8535f0
add dword [0x6d8745e4], 1
cmp edi, 8
jae 0x6d8535c3
test dil, 4
jne 0x6d853634
test edi, edi
je 0x6d8535b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d85364f
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 0x6d8535b8
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 0x6d8535dc
jmp 0x6d8535b8
add rsi, qword [0x6d8745e8]
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 0x6d85358e
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 0x6d8535b8
xor esi, esi
jmp 0x6d853517
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8535b8
mov rax, qword [0x6d8745e8]
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 0x6d853dd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8748c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8748a0]
test rbx, rbx
je 0x6d853e24
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 0x6d853e1b
test rsi, rsi
je 0x6d853e1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d853e00
lea rcx, [0x6d8748c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d854060
Capabilities:
Parse pe header

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

Function at 0x6d854080
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 0x6d8540c1
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 0x6d8540b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8540c3
add rax, 0x28
cmp rax, r9
jne 0x6d8540a4
xor eax, eax
ret

Function at 0x6d854160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8711f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8541cd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8541cd
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 0x6d8541cd
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 0x6d8541c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8541cf
add rax, 0x28
cmp rax, r9
jne 0x6d8541b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8542d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8711f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8542f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8542e8
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 0x6d85434d
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 0x6d854344
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d854354
add rax, 0x28
cmp rax, r9
jne 0x6d854330
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d854370
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8711f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8543de
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8543de
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8543de
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8543de
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 0x6d8543d5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8543e5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8543c0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8543f8
jmp 0x6d8543de
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d854406
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8543de
test r9d, r9d
jg 0x6d8543f0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d854770
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 0x140004de6
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140004373
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x1400356a8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x1400356a8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140004f31
mov qword [rbp - 0x40], 0x321
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x28]
cmp rdx, rax
jb 0x140004ea7
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000ec03
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [fcn.1400328f0]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call fcn.140004b97
mov qword [rbp - 0x40], 0xb
lea rax, [0x1400356a8]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140004f0b
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140004f24
call fcn.14000fbb1
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140004e65
nop
mov qword [rbp - 0x40], 0x327
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov ecx, 1
mov rax, qword [fcn.1400328f0]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400356ed]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x328
lea rax, str._home_usaid_.choosenim_toolchains_nim_1.6.4_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [fcn.1400328f0]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x18], eax
call fcn.1400043f2
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x140006d91
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x140006dc0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140006d53
mov rcx, rax
jmp 0x140006dc5
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000f390
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14002cbd0
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 fcn.1400328f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400328f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14002cc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400536b4]
mov r12, rcx
test ebx, ebx
jle 0x14002cd70
mov rax, qword [0x1400536b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14002cc8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14002cd15
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14002cc70
mov rcx, r12
call fcn.14002d6c0
mov rsi, rax
test rax, rax
je 0x14002cd92
mov rax, qword [0x1400536b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14002d7f0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400536b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002cd77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002cd0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14002cd20
add dword [0x1400536b4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400536b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002cd0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14002cbd0
nop dword [rax]
xor ebx, ebx
jmp 0x14002cc98
mov rax, qword [0x1400536b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14002cbd0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14002cbd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14002d310
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140053720]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140053700]
test rbx, rbx
je 0x14002d36c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14002d363
test r12, r12
je 0x14002d363
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002d348
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14002d6c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140039d60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002d6e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002d6e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002d6e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14002d735
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14002d72c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14002d6e0
add rax, 0x28
cmp rax, r9
jne 0x14002d718
xor eax, eax
ret

Function at 0x14002d740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140039d60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14002d760
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14002d768
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14002d760
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14002d7f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140039d60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14002d810
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14002d818
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140002800
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov dword [rsp + 0x58], r9d
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002857
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1400028a2
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov rdx, rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400028cd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1400028cd
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009ed0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140003cd0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop
mov rdx, rdi
lea rcx, [rsp + 0x6c]
call fcn.14001032c
test eax, eax
je 0x140003d9d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003d20
xor ebx, ebx
lea r9, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EventRegister]
mov dword [rsp + 0x28], 0x100104be
mov dword [rsp + 0x2c], 0x30202
mov qword [rsp + 0x30], rbx
test eax, eax
jne 0x140003da0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_EventWrite]
test eax, eax
jne 0x140003da0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x140003da0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140009ed0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003dd0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14000cbc0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006fb0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140003e52
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140003e52
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140009ed0
add rsp, 0x250
pop rbx
ret
Function at 0x140003e70
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov dword [rsp + 0x44], 4
lea rax, [r11 - 0x24]
mov dword [rsp + 0x40], ebp
mov qword [r11 - 0x38], rax
lea rdx, str.SOFTWAREOEMQuick_Access
lea rax, [r11 - 0x28]
mov dword [rsp + 0x48], ebp
mov rsi, rcx
mov qword [r11 - 0x40], rax
mov r8, rcx
mov qword [r11 - 0x48], rbp
lea r9d, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003f05
xor r9d, r9d
lea rdx, str.SOFTWAREOEMQuick_Access
mov r8, rsi
call fcn.140002800
test eax, eax
jne 0x140003f10
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14000b280
cmp dword [rsp + 0x40], ebp
jbe 0x140003f10
mov dil, 1
jmp 0x140003f13
xor dil, dil
mov qword [rsp + 0x30], rbp
lea rdx, str.SOFTWAREOEMMetadataQuick_Access_Features
mov qword [rsp + 0x28], rbp
mov r9d, 0xffff
mov r8, rsi
mov qword [rsp + 0x20], rbp
mov rcx, 0xffffffff80000002
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140003fc1
lea rax, [rsp + 0x44]
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREOEMMetadataQuick_Access_Features
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rax
mov r9d, 0x10
mov r8, rsi
mov qword [rsp + 0x20], rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003fb5
xor r9d, r9d
lea rdx, str.SOFTWAREOEMMetadataQuick_Access_Features
mov r8, rsi
call fcn.140002800
test eax, eax
jne 0x140003fbf
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14000b280
cmp dword [rsp + 0x40], ebp
jbe 0x140003fbf
mov bl, 1
jmp 0x140003fc1
xor bl, bl
test dil, dil
je 0x140003fcc
mov al, 1
test bl, bl
jne 0x140003fd0
movzx eax, bpl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009ed0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004000
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
mov rbp, rcx
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140004079
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_get_file_version_info_size.___d_
mov edx, 0x40
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140001100
mov rcx, qword [0x140046b98]
test rcx, rcx
je 0x140004072
lea r9, [rsp + 0x30]
mov edx, 2
lea r8, str.get_os_version
call fcn.1400028f0
xor al, al
jmp 0x140004165
mov rcx, rsi
mov qword [rsp + 0xf0], rbx
call fcn.14000a4e4
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rbx
test eax, eax
jne 0x1400040db
call fcn.140009ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_get_file_version_info.___d_
mov edx, 0x40
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140001100
mov rcx, qword [0x140046b98]
test rcx, rcx
je 0x14000412b
lea r9, [rsp + 0x30]
jmp 0x14000411a
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
lea rdx, [0x14003cb38]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x14000412f
mov rcx, rbx
call fcn.140009ef4
mov rcx, qword [0x140046b98]
test rcx, rcx
je 0x14000412b
lea r9, str.Failed_to_query_version_value.
lea r8, str.get_os_version
mov edx, 2
call fcn.1400028f0
xor al, al
jmp 0x14000415d
mov rcx, qword [rsp + 0x20]
movzx eax, word [rcx + 0x12]
mov word [rdi], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 2], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 4], ax
movzx eax, word [rcx + 0x14]
mov rcx, rbx
mov word [rdi + 6], ax
call fcn.140009ef4
mov al, 1
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140009ed0
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004180
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x1250
call fcn.14000a8a0
sub rsp, rax
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov r14, rcx
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x28]
xor edi, edi
shr ebp, 2
test ebp, ebp
je 0x1400042f5
mov qword [rsp + 0x1268], rsi
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x1260], rbx
nop dword [rax]
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x14003d410]
lea rcx, [rsp + 0x1044]
xor edx, edx
mov dword [rsp + 0x1040], eax
mov r8d, 0x1f4
movaps xmmword [rsp + 0x1030], xmm0
call fcn.14000cbc0
mov r8d, dword [rsi]
test r8d, r8d
je 0x140004277
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140004277
lea r9, [rsp + 0x2c]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140004277
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x1030]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
lea rcx, [rsp + 0x1030]
mov r9, r14
sub r9, rcx
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x1400042a6
add rcx, 2
test edx, edx
jne 0x140004290
test r8d, r8d
je 0x1400042f1
inc edi
add rsi, 4
cmp edi, ebp
jb 0x1400041f0
xor al, al
mov rbx, qword [rsp + 0x1260]
mov rsi, qword [rsp + 0x1268]
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140009ed0
lea r11, [rsp + 0x1250]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov al, 1
jmp 0x1400042bb
xor al, al
jmp 0x1400042cb