joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002caa0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x18002caa0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.180002982
mov ebx, eax
test eax, eax
jne 0x18002cbce
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18002cb91
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800016a4
mov ebx, eax
test eax, eax
jne 0x18002cbce
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18002cb40
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002cba6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x50], ebp
test rcx, rcx
je 0x18002cbc0
mov rdx, qword [rdi]
mov r8, rsi
call fcn.180002590
jmp 0x18002cbcc
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002cbde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18003f5a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x18002cdf0
Capabilities:
Delete registry key

Disassembly:
jmp 0x18002cdf0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18002ce64
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002ce86
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002ce86
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x18002ce86
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x18002d2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x18002d2d0
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18002d347
call fcn.1800017d0
mov ebx, eax
jmp 0x18002d46c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18002d368
call fcn.1800017d0
jmp 0x18002d460
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18002d38b
call fcn.1800017d0
jmp 0x18002d460
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x18002d3ad
mov ebx, 0x8007000e
jmp 0x18002d462
mov ecx, eax
test eax, eax
je 0x18002d3ea
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18002d3e0
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18002d3ea
lea rcx, [rsp + 0x70]
call fcn.180002eb4
mov rax, qword [rsp + 0x70]
jmp 0x18002d3f4
mov ecx, 0x80070216
call fcn.180003c79
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18002d40c
test rax, rax
jne 0x18002d418
mov ebx, 0x8007000e
jmp 0x18002d462
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18002d43d
call fcn.1800017d0
jmp 0x18002d460
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800014dd
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18002d483
lea rcx, [rsp + 0x70]
call fcn.18000173f
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18003f5a0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
Function at 0x18002e760
Capabilities:
Set registry value

Disassembly:
jmp 0x18002e760
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18002e830
Capabilities:
Set registry value

Disassembly:
jmp 0x18002e830
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x18002e848
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002e854
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x18002e850
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18002f140
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x18002f140
push rbx
sub rsp, 0x50
xor ebx, ebx
test rcx, rcx
je 0x18002f156
add rcx, 0xffffffffffffff18
jmp 0x18002f159
mov rcx, rbx
mov rax, qword [rdx]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x20], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x48], rax
test rcx, rcx
jne 0x18002f1ab
mov rcx, rbx
mov qword [rsp + 0x60], rbx
mov edx, 0x80004005
jmp 0x18002f1c3
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x1800706f8]
call qword [rax]
mov rcx, qword [rsp + 0x60]
mov edx, eax
test edx, edx
js 0x18002f235
test rcx, rcx
je 0x18002f22e
mov ecx, 0x10
mov qword [rsp + 0x68], rdi
call qword [sym.imp.USER32.dll_GetKeyState]
mov edx, 1
mov edi, ebx
test ax, ax
lea ecx, [rdx + 0x10]
cmovs edi, edx
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18002f1fa
add edi, 2
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18002f20d
add edi, 4
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov edx, eax
jmp 0x18002f233
mov edx, 1
test edx, edx
setne bl
test rcx, rcx
je 0x18002f243
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x180030150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x180030150
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180030183
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800301c9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800301c4
nop
cmp rbx, rcx
jae 0x1800301c9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1800301b0
cmp rbx, rcx
jb 0x1800301cd
xor eax, eax
jmp 0x1800301d9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800303f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1800303f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
movsxd rbx, dword [0x18009802c]
movsxd r15, dword [0x180098038]
movsxd r14, dword [0x180098028]
movsxd rsi, dword [0x18009803c]
movsxd r10, ecx
mov r12, r8
lea rbp, [rbx*4]
lea rdi, [r15 + r15]
lea rdx, [rbx + 1]
lea rax, [r14 + rdi]
lea rcx, [r14 + r14]
mov r11, r15
add rdx, rax
mov eax, 4
movsxd r13, r9d
imul r11, rbx
sub rax, rbp
sub r14, r11
xor r9d, r9d
imul rdx, rsi
sub rcx, rdx
imul rax, r15
imul rax, rbx
lea rcx, [rax + rcx*4]
mov rax, r8
imul rcx, r10
shl rcx, 6
sub rax, rcx
mov ecx, 2
movsxd r8, dword [rax + 0x3c]
movsxd rax, dword [0x180098034]
sub rcx, rdi
sub r14, rax
movsxd rax, dword [0x180098030]
imul rcx, rax
lea rax, [rbp + 2]
imul rax, rsi
lea rdx, [rcx + r14*2]
add rdx, rax
lea rax, [r12 + r8]
imul rdx, r13
imul rdx, rdx, 0x108
mov ecx, dword [rdx + rax + 0x88]
add rcx, r12
mov ebx, dword [rcx + 0x20]
mov edi, dword [rcx + 0x1c]
mov esi, dword [rcx + 0x24]
mov r11d, dword [rcx + 0x18]
add rbx, r12
add rdi, r12
add rsi, r12
test r11d, r11d
je 0x180030541
mov eax, dword [0x180098028]
mov r10, qword [rsp + 0x48]
imul r15d, r15d, 0xfffffffd
add eax, 3
imul eax, dword [0x18009803c]
sub r15d, eax
add r15d, dword [0x18009802c]
imul r15d, r13d
nop dword [rax]
mov eax, r9d
mov r8, r10
sub eax, r15d
mov eax, dword [rbx + rax*4]
add rax, r12
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180030535
inc rax
test ecx, ecx
jne 0x180030522
test edx, edx
je 0x180030560
inc r9d
cmp r9d, r11d
jb 0x180030510
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
movzx ecx, word [rsi + r9*2]
mov eax, dword [rdi + rcx*4]
add rax, r12
jmp 0x180030543
Function at 0x180033790
Capabilities:
Get graphical window text

Disassembly:
jmp 0x180033790
push rsi
push rdi
push r14
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov rcx, qword [rdx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rbx
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [rsp + 0x20], eax
mov ecx, ebx
mov qword [rsp + 0x50], rbx
test eax, eax
jle 0x18003389f
inc eax
movsxd rcx, eax
je 0x18003383e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180033834
lea rdx, [rcx + rcx]
cmp rdx, 0x80
jbe 0x18003383e
lea rcx, [rsp + 0x50]
call fcn.18000303f
mov rdx, qword [rsp + 0x50]
jmp 0x180033848
mov ecx, 0x80070216
call fcn.180003c79
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x50], rdx
jmp 0x18003385f
test rdx, rdx
jne 0x18003387d
lea rax, [rsp + 0x58]
test rax, rax
je 0x180033879
lea rcx, [rsp + 0x50]
call fcn.180003382
nop
xor eax, eax
jmp 0x1800338cb
lea r8d, [rdi + 1]
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x18003389a
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jmp 0x18003386c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test edi, edi
je 0x1800338b2
test rax, rax
setne bl
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x1800338c9
lea rcx, [rsp + 0x50]
call fcn.180003382
nop
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.18003f5a0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r14
pop rdi
pop rsi
ret
Function at 0x14003af00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140277eb8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x2a3a2f5c
mov dword [rsp + 0x34], 0x3e3c223f
mov byte [rsp + 0x38], 0x7c
call fcn.140038750
xor esi, esi
lea rdi, [rsp + 0x30]
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
cmp rdx, 8
jb 0x14003af52
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r8, [rax + rax]
mov rax, rbx
lea r11, [r8 + rcx]
jb 0x14003af66
mov rax, qword [rbx]
add rax, r8
mov rcx, rbx
cmp rdx, 8
jb 0x14003af75
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14003afdb
movsx r8d, byte [rdi]
nop
movzx edx, word [rcx]
cmp edx, r8d
je 0x14003af91
add rcx, 2
cmp rcx, rax
jne 0x14003af80
cmp rcx, rax
je 0x14003afdb
lea rdx, [rcx + 2]
mov r9, rax
sub r9, rdx
mov r8, rsi
inc r9
shr r9, 1
cmp rdx, rax
cmova r9, rsi
test r9, r9
je 0x14003afdb
movsx r10d, byte [rdi]
nop dword [rax]
movzx eax, word [rdx]
cmp eax, r10d
je 0x14003afcf
mov word [rcx], ax
add rcx, 2
add rdx, 2
inc r8
cmp r8, r9
jne 0x14003afc0
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003afe8
mov rax, qword [rbx]
mov rdx, rcx
sub rdx, rax
sar rdx, 1
cmp qword [rbx + 0x10], rdx
jb 0x14003b06e
lfence
mov r8, qword [rbx + 0x10]
sub r11, rcx
sar r11, 1
mov rax, r8
sub rax, rdx
cmp rax, r11
cmovb r11, rax
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x14003b01e
mov rax, qword [rbx]
sub r8, r11
lea rcx, [rax + rdx*2]
mov qword [rbx + 0x10], r8
sub r8, rdx
lea rdx, [rcx + r11*2]
lea r8, [r8*2 + 2]
call fcn.140186ec0
lea rax, [rsp + 0x39]
inc rdi
cmp rdi, rax
jne 0x14003af42
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140156fc0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14003c340
int3
Function at 0x1400511c0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400511e0
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140051520
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov r14, rdx
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
and ebx, 1
add ebx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov edi, ebx
or edi, 4
mov ecx, 0x12
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ebx, edi
or ebx, 8
mov ecx, 0x90
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x14
bts edi, 8
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebp, edi
or ebp, 1
and al, 1
cmove ebp, edi
add rsi, 0xfffffffffffffff4
mov ebx, ebp
cmp rsi, 0x84
ja case.0x1400515d9.14
lea rdx, [0x140000000]
movzx eax, byte [rdx + rsi + 0x516a8]
mov ecx, dword [rdx + rax*4 + 0x51684]
add rcx, rdx
jmp rcx
bts ebx, 9
and r14d, 0x1000000
test r14, r14
cmove ebx, ebp
jmp case.0x1400515d9.14
bts ebx, 9
and r14d, 0x1000000
test r14, r14
cmovne ebx, ebp
jmp case.0x1400515d9.14
bts ebx, 9
jmp case.0x1400515d9.14
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x1400515d9.91
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je case.0x1400515d9.14
bts ebx, 0xb
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x1400515d9.91
mov ecx, 0xa3
jmp 0x14005161e
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne case.0x1400515d9.91
mov ecx, 0xa5
jmp 0x14005161e
bts ebx, 0xa
jmp case.0x1400515d9.14

Function at 0x140051730
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
movzx eax, cl
shr rdx, 1
mov rdi, rcx
and edx, 4
mov ecx, 0x12
mov ebx, edx
or ebx, 2
and al, 4
cmove ebx, edx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
or ecx, 8
and al, 1
movzx eax, dil
cmove ecx, ebx
mov edx, ecx
or edx, 0x10
and al, 1
movzx eax, dil
cmove edx, ecx
mov ecx, edx
or ecx, 0x20
and al, 0x10
cmove ecx, edx
mov ebx, ecx
or ebx, 0x40
and dil, 2
cmove ebx, ecx
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x14
bts edi, 8
and al, 1
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
mov ecx, edi
or ecx, 1
and al, 1
cmove ecx, edi
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400517d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov rbx, rcx
mov word [rcx], si
mov ecx, 0x210
mov qword [rax + 0x10], 8
mov qword [rax - 0x40], 8
mov qword [rax - 0x28], 0x107
mov qword [rax - 0x20], 0xa
call fcn.140002c80
mov r8, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
mov rdi, r8
movzx eax, si
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [r8 + 0x208], si
mov rdx, rbx
mov qword [rbx], r8
cmp qword [rbx + 0x18], 8
mov ecx, dword [rbx + 0x10]
cmovae rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x140051887
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140051878
lfence
mov rax, qword [rbx]
mov word [rax + rdx*2], si
mov rax, rbx
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
lfence
mov rdi, qword [rbx + 0x18]
sub rdx, rax
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x1400518d9
lea r9, [rcx + rdx]
mov r8, rbx
mov qword [rbx + 0x10], r9
cmp rdi, 8
jb 0x1400518b7
lfence
mov r8, qword [rbx]
lea rdi, [r8 + rcx*2]
test rdx, rdx
je 0x1400518c9
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r8 + r9*2], si
mov rax, rbx
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
lfence
mov r9, rdx
mov word [rsp + 0x20], si
xor r8d, r8d
mov rcx, rbx
call fcn.1400381b0
mov rax, rbx
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140051c40
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140277eb8]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor esi, esi
mov rax, rdx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
cmp qword [rdx + 0x18], 8
jb 0x140051c81
mov rax, qword [rdx]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140051d6c
nop dword [rax]
test byte [rsp + 0x40], 0x10
jne 0x140051d56
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], 7
mov r8, 0xffffffffffffffff
mov word [rsp + 0x20], si
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140051cd0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400258a0
mov rdx, qword [rbx + 8]
cmp qword [rbx + 0x10], rdx
je 0x140051d0b
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
add qword [rbx + 8], 0x20
jmp 0x140051d56
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.14004fc50
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140051d56
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051d51
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051d9d
call fcn.140156f20
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140051ca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140156fc0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401953dc
int3
Function at 0x140052530
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140052ce0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x120
xor ebx, ebx
lea r9, [rax + 0x18]
mov rsi, rdx
mov dword [rsp + 0x140], ebx
xor r8d, r8d
mov qword [rax + 0x18], rbx
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
test eax, eax
jns 0x140052d7f
call sub.libcef.dll_cef_get_min_log_level
cmp eax, 2
jg 0x140052d5e
lfence
lea r9d, [rbx + 2]
mov r8d, 0x16a
lea rdx, str.D:uworkspace03_27cefwinauto_srcutils_win.cc
lea rcx, [rsp + 0x20]
call fcn.1400c64e0
lea rdx, str.Failed_to_get_known_folder_path._HR:
lea rcx, [rax + 8]
call fcn.1400025c0
mov rcx, rax
mov edx, edi
call fcn.1400503b0
mov ebx, 1
test bl, 1
je 0x140052d6d
lea rcx, [rsp + 0x20]
call fcn.1400c6840
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x140052db3
lfence
mov rdx, qword [rsp + 0x140]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x140052d91
mov rcx, rsi
call fcn.1400258a0
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140053790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r15
sub rsp, 0x50
mov rbx, rdx
mov rsi, rcx
call fcn.140054be0
test al, al
je 0x1400538d2
xor ecx, ecx
mov qword [0x14027b9b8], rbx
call fcn.1400556f0
mov rdi, rax
test rax, rax
je 0x1400538d2
mov edx, 0x40
mov dword [rsp + 0x80], 0
lea r15, [section..crthunk]
mov r8d, edx
mov rcx, r15
lea r9, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400538d2
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x70], rbp
call qword [rax + 0x30]
mov rbx, qword [rdi]
lea rcx, [0x14020c7d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], 0
lea r9, str.NtMapViewOfSection
mov qword [rsp + 0x38], 0x40
mov rdx, rax
lea rax, [0x1400554d0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov edx, 8
mov qword [section..oldntma], r15
lea r9, [rsp + 0x80]
mov ebp, eax
lea rcx, [section..oldntma]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, qword [rdi]
mov esi, 1
mov edx, esi
mov rcx, rdi
mov ebx, eax
call qword [r9]
test ebx, ebx
je 0x1400538b3
lea r9, [rsp + 0x80]
mov rcx, r15
lea edx, [rsi + 0x3f]
lea r8d, [rsi + 0x1f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400538b5
xor esi, esi
test ebp, ebp
mov rbp, qword [rsp + 0x70]
js 0x1400538d2
test esi, esi
je 0x1400538d2
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret