joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004086c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
lea rdi, [rcx + 0x110]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbx + 0x70]
call fcn.140052af4
test al, al
jne 0x140040967
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov esi, eax
call fcn.140008200
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400408d8
cmp dword [rcx], 0
jbe 0x1400408d8
call fcn.140008200
mov r8d, esi
xor edx, edx
call fcn.14004ae38
and dword [rbx + 0x384], 0
and dword [rbx + 0x208], 0
mov rcx, qword [rbx + 0x70]
call fcn.140052194
mov rbx, qword [rbx + 0x80]
test rbx, rbx
je 0x140040967
xor r9d, r9d
cmp qword [rbx + 0x60], r9
jne 0x14004095d
and qword [rsp + 0x28], r9
and dword [rsp + 0x20], r9d
mov r9, rbx
lea r8, [0x14007edc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140040950
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
jmp 0x140040953
xor r9d, r9d
test r9d, r9d
js 0x14004095d
xor eax, eax
xchg byte [rbx + 0x50], al
mov rcx, qword [rsp + 0x48]
test r9d, r9d
js 0x140040985
test rdi, rdi
je 0x140040975
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea r8, str.analoginput_spectrumcomponentsheadtrackerhandler.cpp
mov edx, 0x39d
call fcn.140015c90
int3
Function at 0x14004c248
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1400e5470]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rcx, [rsp + 0x40]
call fcn.140015ce0
nop
call fcn.14000b9a0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140015c7c
nop
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x4d0]
mov rax, qword [rsp + 0x68]
call qword [case.0x14009c17e.0]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
call fcn.14000aa20
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x48]
mov edx, 1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
mov rcx, rax
call fcn.140015bf8
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14004c3f4
mov dword [rsp + 0x4c], 0x104
lea rcx, [rsp + 0x58]
call fcn.140011ad4
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call sub.api_ms_win_appmodel_runtime_l1_1_0.dll_GetPackageFamilyName
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jg 0x14004c344
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
jmp 0x14004c35a
mov eax, dword [rsp + 0x30]
and eax, 0xffff
or eax, 0x70000
bts eax, 0x1f
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14004c38b
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14004c44c
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14004c38b
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14004c3f4
lea rcx, [rsp + 0x58]
call fcn.140011ad4
mov r8d, 0x104
lea rdx, [rsp + 0x2a0]
mov rcx, rax
call sub.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessImageFileNameW
test eax, eax
jbe 0x14004c3c2
mov dword [rsp + 0x50], 1
jmp 0x14004c3ca
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x2a0]
call sub.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindFileNameW
mov qword [rsp + 0x78], rax
mov r8b, byte [rsp + 0x28]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140012f58
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x14004c410
lea rcx, [rsp + 0x40]
call fcn.14004bb4c
mov rcx, qword [rsp + 0x4d8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x58]
call fcn.140015c30
nop
lea rcx, [rsp + 0x40]
call fcn.140015cc0
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.14009ae70
add rsp, 0x4c8
ret
Function at 0x140066b4c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e5470]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140066b94
mov rax, qword [rcx]
mov word [rax], r15w
mov qword [rbp - 0x50], r15
or rax, 0xffffffffffffffff
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400b4740]
call qword [sym.imp.api_ms_win_shell_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
jns 0x140066be4
mov rcx, qword [rbp + 0x18]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponents_staticnodedurability.cpp
mov edx, 0x45
call fcn.140003748
jmp 0x140066c94
movdqa xmm0, xmmword [0x1400ba790]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400045f8
nop
mov r14d, r15d
lea rsi, [0x1400a8b90]
mov rdx, qword [rsi]
test rdx, rdx
je 0x140066c26
mov r8b, 1
lea rcx, [rbp - 0x30]
call fcn.140074afc
mov ebx, eax
jmp 0x140066c29
mov ebx, r15d
test ebx, ebx
js 0x140066c71
inc r14d
add rsi, 8
cmp r14d, 3
jb 0x140066c0e
lea rax, [rbp - 0x30]
cmp rdi, rax
je 0x140066c6c
mov rcx, rdi
call fcn.140004584
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1400ba790]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r15w
mov ebx, r15d
jmp 0x140066c8a
mov rcx, qword [rbp + 0x18]
mov r9d, ebx
lea r8, str.analoginput_spectrumcomponents_staticnodedurability.cpp
mov edx, 0x4a
call fcn.140003748
nop
lea rcx, [rbp - 0x30]
call fcn.140004584
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140066ca3
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14009ae70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140066ccc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 8
mov rax, r8
mov esi, edx
mov rbp, rcx
jb 0x140066cf2
mov rax, qword [r8]
and qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_CreateFile2]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140066d2e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140066d30
xor ebx, ebx
test ebx, ebx
jns 0x140066d3b
mov edx, 0x55
jmp 0x140066d88
mov r8d, 0x4004
mov rdx, rbp
cmp esi, r8d
mov rcx, rdi
cmovb r8d, esi
and qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x140066d9e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
test ebx, ebx
jns 0x140066d9e
mov edx, 0x58
mov rcx, qword [rsp + 0x38]
lea r8, str.analoginput_spectrumcomponents_staticnodedurability.cpp
mov r9d, ebx
call fcn.140003748
jmp 0x140066da0
xor ebx, ebx
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140066db3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14006703c
Capabilities:
Get process image filename

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e5470]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rdx
mov r14d, ecx
lea rax, [0x1400a3238]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov esi, r15d
mov qword [rsp + 0x30], r15
mov edi, r15d
mov r12d, 0x80070000
test ecx, ecx
jne 0x1400670ad
lea rdx, [0x1400b4728]
jmp 0x1400671b9
mov r8d, r14d
mov edx, 1
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400670ea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
jmp 0x1400670ed
mov ecx, r15d
test ecx, ecx
js 0x140067188
mov dword [rsp + 0x20], 0x104
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_appmodel_runtime_l1_1_0.dll_GetPackageFamilyName]
movzx edi, ax
or edi, r12d
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140067188
movdqa xmm0, xmmword [0x1400ba790]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400045f8
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x140067179
mov rcx, rbx
call fcn.140004584
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1400ba790]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r15w
lea rcx, [rsp + 0x40]
call fcn.140004584
jmp 0x14006720b
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessImageFileNameW]
movzx edi, ax
or edi, r12d
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400671c3
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindFileNameW]
mov rdx, rax
mov rcx, rbx
call fcn.1400045f8
jmp 0x14006720b
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14000e140
mov rdi, rax
cmp rbx, rax
je 0x1400671fe
mov rcx, rbx
call fcn.140004584
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
lea rcx, [rsp + 0x40]
call fcn.140004584
mov edi, r15d
test rsi, rsi
je 0x14006721d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14006724a
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14009ae70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
call fcn.14000b984
int3
Function at 0x1400697e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400e5470]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov ebp, 0x4e
mov r8d, ebp
lea rcx, [r11 - 0x68]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x40], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSpectrum
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r8, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbp
lea r9d, [rbp + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x140069870
mov word [rsp + 0x50], bp
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140069894
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
test eax, eax
jns 0x14006989b
movups xmm0, xmmword [rsi]
movdqu xmmword [rdi], xmm0
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009ae70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400698c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor esi, esi
mov qword [rbp - 8], rsi
lea rax, [rbp + 0x30]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x50], rsi
mov qword [r11 - 0x58], rsi
lea r9d, [rsi + 2]
lea r8, str.AlrCurve
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSpectrum
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
shr ecx, 0x1f
xor cl, 1
je 0x140069a0c
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140069eb0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 2]
lea r8, str.AlrCurve
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSpectrum
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
shr ecx, 0x1f
xor cl, 1
je 0x140069a0c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.1400045f8
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140069a68
mov rax, qword [rbp - 8]
sub rax, rcx
sar rax, 1
mov rdx, rcx
movabs r8, 0x7fffffffffffffff
cmp rax, r8
ja 0x140069a05
add rax, rax
cmp rax, 0x1000
jb 0x140069a63
test dl, 0x1f
jne 0x140069a05
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x140069a05
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x140069a63
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
mov rcx, rbx
call fcn.140005750
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140069a68
mov rax, qword [rbp - 8]
sub rax, rcx
sar rax, 1
mov rdx, rcx
movabs r8, 0x7fffffffffffffff
cmp rax, r8
ja 0x140069a7b
add rax, rax
cmp rax, 0x1000
jb 0x140069a63
test dl, 0x1f
jne 0x140069a7b
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x140069a7b
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
ja 0x140069a7b
call fcn.14009b410
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140069a84
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov rbx, rcx
mov dword [rsp + 0x78], 4
lea rcx, [r11 + 0x20]
mov rax, r8
mov qword [r11 - 0x28], rcx
mov r8, rdx
lea rcx, [r11 - 0x18]
mov r9d, 0x10
mov qword [r11 - 0x30], rcx
mov rdx, rax
and qword [r11 - 0x38], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140069ade
mov eax, dword [rbx]
jmp 0x140069ae2
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
Function at 0x14006a058
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x50
xor r14d, r14d
mov esi, r9d
mov rbp, r8
mov ebx, r14d
test rdx, rdx
je 0x14006a0c0
cmp word [rdx], r14w
je 0x14006a0c0
mov qword [r11 - 0x18], r14
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], r14
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov rcx, 0xffffffff80000002
mov dword [r11 - 0x38], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
jmp 0x14006a0cc
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], rcx
test ebx, ebx
jne 0x14006a10d
mov eax, dword [rsp + 0x88]
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
cmp rcx, 0xffffffff80000002
je 0x14006a10d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140074294
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
xor r9d, r9d
xor edi, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov r12d, 0x80070000
mov r13d, 0x80004005
test rax, rax
je 0x1400742e4
mov rdi, rax
jmp 0x140074303
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
test ebx, ebx
js 0x1400743c6
xor edx, edx
lea rcx, [rbp - 0x20]
lea r8d, [rdx + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm1, xmmword [rbp - 0x10]
lea rax, [rbp - 0x40]
xor r9d, r9d
movups xmm0, xmmword [rbp - 0x20]
mov r8d, r14d
mov rdx, r15
movups xmmword [rbp - 0x30], xmm1
mov rcx, rsi
mov qword [rbp - 0x28], rdi
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140074349
xor ebx, ebx
jmp 0x1400743b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
cmp ebx, 0x800703e5
jne 0x1400743b4
or r9d, 0xffffffff
mov dword [rsp + 0x20], 1
lea r8, [rbp + 0x48]
mov rcx, rsi
lea rdx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_GetOverlappedResultEx]
test eax, eax
je 0x14007438d
xor ebx, ebx
jmp 0x1400743a8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
test ebx, ebx
js 0x1400743b4
cmp dword [rbp + 0x48], r14d
mov eax, 0x80070026
cmovne ebx, eax
test rdi, rdi
je 0x1400743c6
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400743e6
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
call fcn.14000b984
int3
Function at 0x140074400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
xor r9d, r9d
xor edi, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov r12d, 0x80070000
mov r13d, 0x80004005
test rax, rax
je 0x140074450
mov rdi, rax
jmp 0x14007446f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
test ebx, ebx
js 0x140074532
xor edx, edx
lea rcx, [rbp - 0x20]
lea r8d, [rdx + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm1, xmmword [rbp - 0x10]
lea rax, [rbp - 0x40]
xor r9d, r9d
movups xmm0, xmmword [rbp - 0x20]
mov r8d, r14d
mov rdx, r15
movups xmmword [rbp - 0x30], xmm1
mov rcx, rsi
mov qword [rbp - 0x28], rdi
movups xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x1400744b5
xor ebx, ebx
jmp 0x140074520
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
cmp ebx, 0x800703e5
jne 0x140074520
or r9d, 0xffffffff
mov dword [rsp + 0x20], 1
lea r8, [rbp + 0x48]
mov rcx, rsi
lea rdx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_GetOverlappedResultEx]
test eax, eax
je 0x1400744f9
xor ebx, ebx
jmp 0x140074514
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r13d
test ebx, ebx
js 0x140074520
cmp dword [rbp + 0x48], r14d
mov eax, 0x80070026
cmovne ebx, eax
test rdi, rdi
je 0x140074532
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140074552
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, r12d
test eax, eax
cmovle ecx, eax
call fcn.14000b984
int3
Function at 0x140074afc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov bpl, r8b
mov rsi, rdx
mov rbx, rcx
cmp word [rdx], di
je 0x140074bcc
mov rcx, qword [rcx + 0x10]
lea r8d, [rdi + 0x5c]
test rcx, rcx
je 0x140074b52
lea rdx, [rcx - 1]
cmp rcx, rdx
jbe 0x140074be3
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140074b4b
mov rax, qword [rbx]
cmp word [rax + rdx*2], r8w
je 0x140074b88
cmp word [rsi], r8w
je 0x140074b88
mov rax, qword [rbx + 0x18]
sub rax, rcx
cmp rax, 1
jb 0x140074b80
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140074b7a
mov rax, qword [rbx]
mov dword [rax + rcx*2], r8d
jmp 0x140074b88
mov rcx, rbx
call fcn.140074e28
mov rdx, rsi
mov rcx, rbx
call fcn.140007c5c
test bpl, bpl
je 0x140074bcc
cmp qword [rbx + 0x18], 8
jb 0x140074ba2
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140074bcc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x140074bcc
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.140007f78
int3