joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002aaf0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
call fcn.140002000
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rdi], rax
mov esi, 1
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x80], rbp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x14002ac8b
mov rbx, qword [rdi]
mov rcx, qword [rbx - 0x18]
mov eax, dword [rbx - 8]
cmp eax, esi
jle 0x14002abc3
mov rax, qword [rcx]
mov byte [rsp + 0x30], sil
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], sil
mov r9d, 0x820
mov r8d, dword [rbx - 0x10]
mov rdx, qword [rdi]
call qword [rax + 0x28]
mov qword [rdi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rbx - 8]
cmp eax, 0x7ffffc17
je 0x14002ac3b
mov eax, dword [rbx - 8]
cmp eax, edx
je 0x14002abb3
lock xadd dword [rbx - 8], edx
sub edx, esi
jg 0x14002ac3b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
jmp 0x14002ac3b
mov edx, 0x820
cmp dword [rbx - 0xc], edx
jg 0x14002ac33
mov r9d, esi
add r9d, r9d
shr edx, 1
jne 0x14002abd0
mov rdx, qword [rdi]
mov eax, dword [rbx - 8]
mov r10, qword [rcx]
cmp eax, 0xffffffff
setne al
mov byte [rsp + 0x30], sil
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], 0
mov r8d, dword [rbx - 0x10]
call qword [r10 + 0x28]
mov qword [rdi], rax
mov edx, 0xffffffff
mov ecx, edx
xchg dword [rax - 8], ecx
mov eax, dword [rbx - 8]
cmp eax, 0x7ffffc17
je 0x14002ac3b
mov eax, dword [rbx - 8]
cmp eax, edx
je 0x14002ac23
lock xadd dword [rbx - 8], edx
sub edx, esi
jg 0x14002ac3b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
jmp 0x14002ac3b
mov edx, 0xffffffff
xchg dword [rbx - 8], edx
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rdx, qword [rdi]
test rdx, rdx
je 0x14002ac75
mov rcx, rdx
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14002ac60
sub rcx, rdx
sar rcx, 1
lea ebp, [rcx - 1]
mov dword [rdx - 0x10], ebp
mov eax, dword [rdx - 8]
cmp eax, 0xffffffff
jne 0x14002ac83
xchg dword [rdx - 8], esi
mov rcx, rdi
call fcn.14001c290
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002ac9e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rdi
call fcn.14002f4a0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140030240
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rsi, rcx
mov r14, rdx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140030270
xor eax, eax
add rsp, 0x260
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x288], rbx
lea rax, [rbp + 0x190]
mov qword [rsp + 0x258], rdi
xor r8d, r8d
mov edi, dword [rsi + 8]
or edi, 0x2001f
mov qword [rsp + 0x250], r15
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov r9d, edi
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rbp + 0x190], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1400302ee
mov ebx, r15d
test rcx, rcx
je 0x1400302d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rbp + 0x190]
and edi, 0x300
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edi
mov rdi, qword [rsp + 0x258]
test ebx, ebx
jne 0x1400303d4
lea rax, [rbp + 0x198]
mov dword [rbp + 0x180], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140030397
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140030240
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1400303d4
lea rax, [rbp + 0x198]
mov dword [rbp + 0x180], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140030340
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400303af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r15
mov qword [rsp + 0x40], rcx
mov rax, qword [rsi]
mov ebx, 0xd
mov dword [rsp + 0x48], r15d
test rax, rax
je 0x1400303d4
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
mov r15, qword [rsp + 0x250]
test rcx, rcx
je 0x1400303e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop r14
pop rsi
pop rbp
ret
Function at 0x1400540a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, r9
test rcx, rcx
je 0x1400540dc
mov rax, rcx
nop word [rax + rax]
movzx edx, word [rax]
add rax, 2
test dx, dx
jne 0x1400540c0
sub rax, rcx
sar rax, 1
cmp eax, 1
mov qword [rsp + 0x20], rcx
jne 0x1400540e5
mov qword [rsp + 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x140053b00]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rdi, qword [rsp + 0x30]
lea rax, vtable.JRWndPtr.0
mov qword [rbx], rax
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140054142
cmp dword [rbx + 0x10], 1
jne 0x140054142
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x608]
cmp dword [rbx + 0x10], 2
jne 0x140054160
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140054160
mov r8, qword [rcx]
mov edx, 1
call qword [r8 + 0x2e8]
mov dword [rbx + 0x10], 0
mov qword [rbx + 8], 0
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14005a440
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov ebp, r9d
mov r14d, r8d
mov esi, edx
mov rdi, rcx
cmp edx, 9
jne 0x14005a48b
cmp byte [rcx + 0xf8], 0
je 0x14005a48b
lea ecx, [rdx + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
movzx r8d, al
mov rcx, rdi
call fcn.14005d4d0
xor r15d, r15d
mov rcx, qword [0x1400fac38]
test rcx, rcx
je 0x14005a4aa
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x98]
mov rcx, rax
jmp 0x14005a4ad
mov rcx, r15
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 8]
mov rbx, rax
lea rax, vtable.JRWndPtr.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14004fca0
mov r9, qword [rbx]
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [r9 + 0x18]
mov rbx, rax
test rax, rax
je 0x14005a57e
lea r15, vtable.JRWndDeleteProbe.0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x38], 0
test rdi, rdi
je 0x14005a527
mov r8, qword [rdi]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [r8 + 0x600]
nop
mov rax, qword [rbx]
mov r9d, ebp
mov r8d, r14d
mov edx, esi
mov rcx, rbx
call qword [rax + 0x188]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005a5a5
cmp byte [rsp + 0x38], 0
jne 0x14005a5a5
mov rax, qword [rcx]
call qword [rax + 0x308]
test al, al
je 0x14005a5a0
mov qword [rsp + 0x28], r15
cmp byte [rsp + 0x38], 0
jne 0x14005a57e
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005a57e
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x608]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
cmp byte [rsp + 0x38], 0
jne 0x14005a5c5
test rcx, rcx
je 0x14005a5c5
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x608]
nop
jmp 0x14005a586
Function at 0x140062e80
Capabilities:
Hide graphical window

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, 0x50
mov esi, edx
mov rdi, rcx
test edx, edx
setne bpl
mov byte [rcx + 0x28], bpl
test edx, edx
je 0x140062fca
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x518]
nop
lea r14, vtable.JRWndPtr.0
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140062f85
mov rax, qword [rbx]
lea rdx, str.JRControlWnd
mov rcx, rbx
call qword [rax + 0x2f8]
test al, al
je 0x140062f80
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [rax + 0x3c8]
test al, al
je 0x140062f7b
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x518]
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14004feb0
nop
mov qword [rsp + 0x38], r14
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140062f50
cmp dword [rsp + 0x48], 1
jne 0x140062f50
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x608]
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x48], 2
jne 0x140062f6b
test rcx, rcx
je 0x140062f6b
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x2e8]
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x140062ed5
jmp 0x140062f85
xor esi, esi
xor bpl, bpl
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x20], r14
test rbx, rbx
je 0x140062fac
cmp dword [rsp + 0x30], 1
jne 0x140062fac
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x608]
mov rbx, qword [rsp + 0x28]
cmp dword [rsp + 0x30], 2
jne 0x140062fca
test rbx, rbx
je 0x140062fca
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x2e8]
nop
mov byte [rdi + 0x28], bpl
mov edx, esi
mov rcx, qword [rdi + 0x190]
call qword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
setne bl
cmp byte [rdi + 0x28], 0
je 0x140063004
cmp byte [rdi + 0x1bc], 0
jne 0x140063004
mov byte [rdi + 0x1bc], 1
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x6d0]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14008e5ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008e636
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008e636
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008e636
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008e636
cmp dword [rcx + 0x84], 0xe
jbe 0x14008e636
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008e638
xor al, al
add rsp, 0x28
ret

Function at 0x14009af9c
Capabilities:
Parse pe header

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

Function at 0x14009b440
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f6028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14009b48a
call fcn.14009b7c0
mov dword [rax], 0xf
call fcn.14009b7e0
mov dword [rax], 0xd
call fcn.14009c118
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008e1d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14009b495
lea eax, [rbx + 1]
jmp 0x14009b477
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14009b475
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14009b477

Function at 0x14009b4ec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14009b527
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009b754
call fcn.14009b7e0
mov eax, dword [rax]
jmp 0x14009b59e
cmp rdi, qword [rbx + 0x18]
ja 0x14009b533
mov qword [rbx + 0x20], rdi
jmp 0x14009b59c
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14009b54a
mov rcx, qword [rbx + 0x10]
call fcn.14009f4b0
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1400a05a0
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14009b59e
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14009b511
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14009bcac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009bce3
call fcn.14009b7e0
mov dword [rax], 0x16
call fcn.14009c118
xor eax, eax
jmp 0x14009bd71
mov rdx, r9
mov rcx, r8
call fcn.14009bc48
mov rbx, rax
test rax, rax
je 0x14009bd6e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14009bb74]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14009bd5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009b754
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009bd42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009bd51
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009f4b0
jmp 0x14009bd6e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009bd6b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a4c40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009f000
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a4ce1
cmp ebx, dword [rsp + 0x30]
je 0x1400a4cda
test esi, esi
je 0x1400a4cda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a4cb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a4cc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a4c9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a4cc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a4ce3
mov eax, 1
jmp 0x1400a4ce3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a659c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a65b2
mov al, 1
jmp 0x1400a6612
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a65c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a6610
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a822c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a6610
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a6610
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a6610
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a6612
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a7d48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a7dcf
mov rsi, rbx
cmp word [rax], bp
je 0x1400a7d8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a7d78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a7d74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a05a0
mov rdi, rax
test rax, rax
je 0x1400a7dbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008ff40
mov rbp, rdi
xor ecx, ecx
call fcn.14009f4b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400abfa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400abfc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400abfc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140001773
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400017b6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400017b1
cmp rbx, r11
jae 0x1400017b6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400017a0
cmp rbx, r11
jb 0x1400017ba
xor eax, eax
jmp 0x1400017c6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400034f0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, str._ProgramFiles_Internet_Exploreriexplore.exe
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140003588
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003588
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x250], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140001e80
mov rdi, qword [rsp + 0x250]
mov al, 1
jmp 0x14000358a
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400cafa0
add rsp, 0x240
pop rbx
ret

Function at 0x1400058b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
xor edi, edi
lea rax, [rsp + 0x68]
mov rbp, rcx
lea rdx, str.SoftwareSony_CorporationVAIO_Update
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rdi
xor bl, bl
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400059bb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentEPID
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400059b0
mov ecx, dword [rsp + 0x58]
mov eax, 2
mov qword [rsp + 0x50], rsi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400ca8e8
mov ecx, dword [rsp + 0x58]
mov rsi, rax
mov rdi, rax
add rcx, rcx
xor eax, eax
rep stosb byte [rdi], al
test rsi, rsi
je 0x1400059ab
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentEPID
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400059a3
lea rcx, [rbp + 0x18]
mov rdx, rsi
call fcn.1400022e0
mov bl, 1
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400059d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
xor edi, edi
mov rbp, rdx
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWARESony_CorporationShared_InfoAppDBVAIO_Update
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
xor bl, bl
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005ada
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.version
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x70], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005acf
mov ecx, dword [rsp + 0x70]
mov eax, 2
mov qword [rsp + 0x60], rsi
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400ca8e8
mov ecx, dword [rsp + 0x70]
mov rsi, rax
mov rdi, rax
add rcx, rcx
xor eax, eax
rep stosb byte [rdi], al
test rsi, rsi
je 0x140005aca
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.version
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005ac2
mov rdx, rsi
mov rcx, rbp
call fcn.1400022e0
mov bl, 1
mov rcx, rsi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret