joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c93858d0
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 fcn.2c9392130
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2c9392130
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2c9385940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c9436614]
test esi, esi
mov rbx, rcx
jle 0x2c9385a70
mov rax, qword [0x2c9436618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c938598b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c9385a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c9385970
mov rcx, rbx
call fcn.2c93861a0
test rax, rax
mov rdi, rax
je 0x2c9385a92
mov rax, qword [0x2c9436618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2c93862e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2c9436618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c9385a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2c9385a0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2c9385a20
add dword [0x2c9436614], 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 [0x2c9436618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c9385a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c93858d0
nop dword [rax]
xor esi, esi
jmp 0x2c9385998
mov rax, qword [0x2c9436618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2c93858d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2c93858d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2c9385e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c9436640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c9436620]
test rbx, rbx
je 0x2c9385e6c
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 eax, eax
jne 0x2c9385e63
test rsi, rsi
je 0x2c9385e63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c9385e48
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 0x2c93861a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2c94186b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2c93861c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2c93861c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c93861c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2c938621d
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 0x2c9386214
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2c93861c0
add rax, 0x28
cmp rax, r9
jne 0x2c9386200
xor eax, eax
ret

Function at 0x2c9386220
Capabilities:
Parse pe header

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

Function at 0x2c93862e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c94186b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2c93862ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2c9386308
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2c93f32e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x2c93f3308
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x2c93f3350
cdqe
add rsi, rax
sub rbx, rax
jne 0x2c93f3320
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x2c93f335c
call rbp
cmp dword [rax], 4
je 0x2c93f3320
lea rcx, str.random_device_could_not_be_read
call fcn.2c940fc60
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x2c94183a0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov rdx, qword [0x2c9417c90]
mov qword [rcx + 8], rax
mov r8d, dword [rdx]
test r8d, r8d
jne 0x2c93f33a8
mov edx, dword [rax - 8]
test edx, edx
jle 0x2c93f33b3
add edx, 1
mov dword [rax - 8], edx
ret
mov eax, dword [rax - 8]
test eax, eax
jg 0x2c93f33c0
mov rax, qword [rcx + 8]
mov dword [rax - 8], 1
ret
mov edx, dword [rdx]
mov rax, qword [rcx + 8]
test edx, edx
je 0x2c93f33d0
lock add dword [rax - 8], 1
ret
mov edx, dword [rax - 8]
jmp 0x2c93f339c
Function at 0x2c93f9e90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x2c94134c0]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x2c94134d0]
movdqa xmm5, xmmword [0x2c94134e0]
movdqa xmm6, xmmword [0x2c94134f0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm2, xmmword [rax + 0x624]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c93f9ed0
mov eax, dword [rdx + 0x388]
mov ecx, dword [rdx + 0x38c]
movq xmm0, qword [rdx + 0x380]
movq xmm1, qword [0x2c94134c0]
movq xmm2, qword [0x2c94134d0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
por xmm0, xmm1
movdqa xmm2, xmm0
mov ecx, eax
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
shr ecx, 1
and eax, 1
xor ecx, dword [rdx + 0x9bc]
neg eax
pxor xmm1, xmm2
and eax, 0x9908b0df
movq xmm2, qword [0x2c94134e0]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x2c94134f0]
xor eax, ecx
mov dword [rdx + 0x388], eax
lea rcx, [rdx + 0x9bc]
pand xmm0, xmm2
lea rax, [rdx + 0x38c]
pxor xmm1, xmm0
pxor xmm2, xmm2
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2c93f9fd3
mov eax, dword [rdx + 0x9bc]
mov qword [rdx + 0x9c0], 0
mov ecx, dword [rdx]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
shr ecx, 1
xor ecx, dword [rdx + 0x630]
neg eax
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x2c940f0e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2c9412f40]
jmp 0x2c9387010
Function at 0x140002a40
Capabilities:
Access the windows event log

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r8
mov ebx, edx
mov rsi, rcx
mov rcx, qword [0x140078970]
lea r14, [0x140078970]
cmp rcx, r14
je 0x140002a9f
test dword [rcx + 0x1c], 0x8000000
je 0x140002a9f
cmp byte [rcx + 0x19], 5
jb 0x140002a9f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140069098]
mov edx, 0x31
call fcn.1400017a0
mov rcx, qword [0x140078970]
mov qword [rsp + 0x70], rdi
cmp ebx, 2
jne 0x140002b8a
cmp rcx, r14
je 0x140002ad7
test dword [rcx + 0x1c], 0x8000000
je 0x140002ad7
cmp byte [rcx + 0x19], 5
jb 0x140002ad7
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x30]
mov r9d, ebx
lea r8, [0x140069098]
call fcn.1400017d0
mov rdx, qword [rsi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002b3c
mov rcx, qword [rsi + 8]
lea rax, str.Siva_soft_reset
mov qword [rsp + 0x50], rcx
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
lea edx, [r8 + 4]
mov word [rsp + 0x28], bx
lea r9d, [r8 + 0x64]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rdx, rbp
xor ecx, ecx
call fcn.14000e340
mov rcx, qword [0x140078970]
cmp rcx, r14
je 0x140002c1e
test dword [rcx + 0x1c], 0x8000000
je 0x140002c1e
cmp byte [rcx + 0x19], 5
jb 0x140002c1e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140069098]
mov edx, 0x34
mov r9d, eax
call fcn.1400017d0
jmp 0x140002c1e
cmp rcx, r14
je 0x140002bb6
test dword [rcx + 0x1c], 0x8000000
je 0x140002bb6
cmp byte [rcx + 0x19], 5
jb 0x140002bb6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140069098]
mov edx, 0x33
mov r9d, ebx
call fcn.1400017d0
mov rdx, qword [rsi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002c1e
mov rcx, qword [rsi + 8]
lea rax, str.Siva_unhandled_reset_case
mov qword [rsp + 0x50], rcx
mov ebx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea r9d, [rbx + 0x61]
mov word [rsp + 0x28], bx
mov edx, ebx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400117b0
add rsp, 0x78
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011690
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor esi, esi
lea rax, str.iBtLib__
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov edx, 0x400
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea rdi, [r11 + 0x10]
call fcn.1400113e0
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffffe
shr rcx, 1
lea rax, [rcx - 1]
cmp rax, 0x7ffffffe
ja 0x140011760
lea rbx, [rcx - 1]
call fcn.14000c100
mov r9, qword [rsp + 0x470]
mov r8, rbx
mov qword [rsp + 0x28], rdi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rdx, rdi
or rcx, 1
mov qword [rsp + 0x20], rsi
call fcn.14003a644
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
test eax, eax
js 0x14001175a
cdqe
cmp rax, rbx
ja 0x14001175a
jne 0x14001176d
mov word [rdi + rbx*2], si
jmp 0x14001176d
test rcx, rcx
je 0x14001176d
mov rax, qword [rsp + 0x30]
mov word [rax], si
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400117b0
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400159fc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140015a0f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140016028
lea rdx, [0x140073ec0]
lea rcx, [rsp + 0x20]
call fcn.1400326a0
int3

Function at 0x140021a6c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14007b130]
xor edx, edx
jmp fcn.1400159fc

Function at 0x140022454
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14007b130]
jmp fcn.1400159fc
Function at 0x14002e35c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14002e420]
mov r9, qword [r9 + 8]
jmp fcn.14001de54

Function at 0x14002e3f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14002e430]
mov r9, qword [r9 + 8]
jmp fcn.14001de54
Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85b3e69
mov rbx, rcx
jne 0x140001087
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001087
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001087
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001087
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000108c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001094
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x85b3e69
mov rsi, rcx
je 0x1400010b8
mov eax, 0xc0000001
jmp 0x14000116d
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000116b
test rdi, rdi
je 0x1400010f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400010e0
test rdi, rdi
je 0x14000116b
mov r8d, dword [rdi]
test r8d, r8d
je 0x140001160
lea rdx, [rdi + 0x18]
test byte [rdx - 8], 1
je 0x140001155
cmp qword [rdx], 0x200000
jne 0x140001155
mov ecx, dword [0x140001cc0]
mov r9b, byte [0x140001cc4]
cmp dword [rdx + 8], ecx
jne 0x140001155
cmp byte [rdx + 0xc], r9b
je 0x14000117d
inc ebx
add rdx, 0x20
cmp ebx, r8d
jb 0x14000112e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
mov qword [rcx], rax
jmp 0x14000116b
Function at 0x14000118c
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x85b3e69
mov rdi, rcx
jne 0x140001251
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001251
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001251
call fcn.140001268
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.140001494
test rax, rax
je 0x140001251
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x140001234
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001674
jmp 0x14000124d
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001256
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400183e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001848a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001848a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018928
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.140019860
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019374
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400193be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400193be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400193be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400193be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400193be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400193c0
xor al, al
add rsp, 0x28
ret

Function at 0x14001cf74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001cda0
Function at 0x14001a610
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140029058]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a6ce
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14001a666
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a6ce
mov qword [rsp + 0x280], rdi
nop

Function at 0x14001a770
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14002b610]
lea rcx, str.user32.dll
mov qword [rbx + 0x88], rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14001a7be
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a7be
mov edx, 1
lea ecx, [rdx + 0x49]
call rax
mov rcx, rbx
call fcn.14001adf0
mov r11, qword [rbx + 0x30]
test r11, r11
je 0x14001a7d7
mov ecx, 1
call r11
lea rax, [rsp + 0x40]
lea r8, [0x14001b060]
xor edi, edi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x14001b1f0]
mov r9, rbx
mov qword [rbx], rax
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x14001b210]
mov r9, rbx
mov qword [rbx + 8], rax
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [rdi + 0x10]
mov qword [rbx + 0x10], rax
call fcn.14001b924
test rax, rax
je 0x14001a868
lea rdx, str.GlobalTRUSTVIEW_HOOKTOOL_PROTECTWND_MUTEX64
mov rcx, rax
call fcn.14001b390
jmp 0x14001a86b
mov rax, rdi
mov ecx, 0x10

Function at 0x14001aaf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x240
mov rax, qword [0x140029058]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov esi, edx
Function at 0x14001ac30
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x270
mov rax, qword [0x140029058]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
mov rbp, rdx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
call fcn.14001aaf0
test eax, eax
je 0x14001ac6e
lea eax, [rdi + 1]
jmp 0x14001adc3
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x280], rbx
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x290], rsi
call fcn.14001fe20
lea rdx, [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rdx
lea rdx, str.SOFTWARETrustView
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14001acfe
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.InstallPath
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x40]
lea rdx, [0x140027448]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
call fcn.14001b9c8
mov rbx, rax
test rax, rax
je 0x14001ad98
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
test esi, esi
jne 0x14001ad74
test ecx, ecx
je 0x14001ad74
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x50], 0x5c
je 0x14001ad5c
lea r8, [0x14002744c]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.14001bdf8
lea r8, [0x140027450]
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.14001bdf8
jmp 0x14001ad8a
lea r8, str.C:Program_FilesTrustViewHookTool64.dll
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.14001bd74
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001ad9c
xor eax, eax
jmp 0x14001adb3
lea r8, [rsp + 0x50]
mov edx, 0x104
mov rcx, rbp
call fcn.14001bd74
mov eax, 1
mov rbx, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001b730
mov rbp, qword [rsp + 0x298]
add rsp, 0x270
pop rdi
ret