Function at 0x403333
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x60f490]
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 0x4035a9
test ebx, ebx
je 0x4035a9
mov esi, dword [ebp + 8]
test esi, esi
je 0x4035a9
test edi, edi
je 0x4035a9
test eax, eax
je 0x4035a9
cmp dword [ebp + 0x14], 1
je 0x4034f4
cmp dword [ebp + 0x14], 0
je 0x4033a2
push 0xfffffffffffffffe
pop eax
jmp 0x4035ac
cmp ecx, ebx
je 0x403435
push 0x10
pop edi
jmp 0x4033eb
push dword [ebp - 0x28]
mov edx, ebx
call fcn.00402de2
pop ecx
test eax, eax
jne 0x4035a2
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 0x4033cb
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 0x4033af
test esi, esi
je 0x403595
push dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.00402de2
pop ecx
test eax, eax
jne 0x4035a2
xor edi, edi
test esi, esi
je 0x40342d
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 0x40341b
mov edx, dword [ebp - 0x18]
jmp 0x403595
cmp esi, 0x10
jb 0x40348d
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.00402de2
pop ecx
test eax, eax
jne 0x4035a2
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 0x403463
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 0x40343f
test esi, esi
je 0x40359e
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.00402de2
pop ecx
test eax, eax
jne 0x4035a2
mov edx, dword [ebp + 8]
test edx, edx
je 0x4034cd
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 0x4034c4
mov edi, dword [ebp - 0x24]
push 0x10
pop esi
cmp edx, esi
jae 0x4034ec
sub esi, edx
lea eax, [ebp - 0x14]
add eax, edx
lea ecx, [ebx + edx]
push esi
push eax
push ecx
call fcn.0055dab0
add esp, 0xc
lea esi, [ebp - 0x14]
jmp 0x40359a
push 0x10
pop edi
jmp 0x403542
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 0x403508
mov ebx, dword [ebp - 0x20]
mov edx, ebx
push dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040285f
pop ecx
test eax, eax
jne 0x4035a2
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 0x4034f9
test esi, esi
je 0x403595
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 0x403559
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp esi, edi
jae 0x403582
sub edx, ebx
lea ecx, [ebx + esi]
sub edi, esi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec edi
jne 0x403579
push dword [ebp - 0x28]
mov edx, ebx
mov ecx, ebx
call fcn.0040285f
pop ecx
test eax, eax
jne 0x4035a2
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 0x4035ac
push 0xfffffffffffffffd
jmp 0x40339c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559612
mov esp, ebp
pop ebp
ret