Function at 0x4585e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc010
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea edx, [edi + 0x304]
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458640
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00417d60
push ecx
push 0x64c23c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00422e40
mov esi, eax
cmp esi, 0xffffffff
je 0x458ac2
xor eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x5c]
mov edx, esi
mov word [ebp - 0x5c], ax
cmovb edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push edx
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x48], 7
call fcn.00417d60
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
cmp eax, esi
jb 0x458aec
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x44]
lea eax, [eax + esi*2]
push eax
call fcn.00417d60
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0x104
cmovae eax, dword [ebp - 0x5c]
push eax
lea eax, [edi + 0xfc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
push ecx
push 0x64c240
lea ecx, [ebp - 0x44]
call fcn.00422e40
cmp eax, 0xffffffff
je 0x4588b4
movups xmm0, xmmword [0x650198]
mov ax, word [0x6501c0]
xor esi, esi
cmp dword [0x67be1c], 2
movups xmmword [ebp - 0x88], xmm0
mov word [ebp - 0x60], ax
movups xmm0, xmmword [0x6501a8]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x6501b8]
movq qword [ebp - 0x68], xmm0
jl 0x458886
movaps xmm4, xmmword [0x654300]
mov eax, 4
movaps xmm3, xmmword [0x6543d0]
movaps xmm6, xmmword [str.2222]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop dword [eax]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x88]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x88], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x80]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x80], xmm1
add esi, 8
cmp esi, 0x10
jl 0x458790
cmp esi, 0x15
jge 0x458a3b
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x32
sub ecx, eax
add ecx, 0x39
xor word [ebp + esi*2 - 0x88], cx
inc esi
cmp esi, 0x15
jl 0x458886
jmp 0x458a3b
movups xmm0, xmmword [0x65016c]
mov ax, word [0x650194]
xor ecx, ecx
cmp dword [0x67be1c], 2
movups xmmword [ebp - 0x88], xmm0
mov word [ebp - 0x60], ax
movups xmm0, xmmword [0x65017c]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [0x65018c]
movq qword [ebp - 0x68], xmm0
jl 0x458a12
movaps xmm4, xmmword [0x654300]
mov eax, 4
movaps xmm3, xmmword [0x6543d0]
movaps xmm6, xmmword [str.2222]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x88]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x88], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [str.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x80]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x80], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x458920
cmp ecx, 0x15
jge 0x458a3b
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x32
sub edx, eax
add edx, 0x39
xor word [ebp + ecx*2 - 0x88], dx
inc ecx
cmp ecx, 0x15
jl 0x458a12
cmp dword [ebp - 0x30], 8
lea ecx, [edi + 0x7c]
push 0x20
push ecx
push 0x20
lea esi, [edi + 0x3c]
push esi
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.00438fb0
add esp, 0x18
cmp eax, 2
jne 0x458ab2
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
jle 0x458a9b
lea eax, [edi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
jle 0x458a9b
cmp word [esi], 0x30
jne 0x458a9b
movzx eax, word [edi + 0x3e]
mov word [esi], ax
movzx eax, word [edi + 0x40]
mov word [edi + 0x3e], ax
xor eax, eax
mov word [edi + 0x40], ax
lea ecx, [ebp - 0x44]
call fcn.0040f8c0
lea ecx, [ebp - 0x5c]
call fcn.0040f8c0
mov esi, 1
jmp 0x458ac4
lea ecx, [ebp - 0x44]
call fcn.0040f8c0
lea ecx, [ebp - 0x5c]
call fcn.0040f8c0
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.0040f8c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040bb20
int3