joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015f70
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x14001610c
movaps xmm0, xmmword [0x1400e3360]
lea rcx, [rsp + 0x94]
movaps xmm1, xmmword [0x1400e3370]
mov eax, dword [0x1400e33c0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400e3380]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400e3390]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400e33a0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400e33b0]
mov dword [rsp + 0x90], eax
movzx eax, word [0x1400e33c4]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov word [rsp + 0x94], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x1400160fc
lea rax, [rsp + 0x2f0]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400160fc
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e33c8]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x2e0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x2e8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x1400160fc
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x1400160fc
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x1400160d5
test ecx, ecx
je 0x1400160fc
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x1400160e7
mov ecx, edx
test edx, edx
jne 0x1400160c0
jmp 0x1400160fc
inc ecx
cmp ecx, 0x104
jae 0x1400160fc
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x1400160fc
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x14001610c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016650
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
sub rsp, 0x38
movzx eax, word [rcx]
movzx ebp, r8b
mov r14, rcx
test ax, ax
jne 0x14001666f
add rsp, 0x38
pop r14
pop rbp
ret
cmp word [rcx + 2], 0
jne 0x14001668d
mov r8, qword [rsp + 0x70]
mov r9b, 1
movzx ecx, ax
add rsp, 0x38
pop r14
pop rbp
jmp fcn.1400167c0
mov qword [rsp + 0x58], rbx
movzx ebx, ax
test ebx, 0xffffff80
jne 0x1400166b0
mov edx, 2
mov ecx, ebx
call fcn.1400ad944
test eax, eax
je 0x1400166b0
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001671b
movzx ecx, word [r14 + 2]
call fcn.14000ae80
cmp ax, 0x4b
jne 0x14001671b
lea rcx, [r14 + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x50]
call fcn.1400aee64
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x140016702
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov qword [rsp + 0x60], rsi
xor edi, edi
mov qword [rsp + 0x28], r12
mov esi, edi
lea r12, [0x140100b40]
mov qword [rsp + 0x20], r15
mov rbx, r12
lea r15, [0x140101210]
nop
mov rcx, qword [rbx]
mov rdx, r14
call fcn.1400ab8c0
test eax, eax
je 0x140016783
inc esi
add rbx, 0x10
cmp rbx, r15
jl 0x140016740
test bpl, bpl
je 0x140016763
xor al, al
jmp 0x140016790
xor edx, edx
mov rcx, r14
call fcn.140016540
test ax, ax
je 0x14001677d
movzx ecx, ax
call fcn.140017070
movzx edi, al
movzx eax, dil
jmp 0x140016790
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r12 + 8]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r14
pop rbp
ret
Function at 0x140022cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x1401023f8]
xor ebp, ebp
mov word [rsp + 0x22], ax
mov eax, 0x7b
mov dword [rsp + 0x48], eax
mov ebx, SafeArrayAllocDescriptor
mov word [rsp + 0x20], bx
mov r10, r8
mov dword [rsp + 0x24], 0x90028
mov rsi, rdx
mov dword [rsp + 0x28], 0x3e003c
mov r11, rcx
mov dword [rsp + 0x2c], 0x3d003a
mov dword [rsp + 0x30], 0x2d002b
mov dword [rsp + 0x34], 0x2f002a
mov dword [rsp + 0x38], 0x7e0021
mov dword [rsp + 0x3c], 0x7c0026
mov dword [rsp + 0x40], 0x5b005e
mov dword [rsp + 0x44], 0x3f002e
test r8, r8
je 0x140022d90
movzx edx, word [r8]
test dx, dx
je 0x140022da5
lea rcx, [rsp + 0x20]
mov eax, ebx
nop dword [rax + rax]
cmp dx, ax
je 0x140022d93
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140022d70
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140022d64
mov r8, rbp
test r8, r8
je 0x140022da5
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x140022dc2
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r10 + rax*2], bp
jne 0x140022db0
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x140022ddf
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140022dd6
cmp ax, 9
jne 0x140022ddf
sub rbx, 2
cmp rbx, r10
ja 0x140022dc7
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x140022e0f
test r9b, r9b
je 0x140022e0b
mov r8, r10
lea rdx, [0x1400e5420]
mov rcx, r11
call fcn.1400395f0
xor eax, eax
jmp 0x140022e24
mov r8, rdi
mov rdx, r10
mov rcx, rsi
call fcn.1400b3da4
mov rax, rbx
mov word [rsi + rdi*2], bp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400383e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r8, [0x1400e7c10]
mov qword [rsp + 0x70], rcx
mov edx, 0xfffe
mov r14, rcx
call fcn.14008b9a0
mov r8d, dword [0x140105dd8]
lea r9, [0x140000000]
movsxd rdx, eax
mov ebp, 0x190
mov edi, r8d
lea rax, [r14 + rdx*2]
mov qword [rsp + 0x80], rax
xor r15b, r15b
mov r13, rax
test ebp, ebp
jle 0x14003855c
movsxd rbx, edi
mov esi, 2
mov r12d, ebp
nop dword [rax + rax]
cmp edi, 0x190
jl 0x140038465
sub edi, 0x190
sub rbx, 0x190
cmp qword [r9 + rbx*8 + 0x106420], 0
je 0x14003853f
movzx r14d, r15b
lea eax, [rsi - 1]
xor r15b, r15b
cmp eax, ebp
jge 0x140038591
test r14b, r14b
jne 0x14003853f
mov edx, dword [r9 + rbx*4 + 0x105de0]
lea rax, [rbx + 1]
xor ecx, ecx
cmp edi, 0x18f
cmovl rcx, rax
mov eax, dword [r9 + rcx*4 + 0x105de0]
sub eax, edx
cmp eax, 0x7fffffff
jbe 0x1400384f1
mov r15b, 1
cmp esi, ebp
jne 0x1400384d5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x105de0]
jmp 0x1400384f8
lea rax, [rbx + 2]
cmp rax, 0x190
jl 0x1400384e7
add rax, 0xfffffffffffffe70
mov eax, dword [r9 + rax*4 + 0x105de0]
sub eax, edx
lea rcx, [0x140000000]
mov rcx, qword [rcx + rbx*8 + 0x106420]
mov r9d, 0xfffe
mov r8, r13
mov byte [rsp + 0x28], r14b
sub r8, qword [rsp + 0x70]
mov rdx, r13
sar r8, 1
sub r9d, r8d
mov dword [rsp + 0x20], eax
mov r8d, 0xc8
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.140038720
mov r13, rax
lea r9, [0x140000000]
inc esi
inc edi
inc rbx
sub r12, 1
jne 0x140038450
mov r8d, dword [0x140105dd8]
mov r14, qword [rsp + 0x70]
mov rax, r13
mov edx, 0xfffe
sub rax, r14
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x1400385aa
cmp ebp, 0x78
jl 0x1400385aa
mov rax, qword [rsp + 0x80]
sub ebp, 0x64
mov edi, r8d
sub edi, ebp
add edi, 0x190
jmp 0x140038432
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x105de0]
jmp 0x1400384f8
lea r8, [0x1400e7e18]
mov rcx, r13
call fcn.14008b9a0
mov rbx, qword [rsp + 0x78]
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003a040
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x14003a18b
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400bfa50
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbp, r9
mov rbx, qword [rsp + 0x4070]
mov r14, r8
mov qword [rsp + 0x4058], r15
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x14003a0a1
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x14003a0a1
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x14003a0a9
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
lea r8, [0x1400e8440]
lea rcx, [0x140107148]
movzx eax, ax
mov r15d, 0x2000
mov qword [rsp + 0x28], r14
mov edx, r15d
mov dword [rsp + 0x20], eax
mov r9, qword [rcx + r9*8]
lea rcx, [rsp + 0x30]
call fcn.14008b9a0
cmp word [rbp], 0
movsxd rcx, eax
je 0x14003a105
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, [0x1400e8038]
call fcn.14008b9a0
mov r15, qword [rsp + 0x4058]
cmp esi, 3
jne 0x14003a12b
lea r9, [0x1400e4e50]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140039060
jmp 0x14003a170
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x14003a170
test rbx, rbx
jne 0x14003a15c
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x14003a15c
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.1400395f0
jmp 0x14003a170
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.1400392a0
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x14003a770
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov r14, rdx
mov r15, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x14003a7b5
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14003a7bd
mov word [rsp + 0x180], bp
mov rbx, qword [0x140107df8]
or rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x14003a888
nop dword [rax]
cmp byte [rbx + 0x15], bpl
je 0x14003a820
mov rcx, qword [rbx]
call fcn.140086560
test eax, eax
je 0x14003a800
cmp eax, 1
je 0x14003a800
lea r9, [0x1400e7778]
jmp 0x14003a807
mov rax, qword [rbx]
mov r9, qword [rax + 8]
lea r8, [0x1400e8758]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.14008ba00
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14003a7e0
cmp word [rsp + 0x80], bp
je 0x14003a888
lea rcx, [rsp + 0x80]
mov rax, rsi
nop
inc rax
cmp word [rcx + rax*2], bp
jne 0x14003a840
cmp rax, 0x7b
jbe 0x14003a87b
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x1400e3818]
mov rcx, rdi
call fcn.1400b3da4
mov word [rdi + rbx*2], bp
jmp 0x14003a888
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x14003a888
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140104bc8]
cmp byte [rax + 0x138], bpl
je 0x14003a8a6
cmp byte [0x140107e61], bpl
mov ebx, 1
je 0x14003a8a8
mov ebx, ebp
mov eax, dword [0x140104d48]
cmp eax, 1
jle 0x14003a8b6
lea ebp, [rax - 1]
mov cl, 1
call fcn.140015910
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140015d20
mov edx, dword [0x140104d48]
lea r11, [0x1400e1df0]
mov r10d, dword [0x140104d24]
lea r8, [0x1400e8760]
mov qword [rsp + 0x70], rax
lea r9, [0x1400e1de8]
mov eax, dword [0x140104d6c]
lea rcx, [0x1400cef3c]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140104d90], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140104d98], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140107e08]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140107e0c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x1400e87e0]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.14008b9a0
movsxd rcx, eax
mov edx, edi
sub edx, ecx
lea r14, [r14 + rcx*2]
mov rcx, r14
call fcn.14000ab20
nop dword [rax + rax]
cmp word [r14 + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x14003a9a0
cmp qword [0x140104d88], 0
lea rax, [0x1400e7e18]
lea rbx, [r14 + rsi*2]
lea r8, [0x1400e8950]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r15
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.14008b9a0
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140042210
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rsi, rcx
call fcn.140051330
mov rdi, rax
test rax, rax
je 0x140042312
mov rdx, rbx
mov rcx, rax
call fcn.140091090
mov rbp, rax
test rax, rax
je 0x140042312
xor edx, edx
mov rcx, rdi
xor sil, sil
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x1400422af
cmp eax, dword [0x140107290]
je 0x1400422af
mov rcx, rdi
call fcn.1400916b0
test al, al
jne 0x1400422af
mov ecx, dword [0x140107290]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne sil
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x1400422f5
mov rcx, qword [0x140104d40]
lea rdx, [0x1400cefdc]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008f120
mov rax, qword [0x140100a58]
mov ecx, dword [rax + 0x78]
cmp ecx, 0xffffffff
jle 0x1400422f5
mov edx, 1
call fcn.1400016f0
test sil, sil
je 0x14004230b
mov ecx, dword [0x140107290]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x140042355
mov rax, qword [0x140100a58]
lea rdx, [0x1400e25dc]
test byte [rax + 0x140], 1
jne 0x140042343
mov rcx, qword [0x140104d40]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008f120
jmp 0x140042355
lea r9, [0x1400cef3c]
xor r8d, r8d
mov rcx, rsi
call fcn.140038dd0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140042e20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.140051330
test rax, rax
je 0x140042e66
lea rdx, [0x1400e9bb0]
mov rcx, rax
call fcn.140091090
mov rdi, rax
jmp 0x140042e68
xor edi, edi
mov rcx, rbx
call fcn.140010bd0
mov rcx, rbx
test al, al
je 0x140042e84
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400aee64
jmp 0x140042e89
call fcn.1400ae968
mov rcx, qword [0x1401070a0]
lea r9, [0x1400cef3c]
mov dword [rsp + 0x68], gethostbyname
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140090d20
Function at 0x140047cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2260
call fcn.1400bfa50
sub rsp, rax
mov r9, qword [0x140107e50]
lea r8, [0x1400e9cd0]
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x1400cef3c]
call fcn.14008b9a0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x140047d35
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047d35
mov r9, qword [0x140107e50]
jmp 0x140047d98
lea rcx, [rsp + 0x50]
call fcn.1400483e0
test eax, eax
je 0x140047e5a
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400e9cd0]
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.14008b9a0
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x140047e5a
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047e5a
lea r9, [rsp + 0x50]
mov edi, SafeArrayAllocDescriptor
movsxd rax, esi
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x260], bx
test bpl, bpl
je 0x140047e20
lea rax, [0x1400e9ce0]
mov edx, 0x800
lea r8, [0x1400e9cd0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.14008b9a0
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x140047e20
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047e20
movsxd rax, ebp
lea r14, [rsp + 0x1260]
mov word [rsp + rsi*2 + 0x1260], di
lea r15, [rsp + 0x260]
mov word [rsp + rax*2 + 0x1260], bx
mov qword [rsp + 0x48], rbx
lea rcx, [0x1401072b0]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov byte [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], rbx
mov rdx, r14
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.14003aa10
test eax, eax
setne al
jmp 0x140047e5c
xor al, al
lea r11, [rsp + 0x2260]
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
Function at 0x1400483e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov rsi, rcx
mov qword [rax - 0x18], rdi
xor ebp, ebp
mov edi, ebp
mov qword [rax + 0x18], rbx
nop
mov r9d, edi
lea rax, [rsp + 0x268]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400ea010]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048529
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e9ff8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x260], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140048529
mov edx, dword [rsp + 0x260]
test edx, edx
je 0x140048529
shr edx, 1
dec edx
mov dword [rsp + 0x260], edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x1400484c9
test edx, edx
je 0x1400484df
nop dword [rax]
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x30], bp
jne 0x1400484df
mov dword [rsp + 0x260], eax
mov edx, eax
test eax, eax
jne 0x1400484b0
jmp 0x1400484df
inc edx
mov dword [rsp + 0x260], edx
cmp edx, 0x104
jae 0x140048529
mov word [rsp + rdx*2 + 0x30], bp
mov eax, edx
test edx, edx
je 0x140048530
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x140048520
lea rcx, [rsp + 0x30]
sub rsi, rcx
lea rdx, [rsp + 0x30]
nop
movzx ecx, word [rdx]
mov word [rsi + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x140048510
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x1400484e5
mov edi, 0x200
jmp 0x140048400
Function at 0x140064660
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x1401070a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008f120
test rbx, rbx
je 0x1400647f4
cmp word [rbx], 0
je 0x1400647f4
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x1400646e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140038ea0
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400aba38
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400647d2
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e3888]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400647d2
mov rax, qword [rsp + 0x178]
lea r8, [0x1400eb748]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14008b9a0
mov rcx, rbp
call fcn.1400ad530
mov rax, qword [0x140100a58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140038ea0
mov rcx, qword [0x1401070a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008f120
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400ad530
mov rcx, rdi
call fcn.14003c5b0
jmp 0x1400647b8
mov rax, qword [0x140100a58]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140038ea0
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x1400652c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400a9e38
test rax, rax
jne 0x140065303
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400a9e38
test rax, rax
jne 0x140065303
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140065322
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x140065340
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006536d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, [0x1400eb770]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140065365
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x1400653e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14006545d
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14006545d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14006545d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret