joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004aa40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401c9164]
mov rbx, rcx
test esi, esi
jle 0x14004ab70
mov rax, qword [0x1401c9168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004aa8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004ab15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004aa70
mov rcx, rbx
call fcn.14004b4c0
mov rdi, rax
test rax, rax
je 0x14004ab92
mov rax, qword [0x1401c9168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004b600
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401c9168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004ab77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004ab0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004ab20
add dword [0x1401c9164], 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 [0x1401c9168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x14004ab0e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004a9d0
nop dword [rax]
xor esi, esi
jmp 0x14004aa98
mov rax, qword [0x1401c9168]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004a9d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004a9d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004b130
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401c91c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c91a0]
test rbx, rbx
je 0x14004b18c
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 rsi, rsi
je 0x14004b183
test eax, eax
jne 0x14004b183
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004b168
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 0x14004b4c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14004b540
Capabilities:
Parse pe header

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

Function at 0x14004b600
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401c2d80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004b61f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004b628
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004007
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140004007
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003ff4
cmp rbx, rcx
jae 0x140004007
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003fdf
cmp rbx, rcx
jae 0x140004007
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140004009
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004a40
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
cmp byte [rcx + 0x53a], 0
jne 0x140004b5d
mov byte [rcx + 0x53a], 1
mov byte [0x14031be7b], 1
call fcn.1400071c8
nop
jmp 0x140004a89
mov rax, qword [rdi + 0x540]
test rax, rax
je 0x140004aa7
mov rcx, qword [rax]
test rcx, rcx
je 0x140004aa7
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rdx, qword [rdi + 0x558]
test rdx, rdx
je 0x140004abd
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
mov edx, 0x1a
mov rcx, rdi
call fcn.14000556c
xor r8d, r8d
lea edx, [r8 + 0x19]
mov rcx, rdi
call fcn.1400055dc
and qword [rsp + 0x20], 0
call fcn.1400763d8
mov rcx, rax
test rax, rax
je 0x140004b77
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov ecx, 0x1e
call fcn.140078ff8
test rax, rax
je 0x140004b26
mov r8d, 0x1e
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004020
mov rbx, qword [rsp + 0x20]
lea rcx, [rdi + 0x340]
mov rdx, rbx
call fcn.140098c34
mov edx, 2
mov rcx, rdi
call fcn.14009baa4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004b5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140212f90
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002d2c
int3
Function at 0x1400059b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialogEx.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x14009b34b
cmp dword [rcx + 0xe8], 0
jne 0x14009b34b
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.14009aeac
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14009b6b8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x14009b70d
call fcn.14008bf54
mov rdx, rax
test rax, rax
je 0x14009b70b
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x1401b67e9.0]
mov rbx, rax
jmp 0x14009b70d
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14009b420

Function at 0x1400062c8
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rcx
lea rcx, [0x140006244]
call fcn.14008be14
mov qword [rbx], rax
test rax, rax
jne 0x140006369
and qword [rsp + 0x30], rax
lea rdx, str.Thread_creation_failed
lea rcx, [rsp + 0x30]
call fcn.140003f10
nop
call fcn.1400062a4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006348
mov r9, qword [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000637a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000637a
and dword [rax + 0x50], 0
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140212f90
add rsp, 0x40
pop rbx
ret

Function at 0x140009f64
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14000a3f4
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14000a426
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14000a409
mov rax, r8
ret
Function at 0x140010fd0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x38], rdi
movdqa xmm0, xmmword [0x1402c75d0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
mov byte [rsp + 0x30], dil
lea rdx, str.srl::System::Initialize
lea rcx, [rsp + 0x38]
call fcn.140009b0c
nop
call fcn.14001fcc0
cmp dword [rax + 8], 4
jl 0x140011049
lea rcx, [rsp + 0x30]
call fcn.140015ae0
lea rcx, [rbp + 0x70]
call fcn.140010ef0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400139c0
nop
lea rcx, [rsi + 8]
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x60]
test rdx, rdx
jne 0x14001108a
mov eax, edi
jmp 0x14001109a
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140011090
mov r8d, eax
call fcn.140002aa8
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400110b7
call fcn.14021f680
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str._systemrequirementslabcyriconfig.ini
lea rcx, [rbp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rbp + 0x1b0]
lea r8, [0x1402bbac0]
lea rdx, [0x1402c03a0]
lea rcx, str.Detection
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add rsi, 0x10
cmp word [rbp + 0x1b0], 0
jne 0x1400111b5
lea rcx, [rbp + 0xa8]
call fcn.140010ef0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rdx, [rbp + 0xa8]
lea rcx, [rsp + 0x60]
call fcn.1400139c0
nop
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14001116d
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140011161
mov edi, ebx
mov r8d, edi
mov rcx, rsi
call fcn.140002aa8
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x14001118d
call fcn.14021f680
mov rcx, rsi
call fcn.140012a20
lea r9, [rbp + 0xe0]
mov r8, qword [rsi]
lea rdx, [0x1402c03a0]
lea rcx, str.Detection
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x1400111dd
lea rax, [rbp + 0x1b0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400111c0
mov r8d, ebx
lea rdx, [rbp + 0x1b0]
mov rcx, rsi
call fcn.140002aa8
nop
lea rcx, [rsp + 0x30]
call fcn.140017400
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140212f90
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140020a20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x80], 0
mov rbx, rcx
je 0x140020b37
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140020a81
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
lea rdi, [rbx + 0x71]
je 0x140020adb
cmp byte [rdi], 0
je 0x140020adb
mov rax, qword [rbx]
mov edx, 0xffffffff
mov rcx, rbx
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140020aa8
xor al, al
jmp 0x140020add
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140020afb
sub eax, 1
je 0x140020afe
cmp eax, 2
jne 0x140020aa4
mov byte [rdi], 0
mov al, 1
mov rcx, qword [rbx + 0x80]
xor esi, esi
test al, al
mov ebp, esi
cmovne rbp, rbx
call fcn.140222430
test eax, eax
cmovne rbp, rsi
jmp 0x140020b3f
mov byte [rdi], 0
mov rsi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rsi, rax
je 0x140020b2f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rsi
mov edx, 1
call fcn.140222180
cmp rsi, rax
jne 0x140020aa4
cmp byte [rdi], 0
sete al
jmp 0x140020add
xor esi, esi
lea rdi, [rcx + 0x71]
mov ebp, esi
mov byte [rbx + 0x7c], 0
lea rcx, [rbx + 0x4c]
mov qword [rbx + 0x58], rcx
lea rax, [rbx + 8]
mov qword [rbx + 0x18], rax
lea r8, [rbx + 0x10]
mov byte [rdi], 0
lea rax, [rbx + 0x28]
mov qword [rbx + 0x38], rax
lea rdx, [rbx + 0x30]
mov qword [rbx + 0x20], r8
lea rax, [rbx + 0x48]
mov qword [rbx + 0x50], rax
mov rax, rbp
mov qword [rbx + 0x40], rdx
mov qword [r8], rsi
mov qword [rdx], rsi
mov dword [rcx], esi
mov rcx, qword [rbx + 0x18]
mov qword [rcx], rsi
mov rcx, qword [rbx + 0x38]
mov qword [rcx], rsi
mov rcx, qword [rbx + 0x50]
mov dword [rcx], esi
mov rcx, qword [0x14031c030]
mov qword [rbx + 0x74], rcx
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x68], rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140212f90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002f850
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x14a0
call fcn.140213a40
sub rsp, rax
mov rax, qword [0x14030c918]
xor rax, rsp
mov qword [rsp + 0x1490], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
xor r13d, r13d
mov dword [rcx], r13d
mov dword [rdx], r13d
mov dword [r8], r13d
mov edx, 0x1450
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002fa7d
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x14002fab3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov rbp, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x14002f8f4
lea rax, [rsp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140010ac0
jmp 0x14002f91d
lea rcx, [rsp + 0x40]
mov rax, rbp
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14002f900
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140002aa8
nop
mov rbx, qword [rsp + 0x20]
mov rsi, rbx
mov rdi, r13
movzx eax, word [rbx]
test ax, ax
je 0x14002f9ab
movzx edx, ax
lea rcx, [0x1402c1b20]
call fcn.140217664
test rax, rax
je 0x14002f953
mov rax, rsi
test rdi, rdi
cmovne rax, rdi
mov rdi, rax
jmp 0x14002f956
mov rdi, r13
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x14002f930
test rdi, rdi
je 0x14002f9ab
sub rdi, rbx
sar rdi, 1
test edi, edi
js 0x14002faa8
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14002f997
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140002a48
mov rbx, qword [rsp + 0x20]
cmp edi, dword [rbx - 0xc]
jg 0x14002faa8
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r13w
lea rdx, [0x1402c1b28]
mov rax, rbp
inc rax
cmp word [rdx + rax*2], 0
jne 0x14002f9b5
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.140005abc
lea rdx, [rsp + 0x2c]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
mov ecx, eax
call fcn.140003e48
mov rsi, rax
mov r9, rax
mov r8d, edi
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rsi
test eax, eax
je 0x14002fa59
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x1402c262c]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14002fa4c
cmp dword [rsp + 0x28], 0
je 0x14002fa4c
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + 0x12]
mov dword [r14], eax
movzx eax, word [rcx + 0x10]
mov dword [r15], eax
movzx eax, word [rcx + 0x16]
mov dword [r12], eax
mov rcx, rsi
call fcn.140075f74
mov dil, 1
jmp 0x14002fa61
call fcn.140075f74
xor dil, dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x14002fa79
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rsp + 0x1490]
xor rcx, rsp
call fcn.140212f90
mov rbx, qword [rsp + 0x14f8]
add rsp, 0x14a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
int3
Function at 0x1400346b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, rdx
mov r15, rcx
mov eax, dword [rsp + 0x34]
add eax, eax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.version
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034836
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140034836
mov r14d, dword [rsp + 0x30]
shr r14d, 1
je 0x140034836
lea eax, [r14 + 1]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
lea rsi, [rax + rax]
cmp rsi, 0x1000
jb 0x14003476d
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14003489f
call fcn.140075f2c
test rax, rax
je 0x1400348a5
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140034782
test rsi, rsi
je 0x14003477f
mov rcx, rsi
call fcn.140075f2c
mov rbx, rax
jmp 0x140034782
mov rbx, r12
mov qword [rsp + 0x38], rbx
lea rdi, [rsi + rbx]
mov qword [rsp + 0x48], rdi
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140217dc0
mov qword [rsp + 0x40], rdi
lea eax, [r14 + r14]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.version
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400347fc
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400347fc
test rbx, rbx
je 0x140034855
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140034851
test al, 1
jne 0x1400347fc
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140034855
test rbx, rbx
je 0x140034836
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x14003482b
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400348a5
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000410c
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov word [rbx], r12w
mov rdx, rbx
mov rcx, rbp
call fcn.140009b0c
nop
test rbx, rbx
je 0x14003489b
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x140034890
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400348a5
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000410c
mov al, 1
jmp 0x140034838
call fcn.140006194
int3
call fcn.14021bfcc
int3
Function at 0x1400348b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r12, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003490c
cmp dword [rsp + 0x34], 4
je 0x140034ad5
jmp 0x140034915
cmp eax, 0xd
jne 0x140034a62
xor esi, esi
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034a62
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140034a62
mov r15d, dword [rsp + 0x30]
shr r15d, 1
je 0x140034a62
lea eax, [r15 + 1]
lea r14, [rax + rax]
cmp r14, 0x1000
jb 0x1400349a2
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140034ad9
call fcn.140075f2c
test rax, rax
je 0x140034adf
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400349b7
test r14, r14
je 0x1400349b4
mov rcx, r14
call fcn.140075f2c
mov rbx, rax
jmp 0x1400349b7
mov rbx, rsi
lea rdi, [r14 + rbx]
mov r8, r14
xor edx, edx
mov rcx, rbx
call fcn.140217dc0
nop
lea eax, [r15 + r15]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034a24
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140034a24
test rbx, rbx
je 0x140034a80
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140034a7d
test al, 1
jne 0x140034a24
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140034a80
test rbx, rbx
je 0x140034a62
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x140034a57
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140034adf
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000410c
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov word [rbx], si
movzx ecx, word [rbx]
sub ecx, 0x31
jne 0x140034a91
movzx ecx, word [rbx + 2]
movzx eax, si
sub ecx, eax
test ecx, ecx
sete sil
mov dword [r12], esi
test rbx, rbx
je 0x140034ad5
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rdi, 0x1000
jb 0x140034aca
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x140034adf
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14000410c
mov al, 1
jmp 0x140034a64
call fcn.140006194
int3
call fcn.14021bfcc
int3
Function at 0x140035eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x40], eax
xor esi, esi
mov dword [r9], esi
lea rax, [rsp + 0x40]
mov rcx, qword [rcx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140035f25
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x140035f20
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x140035f38
test ecx, ecx
je 0x140035f35
test cl, 1
jne 0x140035f20
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x140035f38
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
add rsp, 0x30
pop rdi
ret