joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000145b
Capabilities:
Get graphical window text

Disassembly:
jmp 0x140002940
push rbp
push rsi
push rdi
push r12
sub rsp, 0x488
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov rdi, r8
mov ebp, edx
mov rsi, rcx
test r8, r8
jne 0x140002976
xor eax, eax
jmp 0x140002ba3
sub ebp, dword [rcx + 0x324]
mov qword [rsp + 0x480], rbx
mov qword [rsp + 0x478], r13
mov qword [rsp + 0x470], r14
lea rcx, [rsp + 0x252]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], r14w
call fcn.140017cd0
mov ebx, 0x104
lea rdx, [rsp + 0x250]
mov r8d, ebx
mov ecx, 0x26c9
call fcn.140001352
mov rax, qword [rsi + 0x2d8]
mov r13d, ebp
lea rbp, [rbp + rbp*4]
shl rbp, 5
lea rcx, [rax + rbp + 0xcd74]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140002a05
mov rax, qword [rsi + 0x2d8]
lea rcx, [rax + rbp + 0xcd74]
jmp 0x140002a0d
lea rcx, [rsp + 0x250]
mov rax, qword [rsi + 0x2d8]
mov qword [rsp + 0x20], rcx
lea r8, str._s___s_
lea r9, [rax + rbp + 0x8ef4]
mov rdx, r12
mov rcx, rdi
call fcn.14000111d
mov rcx, qword [rsi + 0x2d8]
mov eax, dword [rcx + r13*8 + 0x10d88]
mov r13, qword [rsp + 0x478]
and eax, 0xf00
cmp eax, 0x500
jne 0x140002b8e
mov edx, 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8d, [rdx + 0x22]
call fcn.14000147e
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r14w
call fcn.140017cd0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x140002b8e
mov rcx, rbx
mov rax, rdi
cmp word [rax], r14w
je 0x140002ac8
add rax, 2
sub rcx, 1
jne 0x140002ab6
jmp 0x140002b21
test rcx, rcx
je 0x140002b21
mov rdx, rbx
sub rdx, rcx
mov rcx, rbx
sub rcx, rdx
lea rax, [rdi + rdx*2]
je 0x140002b19
lea r9, [0x14004bd64]
lea rdx, [rcx + rdx + 0x7ffffefb]
sub r9, rax
test rdx, rdx
je 0x140002b14
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x140002b14
mov word [rax], r8w
add rax, 2
dec rdx
sub rcx, 1
jne 0x140002af1
jmp 0x140002b19
test rcx, rcx
jne 0x140002b1d
sub rax, 2
mov word [rax], r14w
mov rcx, rbx
mov rax, rdi
cmp word [rax], r14w
je 0x140002b39
add rax, 2
sub rcx, 1
jne 0x140002b27
jmp 0x140002b8e
test rcx, rcx
je 0x140002b8e
mov rdx, rbx
sub rdx, rcx
sub rbx, rdx
lea rax, [rdi + rdx*2]
je 0x140002b86
lea r8, [rsp + 0x40]
lea rcx, [rbx + rdx + 0x7ffffefb]
sub r8, rax
nop dword [rax]
test rcx, rcx
je 0x140002b81
movzx edx, word [r8 + rax]
test dx, dx
je 0x140002b81
mov word [rax], dx
add rax, 2
dec rcx
sub rbx, 1
jne 0x140002b60
jmp 0x140002b86
test rbx, rbx
jne 0x140002b8a
sub rax, 2
mov word [rax], r14w
mov r14, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140017ca0
add rsp, 0x488
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001474
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x14000f8f0
push rsi
push r12
push r13
sub rsp, 0x50
mov r13, rcx
mov r12d, 1
call fcn.140001069
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], ecx
mov edx, dword [rax + 0x1c]
mov rcx, r13
call fcn.1400012d0
mov eax, dword [rsp + 0x24]
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
lea r8, [rsp + 0x78]
xor esi, esi
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x78], rsi
call fcn.140001424
test eax, eax
je 0x14000fa8f
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov rdi, qword [rsp + 0x78]
inc esi
mov rcx, rdi
call fcn.14000119a
test eax, eax
je 0x14000fa37
mov rcx, rdi
call fcn.1400012cb
test eax, eax
je 0x14000fa37
mov ebx, dword [rdi + 0x318]
mov rcx, rdi
mov ebp, 1
call fcn.140001271
mov rcx, qword [r13 + 0x238]
mov r9, rbx
movsxd r8, eax
mov edx, 0x427
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rdi + 0x308]
lea r11, [rsp + 0x40]
mov dword [r11], eax
mov eax, dword [rdi + 0x30c]
lea r8, [rsp + 0x30]
mov dword [r11 + 4], eax
mov eax, dword [rdi + 0x310]
lea rdx, [rsp + 0x40]
mov dword [r11 + 8], eax
mov eax, dword [rdi + 0x314]
mov rcx, r13
mov dword [r11 + 0xc], eax
call fcn.1400012b2
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x28]
jmp 0x14000fa39
xor ebp, ebp
mov rcx, rdi
call fcn.140001271
movsxd r9, ebp
mov edx, 0x423
mov r8d, eax
mov dword [rdi + 0x318], r8d
mov rcx, qword [r13 + 0x238]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [rsp + 0x78]
mov edx, esi
mov rcx, r13
and r12d, eax
call fcn.140001424
test eax, eax
jne 0x14000f9a0
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov eax, r12d
add rsp, 0x50
pop r13
pop r12
pop rsi
ret
Function at 0x140002940
Capabilities:
Get graphical window text

Disassembly:
jmp 0x140002940
push rbp
push rsi
push rdi
push r12
sub rsp, 0x488
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov rdi, r8
mov ebp, edx
mov rsi, rcx
test r8, r8
jne 0x140002976
xor eax, eax
jmp 0x140002ba3
sub ebp, dword [rcx + 0x324]
mov qword [rsp + 0x480], rbx
mov qword [rsp + 0x478], r13
mov qword [rsp + 0x470], r14
lea rcx, [rsp + 0x252]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], r14w
call fcn.140017cd0
mov ebx, 0x104
lea rdx, [rsp + 0x250]
mov r8d, ebx
mov ecx, 0x26c9
call fcn.140001352
mov rax, qword [rsi + 0x2d8]
mov r13d, ebp
lea rbp, [rbp + rbp*4]
shl rbp, 5
lea rcx, [rax + rbp + 0xcd74]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140002a05
mov rax, qword [rsi + 0x2d8]
lea rcx, [rax + rbp + 0xcd74]
jmp 0x140002a0d
lea rcx, [rsp + 0x250]
mov rax, qword [rsi + 0x2d8]
mov qword [rsp + 0x20], rcx
lea r8, str._s___s_
lea r9, [rax + rbp + 0x8ef4]
mov rdx, r12
mov rcx, rdi
call fcn.14000111d
mov rcx, qword [rsi + 0x2d8]
mov eax, dword [rcx + r13*8 + 0x10d88]
mov r13, qword [rsp + 0x478]
and eax, 0xf00
cmp eax, 0x500
jne 0x140002b8e
mov edx, 1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8d, [rdx + 0x22]
call fcn.14000147e
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r14w
call fcn.140017cd0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x140002b8e
mov rcx, rbx
mov rax, rdi
cmp word [rax], r14w
je 0x140002ac8
add rax, 2
sub rcx, 1
jne 0x140002ab6
jmp 0x140002b21
test rcx, rcx
je 0x140002b21
mov rdx, rbx
sub rdx, rcx
mov rcx, rbx
sub rcx, rdx
lea rax, [rdi + rdx*2]
je 0x140002b19
lea r9, [0x14004bd64]
lea rdx, [rcx + rdx + 0x7ffffefb]
sub r9, rax
test rdx, rdx
je 0x140002b14
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x140002b14
mov word [rax], r8w
add rax, 2
dec rdx
sub rcx, 1
jne 0x140002af1
jmp 0x140002b19
test rcx, rcx
jne 0x140002b1d
sub rax, 2
mov word [rax], r14w
mov rcx, rbx
mov rax, rdi
cmp word [rax], r14w
je 0x140002b39
add rax, 2
sub rcx, 1
jne 0x140002b27
jmp 0x140002b8e
test rcx, rcx
je 0x140002b8e
mov rdx, rbx
sub rdx, rcx
sub rbx, rdx
lea rax, [rdi + rdx*2]
je 0x140002b86
lea r8, [rsp + 0x40]
lea rcx, [rbx + rdx + 0x7ffffefb]
sub r8, rax
nop dword [rax]
test rcx, rcx
je 0x140002b81
movzx edx, word [r8 + rax]
test dx, dx
je 0x140002b81
mov word [rax], dx
add rax, 2
dec rcx
sub rbx, 1
jne 0x140002b60
jmp 0x140002b86
test rbx, rbx
jne 0x140002b8a
sub rax, 2
mov word [rax], r14w
mov r14, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140017ca0
add rsp, 0x488
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005e00
Capabilities:
Check os version

Disassembly:
jmp 0x140005e00
push rbx
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
mov rdi, r8
mov rbx, rdx
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x110
call fcn.140017cd0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x40], 2
jne 0x140005e60
cmp dword [rsp + 0x34], 5
jbe 0x140005e60
xor eax, eax
jmp 0x140005f3b
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400013d9
test eax, eax
je 0x140005e59
mov dword [rsi + 0x320], 0
xor ebx, ebx
nop
mov rdx, qword [rsi + 0x2d0]
mov rcx, qword [0x140059ff8]
mov r8d, ebx
add rdx, 0x14
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov rdi, rax
test rax, rax
je 0x140005ebf
mov rcx, qword [rsi + 0x2f8]
mov r8, rax
or edx, 0xffffffff
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyIcon]
inc ebx
cmp ebx, 0x12
jb 0x140005e80
lea r8, str.NVTBZoomWindowClass
lea rdx, [0x1400010c3]
mov r9d, 0x800000
mov rcx, rsi
mov dword [rsi + 0x31c], 0
mov dword [rsp + 0x20], 0x200
call fcn.14000129e
mov r9, qword [rsi + 0x2f8]
xor r8d, r8d
mov rcx, rax
mov edx, 0x430
mov qword [rsi + 0x20], rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x140001393]
xor r8d, r8d
mov rcx, rsi
call fcn.140001037
mov rcx, rsi
mov dword [rsi + 0x2f0], 1
mov dword [rsi + 8], 0
call fcn.140001028
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140017ca0
add rsp, 0x160
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006730
Capabilities:
Terminate thread

Disassembly:
jmp 0x140006730
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x20], 0
mov rdx, qword [0x140059ff8]
lea rcx, str.NVTBZoomWindowClass
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rbx + 0x300]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140008ee0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
jmp 0x140008ee0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, dx
xor edx, edx
mov rsi, r8
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ebx, al
bts ebx, 9
shl ebx, 0x10
cmp edi, 0x21
jl 0x140008f1f
cmp edi, 0x28
jle 0x140008f1b
lea ecx, [rdi - 0x2d]
cmp ecx, 1
ja 0x140008f1f
bts ebx, 0x18
mov r8d, 0x104
mov rdx, rsi
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c3f0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14000c3f0
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
test r8, r8
je 0x14000c4ac
test rdx, rdx
je 0x14000c4ac
mov qword [rsp + 0x270], rbp
lea rcx, [rsp + 0x32]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bp
call fcn.140017cd0
lea rdx, [rsp + 0x30]
lea rcx, str.SystemRoot
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000c47d
lea rdx, [rsp + 0x30]
lea rcx, str.windir
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0x30]
lea r8, str._s_nview_nvtb__08X__08X.bmp
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
call fcn.1400011bd
mov rbp, qword [rsp + 0x270]
mov eax, 1
jmp 0x14000c4ae
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140017ca0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f8f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x14000f8f0
push rsi
push r12
push r13
sub rsp, 0x50
mov r13, rcx
mov r12d, 1
call fcn.140001069
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], ecx
mov edx, dword [rax + 0x1c]
mov rcx, r13
call fcn.1400012d0
mov eax, dword [rsp + 0x24]
xor r11d, r11d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x34], r11d
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
lea r8, [rsp + 0x78]
xor esi, esi
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x78], rsi
call fcn.140001424
test eax, eax
je 0x14000fa8f
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rdi
nop word [rax + rax]
mov rdi, qword [rsp + 0x78]
inc esi
mov rcx, rdi
call fcn.14000119a
test eax, eax
je 0x14000fa37
mov rcx, rdi
call fcn.1400012cb
test eax, eax
je 0x14000fa37
mov ebx, dword [rdi + 0x318]
mov rcx, rdi
mov ebp, 1
call fcn.140001271
mov rcx, qword [r13 + 0x238]
mov r9, rbx
movsxd r8, eax
mov edx, 0x427
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rdi + 0x308]
lea r11, [rsp + 0x40]
mov dword [r11], eax
mov eax, dword [rdi + 0x30c]
lea r8, [rsp + 0x30]
mov dword [r11 + 4], eax
mov eax, dword [rdi + 0x310]
lea rdx, [rsp + 0x40]
mov dword [r11 + 8], eax
mov eax, dword [rdi + 0x314]
mov rcx, r13
mov dword [r11 + 0xc], eax
call fcn.1400012b2
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x28]
jmp 0x14000fa39
xor ebp, ebp
mov rcx, rdi
call fcn.140001271
movsxd r9, ebp
mov edx, 0x423
mov r8d, eax
mov dword [rdi + 0x318], r8d
mov rcx, qword [r13 + 0x238]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [rsp + 0x78]
mov edx, esi
mov rcx, r13
and r12d, eax
call fcn.140001424
test eax, eax
jne 0x14000f9a0
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov eax, r12d
add rsp, 0x50
pop r13
pop r12
pop rsi
ret
Function at 0x140013110
Capabilities:
Terminate thread

Disassembly:
jmp 0x140013110
jmp 0x140013820
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x2f8]
test rcx, rcx
je 0x140013155
or edx, 0xffffffff
call qword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov rcx, qword [rbx + 0x2f8]
xor edx, edx
call qword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov rcx, qword [rbx + 0x2f8]
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov qword [rbx + 0x2f8], 0
mov rcx, qword [rbx + 0x300]
test rcx, rcx
je 0x140013181
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x300]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x300], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140013198
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x20], 0
add rsp, 0x20
pop rbx
ret
lea rax, vtable.IToolbarBand.0
mov qword [rcx], rax
jmp 0x14000107d

Function at 0x1400131d0
Capabilities:
Create thread

Disassembly:
jmp 0x1400131d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400131ff
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x300]
test rcx, rcx
je 0x14001321c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x300], 0
lea rax, [rsp + 0x48]
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
mov qword [rbx + 0x300], rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test rdi, rdi
je 0x140013264
mov eax, dword [rsp + 0x48]
mov dword [rdi], eax
mov rax, qword [rbx + 0x300]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140013440
Capabilities:
Set registry value

Disassembly:
jmp 0x140013440
sub rsp, 0x38
mov rax, r8
mov rcx, rdx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r9
xor r8d, r8d
mov rdx, rax
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140013480
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140013480
push rbx
sub rsp, 0x40
mov rax, r8
mov r10, rdx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov rbx, r9
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, r10
mov rdx, rax
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400134e4
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140013510
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140013510
push rbx
push rsi
push rdi
sub rsp, 0x80
xor eax, eax
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx + 0x2d8]
mov dword [rdx], esi
mov dword [rdx + 4], eax
mov dword [rdx + 8], eax
mov rbx, rdx
mov dword [rdx + 0xc], eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rsi
call fcn.14000122b
test eax, eax
je 0x140013683
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
lea rdx, str.Toolbar
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0xa0], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013678
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0xa8]
lea rdx, [rdi + 0x2c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0xa8], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001366d
mov rcx, qword [rsp + 0x50]
xor eax, eax
lea r9, [rsp + 0xb8]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0xb0]
lea rdx, [0x14004d890]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], esi
mov dword [rsp + 0xb0], 0x10
mov dword [rsp + 0xb8], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013662
lea rcx, [rsp + 0x68]
mov rax, qword [rcx]
mov qword [rbx], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400143e0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400143e0
push rbx
sub rsp, 0x40
mov rbx, r8
test r8, r8
je 0x14001443d
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001443d
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140014460
Capabilities:
Set registry value

Disassembly:
jmp 0x140014460
sub rsp, 0x38
test r8, r8
jne 0x140014470
xor eax, eax
add rsp, 0x38
ret
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x140016a50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x270
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
call fcn.140017790
mov rbx, rax
test rax, rax
jne 0x140016b3e
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x20], ebx
je 0x140016b3b
mov rcx, qword [str._ProgramW6432_]
mov rax, qword [0x14004ddc0]
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rax, qword [0x14004ddc8]
mov qword [rdx + 0x10], rax
mov eax, dword [0x14004ddd0]
lea rcx, [rsp + 0x28]
mov dword [rdx + 0x18], eax
movzx eax, word [0x14004ddd4]
mov r8d, 0x104
mov word [rdx + 0x1c], ax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140016b3b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x288], rdi
xor eax, eax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140019068
mov rdi, qword [rsp + 0x288]
test eax, eax
jne 0x140016b3b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x140016b3e
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140017ca0
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rsi
ret

Function at 0x140016eb0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140058188]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x14005a074]
test ecx, ecx
jne 0x140016f82
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x140016f7c
mov edx, dword [rsp + 0x24]
cmp edx, 5
jne 0x140016f14
xor ecx, ecx
mov eax, 2
cmp dword [rsp + 0x28], ecx
cmova ecx, eax
mov dword [0x14005a074], ecx
jmp 0x140016f82
cmp edx, 6
jne 0x140016f61
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140016f2e
mov ecx, 4
mov dword [0x14005a074], ecx
jmp 0x140016f82
cmp eax, 1
jne 0x140016f40
mov ecx, 8
mov dword [0x14005a074], ecx
jmp 0x140016f82
cmp eax, 2
jne 0x140016f52
mov ecx, 0x10
mov dword [0x14005a074], ecx
jmp 0x140016f82
jbe 0x140016f7c
mov ecx, 0x80
mov dword [0x14005a074], ecx
jmp 0x140016f82
mov eax, dword [0x14005a074]
mov ecx, 0x80
cmp edx, 6
cmova eax, ecx
mov ecx, eax
mov dword [0x14005a074], eax
jmp 0x140016f82
mov ecx, dword [0x14005a074]
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140017ca0
add rsp, 0x158
ret
Function at 0x140017090
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x14001716a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14001716d
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
cmp word [rbp + rcx*2], 0x5c
je 0x140017119
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14001716a
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x140017140
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret