joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001abb0
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 0x14001abee
movzx ecx, word [rcx]
cmp cx, 0xa
jne 0x14001abdc
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.14001ad30
mov qword [rsp + 0x58], rbx
movzx ebx, word [rcx]
test ebx, 0xffffff80
jne 0x14001ac11
mov edx, 2
mov ecx, ebx
call fcn.1400cbb68
test eax, eax
je 0x14001ac11
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001ac91
movzx ebx, word [rbp + 2]
test ebx, 0xffffff80
jne 0x14001ac3b
mov edx, 2
mov ecx, ebx
call fcn.1400cbb68
test eax, eax
je 0x14001ac3b
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x14001ac91
lea rcx, [rbp + 4]
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400cc0f0
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x14001ac78
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.1400ca93c
test eax, eax
je 0x14001acf8
add rbx, 0x10
inc esi
cmp rbx, r13
jl 0x14001acb5
test r12b, r12b
je 0x14001acd8
xor al, al
jmp 0x14001ad05
xor edx, edx
mov rcx, rbp
call fcn.14001aa90
test ax, ax
je 0x14001acf2
movzx ecx, ax
call fcn.14001b620
movzx edi, al
movzx eax, dil
jmp 0x14001ad05
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 0x14001ad30
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 0x14001ada9
cmp sil, 0xff
jne 0x14001ada9
test dil, dil
je 0x14001adc1
movzx edi, bp
test edi, 0xffffff80
jne 0x14001adc1
mov edx, 0x103
mov ecx, edi
call fcn.1400cbb68
test eax, eax
je 0x14001adc1
movzx ecx, bp
call fcn.14000c540
mov edx, 1
mov ecx, edi
movzx esi, al
call fcn.1400cbb68
test eax, eax
setne dl
test dl, 0x38
jne 0x14001adc1
test rbx, rbx
je 0x14001adf5
movzx eax, dl
and al, 6
cmp al, 6
jne 0x14001adc5
or byte [rbx], 8
jmp 0x14001ade5
xor al, al
jmp 0x14001adf9
test dl, 2
je 0x14001add5
movzx eax, byte [rbx]
test al, 3
jne 0x14001add5
or al, 1
mov byte [rbx], al
test dl, 4
je 0x14001ade5
movzx eax, byte [rbx]
test al, 0xc
jne 0x14001ade5
or al, 4
mov byte [rbx], al
test dl, 1
je 0x14001adf5
movzx eax, byte [rbx]
test al, 0x30
jne 0x14001adf5
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 0x1400411a0
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.1400d23d0
sub rsp, rax
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x1400411ee
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x1400411ee
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x1400411f6
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
test edx, edx
je 0x1400412d7
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, [0x1400ebe40]
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400ad230
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x14004126c
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, [0x1400eba38]
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400ad230
mov r13, qword [rsp + 0x4050]
cmp esi, 3
jne 0x140041292
lea r9, [0x1400e8878]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.1400401c0
jmp 0x1400412d7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400412d7
test rbx, rbx
jne 0x1400412c3
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x1400412c3
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.140040760
jmp 0x1400412d7
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.140040410
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 0x1400418f0
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 0x14004192e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140041936
mov word [rsp + 0x180], si
mov rdi, qword [0x14011bd18]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x1400419f4
nop
cmp byte [rdi + 0x16], sil
je 0x14004198f
mov rcx, qword [rdi]
call fcn.1400a7aa0
test eax, eax
je 0x14004196f
dec eax
je 0x14004196f
lea r9, [0x1400eb168]
jmp 0x140041976
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400ec158]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400ad2a0
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140041950
cmp word [rsp + 0x80], si
je 0x1400419f4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x1400419e7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400e8088]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400cd814
mov word [rbx + rdi*2], si
jmp 0x1400419f4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x1400419f4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x1401180c0]
cmp byte [rax + 0x138], sil
je 0x140041a12
cmp byte [0x14011bd85], sil
mov edi, 1
je 0x140041a14
mov edi, esi
mov eax, dword [0x140119934]
cmp eax, 1
jle 0x140041a22
lea esi, [rax - 1]
mov cl, 1
call fcn.140019f40
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.14001a340
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, [0x1400ec160]
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, [0x1400ec1e0]
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400ad230
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.14000c1d0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, [0x1400ec350]
repne scasw ax, word [rdi]
cmp qword [0x14011a320], 0
lea rax, [0x1400eb818]
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.1400ad230
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 0x140056c90
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 0x140056ce9
lea rcx, [rsp + 0x50]
call fcn.1400572a0
test eax, eax
je 0x140056cde
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 0x140056ce9
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.140041b80
lea rcx, [0x1400e346c]
test eax, eax
mov rax, qword [0x140115e50]
setne bl
test rax, rax
je 0x140056d41
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 0x1400572a0
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, [0x1400ee0d0]
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 0x1400573ea
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, [0x1400ee0b8]
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 0x1400573ea
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x1400573ea
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140057389
test ecx, ecx
je 0x14005739f
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x14005739f
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140057370
jmp 0x14005739f
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x1400573ea
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x1400573f1
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x1400573e1
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 0x1400573d0
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x1400573a5
mov esi, 0x200
jmp 0x1400572c0
Function at 0x140081c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400cb634
test rax, rax
jne 0x140081cb3
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400cb634
test rax, rax
jne 0x140081cb3
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 0x140081cd2
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 0x140081cf0
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 0x140081d1d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, [0x1400ef290]
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 0x140081d15
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 0x140081d90
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 0x140081e0d
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 0x140081e0d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140081e0d
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 0x14009fad0
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 0x14009faef
cmp ax, 9
jne 0x14009faf5
add rbx, 2
jmp 0x14009fae0
movzx eax, word [rbx]
test ax, ax
jne 0x14009fb05
add rsp, 0x28
pop r12
pop rbx
ret
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14009fb21
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.1400cb634
mov rbp, rax
test rax, rax
je 0x14009fc15
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14009fb78
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14009fb6f
cmp ax, 9
jne 0x14009fb78
sub rdi, 2
cmp rdi, rbx
ja 0x14009fb60
sub rdi, rbx
lea rdx, [0x1400e3e60]
mov rcx, rbx
sar rdi, 1
inc rdi
mov r8, rdi
call fcn.1400cab94
test eax, eax
jne 0x14009fb9d
or sil, 1
jmp 0x14009fbd3
lea rdx, [0x1400e3e58]
mov r8, rdi
mov rcx, rbx
call fcn.1400cab94
test eax, eax
jne 0x14009fbb9
or sil, 4
jmp 0x14009fbd3
lea rdx, [0x1400e3e48]
mov r8, rdi
mov rcx, rbx
call fcn.1400cab94
test eax, eax
jne 0x14009fc39
or sil, 0x10
mov byte [rsp + 0x40], sil
lea rbx, [rbp + 2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009fbef
cmp ax, 9
jne 0x14009fbf5
add rbx, 2
jmp 0x14009fbe0
cmp word [rbx], 0
je 0x14009fc39
lea rcx, [rbx + 2]
mov edx, 0x2b
call fcn.1400cb634
mov rbp, rax
test rax, rax
jne 0x14009fb51
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14009fc57
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 0x14009fc3d
mov al, 0xd
jmp 0x14009fc77
xor al, al
jmp 0x14009fcab
lea rdx, [rsp + 0x40]
mov r9b, 1
mov r8, rdi
movzx ecx, ax
call fcn.14001ad30
movzx esi, byte [rsp + 0x40]
jmp 0x14009fc77
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp word [rbx], 0
jne 0x14009fc67
xor al, al
jmp 0x14009fc77
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001abb0
movzx eax, al
mov word [r12 + 2], ax
test sil, 1
je 0x14009fc8b
or byte [r12], 8
test sil, 4
je 0x14009fc96
or byte [r12], 0x10
test sil, 0x10
je 0x14009fca1
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 0x1400aa1f0
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 0x1400aa32d
test r8, r8
je 0x1400aa223
cmp word [r8], 0
jne 0x1400aa22c
test r9, r9
je 0x1400aa32d
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 0x1400aa31d
mov rcx, qword [rsp + 0x58]
test rsi, rsi
jne 0x1400aa307
call fcn.1400aa0c0
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400aa31d
mov eax, dword [0x14011cec8]
test al, 1
jne 0x1400aa2c8
or eax, 1
lea rcx, [0x1400ef0f0]
mov dword [0x14011cec8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140101650]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14011cec0], rax
jmp 0x1400aa2cf
mov r11, qword [0x14011cec0]
mov rax, qword [0x1401144a8]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400aa2f7
test r11, r11
je 0x1400aa2f7
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400aa31d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400aa31d
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 0x1400aa332
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400aa335
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.14003f1c0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b12e0
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14011be28]
mov rbx, rdx
call fcn.1400065b0
test eax, eax
jne 0x1400b131d
lea r8, [0x1400e346c]
lea rdx, [0x1400e3890]
lea rcx, [0x14011b1d0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140040760
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 0x1400b13e2
mov r13d, dword [rsi]
test r13d, r13d
je 0x1400b13e2
mov rax, rbx
add rbx, 8
cmp rbx, rbp
ja 0x1400b13e2
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, rbp
ja 0x1400b13e2
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 0x1400b14a0
test rdi, rdi
je 0x1400b13c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400b1441
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400cb300
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 0x1400b1350
cmp dword [0x14011be54], r14d
je 0x1400b141c
cmp qword [0x14011be38], r14
je 0x1400b1408
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 0x1400b1484
cmp qword [0x14011be38], r14
je 0x1400b1470
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.140040760
jmp 0x1400b1421
cmp dword [0x14011be54], r14d
je 0x1400b14da
cmp qword [0x14011be38], r14
je 0x1400b14c6
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.140040760
jmp 0x1400b1421
Function at 0x1400b1950
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 0x1400b1b90
dec ecx
mov qword [rsp + 0x50], rsi
je 0x1400b19ea
dec ecx
je 0x1400b19b3
dec ecx
je 0x1400b1997
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 0x1400b19a1
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.140005e70
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x1400b1b2d
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 0x1400b1aeb
cmp qword [rdi + 0x10], 0
jne 0x1400b1aeb
cmp qword [0x14011cd68], rdi
jne 0x1400b1a18
test rbx, rbx
jne 0x1400b1a97
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400b1a92
xor esi, esi
mov qword [0x14011cd68], rsi
test rbx, rbx
je 0x1400b1a80
mov edx, dword [0x140119908]
test edx, edx
je 0x1400b1a62
mov r9, qword [rdi + 0x28]
lea r8, [0x140101ac0]
lea rcx, [0x14011b1d0]
mov qword [rsp + 0x20], rsi
call fcn.1400411a0
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.1400ae9f0
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 0x1400b1ad2
cmp byte [rdi + 0x23], 0
jne 0x1400b1aa3
mov rax, qword [rdi + 0x10]
jmp 0x1400b1aa6
mov rax, rdi
test byte [rax + 0x21], 4
je 0x1400b1ab4
mov rcx, rdi
call fcn.1400412f0
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 0x1400b1b8b
test r8, r8
jne 0x1400b1b3d
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x1400b1b23
mov rcx, rdi
call fcn.1400412f0
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 0x1400b1b8b
cmp r8, 0x186a0
jae 0x1400b1b7d
movzx eax, word [rdx]
test ax, ax
je 0x1400b1b73
nop word [rax + rax]
add rdx, 2
mov word [rbx], ax
add rbx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x1400b1b60
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x1400b1b28
mov rcx, rbx
call fcn.1400cb300
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x1400b1b28
mov rcx, qword [rdi + 0x10]
call fcn.1400b1950
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret