Function at 0x408390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
movlpd qword [ebp - 0x30], xmm0
push esi
mov esi, 0x23456789
mov dword [ebp - 0x24], esi
push edi
mov edi, 1
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4085a7
cmp eax, edi
jl 0x4085a7
shr eax, 3
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x408446
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebx + 4]
xor edx, ecx
mov eax, dword [ebx]
mov esi, ecx
add ebx, 8
sar esi, 0x1f
xor edi, eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], edi
mov ebx, ecx
xor ebx, eax
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 0x28], eax
xor eax, dword [ebp - 0x14]
xor edi, edx
xor ecx, ecx
xor ecx, esi
add edi, eax
mov eax, dword [ebp - 0x28]
adc ebx, ecx
or edx, dword [ebp - 0x14]
or eax, esi
mov esi, dword [ebp - 0x24]
add edi, edx
mov edx, dword [ebp - 4]
adc ebx, eax
add edi, esi
adc ebx, edx
add edi, dword [ebp - 0x28]
adc ebx, dword [ebp - 0x14]
xor esi, edi
mov edi, dword [ebp - 8]
xor edx, ebx
sub dword [ebp - 0x1c], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], esi
jne 0x4083d7
mov edi, dword [ebp - 4]
jmp 0x408452
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
mov dword [ebp - 0x2c], ecx
je 0x408582
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, 0x11f
mov edi, dword [ebp - 0x34]
movlpd qword [ebp - 0x20], xmm0
cmp ecx, 2
jb 0x4084f0
lea esi, [ecx - 2]
mov dword [ebp + 8], 0
shr esi, 1
inc esi
lea eax, [esi + esi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
nop dword [eax]
movsx eax, byte [ebx]
mov ecx, dword [ebp + 8]
cdq
call fcn.0042c440
add dword [ebp - 0x10], eax
movsx eax, byte [ebx + 1]
adc dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
cdq
add ecx, 8
call fcn.0042c440
add dword [ebp - 0x1c], eax
adc edi, edx
add dword [ebp + 8], 0x10
add ebx, 2
sub esi, 1
jne 0x4084b0
mov ecx, dword [ebp - 0x2c]
mov eax, 0x11f
mov esi, dword [ebp - 0x1c]
jmp 0x4084ff
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x28]
cmp edx, ecx
jge 0x408527
movsx eax, byte [ebx]
lea ecx, [edx*8]
cdq
call fcn.0042c440
mov ecx, eax
mov eax, edx
add ecx, 0x71fb04cb
adc eax, 0x11f
jmp 0x40852c
mov ecx, 0x71fb04cb
add esi, dword [ebp - 0x10]
adc edi, dword [ebp - 0x14]
add ecx, esi
mov dword [ebp - 0x28], ecx
adc eax, edi
xor dword [ebp - 8], ecx
xor dword [ebp - 0xc], eax
xor edx, edx
xor edi, edi
mov dword [ebp + 8], eax
mov ebx, eax
mov esi, eax
xor ebx, ecx
sar esi, 0x1f
xor edi, edx
mov eax, ecx
xor eax, dword [ebp + 8]
xor ecx, ecx
xor ecx, esi
add edi, eax
mov eax, dword [ebp + 0xc]
adc ebx, ecx
or edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
or ecx, esi
mov esi, dword [ebp - 0x24]
add edi, edx
adc ebx, ecx
add edi, esi
adc ebx, dword [ebp - 4]
add edi, dword [ebp - 0x28]
adc ebx, dword [ebp + 8]
xor esi, edi
mov edi, dword [ebp - 4]
xor edi, ebx
push 1
cdq
push 1
push edx
push eax
call fcn.0042c400
xor edx, edi
xor eax, esi
xor edx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
and edx, 0xfff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 8