joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30af62432
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x30af68108]
test eax, eax
je 0x30af624ca
lea rax, [0x30af680e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x30af68110]
mov qword [rbp - 8], rax
jmp 0x30af624ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x30af624a2
cmp qword [rbp - 0x10], 0
je 0x30af624a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x30af62468
lea rax, [0x30af680e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x30af624cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x30af625d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x30af625f8
mov eax, 0
jmp 0x30af62646
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x30af62621
mov eax, 0
jmp 0x30af62646
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x30af62641
mov eax, 0
jmp 0x30af62646
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x30af6264c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x30af626ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x30af626c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x30af626c1
mov rax, qword [rbp - 8]
jmp 0x30af626df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x30af62694
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140482840
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14048284d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14048285d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140482845
lea eax, [rcx + 1]
jmp 0x14048286b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14048287e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140482864
sub eax, 3
jb 0x14048289e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404828ed
sar eax, 1
movsxd rbp, eax
jb 0x1404828d4
jmp 0x1404828ac
add ebx, ebx
jne 0x1404828aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404828d4
inc ecx
add ebx, ebx
jne 0x1404828ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404828d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404828cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404828bc
add ecx, 2
jmp 0x1404828d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140482802
jmp 0x14048284d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf5c00
mov dl, 0x2e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140482939
cmp rsi, rcx
jae 0x140482941
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140482920
cmp al, 0x8f
ja 0x140482920
cmp byte [rsi - 2], 0xf
je 0x140482926
sub al, 0xe8
cmp al, 1
ja 0x14048290a
cmp rsi, rcx
jae 0x140482941
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140482910
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140482941
lodsb al, byte [rsi]
jmp 0x140482920
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47f000]
mov eax, dword [rdi]
or eax, eax
je 0x14048299e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x482000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14048294e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140482998
mov qword [rbx], rax
add rbx, 8
jmp 0x14048296e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1404829e2
cmp al, 0xef
ja 0x1404829ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404829aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404829b9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404829b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140482a36
sub rsp, 0xffffffffffffff80
jmp 0x1400cb7e4
Function at 0x140134260
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14013426d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14013427d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140134265
lea eax, [rcx + 1]
jmp 0x14013428b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14013429e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140134284
sub eax, 3
jb 0x1401342be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14013430d
sar eax, 1
movsxd rbp, eax
jb 0x1401342f4
jmp 0x1401342cc
add ebx, ebx
jne 0x1401342ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401342f4
inc ecx
add ebx, ebx
jne 0x1401342da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401342f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401342ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401342dc
add ecx, 2
jmp 0x1401342f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140134222
jmp 0x14013426d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb8e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14013435d
cmp rsi, rcx
jae 0x140134365
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140134344
cmp al, 0x8f
ja 0x140134344
cmp byte [rsi - 2], 0xf
je 0x14013434a
sub al, 0xe8
cmp al, 1
ja 0x14013432e
cmp rsi, rcx
jae 0x140134365
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140134334
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140134365
lodsb al, byte [rsi]
jmp 0x140134344
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x131000]
mov eax, dword [rdi]
or eax, eax
je 0x1401343c2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1344ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140134372
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401343bc
mov qword [rbx], rax
add rbx, 8
jmp 0x140134392
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401343fc
cmp al, 0xef
ja 0x1401343ee
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401343ce
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401343dd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14013447b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14013447b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14013446b
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x1400066a4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140006715
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140006715
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x1400066f3
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400209b8]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140004484
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140006778
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006834
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
call fcn.140005c8c
mov esi, eax
jmp 0x140006837
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140006560
mov esi, eax
test eax, eax
jns 0x1400067ae
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140005c50
jmp 0x140006837
lea r8, [0x1400209c0]
lea rcx, [rsp + 0x30]
call fcn.140004484
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400067dd
mov edx, 0xd4
jmp 0x140006765
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006560
mov esi, eax
test eax, eax
jns 0x140006813
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140005c50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140006889
jmp 0x140006837
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000689b
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140006849
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140006877
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140005cac
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140005cac
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140005cac
int3
Function at 0x140009e70
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea r9, [rbx + 0x18]
mov rcx, rbx
lea r8, str.Main
mov qword [rbx + 0x90], rax
lea rdx, str.SoftKeyboardMain
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
lea r9, [rbx + 0x20]
mov rcx, rbx
lea r8, str._auxpad
lea rdx, str.SoftKeyboardAux
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
lea r9, [rbx + 0x40]
mov rcx, rbx
lea r8, str.osknav
lea rdx, str.SoftKeyboardNav
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
lea r9, [rbx + 0x48]
mov rcx, rbx
lea r8, str.oskclearui
lea rdx, [0x140020ce8]
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
lea r9, [rbx + 0x38]
mov rcx, rbx
lea r8, str.osknumpad
lea rdx, str.SoftKeyboardNumPad
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
lea rdx, [rbx + 0x28]
mov rcx, rbx
call fcn.14000a1bc
mov r8d, eax
test eax, eax
js 0x140009f98
cmp qword [rbx + 0xe8], 0
je 0x140009f98
lea r9, [rbx + 0x30]
mov rcx, rbx
lea r8, str.oskpred
lea rdx, str.SoftKeyboardPred
call fcn.140009fac
mov r8d, eax
test eax, eax
js 0x140009f98
mov rcx, qword [rbx + 0xe8]
mov rdx, qword [rbx + 0x30]
mov rax, qword [rbx + 0x90]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x128], rdx
mov eax, r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a3fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2e0
mov qword [rax - 0x258], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x70], 0xf
mov rcx, r8
call qword [sym.imp.DUI70.dll_StrToID]
movzx edx, ax
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.DUI70.dll_public:_class_DirectUI::Element____ptr64___cdecl_DirectUI::Element::FindDescendent_unsigned_short_int____ptr64]
mov r15, rax
xor r12d, r12d
mov edi, r12d
mov word [rsp + 0xc0], r12w
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
lea rcx, str._CommonProgramFiles_Microsoft_SharedInk_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14000a498
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000a5e2
lea rcx, [rsp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14000a60c
lea rcx, [rsp + 0xc0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000a617
lea rdx, str.TabSKB.dll
lea rcx, [rsp + 0x58]
call fcn.14000186c
mov edi, eax
test eax, eax
js 0x14000a5c6
lea rdx, str.TipResX.dll
lea rcx, [rsp + 0x50]
call fcn.14000186c
mov edi, eax
test eax, eax
js 0x14000a5c1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdx, rax
mov qword [rsi + 0xf8], rax
mov rcx, qword [rsi + 0x98]
mov qword [rsp + 0x60], rcx
mov eax, 0x1e
mov word [rsp + 0x68], ax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm0
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0xa0], ecx
mov rax, qword [r14]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdi
mov r9, r15
mov r8, qword [rsi + 0x58]
mov rdx, qword [rsi + 0x50]
mov rcx, r14
mov rax, qword [rax + 0xd8]
call qword [0x1400200f0]
mov edi, eax
jmp 0x14000a5c6
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
jmp 0x14000a5e2
mov eax, edi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14001d6c0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400017a4
nop
mov ecx, 0x8007000e
call fcn.1400017a4
int3
Function at 0x14000ba3c
Capabilities:
Extract resource via kernel32 functions

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, 0x40
xor r9d, r9d
mov rdi, rcx
cmp byte [rcx + 0xdd], r9b
je 0x14000bbb1
mov r15d, r9d
lea rbx, [0x140020e14]
mov r14d, r9d
lea rax, [rbx - 4]
cmp byte [rdi + 0xde], r9b
jne 0x14000ba88
mov rax, rbx
mov edx, dword [rax]
test edx, edx
je 0x14000bb93
mov r12, qword [rdi + 0xf8]
mov ebp, edx
and ebp, 0xf
mov esi, 0x80004005
mov r13, r9
test edx, edx
jns 0x14000bab0
add edx, 0xf
sub ebp, 0x10
movzx r8d, word [rdi + 0x90]
mov rcx, r12
sar edx, 4
inc edx
call fcn.14000bbd8
xor r9d, r9d
test rax, rax
je 0x14000bb93
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
xor r9d, r9d
mov r12, rax
test rax, rax
je 0x14000bb93
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r9d, r9d
mov rcx, rax
test rax, rax
je 0x14000bb44
mov edx, r9d
movzx eax, word [rcx]
add rcx, 2
cmp r9w, ax
je 0x14000bb1f
movzx r8d, ax
cmp edx, ebp
je 0x14000bb28
mov eax, r8d
lea rcx, [rcx + r8*2]
inc edx
cmp edx, 0x10
jge 0x14000bb44
jmp 0x14000bb03
mov edx, r8d
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rcx, rax
mov r13, rax
neg rcx
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor r9d, r9d
test esi, esi
js 0x14000bb93
mov rcx, qword [rdi + 0x38]
or r8, 0xffffffffffffffff
mov rax, qword [rcx]
inc r8
cmp word [r13 + r8*2], r9w
jne 0x14000bb5f
mov rax, qword [rax + 0x120]
mov rdx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r9d
mov r9d, r15d
call qword [0x1400200f0]
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor r9d, r9d
inc r14d
add rbx, 8
cmp r14d, 4
jl 0x14000ba78
inc r15d
cmp r15d, 5
jl 0x14000ba75
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000c684
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [0x14002b638]
mov rdi, r9
cmp r8d, 3
je 0x14000c6cf
cmp r8d, 0x8005
jne 0x14000c757
mov rcx, qword [rbx + 0x80]
xor r9d, r9d
mov edx, 0x7d3
mov r8d, 0x1f4
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x14000c757
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 8
je 0x14000c757
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x60], eax
je 0x14000c757
cmp rdi, qword [rbx + 0xd0]
jne 0x14000c717
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xd8]
cmp eax, 0x3e8
jbe 0x14000c757
mov rcx, qword [rbx + 0x80]
xor r9d, r9d
mov dword [rsp + 0x30], 0x13
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov qword [rbx + 0xd0], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xd8], eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c860
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, qword [0x14002b638]
mov rsi, rdx
mov edx, 0x7d3
mov rax, qword [rdi + 0x80]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rbx, rax
je 0x14000c9b5
xor ebx, ebx
cmp byte [rdi + 0xdc], bl
jne 0x14000c9b5
lea rdx, [rsp + 0x20]
mov byte [rdi + 0xdc], 1
xor ecx, ecx
mov dword [rsp + 0x20], 0x48
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x14000c97b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000c97b
lea r8d, [rbx + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x14000c926
lea rdx, str.ConsoleWindowClass
mov word [rsp + 0xee], bx
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14000c942
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14000c942
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rsi, rax
test rsi, rsi
je 0x14000c97b
cmp qword [rdi + 0x90], rsi
je 0x14000c97b
mov rcx, rdi
mov qword [rdi + 0x90], rsi
call fcn.14000c9e0
mov rcx, rdi
call fcn.14000a288
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14000c97b
mov rdx, rsi
call fcn.140014e44
cmp byte [rdi + 0xdf], bl
je 0x14000c9af
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000c9a3
lea rdx, str.StartMenuTag
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14000c9af
mov rcx, qword [rdi + 0xe8]
call fcn.140014f0c
mov byte [rdi + 0xdc], bl
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400114e0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov esi, r9d
mov ebp, edx
mov r14, rcx
cmp edx, 0x14
jae 0x1400115e7
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
and qword [rax - 0x40], 0
mov rdx, 0xffffffff80000001
lea rcx, [rax - 0x30]
mov dword [rax - 0x50], 0x2001f
test r9d, r9d
je 0x14001154b
mov dword [rax - 0x58], 1
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionAccessibilityATConfigosk
jmp 0x140011557
and dword [rsp + 0x20], 0
lea r8, [0x140021400]
call fcn.140010e4c
mov rdi, qword [rsp + 0x48]
test eax, eax
jne 0x1400115d2
lea rcx, [rbp*2]
add rcx, rbp
lea rdx, str.WindowLeft
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rdx + rcx*8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400115bb
xor ebx, ebx
test esi, esi
jne 0x1400115c0
mov r8d, dword [rsp + 0x90]
mov edx, ebp
mov rcx, r14
call fcn.140011418
jmp 0x1400115c0
mov ebx, 0x80004005
test rdi, rdi
je 0x1400115d7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x1400115d7
mov ebx, 0x80004005
test rdi, rdi
je 0x1400115ec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400115ec
mov ebx, 0x80004005
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret