joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046620
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.18005db10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov qword [rbp + 0xfe0], rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call fcn.18005ecc0
xorps xmm6, xmm6
lea r12, [rbp + 0xffc]
lea r13, [0x18003bb50]
lea rdi, [rbp + 0xfb0]
mov r15, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rdi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x180046720
nop
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x1800466e0
mov eax, dword [rbp + 0x1000]
mov ebx, dword [rbp + 0x1004]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rbx, rcx
jne 0x180046733
jmp 0x180046776
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x180046760
call fcn.1800330f0
cmp al, 0xb
mov eax, 0
cmove rbx, rax
je 0x180046776
jmp 0x18004684b
cmp rcx, 0xb
mov eax, 0
cmove rbx, rax
cmp ecx, 0xb
jne 0x18004684b
test rbx, rbx
je 0x180046817
cmp rbx, 0x1000
ja 0x1800468cf
xor r14d, r14d
nop
cmp rbx, r14
jb 0x1800468bb
mov r8d, ebx
sub r8d, r14d
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfd8]
mov r9, rdi
call r15
test eax, eax
je 0x180046811
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x1800467e0
cmp dword [rbp + 0x1000], 0
jne 0x180046817
mov eax, dword [rbp + 0x1004]
add r14, rax
cmp r14, rbx
jne 0x180046790
jmp 0x180046698
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x180046817
lea rax, [rbx - 1]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbx - 1]
mov qword [rbp + 0xfe8], rax
mov rax, qword [rbx + 7]
mov qword [rbp + 0xff0], rax
mov rax, qword [rax]
test rax, rax
je 0x180046887
mov rcx, qword [rbp + 0xfe8]
call rax
mov rcx, qword [rbp + 0xfe8]
mov rax, qword [rbp + 0xff0]
cmp qword [rax + 8], 0
je 0x1800468a5
mov rdx, qword [rax + 0x10]
call fcn.18001e6a0
mov edx, 8
mov rcx, qword [rbp + 0xfd0]
call fcn.18001e6a0
jmp 0x180046817
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.18006cf30
jmp 0x1800468e3
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.18006cbb0
ud2
Function at 0x180049140
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x180049234
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x1800491fa
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1800491b5
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x1800491cc
jmp 0x1800491d9
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800491d9
cmp eax, 0x3e5
jne 0x1800491ea
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1800491dd
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1800491df
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.18006d600
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x180049171
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.18006d93e
int3

Function at 0x1800565eb
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1800565f2
test al, 1
je 0x180056611
test al, 2
jne 0x180056629
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x18009bc90]
mov edx, 0x23
call fcn.18006cc20
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x18009bcd0]
mov edx, 0x25
call fcn.18006cc20
int3
Function at 0x180066bc8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180066bf8
xor eax, eax
jmp 0x180066cbb
mov rbp, rbx
cmp word [rax], si
je 0x180066c1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180066c04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180066c00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180066b18
movsxd r14, eax
test eax, eax
jne 0x180066c5b
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x180066bf1
mov rcx, r14
call fcn.180067e50
mov rdi, rax
test rax, rax
jne 0x180066c74
xor ecx, ecx
call fcn.180065180
jmp 0x180066c50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180066b18
test eax, eax
jne 0x180066ca5
mov rcx, rdi
call fcn.180065180
jmp 0x180066caf
xor ecx, ecx
call fcn.180065180
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14072a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14072a237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14072a0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a0c7
add dl, dl
jne 0x14072a0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a14e
xor eax, eax
add dl, dl
jne 0x14072a0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072a205
add dl, dl
jne 0x14072a10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072a142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072a0d6
mov eax, 1
add dl, dl
jne 0x14072a15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072a16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a153
sub eax, ebx
mov ebx, 1
jne 0x14072a1a4
mov ecx, 1
add dl, dl
jne 0x14072a186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072a193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072a1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072a1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072a1b5
cmp eax, 0x7d00
jae 0x14072a1f3
cmp eax, 0x500
jb 0x14072a1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
cmp eax, 0x7f
ja 0x14072a1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072a0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072a22a
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 0x14072a0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007150
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1400b13e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [r11 - 0x50]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.1400065e4
mov edi, 1
cmp eax, edi
je 0x140007281
test eax, eax
js 0x14000727f
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400071dd
lea edx, [rdi + 0x67]
jmp 0x140007271
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140007212
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r14 + 0x6a]
jmp 0x140007271
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rcx, [0x140066e08]
call qword [sym.imp.vdsutil.dll_RemoveEventSource]
nop dword [rax + rax]
test ebx, ebx
jne 0x140007281
lea edx, [rbx + 0x6b]
mov r8d, reloc.ATL.DLL_AtlModuleInit
mov rcx, rsi
call fcn.1400066d4
xor edi, edi
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005df40
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140007b60
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rsi
sub rsp, 0x30
mov esi, 4
mov dword [rsp + 0x40], 1
mov r8d, esi
lea rdx, [rsp + 0x40]
lea ecx, [rsi - 2]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x48], 1
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea ecx, [rsi + 4]
mov r8d, esi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x20]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
add rsp, 0x30
pop rsi
ret
Function at 0x140019550
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea r8, str.CVdsService::AddNetworkShare__
mov edx, 0x5e
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
mov edx, 3
cmp eax, edx
je 0x1400195d0
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
movzx ecx, word [rbx]
mov rax, qword [0x1400b2080]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400b20a8]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400b2080]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
nop dword [rax + rax]
test eax, eax
je 0x1400195b1
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x140019633
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x140019644
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x1400195b6
Function at 0x1400287e8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400b13e8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rdx
and qword [rdx], 0
xor r14d, r14d
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000be5c
lea r8, [0x1400684a0]
lea rcx, [rsp + 0x40]
call fcn.140029194
lea r8, [rsp + 0x40]
xor edx, edx
mov esi, 0x1f0003
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400288d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400288bb
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14005df40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14000d7bc
mov ebx, eax
jmp 0x1400289b3
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000edd8
mov ebx, eax
test eax, eax
jns 0x140028912
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000d780
nop
mov rcx, rdi
call fcn.14000ea2c
jmp 0x1400289b3
lea r8, [0x1400684a8]
lea rcx, [rsp + 0x40]
call fcn.140029194
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14002895a
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000d7bc
mov ebx, eax
jmp 0x140028905
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000edd8
mov ebx, eax
test eax, eax
jns 0x140028990
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000d780
nop
mov rcx, rsi
call fcn.14000ea2c
nop
jmp 0x140028905
mov rcx, rsi
call fcn.14000ea2c
movsxd rax, dword [rsp + 0x20]
shl rax, 0x1f
movsxd r14, dword [rsp + 0x24]
or r14, rax
mov rcx, rdi
call fcn.14000ea2c
xor ebx, ebx
test ebx, ebx
jns 0x140028889
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
mov edx, 0x62
call fcn.14000d780
mov eax, ebx
jmp 0x14002888e
Function at 0x14005ccdc
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400b13e8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rdx, [r11 - 0x48]
xor eax, eax
xor edi, edi
movups xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], rax
mov rbp, rcx
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
call fcn.14005d430
test eax, eax
je 0x14005cd35
cmp dword [rsp + 0x40], edi
sete dil
mov ebx, edi
jmp 0x14005cee7
mov qword [rsp + 0x30], rdi
mov r8d, 3
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005cd8c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14005cee7
mov rcx, rsi
call fcn.14005cbb4
mov ebx, eax
test eax, eax
je 0x14005ced8
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], AtlComPtrAssign
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14005cdfc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14005ced8
mov ebx, dword [rsp + 0x64]
xor ecx, ecx
add ebx, 0x1ff
mov r8d, 0x3000
and ebx, 0xfffffe00
mov edx, ebx
lea r9d, [rcx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14005cddd
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14005ce7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80310000
jne 0x14005cec1
mov ebx, edi
mov edx, 1
jmp 0x14005ceb9
mov edx, dword [rsp + 0x44]
xor r8d, r8d
mov rcx, r14
call fcn.14005d908
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14005ceab
cmp eax, 1
jne 0x14005cea4
mov rcx, rsi
call fcn.14005c80c
mov ebx, eax
jmp 0x14005cead
mov ebx, 1
jmp 0x14005ceb1
mov ebx, edi
test ebx, ebx
js 0x14005cec1
test ebx, ebx
sete dil
mov edx, edi
mov rcx, rbp
call fcn.14005d53c
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005df40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14005cf14
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x1400b27a8], ebx
mov dword [rsp + 0x50], ebx
jne 0x14005cf98
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x14005cf98
cmp eax, 1
je 0x14005cf98
mov eax, dword [0x1400b18d4]
cmp dword [rsp + 0x50], ebx
mov dword [0x1400b27a8], 1
cmovne eax, ebx
mov dword [0x1400b18d4], eax
jmp 0x14005cf9e
mov eax, dword [0x1400b18d4]
add rsp, 0x40
pop rbx
ret

Function at 0x14005d430
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x18], 4
mov qword [rax + 0x20], rbx
mov r14, rdx
mov dword [rax + 8], ebx
mov rdi, rcx
mov esi, ebx
test rcx, rcx
je 0x14005d4f3
test rdx, rdx
je 0x14005d4f3
mov dword [rdx], ebx
call fcn.14005cf14
test eax, eax
jne 0x14005d47c
lea edi, [rbx + 1]
jmp 0x14005d51d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14005cfac
mov rsi, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x14005d4f8
lea rax, [rsp + 0x70]
mov r9d, reloc.ATL.DLL_AtlModuleInit
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetectCache
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x14005d4e4
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14005d4f8
cmp dword [rsp + 0x60], ebx
je 0x14005d4f8
mov dword [r14], 1
jmp 0x14005d4f8
mov edi, 0x80070057
test rsi, rsi
je 0x14005d51d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14005d53c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x14005d698
call fcn.14005cf14
test eax, eax
je 0x14005d669
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14005cfac
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x14005d644
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005d644
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005d644
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test rbx, rbx
je 0x14005d669
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14005d683
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14005d698
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x58
pop rbx
pop rbp
ret