joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d884c
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 0x2fc4d88ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d88c1
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 0x2fc4d88c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d88df
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 0x2fc4d8894
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004f70
Capabilities:
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rdi, rcx
jne 0x140004f9c
call fcn.140005310
test eax, eax
jne 0x140004f9c
lea rdx, [0x1400cd2d0]
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x1400050c0
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140004fea
cmp dword [rdi + 0x2c], eax
je 0x140004fd1
xor esi, esi
cmp qword [rdi + 0x10], rsi
je 0x140004fc5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400cd318]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400050c0
mov rcx, qword [rdi + 8]
xor esi, esi
test rcx, rcx
je 0x14000502d
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140005061
cmp word [rax], si
mov qword [rsp + 0x30], rbx
sete bl
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
mov qword [rdi + 0x18], rsi
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x28], esi
je 0x140005061
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rdi + 8], rax
cmp dword [rdi + 0x2c], esi
je 0x140005051
cmp qword [rdi + 0x10], rsi
je 0x140005045
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 8]
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000507b
mov qword [rdi + 8], rsi
jmp 0x14000502d
cmp dword [rdi + 0x2c], esi
je 0x14000509f
cmp qword [rdi + 0x10], rsi
je 0x140005093
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, [0x1400cd338]
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400050c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x1400050fb
cmp qword [rcx + 0x10], rsi
je 0x1400050ef
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x140005112
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140005125
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x14000514f
lea r8, [0x1400ccf5c]
mov rdx, rdi
lea rcx, [0x1401044f0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140036f10
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400051f0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x14000520c
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400052eb
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, [0x1400cd360]
lea rcx, [rsp + 0x20]
call fcn.1400ab4d8
test eax, eax
je 0x1400052d8
lea rdx, [0x1400cd378]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
je 0x1400052d8
lea rdx, [0x1400cd390]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
je 0x1400052d8
lea rdx, [0x1400cd3a8]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
je 0x1400052d8
lea rdx, [0x1400cd3b8]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
je 0x1400052d8
lea rdx, [0x1400cd3d8]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
je 0x1400052cd
lea rdx, [0x1400cd400]
lea rcx, [rsp + 0x20]
call fcn.1400a8ef0
test eax, eax
jne 0x1400052f0
test rbx, rbx
je 0x1400052d8
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x140005310
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x14000532a
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101f68]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400053a4
xor esi, esi
nop
mov ecx, dword [0x1400fda64]
cmp ecx, 0xffffffff
je 0x140005374
test ecx, ecx
je 0x1400053c0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x1400fda64]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x1400053c0
mov edx, 1
mov dword [0x1400fda50], esi
mov ecx, 0x8000012f
call fcn.140001710
mov rcx, qword [0x140101f68]
mov dword [0x1400fda50], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140005350
mov rsi, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x2c], 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14000c0f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov eax, 0x1040
call fcn.1400be180
sub rsp, rax
cmp byte [0x140105d80], 0
mov rbx, rdx
mov rbp, rcx
jne 0x14000c27c
cmp dword [0x140102edc], 0
jne 0x14000c12b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140102edc], eax
inc dword [0x140105d7c]
mov qword [rsp + 0x1050], rsi
mov qword [rsp + 0x1058], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [0x140105d7c]
mov ecx, eax
sub ecx, dword [0x140102edc]
cmp r9d, dword [0x1400ff3e0]
mov edx, dword [0x1400ff3dc]
mov dword [0x140102ed8], eax
jbe 0x14000c1e5
cmp ecx, edx
jae 0x14000c1e5
mov dword [rsp + 0x20], ecx
lea r8, [0x1400e05b0]
lea rcx, [rsp + 0x40]
mov edx, 0x800
mov esi, 1
call fcn.1400890d0
call fcn.14000af40
xor edi, edi
mov byte [0x140105d80], sil
xor r8d, r8d
mov dword [0x1400fda50], edi
lea edx, [rsi + 3]
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x40]
xorps xmm3, xmm3
call fcn.14008e7d0
cmp eax, 7
jne 0x14000c1d0
xor r8d, r8d
lea rcx, [0x1401044f0]
mov edx, esi
call fcn.14001a160
mov eax, dword [0x140102ed8]
mov dword [0x1400fda50], esi
mov byte [0x140105d80], dil
jmp 0x14000c1ed
xor edi, edi
mov esi, edi
cmp ecx, edx
jbe 0x14000c1fd
mov dword [0x140105d7c], edi
mov dword [0x140102edc], eax
test esi, esi
jne 0x14000c26c
movzx eax, byte [rbp + 0xf]
lea r8, [0x1400ccfc8]
mov byte [0x140105066], al
xor r9d, r9d
inc byte [rbx + 0x22]
mov rcx, qword [rbx]
mov dword [rsp + 0x30], edi
mov rdx, rcx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.140080040
dec byte [rbx + 0x22]
test eax, eax
jne 0x14000c238
mov byte [rbx + 0x27], al
jmp 0x14000c26c
cmp byte [rbx + 0x27], 0
je 0x14000c26c
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14000c26c
movzx r8d, word [rbp + 4]
xor r9d, r9d
mov rcx, qword [0x140101f68]
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 0x140014df0
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 0x140014f8c
movaps xmm0, xmmword [0x1400e0fc0]
lea rcx, [rsp + 0x94]
movaps xmm1, xmmword [0x1400e0fd0]
mov eax, dword [0x1400e1020]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400e0fe0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400e0ff0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400e1000]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400e1010]
mov dword [rsp + 0x90], eax
movzx eax, word [0x1400e1024]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov word [rsp + 0x94], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140014f7c
lea rax, [rsp + 0x2f0]
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 0x140014f7c
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e1028]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x2e0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x2e8], 0x208
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 0x140014f7c
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x140014f7c
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x140014f55
test ecx, ecx
je 0x140014f7c
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x140014f67
mov ecx, edx
test edx, edx
jne 0x140014f40
jmp 0x140014f7c
inc ecx
cmp ecx, 0x104
jae 0x140014f7c
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x140014f7c
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x140014f8c
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 0x1400154c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
sub rsp, 0x38
movzx eax, word [rcx]
movzx ebp, r8b
mov r14, rcx
test ax, ax
jne 0x1400154df
add rsp, 0x38
pop r14
pop rbp
ret
cmp word [rcx + 2], 0
jne 0x1400154fd
mov r8, qword [rsp + 0x70]
mov r9b, 1
movzx ecx, ax
add rsp, 0x38
pop r14
pop rbp
jmp fcn.140015620
mov qword [rsp + 0x58], rbx
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140015520
mov edx, 2
mov ecx, ebx
call fcn.1400abaa4
test eax, eax
je 0x140015520
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x14001558b
movzx ecx, word [r14 + 2]
call fcn.14000ac20
cmp ax, 0x4b
jne 0x14001558b
lea rcx, [r14 + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x50]
call fcn.1400acfc4
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x140015572
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov qword [rsp + 0x60], rsi
xor edi, edi
mov qword [rsp + 0x28], r12
mov esi, edi
lea r12, [0x1400fdb40]
mov qword [rsp + 0x20], r15
mov rbx, r12
lea r15, [0x1400fe210]
nop
mov rcx, qword [rbx]
mov rdx, r14
call fcn.1400a8ef0
test eax, eax
je 0x1400155f1
inc esi
add rbx, 0x10
cmp rbx, r15
jl 0x1400155b0
test bpl, bpl
je 0x1400155d3
xor al, al
jmp 0x1400155fe
mov rcx, r14
call fcn.1400153c0
test ax, ax
je 0x1400155eb
movzx ecx, ax
call fcn.140015ed0
movzx edi, al
movzx eax, dil
jmp 0x1400155fe
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r12 + 8]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r14
pop rbp
ret

Function at 0x140015620
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 0x140015651
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 0x1400156b4
cmp bpl, 0xff
jne 0x1400156b4
test dil, dil
je 0x1400156b9
movzx edi, si
test edi, 0xffffff80
jne 0x1400156b9
mov edx, 0x103
mov ecx, edi
call fcn.1400abaa4
test eax, eax
je 0x1400156b9
movzx ecx, si
call fcn.14000ac20
mov edx, 1
mov ecx, edi
movzx ebp, al
call fcn.1400abaa4
test eax, eax
setne cl
test cl, 0x38
je 0x1400156bd
xor al, al
jmp 0x140015704
test rbx, rbx
je 0x140015700
movzx eax, cl
and al, 6
cmp al, 6
jne 0x1400156d0
or byte [rbx], 8
jmp 0x1400156f0
test cl, 2
je 0x1400156e0
movzx eax, byte [rbx]
test al, 3
jne 0x1400156e0
or al, 1
mov byte [rbx], al
test cl, 4
je 0x1400156f0
movzx eax, byte [rbx]
test al, 0xc
jne 0x1400156f0
or al, 4
mov byte [rbx], al
test cl, 1
je 0x140015700
movzx eax, byte [rbx]
test al, 0x30
jne 0x140015700
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 0x140020f80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x1400ff3d4]
xor ebp, ebp
mov word [rsp + 0x22], ax
mov eax, 0x7b
mov dword [rsp + 0x48], eax
mov ebx, SafeArrayAllocDescriptor
mov word [rsp + 0x20], bx
mov r10, r8
mov dword [rsp + 0x24], 0x90028
mov rsi, rdx
mov dword [rsp + 0x28], 0x3e003c
mov r11, rcx
mov dword [rsp + 0x2c], 0x3d003a
mov dword [rsp + 0x30], 0x2d002b
mov dword [rsp + 0x34], 0x2f002a
mov dword [rsp + 0x38], 0x7e0021
mov dword [rsp + 0x3c], 0x7c0026
mov dword [rsp + 0x40], 0x5b005e
mov dword [rsp + 0x44], 0x3f002e
test r8, r8
je 0x140021040
movzx edx, word [r8]
test dx, dx
je 0x140021055
lea rcx, [rsp + 0x20]
mov eax, ebx
nop dword [rax + rax]
cmp dx, ax
je 0x140021043
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140021020
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140021014
mov r8, rbp
test r8, r8
je 0x140021055
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x140021072
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r10 + rax*2], bp
jne 0x140021060
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x14002108f
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140021086
cmp ax, 9
jne 0x14002108f
sub rbx, 2
cmp rbx, r10
ja 0x140021077
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x1400210bf
test r9b, r9b
je 0x1400210bb
mov r8, r10
lea rdx, [0x1400e2d50]
mov rcx, r11
call fcn.140036f10
xor eax, eax
jmp 0x1400210d4
mov r8, rdi
mov rdx, r10
mov rcx, rsi
call fcn.1400b1fb4
mov rax, rbx
mov word [rsi + rdi*2], bp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140035f20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r8, [0x1400e5420]
mov qword [rsp + 0x70], rcx
mov edx, 0xfffe
mov r14, rcx
call fcn.1400890d0
mov r8d, dword [0x140102fa8]
lea r9, [0x140000000]
movsxd rdx, eax
mov ebp, 0x190
mov edi, r8d
lea rax, [r14 + rdx*2]
mov qword [rsp + 0x80], rax
xor r15b, r15b
mov r13, rax
test ebp, ebp
jle 0x14003609c
movsxd rbx, edi
mov esi, 2
mov r12d, ebp
nop dword [rax + rax]
cmp edi, 0x190
jl 0x140035fa5
sub edi, 0x190
sub rbx, 0x190
cmp qword [r9 + rbx*8 + 0x1035f0], 0
je 0x14003607f
movzx r14d, r15b
lea eax, [rsi - 1]
xor r15b, r15b
cmp eax, ebp
jge 0x1400360d1
test r14b, r14b
jne 0x14003607f
mov edx, dword [r9 + rbx*4 + 0x102fb0]
lea rax, [rbx + 1]
xor ecx, ecx
cmp edi, 0x18f
cmovl rcx, rax
mov eax, dword [r9 + rcx*4 + 0x102fb0]
sub eax, edx
cmp eax, 0x7fffffff
jbe 0x140036031
mov r15b, 1
cmp esi, ebp
jne 0x140036015
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x102fb0]
jmp 0x140036038
lea rax, [rbx + 2]
cmp rax, 0x190
jl 0x140036027
add rax, 0xfffffffffffffe70
mov eax, dword [r9 + rax*4 + 0x102fb0]
sub eax, edx
lea rcx, [0x140000000]
mov rcx, qword [rcx + rbx*8 + 0x1035f0]
mov r9d, 0xfffe
mov r8, r13
mov byte [rsp + 0x28], r14b
sub r8, qword [rsp + 0x70]
mov rdx, r13
sar r8, 1
sub r9d, r8d
mov dword [rsp + 0x20], eax
mov r8d, 0xc8
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.140036260
mov r13, rax
lea r9, [0x140000000]
inc esi
inc edi
inc rbx
sub r12, 1
jne 0x140035f90
mov r8d, dword [0x140102fa8]
mov r14, qword [rsp + 0x70]
mov rax, r13
mov edx, 0xfffe
sub rax, r14
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x1400360ea
cmp ebp, 0x78
jl 0x1400360ea
mov rax, qword [rsp + 0x80]
sub ebp, 0x64
mov edi, r8d
sub edi, ebp
add edi, 0x190
jmp 0x140035f72
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x102fb0]
jmp 0x140036038
lea r8, [0x1400e5628]
mov rcx, r13
call fcn.1400890d0
mov rbx, qword [rsp + 0x78]
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037930
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140037a79
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400be180
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbp, r9
mov rbx, qword [rsp + 0x4070]
mov r14, r8
mov qword [rsp + 0x4058], r15
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140037991
mov rbx, qword [rcx + 0x698]
test rbx, rbx
jne 0x140037991
mov ecx, dword [rcx + 0x2c0]
movzx eax, word [rdi + 0x2c4]
jmp 0x140037999
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
lea r8, [0x1400e5bd0]
lea rcx, [0x140104310]
movzx eax, ax
mov r15d, 0x2000
mov qword [rsp + 0x28], r14
mov edx, r15d
mov dword [rsp + 0x20], eax
mov r9, qword [rcx + r9*8]
lea rcx, [rsp + 0x30]
call fcn.1400890d0
cmp word [rbp], 0
movsxd rcx, eax
je 0x1400379f5
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, [0x1400e5828]
call fcn.1400890d0
mov r15, qword [rsp + 0x4058]
cmp esi, 3
jne 0x140037a19
lea ecx, [rsi - 2]
call fcn.1400ab450
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400b116c
jmp 0x140037a5e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140037a5e
test rbx, rbx
jne 0x140037a4a
mov rbx, qword [rdi + 0x698]
test rbx, rbx
jne 0x140037a4a
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.140036f10
jmp 0x140037a5e
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140036b90
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x140038060
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov r14, rdx
mov r15, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x1400380a5
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1400380ad
mov word [rsp + 0x180], bp
mov rbx, qword [0x140105030]
or rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x140038178
nop dword [rax]
cmp byte [rbx + 0x15], bpl
je 0x140038110
mov rcx, qword [rbx]
call fcn.140083ac0
test eax, eax
je 0x1400380f0
cmp eax, 1
je 0x1400380f0
lea r9, [0x1400e4f50]
jmp 0x1400380f7
mov rax, qword [rbx]
mov r9, qword [rax + 8]
lea r8, [0x1400e5ee8]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.140089130
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400380d0
cmp word [rsp + 0x80], bp
je 0x140038178
lea rcx, [rsp + 0x80]
mov rax, rsi
nop
inc rax
cmp word [rcx + rax*2], bp
jne 0x140038130
cmp rax, 0x7b
jbe 0x14003816b
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x1400e11b0]
mov rcx, rdi
call fcn.1400b1fb4
mov word [rdi + rbx*2], bp
jmp 0x140038178
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x140038178
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140101bc8]
cmp byte [rax + 0x138], bpl
je 0x140038196
cmp byte [0x140105099], bpl
mov ebx, 1
je 0x140038198
mov ebx, ebp
mov eax, dword [0x140101d24]
cmp eax, 1
jle 0x1400381a6
lea ebp, [rax - 1]
mov cl, 1
call fcn.1400147b0
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140014ba0
mov edx, dword [0x140101d24]
lea r11, [0x1400dfd10]
mov r10d, dword [0x140101d20]
lea r8, [0x1400e5ef0]
mov qword [rsp + 0x70], rax
lea r9, [0x1400dfd08]
mov eax, dword [0x140101f70]
lea rcx, [0x1400ccf5c]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140101f88], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140101f90], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140105040]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140105044]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x1400e5f70]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.1400890d0
movsxd rcx, eax
mov edx, edi
sub edx, ecx
lea r14, [r14 + rcx*2]
mov rcx, r14
call fcn.14000a8c0
nop dword [rax + rax]
cmp word [r14 + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x140038290
cmp qword [0x140101f80], 0
lea rax, [0x1400e5628]
lea rbx, [r14 + rsi*2]
lea r8, [0x1400e60e0]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r15
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.1400890d0
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret