joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180109010
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x180109083
cmp word [rcx], si
je 0x180109083
lea rdx, [0x18013c5a8]
call fcn.18010bca8
test eax, eax
je 0x180109083
lea rdx, [0x18013c5c0]
mov rcx, rbx
call fcn.18010bca8
test eax, eax
jne 0x180109079
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1801090a0
mov eax, dword [rsp + 0x30]
jmp 0x1801090b2
mov rcx, rbx
call fcn.1800f1210
jmp 0x1801090b2
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1801090a4
xor eax, eax
jmp 0x1801090b2
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1801090b2
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801090c4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1800fa20c
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x180109167
cmp edi, dword [rsp + 0x30]
je 0x180109160
test ebp, ebp
je 0x180109160
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18010913c
sub dx, 0x61
cmp dx, 0x19
ja 0x180109148
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180109129
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18010914c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180109169
mov eax, 1
jmp 0x180109169
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18010b4e8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180157b00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18010b532
call fcn.1800dddb8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1800ddddc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1800ddc04
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d39c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18010b53d
lea eax, [rbx + 1]
jmp 0x18010b51f
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 0x18010b51d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18010b51f
Function at 0x18010b830
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800deb88
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18010b8ba
cmp byte [rbp - 0x21], r15b
je 0x18010b8b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18010b8f0
call fcn.1800fc58c
test eax, eax
jne 0x18010b8dc
cmp byte [rbp - 0x21], r15b
je 0x18010b8d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18010b8f0
cmp byte [rbp - 0x21], r15b
je 0x18010b8ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1800e41e8
test eax, eax
jne 0x18010b990
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800deb88
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18010b92f
cmp byte [rbp - 0x21], r15b
je 0x18010b964
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18010b964
call fcn.1800fc58c
test eax, eax
jne 0x18010b950
cmp byte [rbp - 0x21], r15b
je 0x18010b949
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18010b964
cmp byte [rbp - 0x21], r15b
je 0x18010b961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1800e41e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18010b990
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18010b993
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18010b9a1
mov rcx, rdi
call fcn.1800fbc70
cmp byte [rbp + 0x3f], r15b
je 0x18010b9b0
mov rcx, qword [rbp + 0x27]
call fcn.1800fbc70
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x18010cdd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18010cdf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18010cdf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007740
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
call fcn.1400078b0
test eax, eax
jle 0x1400077b6
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
jne 0x1400077b6
mov r9d, 0x40
lea r8, str.SteamTools
lea rdx, str.Steam
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140007894
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x58], rcx
lea rdi, vtable.CVolObject.0
mov qword [rbp - 0x58], rdi
xor ebx, ebx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
lea rax, vtable.CWString.0
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x38]
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
lea rsi, vtable.CVolMem.0
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 8], 0x40
mov qword [rbp - 0x40], rbx
mov qword [rbp - 8], 0xfe
lea rax, vtable.CWConstString.0
mov qword [rbp - 0x58], rax
lea rax, str.SoftwareValveSteamSteamPID
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x58]
call fcn.140014f90
nop
lea rax, [rbp - 0x38]
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x38], rsi
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000787b
mov rax, qword [rbp - 0x38]
mov r8, qword [rax + 0x18]
cmp rax, rsi
jne 0x140007874
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x14000787b
lea rcx, [rbp - 0x38]
call r8
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x58], rdi
mov eax, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400079e0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, edx
test edx, edx
jne 0x140007a05
xor eax, eax
jmp 0x140007a7b
xor edx, edx
mov qword [rsp + 0x280], rdi
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007a71
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call fcn.14008f150
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140007a68
nop dword [rax]
cmp dword [rsp + 0x28], ebx
je 0x140007a94
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140007a50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14008d330
add rsp, 0x270
pop rbx
ret
mov eax, 1
jmp 0x140007a73
Function at 0x140014ad0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov rdx, qword [rdx + 0x18]
mov rdi, r8
test rdx, rdx
jne 0x140014b06
lea rdx, [0x1400d1140]
cmp qword [rax + 0x48], rbx
je 0x140014b06
mov rdx, qword [rax + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014bd5
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x68], ebx
test rdx, rdx
jne 0x140014b4c
lea rdx, [0x1400d1140]
cmp qword [rdi + 0x48], rbx
je 0x140014b4c
mov rdx, qword [rdi + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014bca
cmp dword [rsp + 0x58], 4
jne 0x140014bca
cmp dword [rsp + 0x68], 4
jne 0x140014bca
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x50], ebx
test rdx, rdx
jne 0x140014b9e
lea rdx, [0x1400d1140]
cmp qword [rdi + 0x48], rbx
je 0x140014b9e
mov rdx, qword [rdi + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140014e40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rdx
xor edi, edi
mov rdx, qword [rdx + 0x18]
mov rsi, r9
mov rbp, r8
test rdx, rdx
jne 0x140014e7e
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rdi
je 0x140014e7e
mov rdx, qword [rbx + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140014ed9
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140014ebc
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rdi
je 0x140014ebc
mov rdx, qword [rbx + 0x38]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140014ed9
xor eax, eax
jmp 0x140014f6f
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140014ef1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x140014ee6
jmp 0x140014f05
mov rax, qword [rsi + 0x48]
test rax, rax
jne 0x140014eff
mov rax, rdi
jmp 0x140014f05
shr rax, 1
dec rax
test rdx, rdx
jne 0x140014f1b
lea rdx, [0x1400d1140]
cmp qword [rsi + 0x48], rdi
je 0x140014f1b
mov rdx, qword [rsi + 0x38]
mov r10, qword [rbp + 0x18]
test r10, r10
jne 0x140014f35
lea r10, [0x1400d1140]
cmp qword [rbp + 0x48], rdi
je 0x140014f35
mov r10, qword [rbp + 0x38]
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
sete dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400151d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
xor esi, esi
mov rbx, rdx
mov rdx, qword [rdx + 0x18]
mov rdi, r8
mov dword [rsp + 0x30], esi
test rdx, rdx
jne 0x14001520a
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rsi
je 0x14001520a
mov rdx, qword [rbx + 0x38]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140015270
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140015248
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rsi
je 0x140015248
mov rdx, qword [rbx + 0x38]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140015270
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rdi + 0x18]
test rdx, rdx
jne 0x14001528a
lea rdx, [0x1400d1140]
cmp qword [rdi + 0x48], rsi
je 0x14001528a
mov rdx, qword [rdi + 0x38]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
sete sil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140015530
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rdx
xor edi, edi
mov rdx, qword [rdx + 0x18]
mov rbp, r9
mov rsi, r8
test rdx, rdx
jne 0x14001556e
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rdi
je 0x14001556e
mov rdx, qword [rbx + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400155c6
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x1400155ac
lea rdx, [0x1400d1140]
cmp qword [rbx + 0x48], rdi
je 0x1400155ac
mov rdx, qword [rbx + 0x38]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1400155c6
xor eax, eax
jmp 0x140015620
mov rcx, qword [rbp + 0x28]
mov rax, rdi
test rcx, rcx
je 0x1400155d6
mov rax, qword [rbp + 0x18]
mov rdx, qword [rsi + 0x18]
test rdx, rdx
jne 0x1400155f0
lea rdx, [0x1400d1140]
cmp qword [rsi + 0x48], rdi
je 0x1400155f0
mov rdx, qword [rsi + 0x38]
mov dword [rsp + 0x28], ecx
mov r9d, 3
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
sete dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400156d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f80b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea rcx, vtable.CVolObject.0
mov qword [rdi], rcx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
lea rax, vtable.CWString.0
mov qword [rdi], rax
lea rbx, [rdi + 0x20]
mov qword [rsp + 0x38], rbx
mov qword [rbx], rcx
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
lea rbp, vtable.CVolMem.0
mov qword [rbx], rbp
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x30], 0x40
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x50], 0xfe
mov dword [rsp + 0x20], 1
mov word [rsp + 0x40], si
xor r9d, r9d
lea r8d, [rsi + 0x1a]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140015809
mov qword [rdi + 0x18], rsi
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400157bc
mov rax, qword [rbx]
mov r8, qword [rax + 0x18]
cmp rax, rbp
jne 0x1400157b6
lea rcx, [0x1400fc2f8]
call fcn.140025900
jmp 0x1400157bc
mov rcx, rbx
call r8
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], rsi
cmp word [rsp + 0x40], 0
je 0x140015801
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax]
lea r8, [r8 + 1]
cmp word [rax + r8*2], 0
jne 0x1400157e0
lea r8, [r8*2 + 2]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140024c30
mov rcx, rdi
call fcn.140015b20
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14008d330
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001dd80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rsi, rdx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov rdx, qword [rcx + 0x18]
mov rdi, qword [rdx + 0x80]
mov rdi, qword [rdi]
test rdi, rdi
je 0x14001dec8
call fcn.140001530
mov rcx, rax
test rax, rax
jne 0x14001ddd8
mov ecx, 0x80004005
call fcn.14001cda0
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r14, vtable.ATL::CAtlStringMgr.0
cmp rax, r14
jne 0x14001ddf5
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x14001ddf7
call rdx
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebp, [rax + 1]
test ebp, ebp
jns 0x14001de1b
mov ecx, 0x80070057
call fcn.14001cda0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x14001de3d
mov edx, ebp
lea rcx, [rsp + 0x60]
call fcn.14001eba0
mov rbx, qword [rsp + 0x60]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 0xffffffff
jne 0x14001de5d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400933fc
test eax, eax
js 0x14001debd
cmp eax, dword [rbx - 0xc]
jg 0x14001debd
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
mov rdx, rbx
mov rcx, rsi
call fcn.14000e3e0
mov dword [rsp + 0x20], 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dedd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14001deb8
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14001dedd
call r8
jmp 0x14001dedd
mov ecx, 0x80070057
call fcn.14001cda0
nop
add rdx, 0x10
mov rcx, rsi
call fcn.14000a5a0
nop
mov dword [rsp + 0x20], 1
mov rax, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ec00
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
test edi, edi
js 0x14001ec9b
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14001ec43
mov edx, edi
mov rcx, rbx
call fcn.14001eba0
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov edi, eax
cmp eax, 0xffffffff
jne 0x14001ec70
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14001ec67
mov eax, esi
jmp 0x14001ec74
movsxd rdx, dword [rcx - 0xc]
call fcn.1400933fc
test eax, eax
js 0x14001eca6
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14001eca6
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov word [rax + rcx*2], si
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.14001cda0
int3
mov ecx, 0x80070057
call fcn.14001cda0
int3
Function at 0x1400221f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r8
mov ebx, edx
test r8, r8
je 0x140022389
mov rdi, qword [rcx + 0x1d0]
xor r12d, r12d
test rdi, rdi
jne 0x140022256
lea r8d, [rdi + 0x30]
lea rdx, [rax - 0x48]
lea rcx, [0x140023cb0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, r12d
test rax, rax
cmovne rdi, qword [rsp + 0x58]
test ebx, ebx
je 0x14002228f
cmp ebx, 3
je 0x14002228f
sub ebx, 1
je 0x14002227e
cmp ebx, 1
jne 0x140022389
movzx edx, si
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x14002238b
movzx edx, si
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x14002238b
movzx edx, si
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140022389
mov rsi, r12
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140022389
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140022358
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
test eax, eax
je 0x140022331
mov rdx, r15
lea rcx, [rsp + 0x28]
call fcn.1400203e0
test rax, rax
je 0x140022331
mov rsi, qword [rsp + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140022358
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x140022389
cmp ebx, 3
jne 0x140022384
mov rcx, rsi
call fcn.140021ba0
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14002238b
mov rax, rsi
jmp 0x14002238b
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140022450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
xor ebx, ebx
mov r14, r8
mov qword [r8 + 0x28], rbx
mov rsi, rdx
test rdx, rdx
jne 0x140022476
lea eax, [rdx + 1]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
mov rdi, qword [rcx + 0x1d0]
test rdi, rdi
jne 0x1400224ae
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [0x140023cb0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
mov rdi, rbx
cmovne rdi, qword [rsp + 0x28]
movzx edx, si
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140022529
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140022529
mov rcx, rax
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140022518
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r15
mov qword [r14 + 0x28], rbx
mov r8d, eax
mov rcx, r14
call fcn.140024c30
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret