Function at 0x40f9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x47f400]
xor eax, esp
mov dword [esp + 0x14], eax
push 0x190
call fcn.0043a28a
add esp, 4
mov ebx, eax
mov ecx, 0x4d29c4
mov edx, eax
call fcn.004121d0
push 0x190
call fcn.0043a28a
add esp, 4
mov ebp, eax
mov ecx, 0x4d2b84
mov edx, eax
call fcn.004121d0
push 0x200
call fcn.0043a28a
add esp, 4
mov edi, eax
push 0x400
call fcn.0043a28a
add esp, 4
mov esi, eax
push 0x200
push 0
push edi
call fcn.00438cc0
add esp, 0xc
push 0x400
push 0
push esi
call fcn.00438cc0
add esp, 0xc
mov eax, dword [0x494454]
cmp byte [0x51891e], 0
jne 0x40facc
mov byte [0x51891e], 1
movaps xmm0, xmmword [str._streamer1.php_a_sb_sc_id_ie_i]
movups xmmword [0x5188cc], xmm0
movaps xmm0, xmmword [0x470c10]
movups xmmword [0x5188dc], xmm0
movaps xmm0, xmmword [0x470c20]
movups xmmword [0x5188ec], xmm0
movaps xmm0, xmmword [0x470c30]
movups xmmword [0x5188fc], xmm0
movdqa xmm0, xmmword [0x470c40]
movdqu xmmword [0x51890c], xmm0
mov word [0x51891c], 0xa6a1
push 0x4a
push 0xe8b
push eax
push ebp
push ebx
push 0x5188cc
push 0x100
push edi
call fcn.00411c20
add esp, 0x20
push ebx
call fcn.0043a293
add esp, 4
push ebp
call fcn.0043a293
add esp, 4
cmp byte [0x518940], 1
je 0x40fb29
mov byte [0x518940], 1
movaps xmm0, xmmword [0x470ae0]
movups xmmword [0x518920], xmm0
movdqa xmm0, xmmword [0x470c50]
movdqu xmmword [0x518930], xmm0
cmp byte [0x518b16], 0
jne 0x40fedb
mov byte [0x518b16], 1
movaps xmm0, xmmword [0x470c60]
movups xmmword [0x518942], xmm0
movaps xmm0, xmmword [0x470c70]
movups xmmword [0x518952], xmm0
movaps xmm0, xmmword [0x470c80]
movups xmmword [0x518962], xmm0
movaps xmm0, xmmword [0x470c90]
movups xmmword [0x518972], xmm0
movaps xmm0, xmmword [0x470ca0]
movups xmmword [0x518982], xmm0
movaps xmm0, xmmword [0x470cb0]
movups xmmword [0x518992], xmm0
movaps xmm0, xmmword [0x470cc0]
movups xmmword [0x5189a2], xmm0
movaps xmm0, xmmword [0x470cd0]
movups xmmword [0x5189b2], xmm0
movaps xmm0, xmmword [0x470ce0]
movups xmmword [0x5189c2], xmm0
movaps xmm0, xmmword [0x470cf0]
movups xmmword [0x5189d2], xmm0
movaps xmm0, xmmword [0x470d00]
movups xmmword [0x5189e2], xmm0
movaps xmm0, xmmword [0x470d10]
movups xmmword [0x5189f2], xmm0
movaps xmm0, xmmword [0x470d20]
movups xmmword [0x518a02], xmm0
movaps xmm0, xmmword [0x470d30]
movups xmmword [0x518a12], xmm0
movq xmm0, qword [0x470d40]
movq qword [0x518a22], xmm0
mov dword [0x518a2a], 0
xor eax, eax
xor ecx, ecx
nop
movd xmm0, ecx
movdqu xmmword [esp], xmm0
pshufd xmm4, xmm0, 0
movdqa xmm0, xmm4
movdqa xmm7, xmmword [0x470d50]
por xmm0, xmm7
movdqa xmm1, xmm4
movdqa xmm5, xmmword [0x470d60]
por xmm1, xmm5
movdqa xmm6, xmm1
movdqa xmm3, xmmword [0x470d70]
pxor xmm6, xmm3
movdqa xmm2, xmm0
pxor xmm2, xmm3
movdqa xmm3, xmmword [0x470d80]
pxor xmm1, xmm3
pxor xmm0, xmm3
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm0, xmm3
paddd xmm0, xmmword [0x470da0]
paddd xmm1, xmm3
paddd xmm1, xmmword [0x470d90]
movdqa xmm3, xmm4
paddd xmm3, xmm5
paddd xmm3, xmm6
pxor xmm3, xmm1
movdqa xmm1, xmm4
paddd xmm1, xmm7
paddd xmm1, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm3
movdqa xmm5, xmmword [0x470db0]
pmuludq xmm0, xmm5
pshufd xmm0, xmm0, 0xed
pshufd xmm2, xmm3, 0xf5
pmuludq xmm2, xmm5
pshufd xmm2, xmm2, 0xed
punpckldq xmm0, xmm2
psrld xmm0, 0xf
pshufd xmm2, xmm0, 0xf5
movdqa xmm6, xmmword [0x470dc0]
pmuludq xmm0, xmm6
pshufd xmm0, xmm0, 0xe8
pmuludq xmm2, xmm6
pshufd xmm2, xmm2, 0xe8
punpckldq xmm0, xmm2
psubd xmm3, xmm0
movdqa xmm0, xmm1
pmuludq xmm0, xmm5
pshufd xmm0, xmm0, 0xed
pshufd xmm2, xmm1, 0xf5
pmuludq xmm2, xmm5
pshufd xmm2, xmm2, 0xed
punpckldq xmm0, xmm2
psrld xmm0, 0xf
pshufd xmm2, xmm0, 0xf5
pmuludq xmm0, xmm6
pshufd xmm0, xmm0, 0xe8
pmuludq xmm2, xmm6
pshufd xmm2, xmm2, 0xe8
punpckldq xmm0, xmm2
psubd xmm1, xmm0
movdqa xmm0, xmm1
pslld xmm0, 0x10
psrad xmm0, 0x10
movdqa xmm2, xmm3
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm0
movdqu xmm0, xmmword [ecx + ecx + 0x518942]
movdqu xmm5, xmmword [esp]
pshuflw xmm5, xmm5, 0
pshufd xmm5, xmm5, 0
movdqa xmm6, xmm5
psubw xmm6, xmm2
movdqa xmm7, xmmword [str._b_t_n_v_f_r]
paddw xmm6, xmm7
pxor xmm6, xmm0
movdqa xmm0, xmm2
paddw xmm0, xmm2
paddw xmm0, xmm2
pxor xmm7, xmm7
psubw xmm7, xmm0
movdqa xmm0, xmm7
punpckhwd xmm0, xmm0
punpcklwd xmm7, xmm7
paddd xmm7, xmm4
paddd xmm0, xmm4
pslld xmm0, 0x10
psrad xmm0, 0x10
pslld xmm7, 0x10
psrad xmm7, 0x10
packssdw xmm7, xmm0
paddw xmm5, xmmword [str._b_t_n_v_f_r]
movdqa xmm4, xmm5
punpcklwd xmm4, xmm4
movdqa xmm0, xmmword [0x470df0]
paddd xmm4, xmm0
movdqa xmm0, xmmword [str._a_a_a_a]
paddd xmm3, xmm0
pshufd xmm0, xmm4, 0xf5
movdqu xmmword [esp], xmm0
pmuludq xmm4, xmm3
pshufd xmm0, xmm3, 0xf5
movdqu xmm3, xmmword [esp]
pmuludq xmm0, xmm3
punpckhwd xmm5, xmm5
paddd xmm5, xmmword [0x470df0]
paddd xmm1, xmmword [str._a_a_a_a]
pshufd xmm3, xmm4, 0xe8
pshufd xmm0, xmm0, 0xe8
punpckldq xmm3, xmm0
pshufd xmm0, xmm5, 0xf5
pmuludq xmm5, xmm1
pshufd xmm1, xmm1, 0xf5
pmuludq xmm1, xmm0
pshufd xmm0, xmm5, 0xe8
pshufd xmm1, xmm1, 0xe8
punpckldq xmm0, xmm1
pslld xmm0, 0x10
psrad xmm0, 0x10
pslld xmm3, 0x10
psrad xmm3, 0x10
packssdw xmm3, xmm0
pxor xmm3, xmm6
psubw xmm2, xmmword [0x469150]
pxor xmm2, xmm3
paddw xmm7, xmmword [0x470de0]
pxor xmm2, xmm7
movdqu xmmword [ecx + ecx + 0x518a2c], xmm2
lea edx, [ecx + 8]
add eax, 0xfffffff8
cmp ecx, 0x68
mov ecx, edx
jb 0x40fc20
movq xmm0, qword [0x518a22]
pxor xmm0, xmmword [0x470e10]
movq qword [0x518b0c], xmm0
movzx eax, word [0x518a2a]
xor eax, 0xedc8
mov word [0x518b14], ax
mov ecx, 0x518a2c
mov edx, 0x518920
push 0
push 0x1ff
push esi
push edi
push 0x50
call fcn.00412770
add esp, 0x14
mov ebx, eax
push edi
call fcn.0043a293
add esp, 4
test bl, bl
je 0x40ff57
mov dword [esp + 0x10], 0x200
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004136b0
test al, al
je 0x410327
mov eax, dword [0x4d2d3c]
mov ecx, dword [0x4d2d38]
mov edx, ecx
xor edx, 1
or edx, eax
je 0x40ff8f
xor edx, edx
mov edi, 5
cmp edi, ecx
sbb edx, eax
jl 0x40ff8f
cmp byte [0x538d7c], 1
jne 0x410369
mov ecx, 0x538d5c
jmp 0x40ff8a
cmp byte [0x538d9e], 1
je 0x40ff85
mov byte [0x538d9e], 1
movaps xmm0, xmmword [str.Login_Error_3_n]
movups xmmword [0x538d7e], xmm0
movdqa xmm0, xmmword [0x470e30]
movdqu xmmword [0x538d8e], xmm0
mov ecx, 0x538d7e
call fcn.004138f0
push esi
call fcn.0043a293
add esp, 4
mov eax, dword [0x4d2d3c]
mov ecx, dword [0x4d2d38]
mov edx, ecx
xor edx, 1
or edx, eax
sete dl
xor esi, esi
mov edi, 5
cmp edi, ecx
sbb esi, eax
setl bl
or bl, dl
jne 0x410312
cmp byte [0x5188cb], 0
jne 0x410312
cmp byte [0x538ea0], 0
jne 0x410301
mov byte [0x538ea0], 1
movaps xmm0, xmmword [0x470e60]
movups xmmword [0x538da0], xmm0
movaps xmm0, xmmword [0x470e70]
movups xmmword [0x538db0], xmm0
movaps xmm0, xmmword [0x470e80]
movups xmmword [0x538dc0], xmm0
movaps xmm0, xmmword [0x470e90]
movups xmmword [0x538dd0], xmm0
movaps xmm0, xmmword [0x470ea0]
movups xmmword [0x538de0], xmm0
movaps xmm0, xmmword [0x470eb0]
movups xmmword [0x538df0], xmm0
movaps xmm0, xmmword [0x470ec0]
movups xmmword [0x538e00], xmm0
movdqa xmm0, xmmword [0x470ed0]
movdqu xmmword [0x538e10], xmm0
mov word [0x538e20], 0
xor eax, eax
xor ecx, ecx
nop word cs:[eax + eax]
movd xmm0, ecx
movdqu xmmword [esp], xmm0
pshufd xmm4, xmm0, 0
movdqa xmm0, xmm4
movdqa xmm7, xmmword [0x470d50]
por xmm0, xmm7
movdqa xmm1, xmm4
movdqa xmm5, xmmword [0x470d60]
por xmm1, xmm5
movdqa xmm6, xmm1
movdqa xmm3, xmmword [0x470ee0]
pxor xmm6, xmm3
movdqa xmm2, xmm0
pxor xmm2, xmm3
movdqa xmm3, xmmword [0x470ef0]
pxor xmm1, xmm3
pxor xmm0, xmm3
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm0, xmm3
paddd xmm0, xmmword [0x470da0]
paddd xmm1, xmm3
paddd xmm1, xmmword [0x470d90]
movdqa xmm3, xmm4
paddd xmm3, xmm5
paddd xmm3, xmm6
pxor xmm3, xmm1
movdqa xmm1, xmm4
paddd xmm1, xmm7
paddd xmm1, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm3
movdqa xmm5, xmmword [0x470db0]
pmuludq xmm0, xmm5
pshufd xmm0, xmm0, 0xed
pshufd xmm2, xmm3, 0xf5
pmuludq xmm2, xmm5
pshufd xmm2, xmm2, 0xed
punpckldq xmm0, xmm2
psrld xmm0, 0xf
pshufd xmm2, xmm0, 0xf5
movdqa xmm6, xmmword [0x470dc0]
pmuludq xmm0, xmm6
pshufd xmm0, xmm0, 0xe8
pmuludq xmm2, xmm6
pshufd xmm2, xmm2, 0xe8
punpckldq xmm0, xmm2
psubd xmm3, xmm0
movdqa xmm0, xmm1
pmuludq xmm0, xmm5
pshufd xmm0, xmm0, 0xed
pshufd xmm2, xmm1, 0xf5
pmuludq xmm2, xmm5
pshufd xmm2, xmm2, 0xed
punpckldq xmm0, xmm2
psrld xmm0, 0xf
pshufd xmm2, xmm0, 0xf5
pmuludq xmm0, xmm6
pshufd xmm0, xmm0, 0xe8
pmuludq xmm2, xmm6
pshufd xmm2, xmm2, 0xe8
punpckldq xmm0, xmm2
psubd xmm1, xmm0
movdqa xmm0, xmm1
pslld xmm0, 0x10
psrad xmm0, 0x10
movdqa xmm2, xmm3
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm0
movdqu xmm0, xmmword [ecx + ecx + 0x538da0]
movdqu xmm5, xmmword [esp]
pshuflw xmm5, xmm5, 0
pshufd xmm5, xmm5, 0
movdqa xmm6, xmm5
psubw xmm6, xmm2
movdqa xmm7, xmmword [str._b_t_n_v_f_r]
paddw xmm6, xmm7
pxor xmm6, xmm0
movdqa xmm0, xmm2
paddw xmm0, xmm2
paddw xmm0, xmm2
pxor xmm7, xmm7
psubw xmm7, xmm0
movdqa xmm0, xmm7
punpckhwd xmm0, xmm0
punpcklwd xmm7, xmm7
paddd xmm7, xmm4
paddd xmm0, xmm4
pslld xmm0, 0x10
psrad xmm0, 0x10
pslld xmm7, 0x10
psrad xmm7, 0x10
packssdw xmm7, xmm0
paddw xmm5, xmmword [str._b_t_n_v_f_r]
movdqa xmm4, xmm5
punpcklwd xmm4, xmm4
movdqa xmm0, xmmword [0x470df0]
paddd xmm4, xmm0
movdqa xmm0, xmmword [str._a_a_a_a]
paddd xmm3, xmm0
pshufd xmm0, xmm4, 0xf5
movdqu xmmword [esp], xmm0
pmuludq xmm4, xmm3
pshufd xmm0, xmm3, 0xf5
movdqu xmm3, xmmword [esp]
pmuludq xmm0, xmm3
punpckhwd xmm5, xmm5
paddd xmm5, xmmword [0x470df0]
paddd xmm1, xmmword [str._a_a_a_a]
pshufd xmm3, xmm4, 0xe8
pshufd xmm0, xmm0, 0xe8
punpckldq xmm3, xmm0
pshufd xmm0, xmm5, 0xf5
pmuludq xmm5, xmm1
pshufd xmm1, xmm1, 0xf5
pmuludq xmm1, xmm0
pshufd xmm0, xmm5, 0xe8
pshufd xmm1, xmm1, 0xe8
punpckldq xmm0, xmm1
pslld xmm0, 0x10
psrad xmm0, 0x10
pslld xmm3, 0x10
psrad xmm3, 0x10
packssdw xmm3, xmm0
pxor xmm3, xmm6
psubw xmm2, xmmword [0x469150]
pxor xmm2, xmm3
paddw xmm7, xmmword [0x470de0]
pxor xmm2, xmm7
movdqu xmmword [ecx + ecx + 0x538e20], xmm2
lea edx, [ecx + 8]
add eax, 0xfffffff8
cmp ecx, 0x38
mov ecx, edx
jb 0x410070
mov ecx, 0x538e20
call fcn.00413930
mov byte [0x5188cb], 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043b6ab
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [0x538d5a], 1
jne 0x41033a
mov ecx, 0x538d3a
jmp 0x40ff8a
mov byte [0x538d5a], 1
movaps xmm0, xmmword [str.Login_Error_3_n]
movups xmmword [0x538d3a], xmm0
movdqa xmm0, xmmword [str.ror_4_n]
movdqu xmmword [0x538d4a], xmm0
mov ecx, 0x538d3a
jmp 0x40ff8a
mov byte [0x538d7c], 1
movaps xmm0, xmmword [str.Login_Error_3_n]
movups xmmword [0x538d5c], xmm0
movdqa xmm0, xmmword [str.ror_2_n]
movdqu xmmword [0x538d6c], xmm0
mov ecx, 0x538d5c
jmp 0x40ff8a