Function at 0x140035920
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push r15
mov eax, 0x8180
call fcn.1400ad480
sub rsp, rax
xor ebp, ebp
mov r15, rcx
cmp byte [rcx], 0x3e
jne 0x1400359e9
mov rcx, qword [0x1400f41e0]
lea rdx, str.UseErrorLevel
call fcn.140078ec0
mov r9, qword [0x1400f41d8]
test rax, rax
mov rdx, qword [0x1400f41d0]
mov eax, ebp
setne bl
cmp byte [r15 + 1], 3
cmova rax, qword [0x1400f4138]
test bl, bl
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov byte [rsp + 0x40], 1
sete cl
mov byte [rsp + 0x38], bl
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400f41e0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x1400f4390]
call fcn.140030550
test eax, eax
jne 0x1400359e9
test bl, bl
je 0x1400359db
mov rcx, qword [0x1400efed8]
lea rdx, str.ERROR
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007c070
mov ebp, eax
mov eax, ebp
add rsp, 0x8180
pop r15
pop rbp
pop rbx
ret
movzx eax, byte [r15]
mov qword [rsp + 0x8178], rsi
mov qword [rsp + 0x8170], rdi
mov qword [rsp + 0x8168], r12
mov qword [rsp + 0x8160], r13
movaps xmmword [rsp + 0x8140], xmm6
cmp al, 0x5d
jne 0x140035b99
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x1400f41d0]
mov r9b, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.140013310
mov byte [rsp + 0x81a8], al
movzx r13d, al
test al, al
jne 0x140035a95
mov rcx, qword [0x1400f41d0]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.1400522d0
mov dword [rsp + 0x58], eax
test eax, eax
je 0x140035a71
add eax, 0xfffffff4
cmp eax, 0x1f
jbe 0x140035aa0
mov rcx, qword [0x1400efed8]
lea rdx, [0x1400cf680]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007c070
jmp 0x1400361d3
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
mov rsi, qword [0x1400f41d8]
mov r12d, ebp
mov byte [rsp + 0x81a0], bpl
mov dword [rsp + 0x54], 1
mov byte [rsp + 0x81b0], 1
movzx eax, word [rsi]
mov dword [rsp + 0x50], ebp
test ax, ax
je 0x140035b7d
movsd xmm6, qword [0x1400da1c0]
lea rdi, [rsi + 2]
nop
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140035afe
mov edx, 2
mov ecx, ebx
call fcn.14009ad94
test eax, eax
je 0x140035afe
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x44
je 0x140035b5b
cmp eax, 0x4c
je 0x140035b55
cmp eax, 0x54
jne 0x140035b63
mov rcx, rdi
mov byte [rsp + 0x81b0], bpl
mov byte [rsp + 0x81b0], ch
call fcn.14000e370
mov rcx, rdi
test al, al
je 0x140035b45
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14009c1d0
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x140035b63
call fcn.14009ffb0
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x140035b63
mov dword [rsp + 0x54], ebp
jmp 0x140035b63
mov byte [rsp + 0x81a0], 1
movzx eax, word [rsi + 2]
add rsi, 2
add rdi, 2
test ax, ax
jne 0x140035ae0
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x130]
mov dword [rsp + 0x120], ebp
mov qword [rsp + 0x110], rax
jmp 0x140035c9c
mov rcx, qword [0x1400f41d0]
mov rbx, qword [0x1400f41e0]
cmp al, 0x3e
je 0x140035bb4
cmp al, 0x5c
je 0x140035bbc
cmp word [rbx], bp
jne 0x140035bc5
cmp al, 0x5c
jne 0x140035c57
cmp word [rcx], bp
je 0x140035c57
cmp al, 0x5c
mov byte [rsp + 0x81b0], bpl
cmove rbx, rcx
mov rcx, rbx
call fcn.14000e370
mov rcx, rbx
test al, al
je 0x140035bf7
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14009c1d0
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x140035bfc
call fcn.14009ffb0
movzx eax, byte [rsp + 0x81a0]
movzx r13d, byte [rsp + 0x81a0]
mov ecx, dword [rsp + 0x81a0]
mulsd xmm0, qword [0x1400da1c0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov byte [rsp + 0x81a8], r13b
mov dword [rsp + 0x58], ecx
cvttsd2si r12d, xmm0
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], r12d
cmp r12d, 1
jge 0x140035c9c
mov r12d, 0x1f4
mov dword [rsp + 0x50], r12d
jmp 0x140035c9c
mov eax, dword [rsp + 0x81a0]
mov r12d, ebp
movzx r13d, byte [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
movzx eax, byte [rsp + 0x81a0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x81b0], 1
mov dword [rsp + 0x50], ebp
mov byte [rsp + 0x81a8], r13b
cmp byte [r15], 0x3e
mov qword [rsp + 0x8158], r14
je 0x140035cc9
mov rcx, qword [0x1400efed8]
lea rdx, [0x1400bc064]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007c070
cmp byte [r15], 0x5c
jne 0x140035ce9
mov edx, 1
mov rcx, r15
call fcn.140022470
mov byte [rsp + 0x81b8], 1
cmp eax, 1
je 0x140035cf1
mov byte [rsp + 0x81b8], bpl
lea rdi, [rsp + 0x130]
mov r14d, ebp
mov ecx, 0x4001
cmp byte [r15 + 1], bpl
jbe 0x140035d9a
mov rsi, rbp
lea r13, [0x140000000]
lea r12, [0x1400bbf7c]
nop dword [rax]
test ecx, ecx
jne 0x140035d2b
mov qword [rsp + rsi + 0x70], r12
jmp 0x140035d7b
mov rdx, qword [rsi + r13 + 0xf41d0]
movsxd rbx, ecx
mov rcx, rdi
mov qword [rsp + rsi + 0x70], rdi
lea r8, [rbx - 1]
call fcn.1400a1224
or rax, 0xffffffffffffffff
mov word [rdi + rbx*2 - 2], bp
cmp word [rdi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140035d50
lea rdi, [rdi + rax*2]
add rdi, 2
lea rcx, [rsp + 0x130]
mov rax, rdi
sub rax, rcx
mov ecx, 0x4001
sar rax, 1
sub ecx, eax
movzx eax, byte [r15 + 1]
inc r14d
add rsi, 8
cmp r14d, eax
jl 0x140035d20
mov r12d, dword [rsp + 0x50]
movzx r13d, byte [rsp + 0x81a8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdi, qword [rsp + 0x68]
lea r9, [0x140000000]
mov r11, qword [0x1400ebaa8]
mov ebx, eax
movzx esi, byte [rsp + 0x81a0]
xorps xmm6, xmm6
movzx r14d, byte [rsp + 0x81b0]
mov r10, qword [rsp + 0x78]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
nop
movzx eax, byte [r15]
add eax, 0xffffffc2
cmp eax, 0x3c
ja case.0x140035e06.69
cdqe
movzx eax, byte [r9 + rax + 0x36228]
mov ecx, dword [r9 + rax*4 + 0x36208]
add rcx, r9
jmp rcx
movzx eax, byte [r15 + 1]
lea rcx, [0x1400bbf7c]
cmp al, 4
mov dword [rsp + 0x40], ebp
mov r10, rcx
mov qword [rsp + 0x38], rbp
cmova r10, rdx
mov byte [rsp + 0x30], 1
cmp al, 3
mov byte [rsp + 0x28], bpl
mov r9, rcx
mov qword [rsp + 0x20], r10
cmova r9, r8
mov rdx, rcx
cmp al, 1
mov r8, rcx
mov rcx, r11
cmova r8, qword [rsp + 0x78]
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14007d6f0
test rax, rax
je case.0x140035e06.69
mov rcx, qword [0x1400ebaa8]
mov ecx, dword [rcx + 0x74]
jmp 0x140035ed7
movzx eax, byte [r15 + 1]
lea rcx, [0x1400bbf7c]
cmp al, 4
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x38], rbp
cmova rcx, rdx
mov byte [rsp + 0x30], bpl
cmp al, 3
mov byte [rsp + 0x28], bpl
lea rdx, [0x1400bbf7c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14007d6f0
test rax, rax
jne case.0x140035e06.69
mov rax, qword [0x1400ebaa8]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400361a5
mov edx, 1
call fcn.140001800
mov eax, 1
jmp 0x1400361cb
movzx eax, byte [r15 + 1]
lea rcx, [0x1400bbf7c]
cmp al, 4
mov byte [rsp + 0x28], 1
cmova rcx, rdx
cmp al, 3
lea rdx, [0x1400bbf7c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14007d520
test rax, rax
jne 0x140035ecd
jmp case.0x140035e06.69
movzx eax, byte [r15 + 1]
lea rcx, [0x1400bbf7c]
cmp al, 4
mov byte [rsp + 0x28], 1
cmova rcx, rdx
cmp al, 3
lea rdx, [0x1400bbf7c]
mov qword [rsp + 0x20], rcx
mov r9, rdx
mov rcx, r11
cmova r9, r8
cmp al, 1
mov r8, rdx
cmova r8, r10
test al, al
cmovne rdx, qword [rsp + 0x70]
call fcn.14007d520
test rax, rax
je 0x140035ecd
jmp case.0x140035e06.69
cmp byte [rsp + 0x81b8], bpl
je 0x140035fb3
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x1400361a5
jmp case.0x140035e06.69
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400361a5
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400361a5
jmp case.0x140035e06.69
test r13b, r13b
je 0x14003608c
mov ecx, dword [rsp + 0x54]
sub ecx, 1
je 0x140036007
cmp ecx, 1
movzx ecx, r13b
je 0x140035fff
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14003607c
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14003607f
lea eax, [r13 - 1]
cmp al, 5
ja 0x140036015
cmp r13b, 3
jne 0x14003601d
lea eax, [r13 + 0x66]
cmp al, 5
ja 0x140036038
cmp qword [0x1400eff18], rbp
je 0x140036072
movzx eax, r13b
movzx eax, byte [rax + r9 + 0xf0cc0]
shr al, 7
jmp 0x140036081
cmp qword [0x1400eff20], rbp
je 0x140036072
xor edx, edx
xor r8d, r8d
movzx ecx, r13b
call fcn.140012a80
test al, al
je 0x14003605a
mov cl, 1
call fcn.140012870
movzx eax, r13b
lea rdx, [0x140000000]
movzx eax, byte [rax + rdx + 0xf0cc0]
shr al, 7
jmp 0x140036081
movzx ecx, r13b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
cmp al, sil
je 0x1400361a5
jmp case.0x140035e06.69
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x110]
mov ecx, dword [rsp + 0x58]
xor r9d, r9d
call fcn.1400525e0
ucomisd xmm0, xmm6
jp 0x1400360b0
jne 0x1400360b0
xor eax, eax
jmp 0x1400360b2
mov al, 1
cmp al, sil
je 0x1400361a5
jmp case.0x140035e06.69
test rdi, rdi
je 0x14003618f
lea rdx, [rsp + 0x5c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x5c], 0x103
jne 0x140036180
test r14b, r14b
jne 0x1400360fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rbx + r12]
sub ecx, eax
cmp ecx, 5
jle 0x1400361ac
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001800
mov r11, qword [0x1400ebaa8]
lea r9, [0x140000000]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov r10, qword [rsp + 0x78]
test al, al
je 0x140035de0
cmp byte [r11 + 0x131], bpl
je 0x140035de0
movsxd rcx, dword [0x1400f2e58]
lea r9, [0x140000000]
mov qword [r9 + rcx*8 + 0xf34a0], r15
mov dword [r9 + rcx*4 + 0xf2e60], ebx
inc ecx
mov dword [0x1400f2e58], ecx
cmp ecx, 0x190
jl 0x140035de0
mov dword [0x1400f2e58], ebp
jmp 0x140035dc9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [rsp + 0x5c]
jmp 0x140036193
mov dword [rsp + 0x5c], ebp
mov rcx, qword [0x1400efed8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, ebp
call fcn.140001460
mov eax, 1
jmp 0x1400361cb
mov rcx, qword [0x1400efed8]
lea rdx, [0x1400cf680]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007c070
mov r14, qword [rsp + 0x8158]
mov r13, qword [rsp + 0x8160]
mov r12, qword [rsp + 0x8168]
mov rdi, qword [rsp + 0x8170]
mov rsi, qword [rsp + 0x8178]
movaps xmm6, xmmword [rsp + 0x8140]
add rsp, 0x8180
pop r15
pop rbp
pop rbx
ret