Function at 0x402b80
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 0x595299
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x660
mov eax, dword [0x5e000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x66c], ecx
mov dword [ebp - 0x654], ecx
mov edi, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x670], ecx
mov dword [ecx], 0
mov dword [ebp - 0x65c], edi
mov dword [ebp - 0x664], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], 0
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x654], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402c33
sub ecx, dword [ebp - 0x654]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004039b0
push 0x100
lea ecx, [ebp - 0x24a]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44a]
push 0x100
push ecx
push 0x100
lea ecx, [ebp - 0x64a]
push ecx
push 3
lea ecx, [ebp - 0x650]
push ecx
push eax
call dword [0x5a66c4]
lea ecx, [ebp - 0x24a]
add esp, 0x24
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ca0
sub ecx, edx
sar ecx, 1
jne 0x402d53
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x40311d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 4
cmovae eax, dword [ebp - 0x2c]
push str..lng
push ecx
push eax
push ecx
push dword [ebp - 0x670]
lea ecx, [ebp - 0x44]
call fcn.00403fa0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x402d25
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4030e7
push edx
push ecx
call fcn.0052f847
add esp, 8
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x44], ax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.00403950
push 0x3c
call fcn.0052f855
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x664], 0
mov dword [ebp - 0x654], ecx
jne 0x402de3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 1
cmovae eax, dword [ebp - 0x2c]
push edi
push eax
push esi
call fcn.004cda00
mov edi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x668], edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x402da0
cmp dword [eax + 4], 0
jne 0x402e0c
push 1
mov ecx, edi
call fcn.00403130
push 0x3c
call fcn.0052f855
mov ecx, eax
add esp, 4
mov dword [ebp - 0x654], ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
push dword [ebp - 0x65c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.004cda00
mov edi, eax
mov dword [ebp - 0x668], edi
jmp 0x402e08
push dword [ebp - 0x664]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call fcn.004cda00
mov edi, eax
mov dword [ebp - 0x668], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x38]
test eax, eax
je 0x403066
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x403066
mov ecx, dword [ecx]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x658], ecx
mov dword [ebp - 0x664], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x402e6d
push ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404040
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x664], esi
push ecx
mov ecx, dword [ebp - 0x66c]
lea ecx, [ecx + 4]
call fcn.004035f0
mov edx, dword [ebp - 0x658]
test edx, edx
jle 0x402ec4
mov eax, 4
mov edx, esi
sub eax, esi
mov esi, dword [ebp - 0x658]
mov dword [ebp - 0x65c], eax
nop dword [eax + eax]
mov ecx, edi
call fcn.00402b70
add eax, dword [ebp - 0x65c]
lea edx, [edx + 2]
mov ax, word [eax + edx - 2]
mov word [edx - 2], ax
sub esi, 1
jne 0x402ea0
mov edx, dword [ebp - 0x658]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x402ed0
mov eax, dword [eax + 4]
jmp 0x402ed2
xor eax, eax
cmp dword [0x5e654c], 0
lea esi, [edx + 2]
lea esi, [eax + esi*2]
jne 0x402fa7
mov ecx, dword [edi + 0x34]
lea eax, [edx + edx]
sub ecx, eax
lea eax, [ecx - 4]
xor ecx, ecx
mov dword [ebp - 0x660], eax
test eax, eax
je 0x402fa7
cmp eax, 0x40
jb 0x402f82
and eax, 0xffffffc0
mov dword [ebp - 0x65c], eax
movsx eax, byte [0x5e6550]
movd xmm0, eax
lea eax, [esi + 0x20]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop dword [eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ecx, dword [ebp - 0x65c]
jb 0x402f30
cmp ecx, dword [ebp - 0x660]
jae 0x402fa7
mov edi, dword [ebp - 0x660]
mov dl, byte [0x5e6550]
nop
xor byte [ecx + esi], dl
lea eax, [ecx + esi]
inc ecx
cmp ecx, edi
jb 0x402f90
mov edi, dword [ebp - 0x668]
mov edx, dword [ebp - 0x658]
mov dword [ebp - 0x65c], 0
test edx, edx
jle 0x403027
mov edi, dword [ebp - 0x658]
xor edx, edx
mov dword [ebp - 0x660], edx
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0x658], ecx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402fd0
sub eax, dword [ebp - 0x658]
mov ecx, dword [ebp - 0x66c]
sar eax, 1
push eax
push esi
mov ecx, dword [ecx + 4]
add ecx, edx
call fcn.004039b0
mov edx, dword [ebp - 0x65c]
mov ecx, dword [ebp - 0x664]
add dword [ebp - 0x660], 0x18
movzx eax, word [ecx + edx*2]
inc edx
add esi, eax
mov dword [ebp - 0x65c], edx
cmp edx, edi
mov edx, dword [ebp - 0x660]
jl 0x402fc3
mov edi, dword [ebp - 0x668]
jmp 0x40302d
mov ecx, dword [ebp - 0x664]
test ecx, ecx
je 0x403072
mov edx, dword [ebp - 0x654]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffe
cmp edx, 0x1000
jb 0x40305a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4030e7
push edx
push ecx
call fcn.0052f847
add esp, 8
jmp 0x403072
mov eax, dword [ebp - 0x66c]
mov dword [eax], 0xffffffff
mov esi, dword [edi + 0x38]
mov dword [edi], vtable.MyBinaryRead.0
test esi, esi
je 0x4030a9
mov eax, dword [esi + 4]
test eax, eax
je 0x403097
push eax
call dword [0x5a66ec]
add esp, 4
mov dword [esi + 4], 0
push 8
push esi
call fcn.0052f847
add esp, 8
mov dword [edi + 0x38], 0
mov ecx, edi
call fcn.004074c0
push 0x3c
push edi
call fcn.0052f847
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 8
jb 0x4030f7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4030ed
call dword [0x5a67b8]
push edx
push ecx
call fcn.0052f847
add esp, 8
mov eax, dword [ebp - 0x66c]
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.0052f4c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00402970
int3