joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ea0
Capabilities:
Suspend thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r14
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
cmp byte [rcx + 0x53a], 0
jne 0x140005091
mov byte [rcx + 0x53a], 1
mov byte [0x14036bdd3], 1
call fcn.140007c98
mov rax, qword [rdi + 0x540]
test rax, rax
je 0x140004f0f
mov rcx, qword [rax]
test rcx, rcx
je 0x140004f0f
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
and qword [rbp - 0x10], 0
lea rdx, str.cyri_api_LogUserEvent
lea rcx, [rbp - 0x10]
call fcn.14000417c
nop
and qword [rbp - 0x20], 0
call fcn.14008b2e8
mov rcx, rax
test rax, rax
je 0x1400050bf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x30]
call fcn.140002824
nop
mov r8, qword [rax]
lea rdx, str.Tag:_detection_app__EventType:_cancel__Description:_cancel__UserId:__s_
lea rcx, [rbp - 0x20]
call fcn.140006288
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140004f8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9b, 1
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x10]
call fcn.140007d08
mov rdx, qword [rdi + 0x558]
test rdx, rdx
je 0x140004fb1
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
mov edx, 0x1a
mov rcx, rdi
call fcn.140005abc
xor r8d, r8d
lea edx, [r8 + 0x19]
mov rcx, rdi
call fcn.140005b38
and qword [rbp - 0x18], 0
call fcn.14008b2e8
mov rcx, rax
test rax, rax
je 0x1400050b4
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x18], rbx
mov ecx, 0x1e
call fcn.14008dd80
test rax, rax
je 0x140005016
mov r8d, 0x1e
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140004420
mov rbx, qword [rbp - 0x18]
lea rcx, [rdi + 0x340]
mov rdx, rbx
call fcn.1400ad234
mov edx, 2
mov rcx, rdi
call fcn.1400b00e0
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140005050
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140005071
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140005091
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140229da0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002d3c
nop
mov ecx, 0x80004005
call fcn.140002d3c
int3
Function at 0x140005e0c
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 rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x1400af98b
cmp dword [rcx + 0xe8], 0
jne 0x1400af98b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400af4b8
mov r8d, 5
mov rdx, rdi
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, rsi
mov rdi, rax
call fcn.1400afd10
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006464
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x40], 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, [0x140006400]
call fcn.1400a0304
mov qword [rbx], rax
test rax, rax
jne 0x140006509
and qword [rsp + 0x38], rax
lea rdx, str.Thread_creation_failed
lea rcx, [rsp + 0x38]
call fcn.1400042fc
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400064e8
mov r9, qword [rsp + 0x38]
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000651a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14000651a
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 + 0x40]
xor rcx, rsp
call fcn.140229da0
add rsp, 0x50
pop rbx
ret
Function at 0x140022600
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call fcn.140236824
lea edx, [r14 + 0xb]
lea rcx, [rbp + 0x50]
call fcn.140236984
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140022660
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140009a80
lea rcx, [rsp + 0x30]
call fcn.14001b770
nop
cmp dword [rbx + 0x14], 0
jne 0x14002269e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x14], eax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140014f90
jmp 0x1400226c2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x14]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x1402f8180]
lea rcx, [rsp + 0x40]
call fcn.140022d10
nop
lea rcx, [rbp + 0x30]
call fcn.140009a0c
movdqa xmm0, xmmword [0x1402f81e0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r14w
mov ebx, 2
mov dword [rsp + 0x20], ebx
mov rcx, qword [rbp - 0x48]
test bl, cl
jne 0x140022710
mov rax, qword [rbp - 0x78]
mov r8, qword [rax]
test r8, r8
je 0x140022710
mov rax, qword [rsp + 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x50]
cmovb r8, qword [rbp - 0x50]
sub r8, rdx
jmp 0x140022739
test cl, 4
jne 0x140022745
mov rax, qword [rbp - 0x80]
mov rcx, qword [rax]
test rcx, rcx
je 0x140022745
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x30]
call fcn.140009a80
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea rax, [rbp + 0x30]
cmp rdi, rax
je 0x140022787
mov rcx, rdi
call fcn.140009a1c
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1402f81e0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r14w
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x30]
call fcn.140009824
nop
lea rcx, [rsp + 0x30]
call fcn.14001b430
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140229da0
add rsp, 0x170
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140022f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 8]
mov r14, rcx
cmp qword [rbx + 0x80], 0
jne 0x140022f7e
xor edi, edi
mov esi, edi
jmp 0x14002303a
cmp qword [rbx + 0x68], 0
je 0x14002301c
cmp byte [rbx + 0x71], 0
je 0x14002301c
mov rax, qword [rbx]
mov edx, 0xffffffff
mov rcx, rbx
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140022faa
xor al, al
jmp 0x14002301e
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140022fde
sub eax, 1
je 0x140022fe2
sub eax, 2
je 0x14002301c
xor al, al
jmp 0x14002301e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
sub rdi, rax
je 0x140023013
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x40]
mov r8, rdi
mov edx, 1
call fcn.140236bcc
cmp rdi, rax
je 0x140023013
xor al, al
jmp 0x14002301e
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002301e
mov al, 1
mov rcx, qword [rbx + 0x80]
xor edi, edi
test al, al
mov esi, edi
cmovne rsi, rbx
call fcn.140236e7c
test eax, eax
cmovne rsi, rdi
mov byte [rbx + 0x7c], 0
lea rax, [rbx + 8]
mov qword [rbx + 0x18], rax
lea rax, [rbx + 0x28]
mov qword [rbx + 0x38], rax
lea rax, [rbx + 0x30]
mov qword [rbx + 0x40], rax
lea rax, [rbx + 0x48]
mov qword [rbx + 0x50], rax
lea rax, [rbx + 0x4c]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x10]
mov byte [rbx + 0x71], 0
mov qword [rbx + 0x20], rcx
mov qword [rcx], rdi
mov rax, qword [rbx + 0x40]
mov qword [rax], rdi
mov rax, qword [rbx + 0x58]
mov dword [rax], edi
mov rax, qword [rbx + 0x18]
mov qword [rax], rdi
mov rax, qword [rbx + 0x38]
mov qword [rax], rdi
mov rax, qword [rbx + 0x50]
mov dword [rax], edi
mov rax, qword [0x14036bfe8]
mov qword [rbx + 0x74], rax
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x68], rdi
test rsi, rsi
jne 0x1400230dc
mov rax, qword [r14]
mov edx, 2
movsxd rcx, dword [rax + 4]
mov eax, 6
add rcx, r14
cmp qword [rcx + 0x48], rsi
cmovne eax, edx
mov edx, dword [rcx + 0x14]
or eax, dword [rcx + 0x10]
and eax, 0x17
mov dword [rcx + 0x10], eax
and edx, eax
jne 0x140023100
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140229da0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test dl, 4
je 0x14002310e
lea rbx, str.ios_base::badbit_set
jmp 0x140023123
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140019d30
mov r8, rax
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140019b00
lea rdx, [0x1403562c8]
lea rcx, [rsp + 0x40]
call fcn.14022ed50
int3
Function at 0x14003bc30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x34], 4
lea rax, [r11 - 0x44]
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], rdx
lea r9, [r11 - 0x48]
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003bc94
cmp dword [rsp + 0x30], 4
jne 0x14003bc9d
mov al, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp eax, 0xd
jne 0x14003bdf1
xor ebp, ebp
mov dword [rsp + 0x34], ebp
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.install
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003bdf1
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x14003bdf1
mov eax, dword [rsp + 0x34]
shr eax, 1
mov dword [rsp + 0x30], eax
je 0x14003bdf1
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.14003c8a0
nop
lea r9, [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rdx, str.install
mov rcx, rdi
call fcn.14003d4a0
test eax, eax
jne 0x14003bda7
movzx ecx, word [rbx]
movzx eax, word [0x1402f2ee0]
sub ecx, eax
jne 0x14003bd3e
movzx ecx, word [rbx + 2]
movzx eax, word [0x1402f2ee2]
sub ecx, eax
mov eax, ebp
test ecx, ecx
sete al
mov dword [rsi], eax
test rbx, rbx
je 0x14003bd95
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003bd7f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003be09
mov rcx, rbx
call fcn.140004518
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbp
mov al, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x14003bdf1
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003bddb
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003be03
mov rcx, rbx
call fcn.140004518
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbp
xor al, al
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call fcn.1402311b4
int3
call fcn.1402311b4
int3
Function at 0x14003d4a0
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 0x14003d515
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x14003d510
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x14003d528
test ecx, ecx
je 0x14003d525
test cl, 1
jne 0x14003d510
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14003d528
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
Function at 0x14003d540
Capabilities:
Get memory capacity

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
xor eax, eax
mov dword [rsp + 0x30], eax
lea rdi, vtable.srl::Value.0
mov qword [rsp + 0x58], rdi
lea rsi, vtable.srl::Size.0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov dword [r11 - 0x58], 0x40
mov dword [rsp + 0x400], 0x38
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14003d6b0
lea rcx, [rsp + 0x2a0]
call fcn.14001b770
nop
lea rcx, [rsp + 0x1a0]
call fcn.14001b770
nop
lea rcx, [rsp + 0xa0]
call fcn.14001b770
nop
lea rdx, str.GlobalMemoryStatusEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d648
lea rcx, [rsp + 0x440]
call rax
mov rax, qword [rsp + 0x448]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x468]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x450]
jmp 0x14003d678
lea rcx, [rsp + 0x400]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov rax, qword [rsp + 0x408]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x428]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x410]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0xa0]
call fcn.14001b430
nop
lea rcx, [rsp + 0x1a0]
call fcn.14001b430
nop
lea rcx, [rsp + 0x2a0]
call fcn.14001b430
call fcn.140012770
lea rbx, [rax + 0xa8]
lea r8, [rsp + 0x58]
mov edx, 0x11597
mov rcx, rbx
call fcn.14001fca0
lea r8, [rsp + 0x48]
mov edx, 0x116d5
mov rcx, rbx
call fcn.14001fca0
lea r8, [rsp + 0x38]
mov edx, 0x116d6
mov rcx, rbx
call fcn.14001fca0
lea r8, [0x1402ec330]
mov edx, 0x11606
mov rcx, rbx
call fcn.14001ff00
lea r8, [0x1402ec330]
mov edx, 0x11607
mov rcx, rbx
call fcn.14001ff00
nop
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x58], rdi
mov al, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140229da0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140048420
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
cmp qword [rcx + 0x18], 8
jb 0x14004846b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x24]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14004861a
mov ecx, esi
call fcn.140237210
mov rdi, rax
test rax, rax
je 0x14004861a
cmp qword [rbx + 0x18], 8
jb 0x14004849d
mov rbx, qword [rbx]
mov r9, rdi
mov r8d, esi
mov edx, dword [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rdi
test eax, eax
je 0x140048615
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [0x1402f3024]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140048612
lea rcx, [rsp + 0x40]
call fcn.14001b770
nop
mov rbx, qword [rsp + 0x30]
movzx edx, word [rbx + 0xa]
lea rcx, [rsp + 0x50]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 8]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 0xe]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 0xc]
call fcn.14003c970
nop
lea rcx, [rbp + 0x40]
call fcn.140009a0c
movdqa xmm0, xmmword [0x1402f81e0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], r15w
mov ebx, 2
mov dword [rsp + 0x20], ebx
mov rcx, qword [rbp - 0x38]
test bl, cl
jne 0x14004859a
mov rax, qword [rbp - 0x68]
mov r8, qword [rax]
test r8, r8
je 0x14004859a
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x40]
cmp r8, rax
cmovb r8, rax
sub r8, rdx
jmp 0x1400485c3
test cl, 4
jne 0x1400485cf
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400485cf
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x40]
call fcn.140009a80
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.14000dc54
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x40]
call fcn.140009824
mov rcx, rdi
call fcn.140234520
nop
lea rcx, [rsp + 0x40]
call fcn.14001b430
mov al, 1
jmp 0x14004861c
mov rcx, rdi
call fcn.140234520
xor al, al
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140229da0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048640
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1700]
mov eax, 0x1800
call fcn.14022a960
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1840], rbx
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rbp + 0x16f0], rax
mov r14, rdx
mov rbx, rcx
xor sil, sil
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], r15
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea rcx, [rsp + 0x58]
call fcn.14000983c
nop
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400486b9
mov r9, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140048701
lea rdi, [rcx + rdx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp r8, 8
cmovae rbx, qword [rsp + 0x58]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call fcn.14022e750
mov word [rbx + rdi*2], r15w
jmp 0x140048710
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x58]
call fcn.140023320
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov rdx, 0xffffffff80000002
mov r9d, 0x20019
lea rcx, [rsp + 0x38]
call fcn.14003d370
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x1400487ed
mov dword [rsp + 0x30], 0x7d0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1402ec330]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400487ed
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400487ed
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400487a0
test al, 1
jne 0x1400487ed
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x1400487a5
jmp 0x1400487ed
mov word [rbp - 0x80], r15w
mov r8d, 0x7d0
lea rdx, [rbp + 0x750]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rbp + 0x750]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400487d0
lea rdx, [rbp + 0x750]
mov rcx, r14
call fcn.140009a80
mov sil, 1
lea rcx, [rsp + 0x58]
call fcn.140009824
nop
test rbx, rbx
je 0x14004880b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
movzx eax, sil
mov dword [rsp + 0x40], r15d
mov rcx, qword [rbp + 0x16f0]
xor rcx, rsp
call fcn.140229da0
mov rbx, qword [rsp + 0x1840]
add rsp, 0x1800
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a320
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1a0], rbx
mov rax, qword [0x14035c8c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, r8
mov r14, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x24]
mov rcx, qword [r14]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14004a3a1
mov ecx, esi
call fcn.140237210
mov rbx, rax
test rax, rax
je 0x14004a3a1
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0x24]
mov rcx, qword [r14]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rbx
test eax, eax
jne 0x14004a3a8
call fcn.140234520
xor al, al
jmp 0x14004a522
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x28]
lea rdx, [0x1402f3024]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004a522
lea rcx, [rsp + 0x40]
call fcn.14001b770
nop
mov rbx, qword [rsp + 0x28]
movzx edx, word [rbx + 0xa]
lea rcx, [rsp + 0x50]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 8]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 0xe]
call fcn.14003c970
mov rcx, rax
lea rdx, [0x1402f0d40]
call fcn.140017320
mov rcx, rax
movzx edx, word [rbx + 0xc]
call fcn.14003c970
nop
lea rcx, [rbp + 0x40]
call fcn.140009a0c
movdqa xmm0, xmmword [0x1402f81e0]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov ebx, 2
mov dword [rsp + 0x20], ebx
mov rcx, qword [rbp - 0x38]
test bl, cl
jne 0x14004a48b
mov rax, qword [rbp - 0x68]
mov r8, qword [rax]
test r8, r8
je 0x14004a48b
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x40]
cmp r8, rax
cmovb r8, rax
sub r8, rdx
jmp 0x14004a4b4
test cl, 4
jne 0x14004a4c0
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004a4c0
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x40]
call fcn.140009a80
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
mov ebx, 1
mov dword [rsp + 0x20], ebx
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
jb 0x14004a4e4
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x14004a4fc
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004a4f0
mov edi, eax
mov r8d, edi
mov rcx, r15
call fcn.140002a7c
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x40]
call fcn.140009824
nop
lea rcx, [rsp + 0x40]
call fcn.14001b430
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140229da0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret