Function at 0x403665
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x594
xor eax, eax
mov ecx, 0x11
mov dword [ebp - 0x3c], 0
push ebx
push esi
push edi
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 4
inc dword [ebp + edx*4 - 0x90]
dec ecx
jne 0x40368d
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
cmp dword [ebp - 0x90], edi
jne 0x4036b5
mov dword [esi], 0
jmp 0x403a24
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 0x8c]
cmp dword [eax], 0
jne 0x4036d5
add eax, 4
inc ecx
lea edx, [ebp - 0x50]
cmp eax, edx
jbe 0x4036c5
mov dword [ebp - 0x14], ecx
mov edi, ecx
cmp dword [ebp - 4], ecx
jae 0x4036e2
mov dword [ebp - 4], edi
mov edx, 0x10
lea eax, [ebp - 0x50]
cmp dword [eax], 0
jne 0x4036fd
sub eax, 4
dec edx
lea ebx, [ebp - 0x90]
cmp eax, ebx
jne 0x4036ea
mov dword [ebp - 0x24], edx
cmp edx, dword [ebp - 4]
jae 0x403708
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, 1
shl eax, cl
mov dword [ebp - 0x18], eax
cmp edx, ecx
jbe 0x403739
lea eax, [ebp + ecx*4 - 0x90]
mov esi, dword [eax]
sub dword [ebp - 0x18], esi
js 0x403751
add eax, 4
inc ecx
mov esi, dword [ebp - 0x18]
add esi, esi
cmp edx, ecx
mov dword [ebp - 0x18], esi
ja 0x403722
lea ecx, [ebp + edx*4 - 0x90]
mov eax, dword [ecx]
sub dword [ebp - 0x18], eax
jns 0x40375b
mov eax, 2
jmp 0x403a26
mov eax, 2
jmp 0x403a26
add eax, dword [ebp - 0x18]
lea esi, [ebp - 0x8c]
mov dword [ecx], eax
xor ecx, ecx
lea eax, [ebp - 0xcc]
dec edx
mov dword [ebp - 0xd0], ecx
je 0x403784
add ecx, dword [esi]
add esi, 4
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x403777
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [esi]
add esi, 4
test eax, eax
je 0x4037a5
lea ecx, [ebp + eax*4 - 0xd4]
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov dword [ebp + eax*4 - 0x598], edx
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x403789
xor esi, esi
lea ebx, [ebp - 0x594]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0x2c], ebx
xor eax, eax
mov dword [ebp - 0x114], esi
neg edx
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0xffffffff
jl 0x403a0a
mov ecx, dword [ebp - 0x14]
lea ebx, [ebp + ecx*4 - 0x90]
mov dword [ebp - 0x44], ebx
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
dec dword [ebp - 0x30]
test ecx, ecx
je 0x4039fb
mov ecx, dword [ebp - 4]
add ecx, edx
cmp ecx, dword [ebp - 0x14]
jge 0x4038f6
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
shl edi, 2
inc ecx
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
add edi, 4
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
sub eax, edx
inc dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp eax, ecx
jbe 0x40383f
movzx eax, cx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov ebx, 1
sub ecx, edx
shl ebx, cl
cmp ebx, dword [ebp - 0x38]
jbe 0x403877
mov eax, dword [ebp - 0x30]
inc ecx
inc eax
sub ebx, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], ecx
jbe 0x403877
add dword [ebp - 8], 4
add ebx, ebx
mov eax, dword [ebp - 8]
cmp ebx, dword [eax]
jbe 0x403877
sub ebx, dword [eax]
inc ecx
cmp dword [ebp - 0x10], ecx
ja 0x403862
mov eax, 1
mov ebx, dword [ebp - 0x3c]
shl eax, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x20]
lea eax, [eax + ebx*8]
mov ebx, dword [ebp - 0x10]
add dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
cmp ebx, dword [ebp + 0x24]
ja 0x403a1d
mov dword [ebp + edi - 0x114], eax
test edi, edi
je 0x4038e8
mov ebx, dword [ebp - 0xc]
add cl, 0x10
mov dword [ebp + edi - 0xd4], ebx
mov byte [ebp - 0x20], cl
mov bl, byte [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x1f], bl
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, edx
sub cl, byte [ebp - 4]
shr ebx, cl
shl ebx, 3
mov ecx, dword [ebp - 0x34]
add ebx, dword [ebp + edi - 0x118]
mov dword [ebx], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
add ecx, edx
cmp ecx, dword [ebp - 0x14]
jl 0x403821
mov cl, byte [ebp - 0x14]
mov edi, dword [ebp + 0x10]
sub cl, dl
lea ebx, [ebp + edi*4 - 0x594]
mov byte [ebp - 0x1f], cl
cmp ebx, dword [ebp - 0x2c]
ja 0x403913
mov byte [ebp - 0x20], 0x63
jmp 0x40394a
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebx]
cmp dword [ebp + 0x14], edi
jbe 0x40392d
mov bl, 0x10
cmp edi, 0x100
adc bl, 0xff
mov byte [ebp - 0x20], bl
jmp 0x403942
sub edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
add edi, edi
mov bl, byte [edi + ebx]
mov byte [ebp - 0x20], bl
mov ebx, dword [ebp + 0x18]
mov di, word [edi + ebx]
add dword [ebp - 0x2c], 4
mov word [ebp - 0x1c], di
mov edi, 1
shl edi, cl
mov cl, dl
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
shr edi, cl
cmp dword [ebp - 0x10], edi
jbe 0x40399f
lea ecx, [eax + edi*8]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 8]
shl ecx, 3
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
add edi, dword [ebp - 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ebx
mov ebx, ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebx], ecx
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 4], ecx
mov ebx, dword [ebp - 0x40]
add dword [ebp - 0x34], ebx
cmp dword [ebp - 0x10], edi
ja 0x40396f
mov edi, 1
mov cl, byte [ebp - 0x14]
dec cl
shl edi, cl
test dword [ebp - 0xc], edi
je 0x4039ba
xor dword [ebp - 0xc], edi
shr edi, 1
test dword [ebp - 0xc], edi
jne 0x4039b0
mov ecx, dword [ebp - 0x28]
mov ebx, 1
xor dword [ebp - 0xc], edi
lea edi, [ebp + ecx*4 - 0xd4]
mov cl, dl
shl ebx, cl
dec ebx
and ebx, dword [ebp - 0xc]
cmp ebx, dword [edi]
je 0x4037f1
sub edi, 4
sub edx, dword [ebp - 4]
mov ebx, 1
mov cl, dl
shl ebx, cl
dec ebx
dec dword [ebp - 0x28]
and ebx, dword [ebp - 0xc]
cmp ebx, dword [edi]
jne 0x4039dc
jmp 0x4037f1
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x24], ecx
jge 0x4037df
cmp dword [ebp - 0x18], 0
je 0x403a24
cmp dword [ebp - 0x24], 1
je 0x403a24
mov eax, 1
jmp 0x403a26
mov eax, 3
jmp 0x403a26
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24