Function at 0x493810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x203c
call fcn.004b58d0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2054]
mov ebx, ecx
mov ecx, dword [esp + 0x2050]
cmp edx, 0x1001
jae 0x49383e
mov edi, edx
jmp 0x49387a
cmp byte [ecx + 0x1000], 0xbf
mov edi, 0x1000
jg 0x49387a
cmp byte [ecx + 0xfff], 0xbf
mov edi, 0xfff
jg 0x49387a
xor eax, eax
cmp byte [ecx + 0xffe], 0xc0
setge al
cmp byte [ecx + eax + 0xffd], 0xbf
lea edi, [eax + 0xffd]
jle 0x493bb9
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 0x493b72
mov ebp, eax
cmp eax, 0x1001
mov dword [esp], ebx
jae 0x493ba8
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 0x493b23
mov ecx, dword [esp + 4]
cmp ecx, ebp
je 0x493b36
jae 0x493b66
movzx eax, word [esp + ecx*2 + 0x3c]
add eax, 0x2312
movzx eax, ax
cmp eax, 0x312
jae 0x49391d
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 0x493b4a
mov ecx, edi
cmp ecx, ebp
ja 0x493b5a
test ecx, ecx
je 0x493b34
lea eax, [ecx - 1]
xor edi, edi
and eax, 0x7fffffff
cmp eax, 6
jbe 0x493ad2
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 [0x4d0bb0]
movq xmm3, qword [esi]
movdqa xmm5, xmmword [0x4d0bc0]
movdqa xmm7, xmmword [0x4d0bd0]
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 [0x4d0a80]
pcmpeqw xmm5, xmm1
pxor xmm5, xmm6
pmovsxwd xmm1, xmm5
movaps xmm5, xmmword [0x4d0be0]
blendvps xmm5, xmm7, xmm0
movaps xmm7, xmmword [0x4d0be0]
movdqa xmm0, xmm1
blendvps xmm7, xmmword [0x4d0a80], xmm0
movdqa xmm0, xmmword [0x4d0bf0]
paddw xmm2, xmm0
movdqa xmm0, xmmword [0x4d0c00]
movdqa xmm1, xmm2
pmaxuw xmm1, xmm0
pmovsxwd xmm0, xmm4
movdqa xmm4, xmmword [0x4d0a80]
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 [0x4d0bb0]
pcmpeqw xmm0, xmm3
paddw xmm3, xmmword [0x4d0bf0]
pxor xmm0, xmm6
pmovsxwd xmm0, xmm0
movdqa xmm1, xmm3
pmaxuw xmm1, xmmword [0x4d0c00]
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 0x493960
paddd xmm1, xmm0
cmp eax, edx
pshufd xmm0, xmm1, 0xee
paddd xmm0, xmm1
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd edi, xmm1
je 0x493b36
lea esi, [esp + ecx + 0x3c]
mov ecx, ebx
lea eax, [esp + ecx*2 + 0x3c]
jmp 0x493ae9
add esi, 2
add edi, edx
cmp esi, eax
je 0x493b36
movzx ecx, word [esi]
mov edx, 1
cmp ecx, 0x80
jb 0x493ae0
movzx ebx, cx
mov edx, 2
cmp ebx, 0x800
jb 0x493ae0
add ecx, 0x2312
xor edx, edx
movzx ecx, cx
cmp ecx, 0x312
setae dl
lea edx, [edx + edx + 1]
jmp 0x493ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
mov byte [ecx], 0
mov dword [ecx + 4], eax
jmp 0x493b3f
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 0x493925
mov edx, ebp
push 0x4fbbcc
call fcn.004cb960
mov edx, ebp
push 0x4fbbbc
call fcn.004cb900
lea ecx, [esp + 4]
mov edx, 0x4fbb9c
mov dword [esp + 4], 0x4fbb94
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], str._rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [esp + 0x10], 0
call fcn.004cb8c0
mov ecx, ebp
mov edx, 0x1000
push 0x4fbbac
call fcn.004cb960
push 0x4fbb5c
push edi
push 0
call fcn.004cbd80
int3