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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
lea rbp, [rsp + 0x40]
mov rax, qword [0x1400922d0]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov r14, r8
mov esi, edx
mov rdi, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [rbp], rbx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r15, rax
mov rcx, rax
call fcn.1400115d4
test eax, eax
je 0x14003666b
test r14, r14
je 0x1400366db
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r14 + rcx*2], r12w
jne 0x140036571
lea eax, [rcx + 1]
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x1400366db
movsxd rdi, esi
cmp esi, 0x400
jg 0x1400365e2
lfence
mov rcx, rdi
call fcn.140038d14
test al, al
je 0x1400365de
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x1400365c7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400023e0
sub rsp, rax
lea rdi, [rsp + 0x40]
mov rbx, qword [rbp]
jmp 0x14003660f
mov rbx, qword [rbp]
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x140036715
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400366db
mov qword [rax], r12
mov rbx, rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x1400366db
mov byte [rdi], r12b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400366db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, eax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 8]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400366db
mov word [rbp + 0x10], r12w
mov r9d, 0x100
lea r8, [rbp + 0x10]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
mov qword [rbp + 8], r12
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.140002f00
nop
lea rcx, [rbp + 8]
call fcn.140008fec
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400366d7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp]
test rbx, rbx
je 0x1400366f4
mov rcx, rbx
mov rdi, qword [rbx]
mov rbx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rdi, rdi
jne 0x1400366e0
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.140001020
lea rsp, [rbp + 0x220]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lfence
mov ecx, 0x80070216
call fcn.1400327c0
int3
Function at 0x140036a74
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
and qword [rbp - 0x20], rax
and dword [rbp - 0x18], eax
and qword [rbp - 0x10], rax
and qword [rbp + 0x20], rax
lea rdx, str.NewConfigurationWritten
lea rcx, [rbp + 0x20]
call fcn.140002f00
and qword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [0x140093ab0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140036b11
mov rcx, qword [rbp + 0x28]
mov qword [rbp - 0x20], rcx
and dword [rbp - 0x18], eax
mov dword [rbp + 0x18], 1
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140036b33
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140036b42
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x140036c8c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
and qword [rbp - 0x20], rax
and dword [rbp - 0x18], eax
and qword [rbp - 0x10], rax
and qword [rbp + 0x18], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [0x140093ab0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140036d10
mov rbx, qword [rbp + 0x18]
mov dword [rsp + 0x28], 0x34
lea rax, str.DevenvUpdateConfiguration
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ConfigurationChangedReason
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140036d67
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140036d80
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x18], rax
lea r8, str.ConfigurationChangedReason
lea rdx, str.Cannot_find_a_place_to_write_out_the__s__values_
lea rcx, [rbp + 0x18]
call fcn.140006970
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140036d63
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x140036d75
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x140036d8c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dil, r9b
mov r15, r8
mov r14, rdx
mov r12, rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rbx, qword [rbp - 0x28]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
xor esi, esi
mov qword [rbp - 0x50], rsi
and dword [rbp - 0x48], eax
and qword [rbp - 0x40], rax
test dil, dil
je 0x140036e31
and qword [rbp - 0x38], rsi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140036e31
mov rsi, qword [rbp - 0x38]
mov qword [rbp - 0x50], rsi
and dword [rbp - 0x48], eax
test eax, eax
je 0x140036ecf
and qword [rbp - 0x30], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140036e76
test rsi, rsi
je 0x140036e66
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rbp - 0x30]
mov qword [rbp - 0x50], rsi
and dword [rbp - 0x48], 0
test eax, eax
je 0x140036ecf
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x140036f26
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x30], rax
mov r8, r15
lea rdx, str.Cannot_find_a_place_to_write_out_the__s_value_
lea rcx, [rbp - 0x30]
call fcn.140006970
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140036ec9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rbp - 0x50]
jmp 0x140036efa
mov qword [rbp - 0x30], rbx
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayGetDim
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
test rsi, rsi
je 0x140036f08
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3
Function at 0x14003763c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edi, edi
mov rsi, r9
mov rax, r8
mov rbx, rcx
test r9, r9
je 0x14003771f
test rax, rax
je 0x14003771f
cmp qword [rcx], rdi
je 0x14003771f
mov qword [rsp + 0x20], r9
xor r8d, r8d
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14003769f
lea eax, [rdi + 2]
jmp 0x140037724
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x88
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.14003890c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140037707
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], dil
jne 0x1400376cc
inc rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr_s]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14003770c
mov edi, 3
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14003771b
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, edi
jmp 0x140037724
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001020
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140037a64
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r12, r9
mov rbp, rdx
mov r15, rcx
mov r14, qword [rsp + 0xb0]
xor ebx, ebx
test rdx, rdx
je 0x140037b4d
lea rax, [r11 - 0x50]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rbx
lea r9, [r11 - 0x4c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140037b4d
mov ecx, dword [rsp + 0x3c]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140037ad7
cmp ecx, 7
jne 0x140037b4d
mov eax, dword [rsp + 0x38]
shr eax, 1
inc eax
movsxd r13, eax
mov eax, 2
mul r13
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
lea rdx, [0x14006948e]
mov rcx, rax
call fcn.14000d004
mov rdi, rax
test rax, rax
je 0x140037b4d
lea r8, [r13*2]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
je 0x140037b74
call fcn.140002ef0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140037bed
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140038c94
lea rdx, [0x140068670]
inc rsi
cmp word [rdx + rsi*2], bx
jne 0x140037b98
mov r8d, esi
mov rcx, r12
call fcn.140004b50
test eax, eax
js 0x140037bdf
test r14, r14
je 0x140037bbf
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x140037bc4
mov rbx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140002ef0
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x140037b4f
lfence
mov ecx, eax
call fcn.1400327c0
nop
jmp 0x140037bec
nop
mov ecx, 0x8007000e
call fcn.1400327c0
int3
Function at 0x140037f90
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor ebx, ebx
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
ja 0x140037fef
jne 0x1400380c6
cmp dword [rsp + 0x48], 1
jb 0x1400380c6
and qword [rsp + 0x38], rbx
cmp byte [0x1400950c8], 0
jne 0x140038038
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140038028
lea rdx, str.GetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400950c0], rax
jmp 0x14003802f
mov rax, qword [0x1400950c0]
mov byte [0x1400950c8], 1
jmp 0x14003803f
mov rax, qword [0x1400950c0]
test rax, rax
je 0x1400380b6
lea rcx, [rsp + 0x38]
call rax
mov ebx, eax
test eax, eax
js 0x1400380bb
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1400781e8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140072a98]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1400380a4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x38]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x1400380a4
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400380bb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1400380bb
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rbp
ret
Function at 0x140038104
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
xor edi, edi
mov qword [rbp - 0x20], rdi
and dword [rbp - 0x18], eax
and qword [rbp - 0x10], rax
and qword [rbp + 0x30], rdi
lea rdx, str.SoftwareMicrosoftVsCommonConnectedUser
lea rcx, [rbp + 0x30]
call fcn.140002f00
and qword [rbp + 0x28], rdi
lea rdx, str.ResetUserTokenStorage
lea rcx, [rbp + 0x28]
call fcn.140002f00
and qword [rbp + 0x38], rdi
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140038187
mov rdi, qword [rbp + 0x38]
mov qword [rbp - 0x20], rdi
and dword [rbp - 0x18], eax
test ebx, ebx
jne 0x1400381b4
mov dword [rbp + 0x20], 1
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400381d9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400381fb
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003820a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
Function at 0x140039c4c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
test rdx, rdx
jne 0x140039d11
mov ebx, ebp
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
mov edi, ebp
mov word [rbx + rax*2], bp
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x50], rax
mov eax, 0x414
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
test eax, eax
je 0x140039ce0
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x140039c8d
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x140039c7c
mov ecx, 0x8007000e
call fcn.1400327c0
int3

Function at 0x14003afb4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003b023
cmp byte [rcx + 0x71], 0
je 0x14003b023
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003b07b
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003b03d
sub eax, 1
je 0x14003b041
cmp eax, 2
jne 0x14003b07b
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003b072
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14003b07b
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003b025
xor al, al
jmp 0x14003b025
Function at 0x14003edd8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, r8d
xor ebx, ebx
mov qword [rsp + 0x58], rbx
and qword [rsp + 0x50], rbx
mov rcx, qword [rcx + 0x48]
lea r8, [rsp + 0x50]
mov rcx, qword [rcx]
call fcn.140004a38
cmp qword [rsp + 0x50], rbx
je 0x14003eebb
and qword [rsp + 0x58], rbx
and qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove rbx, qword [rsp + 0x58]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14003eebb
mov dword [rsp + 0x58], esi
test rbx, rbx
jne 0x14003ee83
mov esi, 0x8000ffff
jmp 0x14003eec0
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SkipLoading
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x14003eec0
mov esi, 0x80004005
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x14003eed9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rsi
ret
Function at 0x14003f894
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rdx
mov r14, rcx
xor edi, edi
mov esi, edi
add rcx, 0x1a8
mov qword [rsp + 0x28], rcx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003f8e9
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
cmp byte [r14 + 0x1f8], dil
jne 0x14003fa33
call fcn.140002950
mov rcx, rax
test rax, rax
je 0x14003fa74
mov rax, qword [rax]
call qword [rax + 0x18]
mov rbx, rax
add rax, 0x18
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14003f95f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14003fa41
lfence
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003fa41
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003f926
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14003f980
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140002c00
mov edx, 0x5c
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14003fa0d
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14003fa0d
lea edx, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.140040140
lea rcx, [rsp + 0x20]
call fcn.14003ffe0
mov rbx, qword [rsp + 0x20]
cmp dword [rbx - 0x10], 0x104
jge 0x14003fa0d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003fa0d
lea r8, [rsp + 0x30]
mov dl, 1
mov rcx, rbx
call qword [0x14009b008]
test al, al
jne 0x14003fa0d
mov byte [r14 + 0x1f9], 1
mov byte [r14 + 0x1f8], 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003fa33
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp byte [r14 + 0x1f9], dil
setne dil
mov dword [r15], edi
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400327c0
int3