joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180016de4
Capabilities:
Enumerate files on windows

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 r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001a7dc
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001ab9c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001a79c
cmp rbp, 0xffffffffffffffff
je 0x180016f02
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180016ed9
mov al, byte [rdi]
cmp al, byte [0x18002d8bc]
jne 0x180016e6f
mov al, byte [rdi + 1]
cmp al, byte [0x18002d8bd]
je 0x180016ee5
mov al, byte [rdi]
cmp al, byte [0x18002d8c0]
jne 0x180016e8f
mov al, byte [rdi + 1]
cmp al, byte [0x18002d8c1]
jne 0x180016e8f
mov al, byte [rdi + 2]
cmp al, byte [0x18002d8c2]
je 0x180016ee5
mov rcx, r12
call fcn.18001a7dc
lea r8, [0x18002d6c4]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001ab9c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180016f24
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001a79c
jmp 0x180016ee5
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180016e55
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180018db8
Capabilities:
Encode data using xor

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 r14
sub rsp, 0x50
mov qword [0x180048720], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.18001a7dc
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x180048728], rax
call fcn.18001aa90
mov rcx, qword [0x180048728]
xor r14d, r14d
lea r9d, [r14 + 1]
mov edx, ebx
mov qword [rsp + 0x20], r14
mov r8d, r9d
call fcn.18001a1b4
mov eax, r14d
lea rbp, str.._._._..._._._1
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x180018e1f
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180014284
jmp 0x180018f16
lea rcx, [rsp + 0x30]
call fcn.18001432c
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.18001432c
mov rcx, qword [0x180048728]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180018f00
dec edx
je 0x180018ee9
dec edx
jne 0x180018f16
movsx rbx, ax
mov rcx, rbx
call fcn.18001a7dc
mov r8, qword [0x180048728]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.1800142c8
mov rcx, qword [0x180048728]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001ae80
mov rcx, qword [0x180048728]
mov r9d, 1
mov rcx, qword [rdi + rcx + 8]
mov r8d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.18001a1b4
jmp 0x180018f16
lea rcx, [rsp + 0x30]
call fcn.180014294
mov rcx, qword [0x180048728]
mov dword [rdi + rcx + 8], eax
jmp 0x180018f16
lea rcx, [rsp + 0x30]
call fcn.18001432c
mov rdx, qword [0x180048728]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.18001432c
movzx edi, ax
test ax, ax
jg 0x180018e46
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp fcn.18001aa90

Function at 0x180019818
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.18001999c
mov r8, qword [0x180044438]
test r8, r8
je 0x18001988d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x140002bf0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140002c1e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140003f40
cmp byte [0x140038090], 0
jne 0x140002c69
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002c59
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140038090], 1
mov qword [0x140038088], rax
jmp 0x140002c70
mov rax, qword [0x140038088]
mov byte [0x140038090], 1
jmp 0x140002c70
mov rax, qword [0x140038088]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002c8f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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 0x140003fb4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140003fcf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140003fcf
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 case.default.0x140003fcf
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
sbb byte [rsi], dh
mov esi, 0x27e110a
mov esi, 0x27e110a
cwde
ja 0x14005341b
pop rdi
js 0x140053479
js 0x140053466
push rdx
and cl, 0xb4
inc byte [rdx]
adc eax, 0x14e8358
stosd dword [rdi], eax
invalid
add dword [rbx - 0x64abe0c0], ebp
invalid
cwde
hlt
jrcxz 0x140053435
fisubr word fs:[rdi - 0x2d15f6f6]
mov eax, eax
loope 0x1400534ce
and byte [rcx], cl
movabs al, byte [0x5ad66a5396c06ec2]
fsubr qword [rsi + 0xe]
push rsi
cmc
jno 0x1400534c8
iretq
sub byte [rdx + 0x3cb0b634], r11b
movsd dword [rdi], dword [rsi]
cmp al, 0xa5
mov dl, 0xdb
invalid
Function at 0x140003ca0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor eax, eax
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
or r9d, 0x2001f
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
call fcn.140003740
mov ebx, eax
test eax, eax
jne 0x140003dc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
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 + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140003da1
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003ca0
mov ebx, eax
test eax, eax
jne 0x140003dc7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x58]
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 + 0x58], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140003d50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003db6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x48], ebp
call int.140002bf0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003dd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140012270
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003f40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140002c1e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140003f40
cmp byte [0x140038090], 0
jne 0x140002c69
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002c59
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140038090], 1
mov qword [0x140038088], rax
jmp 0x140002c70
mov rax, qword [0x140038088]
mov byte [0x140038090], 1
jmp 0x140002c70
mov rax, qword [0x140038088]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002c8f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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 0x140003fb4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140003fcf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140003fcf
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 case.default.0x140003fcf
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
sbb byte [rsi], dh
mov esi, 0x27e110a
mov esi, 0x27e110a
cwde
ja 0x14005341b
pop rdi
js 0x140053479
js 0x140053466
push rdx
and cl, 0xb4
inc byte [rdx]
adc eax, 0x14e8358
stosd dword [rdi], eax
invalid
add dword [rbx - 0x64abe0c0], ebp
invalid
cwde
hlt
jrcxz 0x140053435
fisubr word fs:[rdi - 0x2d15f6f6]
mov eax, eax
loope 0x1400534ce
and byte [rcx], cl
movabs al, byte [0x5ad66a5396c06ec2]
fsubr qword [rsi + 0xe]
push rsi
cmc
jno 0x1400534c8
iretq
sub byte [rdx + 0x3cb0b634], r11b
movsd dword [rdi], dword [rsi]
cmp al, 0xa5
mov dl, 0xdb
invalid
Function at 0x1400041d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140012380
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 0x14000427c
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 0x14000427c
call fcn.140002210
mov ebx, eax
jmp 0x1400043a4
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000429d
call fcn.140002210
jmp 0x140004393
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 0x1400042c0
call fcn.140002210
jmp 0x140004393
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 0x1400042e2
mov ebx, 0x8007000e
jmp 0x140004395
mov ecx, eax
test eax, eax
je 0x14000431a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004310
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000431a
lea rcx, [rsp + 0x70]
call fcn.1400020f0
jmp 0x140004324
mov ecx, 0x80070216
call fcn.140002420
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140004337
cmp qword [rsp + 0x70], 0
jne 0x140004346
mov ebx, 0x8007000e
jmp 0x140004395
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
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 0x140004370
call fcn.140002210
jmp 0x140004393
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 + 0x58]
call fcn.140003ff0
mov ebx, eax
test rdi, rdi
je 0x1400043a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400043bb
lea rcx, [rsp + 0x70]
call fcn.140002ce0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140012270
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004be0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012270
add rsp, 0x48
ret

Function at 0x140004c30
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140004c48
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 0x140004c54
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140004c50
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 0x140008f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [0x1400382d0]
mov r14, rcx
movzx edx, dx
mov r8d, 0xf0
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000915d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000915d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000915d
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2a8], r13
mov qword [rsp + 0x2a0], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x2f0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x140009117
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14000908b
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x108
call fcn.140012380
lea rax, [rsp + 0x188]
lea rcx, [rsp + 0x180]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x180], rax
call fcn.14000a1c0
mov rax, qword [rsp + 0x180]
mov rcx, qword [r14 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x180]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x188]
cmove edi, r15d
cmp rcx, rax
je 0x14000910c
call fcn.1400112c0
jmp 0x14000910c
cmp r12w, ax
jne 0x14000910c
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x148], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
call fcn.14000a1c0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x150], rcx
cmp rcx, rax
je 0x1400090e1
call fcn.1400112c0
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x140]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x140008fe0
mov rbp, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140012270
add rsp, 0x2c0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x140009141
Function at 0x140009680
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x140009724
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, ebx
nop dword [rax + rax]
cmp ax, word [rsp + rcx*8 + 0x20]
jne 0x1400096dc
mov rbx, qword [rsp + rcx*8 + 0x20]
cmp ax, word [rsp + rcx*8 + 0x28]
jne 0x1400096e8
mov rbx, qword [rsp + rcx*8 + 0x28]
cmp ax, word [rsp + rcx*8 + 0x30]
jne 0x1400096f4
mov rbx, qword [rsp + rcx*8 + 0x30]
cmp ax, word [rsp + rcx*8 + 0x38]
jne 0x140009700
mov rbx, qword [rsp + rcx*8 + 0x38]
cmp ax, word [rsp + rcx*8 + 0x40]
jne 0x14000970c
mov rbx, qword [rsp + rcx*8 + 0x40]
cmp ax, word [rsp + rcx*8 + 0x48]
jne 0x140009718
mov rbx, qword [rsp + rcx*8 + 0x48]
add rcx, 6
cmp rcx, 0x1e
jl 0x1400096d0
jmp 0x140009779
mov rax, rbx
cmp di, word [rsp + rax*8 + 0x20]
jne 0x140009733
mov rbx, qword [rsp + rax*8 + 0x20]
cmp di, word [rsp + rax*8 + 0x28]
jne 0x14000973f
mov rbx, qword [rsp + rax*8 + 0x28]
cmp di, word [rsp + rax*8 + 0x30]
jne 0x14000974b
mov rbx, qword [rsp + rax*8 + 0x30]
cmp di, word [rsp + rax*8 + 0x38]
jne 0x140009757
mov rbx, qword [rsp + rax*8 + 0x38]
cmp di, word [rsp + rax*8 + 0x40]
jne 0x140009763
mov rbx, qword [rsp + rax*8 + 0x40]
cmp di, word [rsp + rax*8 + 0x48]
jne 0x14000976f
mov rbx, qword [rsp + rax*8 + 0x48]
add rax, 6
cmp rax, 0x1e
jl 0x140009727
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140012270
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140009ae0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
or esi, 0xffffffff
mov r14, r8
mov rbp, rdx
test rdx, rdx
je 0x140009bf6
mov qword [r11 + 8], rbx
mov qword [r11 - 0x20], rdi
lea edx, [rsi + 2]
mov rcx, rbp
mov qword [r11 - 0x28], r15
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rdi, [0x140033ba0]
lea r15, [0x140033ba4]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140012380
movsxd rax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
add rdx, r15
call fcn.140012f04
test eax, eax
je 0x140009bdc
mov ecx, dword [rdi]
mov eax, ecx
dec eax
je 0x140009b85
dec eax
je 0x140009b7e
cmp eax, 2
jne 0x140009b8a
lea ecx, [rax + 0xe]
jmp 0x140009b8a
mov ecx, 0x11
jmp 0x140009b8a
mov ecx, 0x12
mov r8, rbp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
lea eax, [rbx - 0xf]
shl ecx, 0x10
or ecx, 1
cmp eax, 3
ja 0x140009ba9
bts ecx, 0x18
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140012f04
test eax, eax
je 0x140009bdc
inc ebx
add rdi, 0x2c
cmp ebx, 0x42
jl 0x140009b40
jmp 0x140009bde
mov esi, ebx
mov rdi, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
mov r15, qword [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012270
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x14000e6c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
call fcn.14000e4c0
xor edi, edi
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000e7d9
mov r8d, 0xf0
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15d, edi
test rax, rax
je 0x14000e737
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x60], rbp
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000e7bb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14000e7bb
mov rdx, r15
mov rcx, rax
call fcn.14000fed0
mov r9, r12
mov r8, r13
mov rsi, rax
mov rax, qword [rsp + 0x80]
mov rcx, r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x14000e79d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, rbp
je 0x14000e7c3
test rsi, rsi
je 0x14000e7c3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000e7c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test ebx, ebx
je 0x14000e7d9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140010270
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x1400102b4
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012270
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x14000f6a0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400102f5
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012270
add rsp, 0x40
pop rbx
ret