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 0x502316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0
push 0x51f4b8
mov ecx, 0x532b94
mov dword [ebp - 4], 2
call fcn.00464ab0
xor esi, esi
nop dword [eax + eax]
push 0
push 0x632533
call fcn.00407d20
mov cl, byte [esi + 0x5173c0]
add esp, 8
mov edx, dword [0x532ba4]
xor cl, al
mov edi, dword [0x532ba8]
mov byte [ebp - 0x18], cl
cmp edx, edi
jae 0x4095bb
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x532ba4], eax
mov eax, 0x532b94
cmovae eax, dword [0x532b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x4095d1
push dword [ebp - 0x18]
mov byte [ebp - 0x14], 0
mov ecx, 0x532b94
push dword [ebp - 0x14]
push 1
call fcn.004028f0
inc esi
cmp esi, 0x10ce
jb 0x409570
mov dword [ebp - 0x18], 0x100fff9
xor ecx, ecx
lea eax, [ecx - 0xc]
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, 0x532b94
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
cmovae ecx, edx
cmp dword [0x532ba8], 0x10
mov eax, dword [0x532ba4]
cmovae edi, dword [0x532b94]
mov dword [ebp - 0x18], 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 - 0x1c], ecx
mov dword [ebp - 0x14], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.004df660
mov edi, eax
add esp, 0xc
test edi, edi
je 0x409774
mov edx, dword [ebp - 0x18]
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 - 0x14]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x1c]
push edi
call fcn.004df660
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, 0x532b94
push eax
push esi
push edi
call fcn.00467620
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 0x409efc
push ecx
push edx
call fcn.004dbe91
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 0x409efc
push ecx
push edx
call fcn.004dbe91
add esp, 8
mov dword [ebp - 0x18], 0x100fff9
xor ecx, ecx
nop
lea eax, [ecx - 0xc]
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, 0x532b94
call fcn.00464be0
mov edx, dword [ebx + 0x18]
mov eax, 0x6c
test edx, edx
je 0x4099e4
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x409870
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409840
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov edx, dword [ebx + 0x18]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409830
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 word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409890
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409ede
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.0046c790
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3c]
call fcn.00464be0
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, 0x532b94
call fcn.00464c50
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409942
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409938
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ee3
push ecx
push edx
call fcn.004dbe91
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40997a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409970
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ee3
push ecx
push edx
call fcn.004dbe91
add esp, 8
test esi, esi
je 0x4099b4
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409990
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
sub esi, 1
jne 0x409980
mov dword [ebp - 0x18], 0x100fff9
xor ecx, ecx
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x4099c0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov eax, 0x6c
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x409baf
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x409a40
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409a10
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov edx, dword [ebx + 0x30]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409a00
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 word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a60
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409ee8
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.0046c790
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3c]
call fcn.00464be0
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, 0x532b94
call fcn.00464c50
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409b12
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409eed
push ecx
push edx
call fcn.004dbe91
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x409b4a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409eed
push ecx
push edx
call fcn.004dbe91
add esp, 8
test esi, esi
je 0x409b84
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409b60
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
sub esi, 1
jne 0x409b50
mov dword [ebp - 0x18], 0x100fff9
xor ecx, ecx
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x409b90
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x409d7f
mov eax, 0x6c
xor edi, edi
sub eax, edx
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x409c10
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409be0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov edx, dword [ebx + 0x48]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x409bd0
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 word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c30
mov eax, closesocket
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x409ef2
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.0046c790
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.00464be0
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, 0x532b94
call fcn.00464c50
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x409ce2
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409cd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ef7
push ecx
push edx
call fcn.004dbe91
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x409d1a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ef7
push ecx
push edx
call fcn.004dbe91
add esp, 8
test esi, esi
je 0x409d54
nop
mov dword [ebp - 0x24], 0x766116
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409d30
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
sub esi, 1
jne 0x409d20
mov dword [ebp - 0x18], 0x100fff9
xor ecx, ecx
nop dword [eax]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x409d60
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
xor esi, esi
push 0
push 0x632533
call fcn.00407d20
mov cl, byte [esi + str.UAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUAUA]
add esp, 8
mov edx, dword [0x532ba4]
xor cl, al
mov edi, dword [0x532ba8]
mov byte [ebp - 0x24], cl
cmp edx, edi
jae 0x409dcc
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x532ba4], eax
mov eax, 0x532b94
cmovae eax, dword [0x532b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x409de2
push dword [ebp - 0x24]
mov byte [ebp - 0x1c], 0
mov ecx, 0x532b94
push dword [ebp - 0x1c]
push 1
call fcn.004028f0
inc esi
cmp esi, 0x14a
jb 0x409d81
mov dword [ebp - 0x18], 0x100fff9
xor edx, edx
lea eax, [edx - 0xc]
xor byte [ebp + edx - 0x18], al
inc edx
cmp edx, 2
jb 0x409df4
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x532b94
call fcn.00464be0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x409e47
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efc
push ecx
push edx
call fcn.004dbe91
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 0x409e89
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efc
push ecx
push edx
call fcn.004dbe91
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 0x409ecb
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409ec1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efc
push ecx
push edx
call fcn.004dbe91
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.004e1130
call fcn.00402040
call fcn.004e1130
call fcn.00402040
call fcn.004e1130
call fcn.004e1130
int3