joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e0ee4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e0f2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e0f2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e0f2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e0f2e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e0f2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401e0f30
xor al, al
add rsp, 0x28
ret

Function at 0x1401f56c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402c3380]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401f571f
cmp word [rdx], r13w
jne 0x1401f571f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401f5724
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401f5849
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401f586a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401f575d
mov rdx, r9
mov word [rbx], cx
jmp 0x1401f5784
cmp r9, r8
jae 0x1401f5794
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401f573e
jmp 0x1401f5849
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401f583e
cmp dword [rsp + 0x80], esi
je 0x1401f583e
lea r8, [0x1402c3380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401f5816
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401f57e6
mov word [rbx], r13w
jmp 0x1401f5846
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401f57f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401f5846
cmp word [rsp + 0x70], r13w
jne 0x1401f5823
cmp rbx, r14
je 0x1401f57e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140201b34
cmp word [rsp + 0x70], r13w
je 0x1401f5849
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402c3380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401f5843
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401f5849
Function at 0x1401f869c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401f8498

Function at 0x1401f9a38
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401f9a4e
mov al, 1
jmp 0x1401f9aae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401f9a5f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401f9aac
mov ecx, dword [rcx + 0x18]
nop
call fcn.140201854
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f9aac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401f9aac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401f9aac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401f9aae
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140200788
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401f93b0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140200829
cmp ebx, dword [rsp + 0x30]
je 0x140200822
test esi, esi
je 0x140200822
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402007fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14020080a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402007e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14020080e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14020082b
mov eax, 1
jmp 0x14020082b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140201f74
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140201b34
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140201b34
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402020c4
cmp rax, 0xffffffffffffffff
je 0x1402020c4
xor edi, edi
test rbp, rbp
jle 0x14020206f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401fa080
mov rbx, rax
test rax, rax
jne 0x140201ffc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140202065
mov edx, 0x8000
mov ecx, r14d
call fcn.1401f8718
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401f6d24
cmp eax, 0xffffffff
je 0x140202045
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14020200c
mov edx, r15d
mov ecx, r14d
call fcn.1401f8718
jmp 0x140202065
cmp byte [rsi + 0x38], dil
je 0x14020205c
cmp dword [rsi + 0x34], 5
jne 0x14020205c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140202065
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401fa0f8
jmp 0x1402020d8
jns 0x1402020d8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140201b34
cmp rax, 0xffffffffffffffff
jne 0x140202090
cmp byte [rsi + 0x30], dil
je 0x1402020d8
mov edi, dword [rsi + 0x2c]
jmp 0x1402020d8
mov ecx, r14d
call fcn.140201854
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402020d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1402020d8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402020d1
mov eax, dword [rsi + 0x2c]
jmp 0x1402020d6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140201b34
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140206310
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140206338
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140206338
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140012ba0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400129c4
Function at 0x1800129e0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x20], 0
jne 0x180012a15
xor al, al
jmp 0x180012c1e
mov rax, qword [rcx + 0x30]
mov rdi, qword [rax + 0x50]
test rdi, rdi
je 0x180012a0e
lea r10, [rcx + 0x10]
mov r11, r10
cmp qword [r10 + 0x18], 8
jb 0x180012a33
mov r11, qword [r10]
mov rax, qword [r10 + 0x10]
cmp rax, 4
jb 0x180012b77
add rax, 0xfffffffffffffffd
lea rbx, [r11 + rax*2]
mov rax, r11
lea rsi, [0x1803cdce8]
nop dword [rax]
nop word [rax + rax]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
je 0x180012b77
cmp word [rax], 0x5c
je 0x180012a7f
add rax, 2
sub rcx, 1
jmp 0x180012a69
test rax, rax
je 0x180012b77
mov r8d, 4
mov rdx, rsi
mov r9, rax
sub r9, rsi
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x180012b62
add rdx, 2
sub r8, 1
jne 0x180012aa0
sub rax, r11
cmp rax, 2
jae 0x180012b77
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.180005900
nop
lea rcx, [rsp + 0x40]
call fcn.18017af70
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180012b13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
nop
test rbx, rbx
je 0x180012b22
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ILFree]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180012b70
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012b6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, 2
jmp 0x180012a60
call fcn.180393fb0
xor ebx, ebx
jmp 0x180012c09
mov r8, r10
lea rdx, str._select_
lea rcx, [rsp + 0x40]
call fcn.180012cb0
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov dword [rsp + 0x28], 5
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r8, str.explorer.exe
lea rdx, str.open
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180012c09
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012c04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180012c04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
mov word [rsp + 0x40], bx
movdqu xmmword [rsp + 0x50], xmm0
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180016c30
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x105
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x180016cda
mov word [rbp + 0x19a], si
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180016cc1
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.180005cd0
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015fbe0
lea rdx, [rsp + 0x70]
call fcn.180016b70
nop
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x180016d01
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180016d48
lea rdi, [rcx + rdx]
mov qword [rsp + 0x60], rdi
lea rbx, [rsp + 0x50]
cmp r8, 8
cmovae rbx, qword [rsp + 0x50]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x180016d5b
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.18000ada0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180016d9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016d9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016d9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x1803ce1e4]
xor ecx, ecx
call fcn.18036feb0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180016e38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180016e33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180016e33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18001d560
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x18001d615
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x18001d5e1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001d600
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001d600
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x18001d600
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1804f1850], 0
jne 0x18001d660
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001d650
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804f1848], rax
mov byte [0x1804f1850], 1
jmp 0x18001d667
mov rax, qword [0x1804f1848]
mov byte [0x1804f1850], 1
jmp 0x18001d667
mov rax, qword [0x1804f1848]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x18001d5ea
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x18001d790
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.18001d690
mov ebx, eax
test eax, eax
jne 0x18001d8b7
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18001d891
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001d790
mov ebx, eax
test eax, eax
jne 0x18001d8b7
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18001d840
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001d8a6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.18001d560
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001d8cc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
mov dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001dec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, 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, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001df4e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001df4e
call fcn.18001d2c0
mov ebx, eax
jmp 0x18001e070
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18001df6f
call fcn.18001d2c0
jmp 0x18001e05f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18001df92
call fcn.18001d2c0
jmp 0x18001e05f
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 0x18001dfb4
mov ebx, 0x8007000e
jmp 0x18001e061
mov ecx, eax
test eax, eax
je 0x18001dfe9
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18001e0a8
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18001dfe9
lea rcx, [rsp + 0x70]
call fcn.180021420
jmp 0x18001dff3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18001e006
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x18001e017
mov ebx, 0x8007000e
jmp 0x18001e061
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 0x18001e03c
call fcn.18001d2c0
jmp 0x18001e05f
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001ee70
mov ebx, eax
test rdi, rdi
je 0x18001e070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18001e087
lea rcx, [rsp + 0x70]
call fcn.180021410
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.180019cb0
int3
Function at 0x180022f10
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x48]
xor al, al
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x180022f58
mov rcx, qword [rbx + 0x610]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x180022f56
mov rcx, qword [rbx + 0x610]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x180022f56
mov al, 1
jmp 0x180022f58
xor al, al
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x180022f7c
test al, al
jne 0x180022f7c
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180266620
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180025f70
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x180025fa3
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0x180025fa3
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x180025fbe
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180266620
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180028650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov rcx, rdx
call fcn.18015b0b0
test al, al
je 0x180028883
call fcn.180371ef0
cmp qword [rax + 0x418], 0
jne 0x1800286ad
mov rcx, rax
call fcn.180372010
xor edx, edx
call fcn.1803720f0
mov rdi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800286c1
mov rdi, qword [rbx]
xor r15d, r15d
test rdi, rdi
je 0x1800286fe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800286fe
test al, 0x10
jne 0x1800286fe
call fcn.180166590
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.1801666c0
test al, al
jne 0x1800287fb
mov rdx, rdi
call fcn.180372190
mov rax, r15
mov qword [r14 + 0x38], rax
mov dl, 1
call fcn.1803720f0
mov rax, qword [r14 + 0x38]
test rax, rax
jne 0x180028880
mov edx, esi
lea rcx, [rbp - 0x28]
call fcn.180168870
nop
cmp qword [rbp - 0x18], 0
je 0x180028825
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x38], r15
mov edi, 7
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x48], r15w
call fcn.180166590
mov rsi, rax
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
jb 0x180028766
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1800287c1
lea r8, [rbp - 0x48]
mov rcx, rsi
call fcn.180167140
cmp qword [rbp - 0x38], 0
je 0x1800287bd
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180028794
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.1801666c0
test al, al
je 0x1800287bd
cmp qword [rbx + 0x18], 8
jb 0x1800287aa
mov rbx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [r14 + 0x38], rax
mov rdi, qword [rbp - 0x30]
cmp rdi, 8
jb 0x180028814
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002880f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002880f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x180028701
call fcn.180393fb0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180028868
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180028863
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180028863
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov rax, qword [r14 + 0x38]
test rax, rax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret