Function at 0x412020
Capabilities:
Encode data using xor
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4120ab
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4120ab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x4120ab
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412077
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.0040be50
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [ebp - 0xc], xmm0
jmp 0x4120cf
push 0
push 0x41b390
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.0040be50
movaps xmm0, xmmword [0x41d1b0]
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
movaps xmm0, xmmword [0x41d870]
movups xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [0x41d1d0]
movups xmmword [ebp - 0x70], xmm0
movaps xmm0, xmmword [str.fghij]
movups xmmword [ebp - 0x60], xmm0
mov al, byte [ebp - 0x90]
xor byte [ebp + ecx - 0x8f], al
inc ecx
cmp ecx, 0x3e
jb 0x412100
lea ecx, [ebp - 0x8f]
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412135
sub ecx, edx
lea eax, [ebp - 0x8f]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040be50
mov edi, dword [ebp - 0xc]
xor ebx, ebx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x94], edi
test edi, edi
je 0x4121cd
mov eax, dword [ebp - 0x3c]
xor edi, edi
test eax, eax
je 0x4121a2
xor dl, dl
nop dword [eax + eax]
cmp dword [ebp - 0x38], 0x10
lea esi, [ebp - 0x4c]
push ebx
cmovae esi, ecx
lea ecx, [ebp - 0x1c]
call fcn.004160c0
mov ecx, dword [ebp - 0x4c]
movzx edx, dl
mov al, byte [eax]
cmp al, byte [esi + edi]
mov eax, 1
cmove edx, eax
mov eax, dword [ebp - 0x3c]
inc edi
cmp edi, eax
jb 0x412170
test dl, dl
jne 0x4121bf
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov byte [eax + ebx], 0x20
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x94], edi
jmp 0x4121c5
mov edi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x4c]
inc ebx
cmp ebx, edi
jb 0x412163
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmp ebx, 0x10
lea ecx, [ebp - 0x1c]
cmovae eax, edx
add eax, edi
cmp ebx, 0x10
mov dword [ebp - 0x94], eax
cmovae esi, edx
add esi, edi
cmp ebx, 0x10
mov eax, esi
cmovae ecx, edx
sub eax, ecx
push eax
push 0x20
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
je 0x412235
lea eax, [ecx + 1]
cmp eax, esi
je 0x412235
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, 0x20
je 0x41222a
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, esi
jne 0x412220
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, ecx
lea eax, [ebp - 0x1c]
cmp ebx, 0x10
cmovae eax, dword [ebp - 0x1c]
sub dword [ebp - 0x94], ecx
sub edx, eax
mov ecx, dword [ebp - 0x94]
mov eax, edi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp ebx, 0x10
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x94]
add ecx, edx
sub edi, eax
add eax, ecx
mov dword [ebp - 0xc], edi
sub edi, edx
inc edi
push edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [0x4217a8]
add esp, 0xc
cmp eax, 1
jne 0x4122dc
mov eax, dword [0x421074]
cmp eax, 0x10
jae 0x412365
mov ecx, 0x10
mov dword [ebp - 0x34], 0
sub ecx, eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0xf
cmovb ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
push ecx
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040be50
mov ecx, 0x421064
jmp 0x41232c
cmp eax, 2
jne 0x412365
mov eax, dword [0x4210a4]
cmp eax, 0x10
jae 0x412365
mov ecx, 0x10
mov dword [ebp - 0x34], 0
sub ecx, eax
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0xf
cmovb ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
push ecx
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040be50
mov ecx, 0x421094
lea eax, [ebp - 0x34]
push eax
call fcn.0040b430
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x412365
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41235b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4123bd
push edx
push ecx
call fcn.00418a88
add esp, 8
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x412397
mov ecx, dword [ebp - 0x4c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x41238d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4123bd
push edx
push ecx
call fcn.00418a88
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4123cd
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4123c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4123c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00418a88
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041882f
mov esp, ebp
pop ebp
ret