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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004c50
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.140004c50
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 0x140002da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002ed0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002deb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002dd0
mov rcx, rbx
call fcn.1400037f0
mov rdi, rax
test rax, rax
je 0x140002ef2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003930
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ed7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e80
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d30
nop dword [rax]
xor esi, esi
jmp 0x140002df8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003460
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400034bc
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 0x1400034b3
test rsi, rsi
je 0x1400034b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003498
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 0x1400037f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003870
Capabilities:
Parse pe header

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

Function at 0x140003930
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000394f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003958
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x141985058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1419851df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141985089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14198506f
add dl, dl
jne 0x141985096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419850f6
xor eax, eax
add dl, dl
jne 0x1419850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419851ad
add dl, dl
jne 0x1419850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14198507e
mov eax, 1
add dl, dl
jne 0x141985106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141985113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419850fb
sub eax, ebx
mov ebx, 1
jne 0x14198514c
mov ecx, 1
add dl, dl
jne 0x14198512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14198513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141985123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141985168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141985175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14198515d
cmp eax, 0x7d00
jae 0x14198519b
cmp eax, 0x500
jb 0x141985196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
cmp eax, 0x7f
ja 0x14198519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419851d2
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 0x14198507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008130
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14d, r9d
mov rcx, r8
mov rbp, r8
mov esi, edx
call fcn.140008290
mov rdi, rax
test rax, rax
je 0x1400081b5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov r10d, eax
test esi, esi
je 0x1400081a8
nop dword [rax + rax]
movzx r8d, byte [rbx]
lea eax, [r9 + r14]
xor edx, edx
rol r8b, 4
div r10d
inc r9d
lea rbx, [rbx + 1]
xor r8b, byte [rdx + rdi]
not r8b
mov byte [rbx - 1], r8b
cmp r9d, esi
jb 0x140008180
mov rcx, rdi
call fcn.1400b3214
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400081d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, rdx
mov rbx, rcx
xor edx, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [rdi + 4]
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x140008264
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x14000825b
xor r9d, r9d
mov r8, rbp
mov edx, r14d
mov rcx, rax
call fcn.140008130
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140008290
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov dword [rsp + 0x38], 0x7863513
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov edi, eax
call fcn.1400b321c
mov r8, rax
test rax, rax
je 0x1400082ee
xor ecx, ecx
test edi, edi
je 0x1400082ee
mov rdx, rax
sub rbx, rax
nop dword [rax + rax]
mov eax, ecx
lea rdx, [rdx + 1]
and eax, 3
inc ecx
movzx eax, byte [rsp + rax + 0x38]
xor al, byte [rbx + rdx - 1]
mov byte [rdx - 1], al
cmp ecx, edi
jb 0x1400082d0
mov rax, r8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400107b0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 8], 0
je 0x1400108ef
test rdx, rdx
je 0x140010802
mov dword [rdx], 0
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400109ee
lea rbx, [0x140102478]
mov qword [rbp - 0x20], rbx
lea r14, [0x1401025f8]
mov qword [rbp + 0x20], r14
lea rdx, [rdi + 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.140006eb0
nop
lea rcx, [0x140000000]
lea rax, [rcx + 0x103560]
mov qword [rsp + 0x40], rax
lea rax, [rcx + 0x103568]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x60]
call fcn.140009d60
nop
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::internet_exception.0
mov qword [rsp + rcx + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::file_exception.0
mov qword [rsp + rcx + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x50], rbx
mov qword [rbp - 0x70], r14
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call fcn.140006eb0
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::internet_file_exception.0
mov qword [rsp + rcx + 0x40], rax
lea rdx, [0x14016fc90]
lea rcx, [rsp + 0x40]
call fcn.1400b5470
nop
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400109ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
je 0x1400109ee
lea rbx, [0x140102478]
mov qword [rbp - 0x20], rbx
lea r14, [0x1401025f8]
mov qword [rbp + 0x20], r14
lea rdx, [rdi + 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.140006eb0
nop
lea rcx, [0x140000000]
lea rax, [rcx + 0x103568]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x68], rax
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea rax, vtable.is::win32_exception.0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x48], 0
mov byte [rbp - 0x40], 0
mov ecx, 4
call fcn.1400b3630
mov dword [rax], 1
mov qword [rbp - 0x38], rax
mov dword [rsp + 0x20], 8
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::file_exception.0
mov qword [rsp + rcx + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rbx
mov qword [rbp - 0x78], r14
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x48]
call fcn.140006eb0
nop
lea rdx, [0x14016fd48]
lea rcx, [rsp + 0x40]
call fcn.1400b5470
nop
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140011740
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
xor r9d, r9d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], r9d
mov eax, 1
cmp r8d, 0xffffffff
cmovne eax, r8d
mov rcx, qword [rcx + 8]
mov r8d, eax
test rcx, rcx
je 0x140011886
lea r9, [rsp + 0x30]
call fcn.1400a99dc
test al, al
jne 0x14001193a
lea rdi, [0x140102478]
mov qword [rbp - 0x10], rdi
lea rsi, [0x1401025f8]
mov qword [rbp + 0x30], rsi
lea rdx, [rbx + 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.140006eb0
nop
lea rcx, [0x140000000]
lea rax, [rcx + 0x103560]
mov qword [rsp + 0x50], rax
lea rax, [rcx + 0x103568]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x50]
call fcn.140009d60
nop
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::internet_exception.0
mov qword [rsp + rcx + 0x50], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::file_exception.0
mov qword [rsp + rcx + 0x58], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rdi
mov qword [rbp - 0x60], rsi
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140006eb0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::internet_file_exception.0
mov qword [rsp + rcx + 0x50], rax
lea rdx, [0x14016fc90]
lea rcx, [rsp + 0x50]
call fcn.1400b5470
nop
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001193a
lea rdi, [0x140102478]
mov qword [rbp - 0x10], rdi
lea rsi, [0x1401025f8]
mov qword [rbp + 0x30], rsi
lea rdx, [rbx + 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.140006eb0
nop
lea rcx, [0x140000000]
lea rax, [rcx + 0x103568]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x58]
call fcn.140009d60
nop
mov dword [rsp + 0x34], 8
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.is::file_exception.0
mov qword [rsp + rcx + 0x50], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rdi
mov qword [rbp - 0x68], rsi
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140006eb0
nop
lea rdx, [0x14016fd48]
lea rcx, [rsp + 0x50]
call fcn.1400b5470
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012f20
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140012fd5
mov ecx, 0x400
call fcn.1400b321c
xor edx, edx
mov qword [rbx], rax
mov r8d, edx
mov eax, edx
shr eax, 1
test dl, 1
je 0x140012f53
xor eax, 0xedb88320
test al, 1
je 0x140012f60
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012f62
shr eax, 1
test al, 1
je 0x140012f6f
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012f71
shr eax, 1
test al, 1
je 0x140012f7e
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012f80
shr eax, 1
test al, 1
je 0x140012f8d
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012f8f
shr eax, 1
test al, 1
je 0x140012f9c
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012f9e
shr eax, 1
test al, 1
je 0x140012fab
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012fad
shr eax, 1
test al, 1
je 0x140012fba
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012fbc
shr eax, 1
mov rcx, qword [rbx]
inc edx
mov dword [r8 + rcx], eax
add r8, 4
cmp edx, 0xff
jle 0x140012f45
add rsp, 0x20
pop rbx
ret
Function at 0x140013c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, r9
xor esi, esi
mov dword [rax + 0x10], esi
mov ebx, esi
mov qword [rax - 0x20], rbx
mov dword [rax - 0x18], esi
mov qword [rax - 0x10], rsi
lea rdx, [r8 + 8]
mov qword [rax + 8], rsi
cmp qword [rdx + 0x18], 8
jb 0x140013c67
mov rdx, qword [rdx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013ccb
mov dword [rsp + 0x40], esi
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
lea rdx, [rdi + 8]
cmp qword [rdx + 0x18], 8
jb 0x140013cab
mov rdx, qword [rdx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [rsp + 0x68]
test rbx, rbx
je 0x140013ce2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
mov eax, edi
mov dword [rsp + 0x40], esi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400151c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, rcx
xor ebp, ebp
mov edi, ebp
mov qword [rax - 0x30], rbp
mov dword [rax - 0x28], ebp
mov qword [rax - 0x20], rbp
mov ebx, 0x200
cmp byte [rcx + 0xb8], bpl
cmovne ebx, ebp
lea rdx, [rcx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140015205
mov rdx, qword [rdx]
or ebx, 0x20019
mov qword [rsp + 0x78], rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015289
mov dword [rsp + 0x40], ebp
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
and ebx, 0x300
mov dword [rsp + 0x40], ebx
cmp qword [rsi + 0x80], 0
jne 0x140015254
mov bl, 1
jmp 0x14001528b
mov dword [rsp + 0x70], ebp
lea rdx, [rsi + 0x70]
cmp qword [rdx + 0x18], 8
jb 0x140015266
mov rdx, qword [rdx]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
setne bl
jmp 0x14001528b
xor bl, bl
test rdi, rdi
je 0x14001529e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbp
movzx eax, bl
mov dword [rsp + 0x40], ebp
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a7d0
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, r8
mov r14d, edx
mov rsi, rcx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, rax
lea r12, [0x140102478]
mov qword [rsp + 0x50], r12
lea r15, [0x1401025f8]
mov qword [rbp - 0x70], r15
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea rcx, [rsp + 0x50]
call fcn.140003cb0
nop
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call fcn.1400a7bf4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x70], r15
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, str.Reboot
lea rcx, [rsp + 0x50]
call fcn.140003cb0
nop
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.140044e40
nop
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.1400a7bf4
mov qword [rbp - 0x10], r12
mov qword [rbp + 0x30], r15
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x1400fc414]
lea rcx, [rbp - 0x10]
call fcn.140003cb0
nop
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x10]
mov r8d, r14d
mov edx, 2
mov rcx, rsi
call fcn.140026590
nop
lea rcx, [rbp - 0x10]
call fcn.1400048d0
mov eax, r14d
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003ab20
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x24], edi
lea rdx, [r11 - 0x228]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14003abcf
lea rax, vtable.std::exception.0
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, vtable.is::win32_exception.0
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], dil
lea ecx, [rdi + 4]
call fcn.1400b3630
mov dword [rax], 1
mov qword [rsp + 0x70], rax
lea rdx, [0x14016fb70]
lea rcx, [rsp + 0x40]
call fcn.1400b5470
nop
lea rdi, [0x140102478]
mov qword [rsp + 0x40], rdi
lea rsi, [0x1401025f8]
mov qword [rsp + 0x80], rsi
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140003cb0
nop
lea rdx, [0x140102600]
lea rcx, [rsp + 0x40]
call fcn.14000a190
mov qword [rbx], rdi
mov qword [rbx + 0x40], rsi
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140006eb0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x40]
call fcn.1400048d0
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14003ac70
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x24], edi
mov edx, 0x104
lea rcx, [r11 - 0x228]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14003ad1f
lea rax, vtable.std::exception.0
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, vtable.is::win32_exception.0
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], dil
lea ecx, [rdi + 4]
call fcn.1400b3630
mov dword [rax], 1
mov qword [rsp + 0x70], rax
lea rdx, [0x14016fb70]
lea rcx, [rsp + 0x40]
call fcn.1400b5470
nop
lea rdi, [0x140102478]
mov qword [rsp + 0x40], rdi
lea rsi, [0x1401025f8]
mov qword [rsp + 0x80], rsi
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140003cb0
nop
lea rdx, [0x140102600]
lea rcx, [rsp + 0x40]
call fcn.14000a190
mov qword [rbx], rdi
mov qword [rbx + 0x40], rsi
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140006eb0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x40]
call fcn.1400048d0
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret