Function at 0x12358
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
lea edx, [ebp + 4]
mov ecx, 0xfffffff
mov dword [ebp - 0x50], ebx
mov ebx, 0x10000
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], edi
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
sub edx, 4
mov edi, dword [eax]
and esi, ecx
mov dword [ebp - 0x10], eax
and edi, ecx
add esi, ebx
mov eax, ebx
mov ecx, dword [0x177cc]
mov dword [ebp - 8], edx
sub eax, ecx
mov dword [ebp - 0x14], eax
jne 0x12400
and dword [ebp - 4], 0
test edi, edi
jbe 0x12609
mov ebx, 0xc0b2add
mov ecx, 0xf3f4d523
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0xef74
rol ecx, 3
ror eax, 3
xor ecx, eax
imul ecx, ecx, 0xf3f4d523
ror ecx, 0x14
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 4], edi
jb 0x123bc
jmp 0x12606
lea eax, [esi + edi]
mov ecx, esi
sub ecx, ebx
mov ebx, ecx
and ebx, 0xfffff000
mov dword [ebp - 4], ebx
mov ebx, ecx
sub ebx, dword [ebp - 4]
add ecx, edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1003c]
and edi, 0xfffff000
sub ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x100a0]
add ecx, 0x10000
mov eax, dword [eax + 0x100a4]
add eax, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], eax
jmp 0x12454
mov edi, dword [ecx]
cmp edi, dword [ebp - 4]
jae 0x12458
add ecx, dword [ecx + 4]
cmp ecx, eax
jne 0x1244a
and dword [ebp - 0x28], 0
cmp ecx, eax
je 0x12499
mov edi, dword [ebp - 4]
cmp dword [ecx], edi
jne 0x12499
mov edi, dword [ecx + 4]
sub edi, 8
shr edi, 1
mov dword [ebp - 0xc], edi
je 0x12499
lea edi, [ecx + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 4]
movzx edi, word [edi]
and edi, 0xfff
cmp edi, ebx
jae 0x12499
inc dword [ebp - 0x28]
mov edi, dword [ebp - 0xc]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], edi
jne 0x1247a
mov ebx, 0xc0b2add
jmp 0x124a3
mov eax, dword [ebp - 0x30]
cmp ecx, eax
je 0x125c0
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x38]
ja 0x125c0
mov eax, dword [ecx + 4]
lea edi, [eax - 8]
shr edi, 1
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x124e2
add ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 0x30]
je 0x125c0
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x125c0
and dword [ebp - 0x28], 0
jmp 0x124b6
mov edi, dword [ebp - 0x38]
cmp dword [ecx], edi
jne 0x124fc
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x125c0
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
mov edi, 0xf000
test word [ecx + eax*2 + 8], di
je 0x124a0
mov edx, dword [ecx]
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
xor edi, edi
lea eax, [eax + edx + 0x10000]
mov dword [ebp - 4], eax
sub dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
je 0x1256d
mov edx, 0xf3f4d523
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xef74
rol edx, 3
ror eax, 3
xor edx, eax
imul edx, edx, 0xf3f4d523
ror edx, 0x14
mov eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
inc edi
cmp edi, dword [ebp - 4]
jb 0x1252e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
xor esi, esi
mov edx, 0xf3f4d523
movzx eax, byte [ebp + esi - 0x18]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xef74
rol edx, 3
ror eax, 3
xor edx, eax
imul edx, edx, 0xf3f4d523
ror edx, 0x14
add dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
inc esi
cmp esi, 4
jb 0x12577
mov esi, dword [ebp - 0xc]
add esi, 4
mov edx, dword [ebp - 8]
jmp 0x124a0
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x12609
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
mov ecx, 0xf3f4d523
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0xef74
rol ecx, 3
ror eax, 3
xor ecx, eax
imul ecx, ecx, 0xf3f4d523
ror ecx, 0x14
add dword [ebp - 0x24], ecx
inc edi
mov dword [ebp - 0x20], ecx
cmp edi, dword [ebp - 0x1c]
jb 0x125cc
mov edx, dword [ebp - 8]
add dword [edx + 8], 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x10000]
mov ecx, dword [ecx + 0x10004]
xor eax, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x126e3
call fcn.00011286
lea ecx, [edx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
mov edi, eax
mov eax, 0xfffff000
and esi, eax
sub esi, dword [0x1629e]
mov dword [edx + 8], fcn.00016263
mov edx, 0xffff
and edi, eax
xor eax, eax
mov ebx, dword [0x19da0]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x19da0], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x12663
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x48], edi
inc edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x126a9
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x126a1
mov eax, dword [ebp - 8]
mov dword [eax + 8], fcn.00016263
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
mov edx, ecx
mov eax, dword [eax + 0xc]
and eax, 0xfffffff
mov dword [ebp - 0x3c], ecx
shl edx, 0x10
add eax, 0x10000
xor edx, dword [eax]
xor edx, dword [str.8_f]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x50]
mov esp, ebp
pop ebp
popfd
ret