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

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rsi
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbx
movzx edi, r9b
mov qword [rax - 0x18], rbp
movzx ebx, dx
mov qword [rax - 0x20], r12
movzx ebp, cl
mov qword [rax - 0x28], r13
movzx r13d, r8b
mov qword [rax - 0x38], r15
or r13b, r9b
lea eax, [rbp - 1]
cmp al, 5
ja 0x14001dcb5
cmp cl, 3
jne 0x14001dcbc
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x14001dcc1
mov r15b, 1
jmp 0x14001dcc4
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x14001de51
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x140146bf4], 0
jne 0x14001dd63
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14013dbe0]
sub eax, dword [0x140146894]
cmp eax, dword [rcx + 0x118]
jbe 0x14001dd6a
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001dd57
mov edx, 1
mov dword [0x14013dbd4], 0
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbd4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140146894], eax
mov rcx, qword [0x14013dbe0]
test r12b, r12b
jne 0x14001ddce
movzx eax, byte [rcx + 0x136]
test al, al
je 0x14001dd86
movzx eax, al
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x14001dd8b
mov ebx, 0xffc3d44f
cmp dword [0x140146bf4], 0
je 0x14001dd9d
movzx eax, byte [0x140146bf0]
jmp 0x14001dda4
xor ecx, ecx
call fcn.1400211c0
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.140020950
mov rcx, qword [0x14013dbe0]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x14001de11
test rsi, rsi
jne 0x14001de11
movzx eax, byte [rcx + 0x12f]
lea r9d, [rsi + 1]
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, bpl
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.14001f6b0
jmp 0x14001de3a
movzx eax, byte [rcx + 0x136]
mov r9, rsi
mov ecx, 0xffc3d44d
movzx r8d, bx
sub ecx, eax
movzx edx, bpl
mov dword [rsp + 0x28], ecx
mov ecx, edi
mov byte [rsp + 0x20], 1
call fcn.14001e3f0
sub r14, 1
jne 0x14001dcf3
movzx edi, byte [rsp + 0xc8]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
test r12b, r12b
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
jne 0x14001debe
cmp dword [0x140146bf4], 0
je 0x14001de8d
movzx eax, byte [0x140146bf0]
jmp 0x14001de94
xor ecx, ecx
call fcn.1400211c0
not dil
and dil, al
and dil, 0xcc
je 0x14001debe
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.140020950
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001ded0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
mov eax, dword [0x140146bf4]
movzx r14d, r8b
cmp eax, 2
mov ebx, edx
movzx esi, cx
sete bpl
jne 0x14001df27
movzx ecx, cx
mov eax, ecx
and eax, 0xffffff80
je 0x14001df0c
mov edx, gethostbyname
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call fcn.1400da724
test ebx, ebx
jle 0x14001e0a0
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xa8], r15
xor r15d, r15d
cmp dword [0x140146bf4], r15d
jne 0x14001dfaf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14013dbe0]
sub eax, dword [0x140146894]
cmp eax, dword [rcx + 0x118]
jbe 0x14001dfaf
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001dfa3
mov edx, 1
mov dword [0x14013dbd4], r15d
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbd4], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140146894], eax
test bpl, bpl
je 0x14001e05a
cmp dword [0x140146bf4], r15d
je 0x14001dfca
movzx eax, byte [0x140146bf0]
jmp 0x14001dfd1
xor ecx, ecx
call fcn.1400211c0
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.140020950
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x14001e03a
cmp ax, 0x39
ja 0x14001e03a
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
add al, 0x30
mov byte [rsp + 0x20], r8b
xor r9d, r9d
movzx edx, al
lea ecx, [r8 + 2]
call fcn.14001e3f0
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001e005
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.14001e3f0
jmp 0x14001e066
movzx edx, r14b
movzx ecx, si
call fcn.14001c2a0
cmp dword [0x140146bf4], 2
mov rax, qword [0x14013dbe0]
jne 0x14001e07e
mov ecx, dword [rax + 0x80]
jmp 0x14001e081
mov ecx, dword [rax + 0x7c]
call fcn.140020460
sub rdi, 1
jne 0x14001df45
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x1400206c0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140142750]
test r10, r10
je 0x1400207f7
movsxd rax, dword [0x140142820]
imul r9, rax, 0xd4
mov eax, 0x69
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140142814], eax
sub ecx, dword [0x140145c88]
xorps xmm0, xmm0
mov dword [0x140145c88], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140142820]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x1401282f8]
mov rcx, qword [0x140142750]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400207b1
cmp rax, qword [0x140142818]
je 0x140020795
movsxd rcx, dword [0x140142820]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140142750]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140142820]
jmp 0x1400207d5
movsxd rdx, dword [0x140142820]
mov rax, qword [0x140142750]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400207d5
movsxd rdx, dword [0x140142820]
movabs r8, 0x41002f004e
mov rax, qword [0x140142750]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140142818], rbx
cmp edx, dword [0x14013dbdc]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140142820], edx
add rsp, 0x28
ret
Function at 0x140020800
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
mov ebp, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x14002094a
cmp ebx, esi
je 0x14002094a
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140020879
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.14001e3f0
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.14001e3f0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x140145c60]
sete r14b
jne 0x1400208d7
mov edx, 1
mov dword [0x14013dbd4], 0
lea ecx, [rdx - 2]
call fcn.140001b10
mov dword [0x14013dbd4], 1
cmp dil, 0x14
jne 0x14002092e
cmp esi, 2
jne 0x14002092e
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x14002092e
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.14001e3f0
test r14b, r14b
je 0x14002092e
lea edx, [rsi - 1]
mov dword [0x14013dbd4], 0
lea ecx, [rsi - 3]
call fcn.140001b10
mov dword [0x14013dbd4], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x140020935
Function at 0x1400211c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140142760], 0
je 0x1400211de
test cl, cl
jne 0x1400211de
movzx eax, byte [0x1401436a2]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov edi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, di
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
and ax, di
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
and ax, di
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
and ax, di
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
and ax, di
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
and ax, di
mov ecx, 0x5c
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, di
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx edi, cl
cmove edi, ebx
cmp qword [0x140142760], 0
je 0x140021334
movzx ecx, byte [0x1401436a2]
movzx ebx, dil
not bl
and bl, cl
je 0x140021334
movzx edx, byte [0x1401436a0]
movzx eax, bl
not al
and byte [0x1401436a1], al
and cl, al
and dl, al
mov byte [0x1401436a2], cl
lea rcx, [0x1401435a0]
mov byte [0x1401436a0], dl
call fcn.140021350
mov rcx, qword [0x140143730]
test rcx, rcx
je 0x140021334
test byte [rcx + 0xc], bl
mov eax, 0
cmovne rcx, rax
mov qword [0x140143730], rcx
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400217a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140021971
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x14011aca0]
mov eax, dword [0x14011acf0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x14011acb0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x14011acc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x14011acd0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x14011ace0]
mov dword [rbp - 0x70], eax
movzx eax, word [0x14011acf4]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140021931
lea rax, [rbp + 0x200]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002192d
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x14002192d
mov ecx, dword [rbp + 0x1f8]
test ecx, ecx
je 0x14002192d
shr ecx, 1
mov edx, ecx
dec ecx
mov dword [rbp + 0x1f8], ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140021907
mov edx, ecx
test ecx, ecx
je 0x14002191a
nop dword [rax + rax]
dec ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x14002191a
mov dword [rbp + 0x1f8], ecx
mov edx, ecx
test ecx, ecx
jne 0x1400218f0
jmp 0x14002191a
mov dword [rbp + 0x1f8], edx
cmp edx, 0x104
jae 0x14002192d
mov word [rbp + rdx*2 - 0x50], di
test edx, edx
je 0x140021931
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140021931
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140021941
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140021971
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021968
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021af0
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push rdi
push r13
push r14
push r15
sub rsp, 0x150
xor r14d, r14d
movsxd r15, r8d
movzx ebx, cl
lea rax, [0x14013dcd8]
mov r10d, r14d
lea rcx, [0x14013e3a8]
movzx r13d, r9b
mov rdi, rdx
cmp byte [rax], bl
je 0x140021ce6
inc r10d
add rax, 0x10
cmp rax, rcx
jl 0x140021b21
mov qword [rsp + 0x180], rbp
xor ecx, ecx
mov qword [rsp + 0x188], rsi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [rbx - 0x41]
mov rsi, rax
cmp cl, 0x19
ja 0x140021c7e
xor edx, edx
mov qword [rsp + 0x190], r12
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.1400d8190
xor edx, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 2
lea ecx, [rdx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x44]
cmp eax, 2
movzx ebp, bl
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
cmove r14w, word [rsp + 0x44]
mov ecx, ebp
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r12d, eax
test eax, eax
jns 0x140021c04
xor edx, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 2
lea ecx, [rdx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test r14w, r14w
je 0x140021c62
mov r9b, 1
lea rdx, [rsp + 0x40]
mov r8, rsi
movzx ecx, r14w
call fcn.140021f70
movzx r14d, al
test al, al
je 0x140021c62
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140021350
movzx ecx, r14b
lea r9, [rsp + 0x4c]
xor r14d, r14d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x140021c65
xor r14d, r14d
test r12d, r12d
mov r12, qword [rsp + 0x190]
je 0x140021c79
movzx eax, word [rsp + 0x44]
jmp 0x140021c91
mov eax, r14d
jmp 0x140021c91
movzx ebp, bl
mov r8, rsi
mov ecx, ebp
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov rsi, qword [rsp + 0x188]
mov word [rdi], ax
test ax, ax
je 0x140021cb0
mov rbp, qword [rsp + 0x180]
mov word [rdi + 2], r14w
jmp 0x140021d09
test r13b, r13b
je 0x140021cd8
test bl, bl
je 0x140021cd8
mov r9d, ebp
lea r8, str.vk_02X
mov edx, r15d
mov rcx, rdi
call fcn.1400b9a60
mov rbp, qword [rsp + 0x180]
jmp 0x140021d09
mov rbp, qword [rsp + 0x180]
mov word [rdi], r14w
jmp 0x140021d09
movsxd rdx, r10d
lea rax, str.Numpad0
add rdx, rdx
lea r8, [r15 - 1]
mov rcx, rdi
mov rdx, qword [rax + rdx*8]
call fcn.1400e4f88
mov word [rdi + r15*2 - 2], r14w
mov rax, rdi
add rsp, 0x150
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x140021f70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, r9b
mov rbx, rdx
movzx esi, cx
cmp cx, 0xa
jne 0x140021fa1
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, si
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rbp, ax
mov rcx, rbp
shr rcx, 8
cmp cl, 0xff
jne 0x140022004
cmp bpl, 0xff
jne 0x140022004
test dil, dil
je 0x140022009
movzx edi, si
test edi, 0xffffff80
jne 0x140022009
mov edx, 0x103
mov ecx, edi
call fcn.1400df2dc
test eax, eax
je 0x140022009
movzx ecx, si
call fcn.1400163d0
mov edx, 1
mov ecx, edi
movzx ebp, al
call fcn.1400df2dc
test eax, eax
setne cl
test cl, 0x38
je 0x14002200d
xor al, al
jmp 0x140022054
test rbx, rbx
je 0x140022050
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140022020
or byte [rbx], 8
jmp 0x140022040
test cl, 2
je 0x140022030
movzx eax, byte [rbx]
test al, 3
jne 0x140022030
or al, 1
mov byte [rbx], al
test cl, 4
je 0x140022040
movzx eax, byte [rbx]
test al, 0xc
jne 0x140022040
or al, 4
mov byte [rbx], al
test cl, 1
je 0x140022050
movzx eax, byte [rbx]
test al, 0x30
jne 0x140022050
or al, 0x10
mov byte [rbx], al
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024c50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, r8d
mov r9, rdx
lea rbx, [0x140106a40]
not ecx
cmp r8d, 8
jb 0x140024d48
mov r11d, r10d
shr r11, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140024c80
test r10d, r10d
je 0x140024d70
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x140024d50
mov rbx, qword [rsp + 8]
not ecx
mov eax, ecx
ret

Function at 0x140025170
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 1
mov r10, rdx
mov esi, r8d
mov rdi, rcx
jne 0x1400251d9
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400251c3
mov dword [rdi + 0x10], 7
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rdi + 0x18]
lea rax, [rcx + rsi]
cmp rax, rdx
jbe 0x1400251ee
mov esi, edx
sub esi, ecx
mov rdx, qword [rdi + 8]
add rdx, rcx
mov r8d, esi
mov rcx, r10
mov ebx, esi
call fcn.1400d8380
add qword [rdi + 0x20], rbx
mov eax, esi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002a950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14002a966
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x140106a40]
not ecx
cmp r10d, 8
jb 0x14002aa58
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x14002a990
test r10d, r10d
je 0x14002aa80
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x14002aa60
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14002aa90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x38
cmp dword [rcx + 0x28], 0
mov rbx, rcx
movsxd rsi, edx
jne 0x14002ac22
mov eax, dword [rcx]
mov qword [rsp + 0x58], rdi
mov edi, esi
shr edi, 8
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], dil
test al, 0x10
je 0x14002aba5
mov edx, dword [rcx + 0x48]
mov r8d, dword [rcx + 0x50]
mov qword [rsp + 0x30], r14
mov r10d, r8d
lea r14, [0x140106a40]
movsx rax, sil
xor rax, rdx
and r10d, 0xfffd
movzx ecx, al
or r10d, 2
shr edx, 8
mov r9d, dword [r14 + rcx*4]
xor r9d, edx
movzx ecx, r8b
mov edx, r9d
movzx eax, r9b
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
shr r8d, 8
inc eax
mov dword [rbx + 0x4c], eax
shr rax, 0x18
xor rcx, rax
mov eax, r10d
xor eax, 1
imul eax, r10d
mov r11d, dword [r14 + rcx*4]
xor r11d, r8d
mov dword [rbx + 0x50], r11d
and r11d, 0xfffd
shr eax, 8
or r11d, 2
xor al, sil
mov byte [rsp + 0x50], al
movsx rax, dil
xor rax, rdx
shr edx, 8
movzx ecx, al
mov eax, dword [r14 + rcx*4]
xor eax, edx
mov edx, dword [rbx + 0x50]
mov dword [rbx + 0x48], eax
movzx eax, al
add eax, dword [rbx + 0x4c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rbx + 0x4c], eax
movzx eax, dl
shr rcx, 0x18
xor rcx, rax
shr edx, 8
mov eax, dword [r14 + rcx*4]
mov r14, qword [rsp + 0x30]
xor eax, edx
mov dword [rbx + 0x50], eax
mov eax, r11d
xor eax, 1
imul eax, r11d
shr eax, 8
xor al, dil
mov byte [rsp + 0x51], al
mov eax, dword [rbx]
mov rdi, qword [rsp + 0x58]
test al, 1
je 0x14002abde
mov rdx, qword [rbx + 0x38]
lea rax, [rdx + 2]
cmp rax, qword [rbx + 0x40]
jb 0x14002abca
mov dword [rbx + 0x28], reloc.WSOCK32.dll_inet_ntoa
add rsp, 0x38
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
movzx eax, word [rsp + 0x50]
mov word [rdx + rcx], ax
add qword [rbx + 0x38], 2
jmp 0x14002ac13
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
mov r8d, 2
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002ac0c
cmp dword [rsp + 0x60], 2
je 0x14002ac13
mov dword [rbx + 0x28], 3
test dword [rbx], 0x40000000
je 0x14002ac22
mov dword [rbx + 0x28], reloc.OLEAUT32.dll_SafeArrayLock
add rsp, 0x38
pop rsi
pop rbx
ret