Function at 0x403240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5fb490]
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 0x4034b6
test ebx, ebx
je 0x4034b6
mov esi, dword [ebp + 8]
test esi, esi
je 0x4034b6
test edi, edi
je 0x4034b6
test eax, eax
je 0x4034b6
cmp dword [ebp + 0x14], 1
je 0x403401
cmp dword [ebp + 0x14], 0
je 0x4032af
push 0xfffffffffffffffe
pop eax
jmp 0x4034b9
cmp ecx, ebx
je 0x403342
push 0x10
pop edi
jmp 0x4032f8
push dword [ebp - 0x28]
mov edx, ebx
call fcn.00402cef
pop ecx
test eax, eax
jne 0x4034af
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 0x4032d8
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 0x4032bc
test esi, esi
je 0x4034a2
push dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.00402cef
pop ecx
test eax, eax
jne 0x4034af
xor edi, edi
test esi, esi
je 0x40333a
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 0x403328
mov edx, dword [ebp - 0x18]
jmp 0x4034a2
cmp esi, 0x10
jb 0x40339a
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.00402cef
pop ecx
test eax, eax
jne 0x4034af
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 0x403370
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 0x40334c
test esi, esi
je 0x4034ab
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.00402cef
pop ecx
test eax, eax
jne 0x4034af
mov edx, dword [ebp + 8]
test edx, edx
je 0x4033da
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 0x4033d1
mov edi, dword [ebp - 0x24]
push 0x10
pop esi
cmp edx, esi
jae 0x4033f9
sub esi, edx
lea eax, [ebp - 0x14]
add eax, edx
lea ecx, [ebx + edx]
push esi
push eax
push ecx
call fcn.0054f420
add esp, 0xc
lea esi, [ebp - 0x14]
jmp 0x4034a7
push 0x10
pop edi
jmp 0x40344f
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 0x403415
mov ebx, dword [ebp - 0x20]
mov edx, ebx
push dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040276f
pop ecx
test eax, eax
jne 0x4034af
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 0x403406
test esi, esi
je 0x4034a2
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 0x403466
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp esi, edi
jae 0x40348f
sub edx, ebx
lea ecx, [ebx + esi]
sub edi, esi
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec edi
jne 0x403486
push dword [ebp - 0x28]
mov edx, ebx
mov ecx, ebx
call fcn.0040276f
pop ecx
test eax, eax
jne 0x4034af
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 0x4034b9
push 0xfffffffffffffffd
jmp 0x4032a9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054b0f5
mov esp, ebp
pop ebp
ret