Function at 0x403300
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 0x403576
test ebx, ebx
je 0x403576
mov esi, dword [ebp + 8]
test esi, esi
je 0x403576
test edi, edi
je 0x403576
test eax, eax
je 0x403576
cmp dword [ebp + 0x14], 1
je 0x4034c1
cmp dword [ebp + 0x14], 0
je 0x40336f
push 0xfffffffffffffffe
pop eax
jmp 0x403579
cmp ecx, ebx
je 0x403402
push 0x10
pop edi
jmp 0x4033b8
push dword [ebp - 0x28]
mov edx, ebx
call fcn.00402daf
pop ecx
test eax, eax
jne 0x40356f
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 0x403398
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 0x40337c
test esi, esi
je 0x403562
push dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.00402daf
pop ecx
test eax, eax
jne 0x40356f
xor edi, edi
test esi, esi
je 0x4033fa
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 0x4033e8
mov edx, dword [ebp - 0x18]
jmp 0x403562
cmp esi, 0x10
jb 0x40345a
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.00402daf
pop ecx
test eax, eax
jne 0x40356f
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 0x403430
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 0x40340c
test esi, esi
je 0x40356b
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.00402daf
pop ecx
test eax, eax
jne 0x40356f
mov edx, dword [ebp + 8]
test edx, edx
je 0x40349a
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 0x403491
mov edi, dword [ebp - 0x24]
push 0x10
pop esi
cmp edx, esi
jae 0x4034b9
sub esi, edx
lea eax, [ebp - 0x14]
add eax, edx
lea ecx, [ebx + edx]
push esi
push eax
push ecx
call fcn.0055dcc0
add esp, 0xc
lea esi, [ebp - 0x14]
jmp 0x403567
push 0x10
pop edi
jmp 0x40350f
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 0x4034d5
mov ebx, dword [ebp - 0x20]
mov edx, ebx
push dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040282f
pop ecx
test eax, eax
jne 0x40356f
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 0x4034c6
test esi, esi
je 0x403562
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 0x403526
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp esi, edi
jae 0x40354f
sub edx, ebx
lea ecx, [ebx + esi]
sub edi, esi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec edi
jne 0x403546
push dword [ebp - 0x28]
mov edx, ebx
mov ecx, ebx
call fcn.0040282f
pop ecx
test eax, eax
jne 0x40356f
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 0x403579
push 0xfffffffffffffffd
jmp 0x403369
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005597ea
mov esp, ebp
pop ebp
ret