joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ac30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
sub rsp, 0x38
cmp word [rcx + 2], 0
mov rax, r9
movzx r12d, r8b
mov rbp, rcx
jne 0x14001ac6e
movzx ecx, word [rcx]
cmp cx, 0xa
jne 0x14001ac5c
mov al, 0xd
add rsp, 0x38
pop r12
pop rbp
ret
mov r9b, 1
mov r8, rax
add rsp, 0x38
pop r12
pop rbp
jmp fcn.14001adb0
mov qword [rsp + 0x58], rbx
movzx ebx, word [rcx]
test ebx, 0xffffff80
jne 0x14001ac91
mov edx, 2
mov ecx, ebx
call fcn.1400cbb48
test eax, eax
je 0x14001ac91
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001ad11
movzx ebx, word [rbp + 2]
test ebx, 0xffffff80
jne 0x14001acbb
mov edx, 2
mov ecx, ebx
call fcn.1400cbb48
test eax, eax
je 0x14001acbb
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x14001ad11
lea rcx, [rbp + 4]
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400cc0d0
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x14001acf8
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
lea r14, [0x1401156a0]
xor edi, edi
lea r13, [0x140115d70]
mov rbx, r14
mov esi, edi
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400ca91c
test eax, eax
je 0x14001ad78
add rbx, 0x10
inc esi
cmp rbx, r13
jl 0x14001ad35
test r12b, r12b
je 0x14001ad58
xor al, al
jmp 0x14001ad85
xor edx, edx
mov rcx, rbp
call fcn.14001ab10
test ax, ax
je 0x14001ad72
movzx ecx, ax
call fcn.14001b6a0
movzx edi, al
movzx eax, dil
jmp 0x14001ad85
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r14 + 8]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r12
pop rbp
ret

Function at 0x14001adb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdx, r8
movzx edi, r9b
movzx ebp, cx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rsi, ax
mov rdx, rsi
shr rdx, 8
cmp dl, 0xff
jne 0x14001ae29
cmp sil, 0xff
jne 0x14001ae29
test dil, dil
je 0x14001ae41
movzx edi, bp
test edi, 0xffffff80
jne 0x14001ae41
mov edx, 0x103
mov ecx, edi
call fcn.1400cbb48
test eax, eax
je 0x14001ae41
movzx ecx, bp
call fcn.14000c560
mov edx, 1
mov ecx, edi
movzx esi, al
call fcn.1400cbb48
test eax, eax
setne dl
test dl, 0x38
jne 0x14001ae41
test rbx, rbx
je 0x14001ae75
movzx eax, dl
and al, 6
cmp al, 6
jne 0x14001ae45
or byte [rbx], 8
jmp 0x14001ae65
xor al, al
jmp 0x14001ae79
test dl, 2
je 0x14001ae55
movzx eax, byte [rbx]
test al, 3
jne 0x14001ae55
or al, 1
mov byte [rbx], al
test dl, 4
je 0x14001ae65
movzx eax, byte [rbx]
test al, 0xc
jne 0x14001ae65
or al, 4
mov byte [rbx], al
test dl, 1
je 0x14001ae75
movzx eax, byte [rbx]
test al, 0x30
jne 0x14001ae75
or al, 0x10
mov byte [rbx], al
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140041180
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x4030
call fcn.1400d23b0
sub rsp, rax
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x1400411ce
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x1400411ce
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x1400411d6
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test edx, edx
je 0x1400412b7
movsxd r9, ecx
mov qword [rsp + 0x28], r8
lea rcx, [0x140118628]
mov r9, qword [rcx + r9*8]
movzx eax, ax
mov qword [rsp + 0x4050], r13
mov r13d, 0x2000
lea rcx, [rsp + 0x30]
lea r8, [0x1400ebe20]
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400ad210
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x14004124c
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, [0x1400eba18]
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400ad210
mov r13, qword [rsp + 0x4050]
cmp esi, 3
jne 0x140041272
lea r9, [0x1400e8860]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.1400401a0
jmp 0x1400412b7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400412b7
test rbx, rbx
jne 0x1400412a3
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x1400412a3
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.140040740
jmp 0x1400412b7
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.1400403f0
lea r11, [rsp + 0x4030]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400418d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test rax, rax
je 0x14004190e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140041916
mov word [rsp + 0x180], si
mov rdi, qword [0x14011bd18]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x1400419d4
nop
cmp byte [rdi + 0x16], sil
je 0x14004196f
mov rcx, qword [rdi]
call fcn.1400a7a80
test eax, eax
je 0x14004194f
dec eax
je 0x14004194f
lea r9, [0x1400eb148]
jmp 0x140041956
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400ec138]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400ad280
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140041930
cmp word [rsp + 0x80], si
je 0x1400419d4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x1400419c7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400e8088]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400cd7f4
mov word [rbx + rdi*2], si
jmp 0x1400419d4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x1400419d4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x1401180c0]
cmp byte [rax + 0x138], sil
je 0x1400419f2
cmp byte [0x14011bd85], sil
mov edi, 1
je 0x1400419f4
mov edi, esi
mov eax, dword [0x140119934]
cmp eax, 1
jle 0x140041a02
lea esi, [rax - 1]
mov cl, 1
call fcn.140019fc0
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.14001a3c0
mov edx, dword [0x140119934]
mov r9d, dword [0x140119938]
mov qword [rsp + 0x70], rax
mov eax, dword [0x140119930]
sub r9d, edi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r9d
cmp edx, 1
lea rax, [rsp + 0x80]
lea r10, [0x1400e59b0]
lea rdi, [0x1400ec140]
lea r8, [0x1400e59a8]
lea rcx, [0x1400e346c]
cmovg rcx, rdi
cmp qword [0x1401198f0], 0
mov rdi, r8
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rax
mov eax, dword [0x14011bd28]
cmove rdi, r10
cmp qword [0x1401198e8], 0
mov dword [rsp + 0x38], eax
mov eax, dword [0x14011bd2c]
cmove r8, r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
mov esi, 0xfffe
lea r8, [0x1400ec1c0]
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400ad210
movsxd rdx, eax
lea rbx, [rbp + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, rbp
sar rax, 1
sub edx, eax
call fcn.14000c1f0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, [0x1400ec330]
repne scasw ax, word [rdi]
cmp qword [0x14011a320], 0
lea rax, [0x1400eb7f8]
cmovne r8, rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
mov rax, rdi
mov rcx, rdi
sub rax, rbp
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400ad210
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rsp, r11
pop rdi
ret
Function at 0x140056c70
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push rbx
sub rsp, 0x260
mov rbx, rcx
mov rcx, qword [0x14011bd70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140056cc9
lea rcx, [rsp + 0x50]
call fcn.140057280
test eax, eax
je 0x140056cbe
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140056cc9
xor al, al
add rsp, 0x260
pop rbx
ret
xor eax, eax
lea r8, [0x1400e346c]
lea rcx, [0x14011b1d0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], al
mov byte [rsp + 0x38], al
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, rbx
mov byte [rsp + 0x20], al
call fcn.140041b60
lea rcx, [0x1400e346c]
test eax, eax
mov rax, qword [0x140115e50]
setne bl
test rax, rax
je 0x140056d21
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx eax, bl
add rsp, 0x260
pop rbx
ret

Function at 0x140057280
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor ebp, ebp
mov rdi, rcx
mov qword [rax + 0x18], rbx
mov esi, ebp
nop
mov r9d, esi
lea rax, [rsp + 0x268]
lea rdx, [0x1400ee0b0]
xor r8d, r8d
mov rcx, 0xffffffff80000002
or r9d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400573ca
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, [0x1400ee098]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x260], 0x208
mov qword [rsp + 0x20], rax
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 0x1400573ca
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x1400573ca
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140057369
test ecx, ecx
je 0x14005737f
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x14005737f
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140057350
jmp 0x14005737f
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x1400573ca
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x1400573d1
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x1400573c1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rdi, rcx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rdi + rdx - 2], cx
test cx, cx
jne 0x1400573b0
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x140057385
mov esi, 0x200
jmp 0x1400572a0
Function at 0x140081c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400cb614
test rax, rax
jne 0x140081c93
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400cb614
test rax, rax
jne 0x140081c93
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 0x140081cb2
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 0x140081cd0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140081cfd
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, [0x1400ef270]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140081cf5
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 0x140081d70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea edx, [r9 + 0x10]
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140081ded
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x140081ded
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140081ded
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
Function at 0x14009fab0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push r12
sub rsp, 0x28
mov r12, rdx
mov rbx, rcx
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009facf
cmp ax, 9
jne 0x14009fad5
add rbx, 2
jmp 0x14009fac0
movzx eax, word [rbx]
test ax, ax
jne 0x14009fae5
add rsp, 0x28
pop r12
pop rbx
ret
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14009fb01
mov word [rdx + 2], ax
mov byte [rdx], 0
mov al, 1
add rsp, 0x28
pop r12
pop rbx
ret
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x40], sil
call fcn.1400cb614
mov rbp, rax
test rax, rax
je 0x14009fbf5
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14009fb58
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14009fb4f
cmp ax, 9
jne 0x14009fb58
sub rdi, 2
cmp rdi, rbx
ja 0x14009fb40
sub rdi, rbx
lea rdx, [0x1400e3e60]
mov rcx, rbx
sar rdi, 1
inc rdi
mov r8, rdi
call fcn.1400cab74
test eax, eax
jne 0x14009fb7d
or sil, 1
jmp 0x14009fbb3
lea rdx, [0x1400e3e58]
mov r8, rdi
mov rcx, rbx
call fcn.1400cab74
test eax, eax
jne 0x14009fb99
or sil, 4
jmp 0x14009fbb3
lea rdx, [0x1400e3e48]
mov r8, rdi
mov rcx, rbx
call fcn.1400cab74
test eax, eax
jne 0x14009fc19
or sil, 0x10
mov byte [rsp + 0x40], sil
lea rbx, [rbp + 2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009fbcf
cmp ax, 9
jne 0x14009fbd5
add rbx, 2
jmp 0x14009fbc0
cmp word [rbx], 0
je 0x14009fc19
lea rcx, [rbx + 2]
mov edx, 0x2b
call fcn.1400cb614
mov rbp, rax
test rax, rax
jne 0x14009fb31
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14009fc37
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
cmp ax, 0xa
jne 0x14009fc1d
mov al, 0xd
jmp 0x14009fc57
xor al, al
jmp 0x14009fc8b
lea rdx, [rsp + 0x40]
mov r9b, 1
mov r8, rdi
movzx ecx, ax
call fcn.14001adb0
movzx esi, byte [rsp + 0x40]
jmp 0x14009fc57
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp word [rbx], 0
jne 0x14009fc47
xor al, al
jmp 0x14009fc57
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001ac30
movzx eax, al
mov word [r12 + 2], ax
test sil, 1
je 0x14009fc6b
or byte [r12], 8
test sil, 4
je 0x14009fc76
or byte [r12], 0x10
test sil, 0x10
je 0x14009fc81
or byte [r12], 4
cmp word [r12 + 2], 0
setne al
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rbx
ret
Function at 0x1400aa1d0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x1400aa30d
test r8, r8
je 0x1400aa203
cmp word [r8], 0
jne 0x1400aa20c
test r9, r9
je 0x1400aa30d
mov rax, qword [0x1401144a8]
xor r8d, r8d
mov rdx, rdi
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x58]
mov rcx, rbp
or r9d, 0x2001f
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400aa2fd
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400aa2e7
call fcn.1400aa0a0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400aa2fd
mov eax, dword [0x14011cec8]
test al, 1
jne 0x1400aa2a8
or eax, 1
lea rcx, [0x1400ef0d0]
mov dword [0x14011cec8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140101630]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14011cec0], rax
jmp 0x1400aa2af
mov r11, qword [0x14011cec0]
mov rax, qword [0x1401144a8]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400aa2d7
test r11, r11
je 0x1400aa2d7
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400aa2fd
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400aa2fd
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400aa312
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400aa315
mov ebx, 0x57
mov r11d, ebx
mov rax, qword [0x1401144a8]
test ebx, ebx
mov rcx, r12
setne dl
mov dword [rax + 0x40], r11d
call fcn.14003f1a0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b12c0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14011be28]
mov rbx, rdx
call fcn.1400065e0
test eax, eax
jne 0x1400b12fd
lea r8, [0x1400e346c]
lea rdx, [0x1400e3890]
lea rcx, [0x14011b1d0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140040740
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rsi + rbx]
lea rbx, [rsi + 4]
xor r14d, r14d
cmp rbx, rbp
ja 0x1400b13c2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b13c2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b13c2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b13c2
mov rdx, r14
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x1400b1480
test rdi, rdi
je 0x1400b13a9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400b1421
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400cb2e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, rbp
jbe 0x1400b1330
cmp dword [0x14011be54], r14d
je 0x1400b13fc
cmp qword [0x14011be38], r14
je 0x1400b13e8
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
mov eax, 1
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x14011be54], r14d
je 0x1400b1464
cmp qword [0x14011be38], r14
je 0x1400b1450
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, [0x1400e3858]
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401
cmp dword [0x14011be54], r14d
je 0x1400b14ba
cmp qword [0x14011be38], r14
je 0x1400b14a6
mov rcx, qword [0x14011be28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x14011be38], r14
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14011be54], r14d
mov qword [0x14011be28], r14
lea r8, [0x1400e346c]
lea rdx, [0x1400e6570]
lea rcx, [0x14011b1d0]
call fcn.140040740
jmp 0x1400b1401
Function at 0x1400b1930
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
movzx ecx, byte [rcx + 0x23]
mov rbx, rdx
test ecx, ecx
je 0x1400b1b70
dec ecx
mov qword [rsp + 0x50], rsi
je 0x1400b19ca
dec ecx
je 0x1400b1993
dec ecx
je 0x1400b1977
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
je 0x1400b1981
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x14011be28]
call fcn.140005ea0
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x1400b1b0d
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001130
cmp dword [0x14011992c], 0
jne 0x1400b1acb
cmp qword [rdi + 0x10], 0
jne 0x1400b1acb
cmp qword [0x14011cd68], rdi
jne 0x1400b19f8
test rbx, rbx
jne 0x1400b1a77
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b1a72
xor esi, esi
mov qword [0x14011cd68], rsi
test rbx, rbx
je 0x1400b1a60
mov edx, dword [0x140119908]
test edx, edx
je 0x1400b1a42
mov r9, qword [rdi + 0x28]
lea r8, [0x140101aa0]
lea rcx, [0x14011b1d0]
mov qword [rsp + 0x20], rsi
call fcn.140041180
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.1400ae9d0
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x1400b1ab2
cmp byte [rdi + 0x23], 0
jne 0x1400b1a83
mov rax, qword [rdi + 0x10]
jmp 0x1400b1a86
mov rax, rdi
test byte [rax + 0x21], 4
je 0x1400b1a94
mov rcx, rdi
call fcn.1400412d0
xor esi, esi
xor eax, eax
mov word [rbx], si
mov qword [0x14011cd68], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
mov qword [0x14011cd68], rdi
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x1400b1b6b
test r8, r8
jne 0x1400b1b1d
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x1400b1b03
mov rcx, rdi
call fcn.1400412d0
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x1400b1b6b
cmp r8, 0x186a0
jae 0x1400b1b5d
movzx eax, word [rdx]
test ax, ax
je 0x1400b1b53
nop word [rax + rax]
add rdx, 2
mov word [rbx], ax
add rbx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x1400b1b40
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x1400b1b08
mov rcx, rbx
call fcn.1400cb2e0
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x1400b1b08
mov rcx, qword [rdi + 0x10]
call fcn.1400b1930
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret