joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor r11b, r11b
cmp qword [0x140117860], 0
mov esi, 1
movzx edi, r11b
cmovne edi, esi
cmp qword [0x140117868], 0
je 0x14000d39a
or dil, 2
xor r12d, r12d
mov qword [rsp + 0x50], rbx
test dil, dil
je 0x14000d4f6
mov qword [rsp + 0x60], r13
mov ebx, r12d
mov ecx, dword [0x1401163cc]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d3de
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d3b3
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
nop dword [rax]
mov rcx, qword [0x1401182c8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x58], 0x103
jne 0x14000d425
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d43e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d3f0
mov rcx, qword [0x1401182c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182c8], r12
call fcn.14000c190
cmp qword [0x140117860], r12
je 0x14000d466
test sil, dil
jne 0x14000d47f
lea r8, [0x1400e48b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182b8], rax
jmp 0x14000d47f
test sil, dil
je 0x14000d47f
mov rcx, qword [0x1401182b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182b8], r12
cmp qword [0x140117868], r12
je 0x14000d4a8
test dil, 2
jne 0x14000d4c2
lea r8, [0x1400e48c8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182c0], rax
jmp 0x14000d4c2
test dil, 2
je 0x14000d4c2
mov rcx, qword [0x1401182c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182c0], r12
test r13b, r13b
mov r13, qword [rsp + 0x60]
je 0x14000d4f6
xorpd xmm3, xmm3
lea rcx, [0x1400e48e0]
xor r8d, r8d
mov edx, 0x10000
mov dword [0x140112454], r12d
mov qword [rsp + 0x20], r12
call fcn.1400b2f10
mov dword [0x140112454], esi
mov rcx, qword [0x140117870]
test rcx, rcx
je 0x14000d508
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140113e40]
mov edi, r12d
cmp r12w, word [r8]
jae 0x14000d5ab
mov rdx, qword [0x1401190a8]
mov r9, qword [0x1401190a0]
mov rsi, r12
nop dword [rax]
mov rax, qword [0x140118300]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14000d59d
cmp byte [rbx + 0x18], r12b
je 0x14000d574
movzx edx, word [rbx + 4]
mov rcx, qword [0x140117710]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x140113e40]
mov rdx, qword [0x1401190a8]
mov r9, qword [0x1401190a0]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14000d59d
test rdx, rdx
je 0x14000d59d
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, r12
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x1401190a8], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x14000d530
mov ecx, ebp
call fcn.1400c9ebc
mov rbx, qword [rsp + 0x50]
int3
Function at 0x14000dcc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400d1ba0
sub rsp, rax
cmp byte [0x140119f70], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000de4e
cmp dword [0x1401182f8], 0
jne 0x14000dcfb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401182f8], eax
inc dword [0x140119f74]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140119f74]
mov edx, dword [0x14011246c]
mov ecx, eax
mov dword [0x1401182fc], eax
sub ecx, dword [0x1401182f8]
cmp r9d, dword [0x140112468]
jbe 0x14000ddb7
cmp ecx, edx
jae 0x14000ddb7
mov dword [rsp + 0x20], ecx
lea r8, [0x1400e5260]
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.1400ac450
call fcn.14000c820
xor edi, edi
xorpd xmm3, xmm3
lea edx, [rsi + 3]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov byte [0x140119f70], sil
mov dword [0x140112454], edi
mov qword [rsp + 0x20], rdi
call fcn.1400b2f10
cmp eax, 7
jne 0x14000dda2
lea edx, [rsi + 3]
lea rcx, [0x140119150]
xor r8d, r8d
call fcn.14001fd90
mov eax, dword [0x1401182fc]
mov dword [0x140112454], esi
mov byte [0x140119f70], dil
jmp 0x14000ddbf
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000ddcf
mov dword [0x140119f74], edi
mov dword [0x1401182f8], eax
test esi, esi
jne 0x14000de3e
movzx eax, byte [rbp + 0xf]
mov dword [rsp + 0x30], edi
lea r8, [0x1400e24e0]
mov byte [0x140119cce], al
mov rcx, qword [rbx]
inc byte [rbx + 0x22]
mov rdx, rcx
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.1400a26d0
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000de0a
mov byte [rbx + 0x27], al
jmp 0x14000de3e
cmp byte [rbx + 0x27], 0
je 0x14000de3e
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000de3e
movzx r8d, word [rbp + 4]
mov rcx, qword [0x140117710]
xor r9d, r9d
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rsi, qword [rsp + 0x1050]
mov rdi, qword [rsp + 0x1058]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1040
pop rbp
ret
Function at 0x14001a520
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x14001a67c
mov edx, edi
lea rcx, [0x1400e5f50]
nop dword [rax]
movzx eax, word [rdx + rcx]
add rdx, 2
mov word [rsp + rdx + 0x2e], ax
test ax, ax
jne 0x14001a550
lea rcx, [rsp + 0x94]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x14001a66c
lea rax, [rsp + 0x2f0]
lea rdx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a66c
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
lea rdx, [0x1400e5fb8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2e0], rbx
mov dword [rsp + 0x2e8], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x14001a66c
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x14001a66c
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x14001a645
test ecx, ecx
je 0x14001a66c
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x14001a657
mov ecx, edx
test edx, edx
jne 0x14001a630
jmp 0x14001a66c
inc ecx
cmp ecx, 0x104
jae 0x14001a66c
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x14001a66c
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x14001a67c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001abd0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r12
sub rsp, 0x38
cmp word [rcx + 2], 0
mov rax, r9
movzx r12d, r8b
mov rbp, rcx
jne 0x14001ac0e
movzx ecx, word [rcx]
cmp cx, 0xa
jne 0x14001abfc
mov al, 0xd
add rsp, 0x38
pop r12
pop rbp
ret
mov r9b, 1
mov r8, rax
add rsp, 0x38
pop r12
pop rbp
jmp fcn.14001ad50
mov qword [rsp + 0x58], rbx
movzx ebx, word [rcx]
test ebx, 0xffffff80
jne 0x14001ac31
mov edx, 2
mov ecx, ebx
call fcn.1400cadb8
test eax, eax
je 0x14001ac31
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001acb1
movzx ebx, word [rbp + 2]
test ebx, 0xffffff80
jne 0x14001ac5b
mov edx, 2
mov ecx, ebx
call fcn.1400cadb8
test eax, eax
je 0x14001ac5b
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x14001acb1
lea rcx, [rbp + 4]
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400cb340
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x14001ac98
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
lea r14, [0x140113680]
xor edi, edi
lea r13, [0x140113d50]
mov rbx, r14
mov esi, edi
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400c986c
test eax, eax
je 0x14001ad18
add rbx, 0x10
inc esi
cmp rbx, r13
jl 0x14001acd5
test r12b, r12b
je 0x14001acf8
xor al, al
jmp 0x14001ad25
xor edx, edx
mov rcx, rbp
call fcn.14001aab0
test ax, ax
je 0x14001ad12
movzx ecx, ax
call fcn.14001b640
movzx edi, al
movzx eax, dil
jmp 0x14001ad25
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r14 + 8]
mov r13, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r12
pop rbp
ret

Function at 0x14001ad50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdx, r8
movzx edi, r9b
movzx ebp, cx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rsi, ax
mov rdx, rsi
shr rdx, 8
cmp dl, 0xff
jne 0x14001adc9
cmp sil, 0xff
jne 0x14001adc9
test dil, dil
je 0x14001ade1
movzx edi, bp
test edi, 0xffffff80
jne 0x14001ade1
mov edx, 0x103
mov ecx, edi
call fcn.1400cadb8
test eax, eax
je 0x14001ade1
movzx ecx, bp
call fcn.14000c590
mov edx, 1
mov ecx, edi
movzx esi, al
call fcn.1400cadb8
test eax, eax
setne dl
test dl, 0x38
jne 0x14001ade1
test rbx, rbx
je 0x14001ae15
movzx eax, dl
and al, 6
cmp al, 6
jne 0x14001ade5
or byte [rbx], 8
jmp 0x14001ae05
xor al, al
jmp 0x14001ae19
test dl, 2
je 0x14001adf5
movzx eax, byte [rbx]
test al, 3
jne 0x14001adf5
or al, 1
mov byte [rbx], al
test dl, 4
je 0x14001ae05
movzx eax, byte [rbx]
test al, 0xc
jne 0x14001ae05
or al, 4
mov byte [rbx], al
test dl, 1
je 0x14001ae15
movzx eax, byte [rbx]
test al, 0x30
jne 0x14001ae15
or al, 0x10
mov byte [rbx], al
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, r8
mov rdi, rcx
lea rdx, [0x1400e78b8]
mov r8d, 0xa
xor ecx, ecx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140020918
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
test eax, eax
je 0x140020918
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140020918
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140020918
mov ecx, 0x58
call fcn.1400cafb0
test rax, rax
je 0x1400208be
mov rcx, rax
call fcn.14001e4b0
mov rbx, rax
jmp 0x1400208c0
xor ebx, ebx
mov dword [rsp + 0x58], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rax, qword [rbx]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rbp], rbx
mov dword [rbx + 0xc], 0
call qword [rax + VariantCopy]
test al, al
je 0x1400208fd
lea rdx, [rsp + 0x58]
mov r8d, 0xfde9
mov rcx, rbx
call fcn.1400a9dc0
mov rax, qword [rdi + 0xb80]
inc dword [0x1401183e8]
mov qword [0x140117640], rax
mov eax, 3
jmp 0x14002092a
lea rdx, [0x1400e78e0]
mov r8, rsi
mov rcx, rdi
call fcn.1400404f0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140040fa0
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x1400410f5
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
mov eax, 0x4030
call fcn.1400d1ba0
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbx, qword [rsp + 0x4070]
mov rbp, r9
mov r12, r8
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x4058], r13
test rbx, rbx
jne 0x140041001
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x140041001
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x140041009
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
mov qword [rsp + 0x28], r8
lea rcx, [0x140117640]
mov r9, qword [rcx + r9*8]
movzx eax, ax
mov r13d, 0x2000
lea rcx, [rsp + 0x30]
lea r8, [0x1400eada0]
mov edx, r13d
mov dword [rsp + 0x20], eax
call fcn.1400ac450
cmp word [rbp], 0
movsxd rcx, eax
lea rcx, [rsp + rcx*2 + 0x30]
je 0x14004106f
lea rdx, [rsp + 0x30]
mov rax, rcx
lea r8, [0x1400ea998]
sub rax, rdx
mov r9, rbp
sar rax, 1
sub r13d, eax
mov edx, r13d
call fcn.1400ac450
mov r13, qword [rsp + 0x4058]
cmp esi, 3
jne 0x140041095
lea r9, [0x1400e7830]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.14003ff50
jmp 0x1400410da
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x1400410da
test rbx, rbx
jne 0x1400410c6
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x1400410c6
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.1400404f0
jmp 0x1400410da
mov r9, rbp
mov r8d, 1
mov rdx, r12
mov rcx, rbx
call fcn.1400401a0
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r12
pop rdi
pop rsi
repz ret
Function at 0x1400416f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test rax, rax
je 0x14004172e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140041736
mov word [rsp + 0x180], si
mov rdi, qword [0x140119c98]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x1400417f4
nop
cmp byte [rdi + 0x16], sil
je 0x14004178f
mov rcx, qword [rdi]
call fcn.1400a6d20
test eax, eax
je 0x14004176f
dec eax
je 0x14004176f
lea r9, [0x1400ea0c8]
jmp 0x140041776
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400eb0b8]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400ac4c0
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x140041750
cmp word [rsp + 0x80], si
je 0x1400417f4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x1400417e7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400e7058]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400cca64
mov word [rbx + rdi*2], si
jmp 0x1400417f4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x1400417f4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x140116040]
cmp byte [rax + 0x138], sil
je 0x140041812
cmp byte [0x140119d05], sil
mov edi, 1
je 0x140041814
mov edi, esi
mov eax, dword [0x1401178b0]
cmp eax, 1
jle 0x140041822
lea esi, [rax - 1]
mov cl, 1
call fcn.140019f90
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.14001a360
mov edx, dword [0x1401178b0]
mov r9d, dword [0x1401178b4]
mov qword [rsp + 0x70], rax
mov eax, dword [0x1401178ac]
sub r9d, edi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r9d
cmp edx, 1
lea rax, [rsp + 0x80]
lea r10, [0x1400e49c0]
lea rdi, [0x1400eb0c0]
lea r8, [0x1400e49b8]
lea rcx, [0x1400e245c]
cmovg rcx, rdi
cmp qword [0x140117868], 0
mov rdi, r8
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rax
mov eax, dword [0x140119ca8]
cmove rdi, r10
cmp qword [0x140117860], 0
mov dword [rsp + 0x38], eax
mov eax, dword [0x140119cac]
cmove r8, r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
mov esi, 0xfffe
lea r8, [0x1400eb140]
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400ac450
movsxd rdx, eax
lea rbx, [rbp + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, rbp
sar rax, 1
sub edx, eax
call fcn.14000c220
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, [0x1400eb2b0]
repne scasw ax, word [rdi]
cmp qword [0x1401182a0], 0
lea rax, [0x1400ea778]
cmovne r8, rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
mov rax, rdi
mov rcx, rdi
sub rax, rbp
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400ac450
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rsp, r11
pop rdi
ret
Function at 0x140056980
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push rbx
sub rsp, 0x260
mov rbx, rcx
mov rcx, qword [0x140119cf0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400569d9
lea rcx, [rsp + 0x50]
call fcn.140056f90
test eax, eax
je 0x1400569ce
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400569d9
xor al, al
add rsp, 0x260
pop rbx
ret
xor eax, eax
lea r8, [0x1400e245c]
lea rcx, [0x140119150]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], al
mov byte [rsp + 0x38], al
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, rbx
mov byte [rsp + 0x20], al
call fcn.140041980
lea rcx, [0x1400e245c]
test eax, eax
mov rax, qword [0x140113e30]
setne bl
test rax, rax
je 0x140056a31
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx eax, bl
add rsp, 0x260
pop rbx
ret

Function at 0x140056f90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor ebp, ebp
mov rdi, rcx
mov qword [rax + 0x18], rbx
mov esi, ebp
nop
mov r9d, esi
lea rax, [rsp + 0x268]
lea rdx, [0x1400ed030]
xor r8d, r8d
mov rcx, 0xffffffff80000002
or r9d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400570da
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, [0x1400ed018]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x260], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400570da
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x1400570da
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140057079
test ecx, ecx
je 0x14005708f
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x14005708f
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140057060
jmp 0x14005708f
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x1400570da
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x1400570e1
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x1400570d1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rdi, rcx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rdi + rdx - 2], cx
test cx, cx
jne 0x1400570c0
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x140057095
mov esi, 0x200
jmp 0x140056fb0
Function at 0x140081820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400ca884
test rax, rax
jne 0x140081863
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400ca884
test rax, rax
jne 0x140081863
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140081882
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x1400818a0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400818cd
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, [0x1400ee200]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400818c5
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x140081940
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea edx, [r9 + 0x10]
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400819bd
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x1400819bd
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400819bd
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x14009ed90
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push r12
sub rsp, 0x28
mov r12, rdx
mov rbx, rcx
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009edaf
cmp ax, 9
jne 0x14009edb5
add rbx, 2
jmp 0x14009eda0
movzx eax, word [rbx]
test ax, ax
jne 0x14009edc5
add rsp, 0x28
pop r12
pop rbx
ret
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x14009ede1
mov word [rdx + 2], ax
mov byte [rdx], 0
mov al, 1
add rsp, 0x28
pop r12
pop rbx
ret
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x40], sil
call fcn.1400ca884
mov rbp, rax
test rax, rax
je 0x14009eed5
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x14009ee38
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14009ee2f
cmp ax, 9
jne 0x14009ee38
sub rdi, 2
cmp rdi, rbx
ja 0x14009ee20
sub rdi, rbx
lea rdx, [0x1400e2e70]
mov rcx, rbx
sar rdi, 1
inc rdi
mov r8, rdi
call fcn.1400c9ac4
test eax, eax
jne 0x14009ee5d
or sil, 1
jmp 0x14009ee93
lea rdx, [0x1400e2e68]
mov r8, rdi
mov rcx, rbx
call fcn.1400c9ac4
test eax, eax
jne 0x14009ee79
or sil, 4
jmp 0x14009ee93
lea rdx, [0x1400e2e58]
mov r8, rdi
mov rcx, rbx
call fcn.1400c9ac4
test eax, eax
jne 0x14009eef9
or sil, 0x10
mov byte [rsp + 0x40], sil
lea rbx, [rbp + 2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14009eeaf
cmp ax, 9
jne 0x14009eeb5
add rbx, 2
jmp 0x14009eea0
cmp word [rbx], 0
je 0x14009eef9
lea rcx, [rbx + 2]
mov edx, 0x2b
call fcn.1400ca884
mov rbp, rax
test rax, rax
jne 0x14009ee11
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14009ef17
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
cmp ax, 0xa
jne 0x14009eefd
mov al, 0xd
jmp 0x14009ef37
xor al, al
jmp 0x14009ef6b
lea rdx, [rsp + 0x40]
mov r9b, 1
mov r8, rdi
movzx ecx, ax
call fcn.14001ad50
movzx esi, byte [rsp + 0x40]
jmp 0x14009ef37
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp word [rbx], 0
jne 0x14009ef27
xor al, al
jmp 0x14009ef37
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14001abd0
movzx eax, al
mov word [r12 + 2], ax
test sil, 1
je 0x14009ef4b
or byte [r12], 8
test sil, 4
je 0x14009ef56
or byte [r12], 0x10
test sil, 0x10
je 0x14009ef61
or byte [r12], 4
cmp word [r12 + 2], 0
setne al
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rbx
ret