Function at 0x418fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x203c
call fcn.0042b4f0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2054]
mov ebx, ecx
mov ecx, dword [esp + 0x2050]
cmp edx, 0x1001
jae 0x418ffe
mov edi, edx
jmp 0x41903a
cmp byte [ecx + 0x1000], 0xbf
mov edi, 0x1000
jg 0x41903a
cmp byte [ecx + 0xfff], 0xbf
mov edi, 0xfff
jg 0x41903a
xor eax, eax
cmp byte [ecx + 0xffe], 0xc0
setge al
cmp byte [ecx + eax + 0xffd], 0xbf
lea edi, [eax + 0xffd]
jle 0x419379
lea esi, [esp + 0x3c]
push 0x1000
push esi
push edi
push ecx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x419332
mov ebp, eax
cmp eax, 0x1001
mov dword [esp], ebx
jae 0x419368
lea ebx, [esp + 4]
mov dword [esp + 4], 0
push 0
push ebx
push ebp
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x4192e3
mov ecx, dword [esp + 4]
cmp ecx, ebp
je 0x4192f6
jae 0x419326
movzx eax, word [esp + ecx*2 + 0x3c]
add eax, 0x2312
movzx eax, ax
cmp eax, 0x312
jae 0x4190dd
lea eax, [esp + ecx*2 + 0x3c]
inc ecx
mov dword [esp + 4], 0
mov edi, ecx
push 0
push ebx
push 1
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x41930a
mov ecx, edi
cmp ecx, ebp
ja 0x41931a
test ecx, ecx
je 0x4192f4
lea eax, [ecx - 1]
xor edi, edi
and eax, 0x7fffffff
cmp eax, 6
jbe 0x419292
inc eax
mov ebx, ecx
pxor xmm0, xmm0
lea esi, [esp + 0x44]
pxor xmm1, xmm1
pcmpeqd xmm6, xmm6
mov edx, eax
and edx, 0x7ffffff8
lea ecx, [edx + edx]
mov edi, edx
movq xmm2, qword [esi - 8]
movdqu xmmword [esp + 0x1c], xmm0
movdqa xmm0, xmmword [0x443450]
movq xmm3, qword [esi]
movdqa xmm5, xmmword [0x443460]
movdqa xmm7, xmmword [0x443470]
movdqu xmmword [esp + 0x2c], xmm1
add esi, 0x10
add edi, 0xfffffff8
movdqa xmm4, xmm2
movdqa xmm1, xmm3
pmaxuw xmm4, xmm0
movdqa xmm0, xmm2
paddw xmm1, xmm5
paddw xmm0, xmm5
pcmpeqw xmm4, xmm2
movdqa xmm5, xmm0
pxor xmm4, xmm6
pmaxuw xmm5, xmm7
pcmpeqw xmm5, xmm0
pxor xmm5, xmm6
pmovsxwd xmm0, xmm5
movdqa xmm5, xmm1
pmaxuw xmm5, xmm7
movaps xmm7, xmmword [0x443330]
pcmpeqw xmm5, xmm1
pxor xmm5, xmm6
pmovsxwd xmm1, xmm5
movaps xmm5, xmmword [0x443480]
blendvps xmm5, xmm7, xmm0
movaps xmm7, xmmword [0x443480]
movdqa xmm0, xmm1
blendvps xmm7, xmmword [0x443330], xmm0
movdqa xmm0, xmmword [0x443490]
paddw xmm2, xmm0
movdqa xmm0, xmmword [0x4434a0]
movdqa xmm1, xmm2
pmaxuw xmm1, xmm0
pmovsxwd xmm0, xmm4
movdqa xmm4, xmmword [0x443330]
pcmpeqw xmm1, xmm2
pxor xmm1, xmm6
pmovzxwd xmm1, xmm1
pand xmm1, xmm4
psubd xmm1, xmm6
blendvps xmm5, xmm1, xmm0
movdqa xmm0, xmm3
pmaxuw xmm0, xmmword [0x443450]
pcmpeqw xmm0, xmm3
paddw xmm3, xmmword [0x443490]
pxor xmm0, xmm6
pmovsxwd xmm0, xmm0
movdqa xmm1, xmm3
pmaxuw xmm1, xmmword [0x4434a0]
pcmpeqw xmm1, xmm3
pxor xmm1, xmm6
pmovzxwd xmm1, xmm1
pand xmm1, xmm4
psubd xmm1, xmm6
blendvps xmm7, xmm1, xmm0
movdqu xmm1, xmmword [esp + 0x2c]
movdqu xmm0, xmmword [esp + 0x1c]
paddd xmm0, xmm5
paddd xmm1, xmm7
jne 0x419120
paddd xmm1, xmm0
cmp eax, edx
pshufd xmm0, xmm1, 0xee
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd edi, xmm1
je 0x4192f6
lea esi, [esp + ecx + 0x3c]
mov ecx, ebx
lea eax, [esp + ecx*2 + 0x3c]
jmp 0x4192a9
add esi, 2
add edi, edx
cmp esi, eax
je 0x4192f6
movzx ecx, word [esi]
mov edx, 1
cmp ecx, 0x80
jb 0x4192a0
movzx ebx, cx
mov edx, 2
cmp ebx, 0x800
jb 0x4192a0
add ecx, 0x2312
xor edx, edx
movzx ecx, cx
cmp ecx, 0x312
setae dl
lea edx, [edx + edx + 1]
jmp 0x4192a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
mov byte [ecx], 0
mov dword [ecx + 4], eax
jmp 0x4192ff
xor edi, edi
mov eax, dword [esp]
mov dword [eax + 4], edi
mov byte [eax], 4
add esp, 0x203c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
cmp ecx, ebp
jbe 0x4190e5
mov edx, ebp
push 0x447bc0
call fcn.00441590
mov edx, ebp
push 0x447bb0
call fcn.00441530
lea ecx, [esp + 4]
mov edx, 0x447b90
mov dword [esp + 4], 0x447b88
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], str.___rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_srcio_borrowed_buf.rs
mov dword [esp + 0x10], 0
call fcn.004414f0
mov ecx, ebp
mov edx, 0x1000
push 0x447ba0
call fcn.00441590
push 0x447b50
push edi
push 0
call fcn.00441960
int3