Function at 0x403360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
push ebx
mov ebx, edx
mov edx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
test ecx, ecx
je 0x4035d6
test ebx, ebx
je 0x4035d6
mov esi, dword [ebp + 8]
test esi, esi
je 0x4035d6
test edi, edi
je 0x4035d6
test eax, eax
je 0x4035d6
cmp dword [ebp + 0x14], 1
je 0x403521
cmp dword [ebp + 0x14], 0
je 0x4033cf
push 0xfffffffffffffffe
pop eax
jmp 0x4035d9
cmp ecx, ebx
je 0x403462
push 0x10
pop edi
jmp 0x403418
push dword [ebp - 0x28]
mov edx, ebx
call fcn.00402e0f
pop ecx
test eax, eax
jne 0x4035cf
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
sub edx, ebx
mov esi, edi
mov al, byte [ecx + edx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x4033f8
mov ecx, dword [ebp - 0x18]
mov edx, ecx
mov esi, dword [ebp + 8]
add ecx, edi
sub esi, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp + 8], esi
add ebx, edi
mov dword [ebp - 0x18], ecx
cmp esi, edi
jae 0x4033dc
test esi, esi
je 0x4035c2
push dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.00402e0f
pop ecx
test eax, eax
jne 0x4035cf
xor edi, edi
test esi, esi
je 0x40345a
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
sub edx, eax
sub ebx, eax
lea ecx, [ebp - 0x14]
add ecx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc edi
mov byte [ebx + ecx], al
cmp edi, esi
jb 0x403448
mov edx, dword [ebp - 0x18]
jmp 0x4035c2
cmp esi, 0x10
jb 0x4034ba
sub eax, ebx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x28]
mov esi, ecx
lea edi, [ebp - 0x14]
mov edx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00402e0f
pop ecx
test eax, eax
jne 0x4035cf
mov edx, dword [ebp - 0x20]
push 0x10
pop ecx
mov esi, ecx
mov al, byte [edx + ebx]
xor byte [ebx], al
inc ebx
dec esi
jne 0x403490
mov edi, dword [ebp - 0x24]
lea esi, [ebp - 0x14]
add dword [ebp - 0x18], ecx
sub edx, ecx
mov dword [ebp - 0x20], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
sub esi, ecx
cmp esi, ecx
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x18]
jae 0x40346c
test esi, esi
je 0x4035cb
push dword [ebp - 0x28]
mov esi, ecx
lea edi, [ebp - 0x14]
mov edx, ebx
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00402e0f
pop ecx
test eax, eax
jne 0x4035cf
mov edx, dword [ebp + 8]
test edx, edx
je 0x4034fa
mov esi, dword [ebp - 0x24]
mov ecx, ebx
sub esi, ebx
mov edi, edx
mov al, byte [ecx + esi]
xor byte [ecx], al
inc ecx
dec edi
jne 0x4034f1
mov edi, dword [ebp - 0x24]
push 0x10
pop esi
cmp edx, esi
jae 0x403519
sub esi, edx
lea eax, [ebp - 0x14]
add eax, edx
lea ecx, [ebx + edx]
push esi
push eax
push ecx
call fcn.0055de50
add esp, 0xc
lea esi, [ebp - 0x14]
jmp 0x4035c7
push 0x10
pop edi
jmp 0x40356f
sub edx, ecx
mov dword [ebp - 0x1c], ecx
sub ebx, ecx
mov dword [ebp - 0x2c], ebx
mov ebx, edi
mov esi, dword [ebp - 0x2c]
mov al, byte [edx + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
dec ebx
jne 0x403535
mov ebx, dword [ebp - 0x20]
mov edx, ebx
push dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040288f
pop ecx
test eax, eax
jne 0x4035cf
mov ecx, dword [ebp - 0x18]
mov edx, ebx
sub esi, edi
mov dword [ebp - 0x1c], edx
add ecx, edi
mov dword [ebp + 8], esi
add ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ebx
cmp esi, edi
jae 0x403526
test esi, esi
je 0x4035c2
sub edx, ecx
sub ebx, ecx
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov al, byte [ecx + esi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
inc ecx
dec edx
jne 0x403586
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp esi, edi
jae 0x4035af
sub edx, ebx
lea ecx, [ebx + esi]
sub edi, esi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec edi
jne 0x4035a6
push dword [ebp - 0x28]
mov edx, ebx
mov ecx, ebx
call fcn.0040288f
pop ecx
test eax, eax
jne 0x4035cf
mov edx, ebx
mov edi, dword [ebp - 0x24]
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x4035d9
push 0xfffffffffffffffd
jmp 0x4033c9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005599c5
mov esp, ebp
pop ebp
ret