Function at 0x409520
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 0x502b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0
push 0x5204b8
mov ecx, 0x533bac
mov dword [ebp - 4], 2
call fcn.00465190
xor esi, esi
nop dword [eax + eax]
push 0
push 0x13f84
call fcn.00407d20
mov cl, byte [esi + 0x5183c0]
add esp, 8
mov edx, dword [0x533bbc]
xor cl, al
mov edi, dword [0x533bc0]
mov byte [ebp - 0x1c], cl
cmp edx, edi
jae 0x4095bb
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x533bbc], eax
mov eax, 0x533bac
cmovae eax, dword [0x533bac]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x4095d1
push dword [ebp - 0x1c]
mov byte [ebp - 0x18], 0
mov ecx, 0x533bac
push dword [ebp - 0x18]
push 1
call fcn.004028f0
inc esi
cmp esi, 0x10ce
jb 0x409570
mov dword [ebp - 0x18], 0x1006c68
xor ecx, ecx
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x4095e3
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409610
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.00402810
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
mov word [ebp - 0x13], 0xa
mov byte [ebp - 0x11], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409650
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402810
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov edi, 0x533bac
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
cmovae ecx, edx
cmp dword [0x533bc0], 0x10
mov eax, dword [0x533bbc]
cmovae edi, dword [0x533bac]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edi
cmp esi, eax
ja 0x409777
sub eax, esi
test esi, esi
jne 0x4096ad
xor edi, edi
jmp 0x409759
movsx ecx, byte [ecx]
inc eax
add eax, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.004dfec0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x409774
mov edx, dword [ebp - 0x1c]
mov ecx, edi
sub esi, 4
jb 0x4096f1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4096f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4096e0
cmp esi, 0xfffffffc
je 0x40972a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x409723
cmp esi, 0xfffffffd
je 0x40972a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x409723
cmp esi, 0xfffffffe
je 0x40972a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x409723
cmp esi, 0xffffffff
je 0x40972a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40972a
sbb eax, eax
or eax, 1
jmp 0x40972c
xor eax, eax
test eax, eax
je 0x40974e
mov eax, dword [ebp - 0x18]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x14]
push edi
call fcn.004dfec0
mov esi, dword [ebp - 0x2c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4096d0
jmp 0x409774
sub edi, dword [ebp - 0x24]
cmp edi, 0xffffffff
je 0x409774
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
mov ecx, 0x533bac
push eax
push esi
push edi
call fcn.00467d20
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4097ae
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4097a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f0c
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x4097e6
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4097dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f0c
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov dword [ebp - 0x18], 0x1006c68
xor ecx, ecx
nop
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x4097f0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
push 0
push 0x13fdf
call fcn.00407d20
mov edx, dword [ebx + 0x18]
add esp, 8
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x4099f2
mov ecx, eax
xor edi, edi
sub ecx, edx
mov esi, ecx
and ecx, 1
shr esi, 1
add ecx, esi
je 0x409881
nop dword [eax]
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409850
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x18]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409840
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098a0
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409eee
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046cf70
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3c]
call fcn.004652c0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x533bac
call fcn.00465330
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409952
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409948
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ef3
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40998a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409980
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ef3
push ecx
push edx
call fcn.004dc6f1
add esp, 8
test esi, esi
je 0x4099c4
nop
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x4099a0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
sub esi, 1
jne 0x409990
mov dword [ebp - 0x18], 0x1006c68
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x4099d0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x409bbf
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x409a51
nop dword [eax]
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409a20
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x30]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409a10
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a70
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409ef8
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
push edx
cmovae eax, dword [ebx + 0x20]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046cf70
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3c]
call fcn.004652c0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x533bac
call fcn.00465330
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409b22
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efd
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x409b5a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efd
push ecx
push edx
call fcn.004dc6f1
add esp, 8
test esi, esi
je 0x409b94
nop
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409b70
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
sub esi, 1
jne 0x409b60
mov dword [ebp - 0x18], 0x1006c68
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x409ba0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x409d8f
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, edx
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x409c21
nop dword [eax]
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409bf0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov eax, dword [ebp - 0x1c]
inc edi
mov edx, dword [ebx + 0x48]
sub eax, edx
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409be0
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c40
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409f02
cmp dword [ebx + 0x4c], 0x10
lea eax, [ebx + 0x38]
push edx
cmovae eax, dword [ebx + 0x38]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.0046cf70
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.004652c0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
mov ecx, 0x533bac
call fcn.00465330
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409cf2
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409ce8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f07
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x409d2a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f07
push ecx
push edx
call fcn.004dc6f1
add esp, 8
test esi, esi
je 0x409d64
nop
mov dword [ebp - 0x24], 0xe7f287
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409d40
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
sub esi, 1
jne 0x409d30
mov dword [ebp - 0x18], 0x1006c68
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0x65]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x409d70
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
xor esi, esi
push 0
push 0x13f84
call fcn.00407d20
mov cl, byte [esi + str.UAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUA]
add esp, 8
mov edx, dword [0x533bbc]
xor cl, al
mov edi, dword [0x533bc0]
mov byte [ebp - 0x24], cl
cmp edx, edi
jae 0x409ddc
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x533bbc], eax
mov eax, 0x533bac
cmovae eax, dword [0x533bac]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x409df2
push dword [ebp - 0x24]
mov byte [ebp - 0x1c], 0
mov ecx, 0x533bac
push dword [ebp - 0x1c]
push 1
call fcn.004028f0
inc esi
cmp esi, 0x14a
jb 0x409d91
mov dword [ebp - 0x18], 0x1006c68
xor edx, edx
lea eax, [edx + 0x65]
xor byte [ebp + edx - 0x18], al
inc edx
cmp edx, 2
jb 0x409e04
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x533bac
call fcn.004652c0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x409e57
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f0c
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x409e99
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f0c
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x409edb
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409ed1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f0c
push ecx
push edx
call fcn.004dc6f1
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402040
call fcn.004e1990
call fcn.00402040
call fcn.004e1990
call fcn.00402040
call fcn.004e1990
call fcn.004e1990
int3