Function at 0x402c40
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 0x593409
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x668
mov eax, dword [0x5de040]
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 - 0x664], ecx
mov dword [ebp - 0x65c], ecx
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x674], ecx
mov dword [ecx], 0
mov dword [ebp - 0x658], edi
mov dword [ebp - 0x654], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov ecx, edx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x668], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cf0
sub ecx, dword [ebp - 0x668]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403ce0
push 0x100
lea ecx, [ebp - 0x24a]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push ecx
cmova 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 [0x5a46dc]
lea ecx, [ebp - 0x24a]
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d60
sub ecx, edx
sar ecx, 1
jne 0x402e13
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4031e7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 4
cmova eax, dword [ebp - 0x2c]
push str..lng
push ecx
push eax
push ecx
push dword [ebp - 0x674]
lea ecx, [ebp - 0x44]
call fcn.00403e60
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x402de5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ddb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403152
push ecx
push edx
call fcn.0052d5b7
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.00403a20
push 0x3c
call fcn.0052d5e8
add esp, 4
mov ecx, eax
mov dword [ebp - 0x65c], ecx
test esi, esi
jne 0x402eee
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push 1
push dword [ebp - 0x654]
cmova eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.004cb280
mov esi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x66c], esi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x402e9a
cmp dword [edi + 4], 0
jne 0x402f17
mov dword [esi], vtable.MyBinaryRead.0
mov eax, dword [edi + 4]
test eax, eax
je 0x402e86
push eax
call dword [0x5a46f8]
add esp, 4
mov dword [edi + 4], 0
push 8
push edi
call fcn.0052d5b7
add esp, 8
mov dword [esi + 0x38], 0
jmp 0x402ea0
mov dword [esi], vtable.MyBinaryRead.0
mov ecx, esi
call fcn.004079f0
push 0x3c
push esi
call fcn.0052d5b7
push 0x3c
call fcn.0052d5e8
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x65c], ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push 0
push dword [ebp - 0x654]
cmova eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x658]
call fcn.004cb280
mov esi, eax
mov dword [ebp - 0x66c], esi
jmp 0x402f13
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push esi
push dword [ebp - 0x654]
cmova eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.004cb280
mov esi, eax
mov dword [ebp - 0x66c], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x403164
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x403164
mov ecx, dword [ecx]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x402f78
push ecx
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404050
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x654]
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x670], edi
push ecx
mov ecx, dword [ebp - 0x664]
lea ecx, [ecx + 4]
call fcn.004036d0
mov eax, dword [ebp - 0x654]
test eax, eax
jle 0x402fc6
mov edx, edi
mov ecx, 4
sub ecx, edx
mov edi, eax
mov dword [ebp - 0x658], ecx
mov ecx, esi
call fcn.00402c30
mov ecx, dword [ebp - 0x658]
add eax, edx
mov ax, word [eax + ecx]
mov word [edx], ax
add edx, 2
sub edi, 1
jne 0x402fa2
mov eax, dword [ebp - 0x654]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x402fd2
mov ecx, dword [ecx + 4]
jmp 0x402fd4
xor ecx, ecx
cmp dword [0x5e43d4], 0
lea edi, [eax + 2]
lea edi, [ecx + edi*2]
jne 0x40309a
mov edx, dword [esi + 0x34]
add eax, eax
sub edx, eax
xor ecx, ecx
add edx, 0xfffffffc
mov dword [ebp - 0x660], edx
je 0x403094
cmp edx, 0x40
jb 0x403080
mov eax, edx
and eax, 0xffffffc0
mov dword [ebp - 0x658], eax
movsx eax, byte [0x5e43bc]
movd xmm0, eax
lea eax, [edi + 0x20]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ecx, dword [ebp - 0x658]
jb 0x403030
cmp ecx, edx
jae 0x403094
nop word [eax + eax]
mov dl, byte [0x5e43bc]
lea eax, [ecx + edi]
xor byte [eax], dl
inc ecx
cmp ecx, dword [ebp - 0x660]
jb 0x403080
mov eax, dword [ebp - 0x654]
mov dword [ebp - 0x658], 0
test eax, eax
jle 0x403123
mov esi, dword [ebp - 0x670]
xor edx, edx
mov dword [ebp - 0x660], edx
nop word [eax + eax]
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x65c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4030d0
sub ecx, dword [ebp - 0x65c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x664]
push edi
mov ecx, dword [ecx + 4]
add ecx, edx
call fcn.00403a80
mov edx, dword [ebp - 0x658]
add dword [ebp - 0x660], 0x18
movzx eax, word [esi + edx*2]
inc edx
add edi, eax
mov dword [ebp - 0x658], edx
cmp edx, dword [ebp - 0x654]
mov edx, dword [ebp - 0x660]
jl 0x4030c0
mov esi, dword [ebp - 0x66c]
mov ecx, dword [ebp - 0x670]
test ecx, ecx
je 0x403170
mov edx, dword [ebp - 0x668]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffe
cmp edx, 0x1000
jb 0x403158
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403158
call dword [0x5a47c4]
push edx
push ecx
call fcn.0052d5b7
add esp, 8
jmp 0x403170
mov eax, dword [ebp - 0x664]
mov dword [eax], 0xffffffff
mov edi, dword [esi + 0x38]
mov dword [esi], vtable.MyBinaryRead.0
test edi, edi
je 0x4031a7
mov eax, dword [edi + 4]
test eax, eax
je 0x403195
push eax
call dword [0x5a46f8]
add esp, 4
mov dword [edi + 4], 0
push 8
push edi
call fcn.0052d5b7
add esp, 8
mov dword [esi + 0x38], 0
mov ecx, esi
call fcn.004079f0
push 0x3c
push esi
call fcn.0052d5b7
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403a20
mov eax, dword [ebp - 0x664]
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.0052d235
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00402a30
int3