joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800284c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18003f010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18002850f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18003fc60]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18002854d
cmp rsi, r14
jb 0x180028545
cmp rsi, r15
jae 0x180028545
cmp qword [rsi + 8], 0
jne 0x180028717
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180028530
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800285e2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800285d9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800285d9
cmp dword [rsp + 0x40], 0x10000
je 0x18002865b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800285d9
sub rbx, rbp
cmp rbx, r14
jae 0x1800285a0
test rsi, rsi
jne 0x1800286c0
cmp rdi, r15
ja 0x1800286ff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800286ff
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800286ff
cmp dword [rsp + 0x40], 0x10000
je 0x180028691
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180028612
jmp 0x1800286ff
test rbx, rbx
je 0x1800285d9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800286c0
cmp rbx, r14
jae 0x180028580
jmp 0x1800285e2
test rdi, rdi
je 0x1800286ff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800286c0
cmp rdi, r15
jbe 0x1800285f0
jmp 0x1800286ff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800286d0
mov rax, qword [0x18003fc60]
mov qword [rsi], rax
mov qword [0x18003fc60], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002dcf0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180029090
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18003f010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800291bb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800291b2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180029194
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180029194
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180029194
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180029152
mov rcx, qword [0x18003faa8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800291b2
jmp 0x180029187
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180029187
mov rcx, qword [0x18003faa8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800291b2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180029100
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180029213
cmp dword [rbx + 0xc], esi
jbe 0x180029213
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002920c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180028ee0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800291d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002dcf0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180029240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18003f010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18003fc50]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800292b3
mov eax, 0xa
jmp 0x180029342
test esi, esi
je 0x1800292d5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800292f8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800292f8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800292f1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800292f8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002dcf0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180029370
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18003fc5c]
mov ebx, edi
test ecx, ecx
je 0x1800294ab
mov rax, qword [0x18003fc50]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800293c8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800293a0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800294ab
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180029090
mov r8d, dword [0x18003fc5c]
cmp ebx, r8d
jae 0x180029438
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18003fc50]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180029431
mov edx, esi
mov ecx, ebx
call fcn.180029240
mov edi, eax
test eax, eax
jne 0x180029438
mov r8d, dword [0x18003fc5c]
inc ebx
cmp ebx, r8d
jb 0x180029400
cmp qword [rsp + 0x20], 0
je 0x1800294ab
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180029497
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180029488
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180029460
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003faa8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180029810
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18003faa0], ebp
je 0x180029867
cmp rbx, 0x20
jae 0x180029850
xor ecx, ecx
jmp 0x180029852
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18003faa0], ebp
jne 0x180029846
cmp qword [0x18003faa8], r15
je 0x180029961
test rdi, rdi
jne 0x180029887
mov ecx, esi
call fcn.180029370
mov ebp, eax
jmp 0x180029966
mov ecx, dword [0x18003fc5c]
mov ebx, r15d
test ecx, ecx
je 0x1800298af
mov r8, qword [0x18003fc50]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800298b9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800298a0
mov ebp, 4
jmp 0x180029966
cmp ebx, 0xffffffff
je 0x1800298af
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180029958
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180029090
mov edx, esi
mov ecx, ebx
call fcn.180029240
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180029966
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180029942
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180029938
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180029910
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003faa8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180029966
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180029966
mov ebp, 2
xchg dword [0x18003faa0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18002d5e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x18002d622
cmp edx, 1
jne 0x18002d64c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18002d580]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x18003fba8], 0
je 0x18002d64c
call fcn.180029990
mov rcx, qword [0x18003fba0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x18003fba0], rax
mov dword [0x18003fba8], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140012154
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14002e150]
test rcx, rcx
jne 0x14001217a
call fcn.140012208
test eax, eax
je 0x1400121a1
mov rcx, qword [0x14002e150]
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x1400121f5
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400121a5
xor eax, eax
jmp 0x1400121f5
mov eax, dword [rax]
mov rcx, qword [0x14002e150]
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400121d2
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualFree]
mov rax, rdi
jmp 0x1400121f5
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14002e150]
mov rdx, rbx
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x1400121d9
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400134a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x14002d148]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor esi, esi
mov rdi, r8
mov rbp, rdx
xor r12d, r12d
inc r12d
lea r8, [0x140003530]
lea rcx, [rsp + 0x50]
mov r9d, r12d
mov edx, 0x20
call fcn.140013248
lea r11, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r11
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rdx, [0x140001d40]
mov r9d, 2
mov rcx, 0xffffffff80000001
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14001359f
mov edx, dword [rsp + 0x40]
xor ecx, ecx
shr edx, 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
je 0x14001359f
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [0x140001d40]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140013596
cmp qword [rdi], rbx
je 0x14001358e
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], rbx
inc esi
add rdi, 8
jmp 0x14001359f
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp r12d, 5
jb 0x1400134da
mov dword [rbp], esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140022620
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400138fc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
mov rbx, r9
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
mov rdi, r8
lea rdx, [0x140001d40]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20106
and dword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013985
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 4]
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
je 0x14001397f
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x140013985
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140013998
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov dword [rax - 0x18], 4
lea rax, [rax - 0x10]
mov rbx, r9
mov rdi, r8
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013a1e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140013a11
cmp dword [rsp + 0x34], 4
jne 0x140013a11
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x140013a1e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140013a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
mov rbx, qword [rsp + 0x70]
mov rsi, r8
lea rax, [r11 - 0x18]
mov r12, rcx
mov rcx, qword [rbx]
mov qword [r11 - 0x20], rax
mov rdi, r9
mov qword [r11 - 0x28], r9
mov rbp, rdx
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x30], 4
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a8c
cmp dword [rsp + 0x34], 4
je 0x140013adc
mov rcx, qword [rbx]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140013ab9
and qword [rbx], 0
jmp 0x140013adc
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140014dc8
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r13, r8
mov r14, rdx
mov qword [rdx], rbx
mov rbp, rcx
or r15, 0xffffffffffffffff
mov dword [r8], ebx
mov r12d, ebx
cmp qword [rbp + 0xe8], rbx
je 0x140014e18
mov rcx, qword [rbp + 0xe8]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax]
jmp 0x140014e22
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
movsxd rcx, eax
mov edi, eax
mov eax, 8
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140021d38
mov rsi, rax
cmp rax, rbx
je 0x140014e7e
cmp edi, ebx
je 0x140014e73
cmp qword [rbp + 0xe8], rbx
je 0x140014e64
mov rcx, qword [rbp + 0xe8]
mov r8, rax
mov edx, edi
mov r9, qword [rcx]
call qword [r9]
jmp 0x140014e6f
mov rdx, rax
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp edi, eax
je 0x140014e96
mov rcx, rsi
call fcn.140021d44
mov rsi, rbx
mov ecx, 1
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
inc r12d
cmp r12d, 5
jl 0x140014dfc
cmp edi, ebx
jle 0x140014ed4
movsxd rbp, edi
mov eax, 2
mul rbp
cmovo rax, r15
mov rcx, rax
call fcn.140021d38
cmp rax, rbx
je 0x140014ed4
cmp rbp, rbx
jle 0x140014ecb
movzx ecx, word [rsi + rbx*8]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, rbp
jl 0x140014ebb
mov qword [r14], rax
mov bl, 1
mov dword [r13], edi
mov rcx, rsi
call fcn.140021d44
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140008864
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400f8148]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x18], 0x6c6c642e
mov word [rbp - 0x1c], 0x6970
mov word [rbp - 0x1f], 0x7664
mov byte [rbp - 0x14], 0
mov word [rbp - 0x1a], 0x3233
mov byte [rbp - 0x20], 0x41
mov byte [rbp - 0x1d], 0x61
call fcn.14001dc38
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002d370
add rsp, 0x40
pop rbp
ret

Function at 0x1400088c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400f8148]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x20]
mov word [rbp - 0x1a], 0x642e
mov word [rbp - 0x1d], 0x3372
mov word [rbp - 0x20], 0x7355
mov word [rbp - 0x17], 0x6c
mov byte [rbp - 0x1e], 0x65
mov byte [rbp - 0x1b], 0x32
mov byte [rbp - 0x18], 0x6c
call fcn.14001dc38
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002d370
add rsp, 0x40
pop rbp
ret

Function at 0x1400089ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400f8148]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov word [rbp - 0x15], 0x7478
mov byte [rbp - 0x13], bl
mov rsi, rdx
mov rdi, rcx
mov dword [rbp - 0x1f], 0x65636f72
mov dword [rbp - 0x1a], 0x4e323373
mov byte [rbp - 0x20], 0x50
mov byte [rbp - 0x1b], 0x73
mov byte [rbp - 0x16], 0x65
call fcn.14001c974
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008a15
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002d370
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140008a38
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400f8148]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
mov word [rbp - 0x1c], 0x7365
mov byte [rbp - 0x12], bl
mov rsi, rdx
mov rdi, rcx
mov word [rbp - 0x19], 0x3233
mov dword [rbp - 0x20], 0x636f7250
mov dword [rbp - 0x16], 0x74737269
mov byte [rbp - 0x1a], 0x73
mov byte [rbp - 0x17], 0x46
call fcn.14001c974
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008aa3
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002d370
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret