Function at 0x100b52b
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 - 0x4c], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], esi
lea esi, [ebp + 4]
mov dword [ebp - 0x48], edi
mov ebx, dword [esi + 4]
mov eax, ebx
push ebx
sub esi, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
mov eax, 0xc7b2db92
mov eax, 0xfffffff
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx]
mov edx, dword [0x1004f44]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and ebx, eax
pop ecx
and edi, eax
mov eax, 0x1000000
mov ecx, eax
add ebx, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x100b5f4
and dword [ebp - 4], 0
test edi, edi
jbe 0x100b83d
mov ecx, 0x7fffffff
mov esi, 0xb58415e4
mov eax, dword [ebp - 4]
movzx edx, byte [eax + ebx]
sub edx, 0x4a7bea1c
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x5a17
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, esi
mul edx
add eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edi
jb 0x100b59d
jmp 0x100b83a
lea ecx, [edi + ebx]
mov edx, ebx
sub edx, eax
mov esi, edx
and esi, 0xfffff000
mov dword [ebp - 4], esi
mov esi, edx
add edi, edx
mov edx, edi
sub esi, dword [ebp - 4]
and edx, 0xfffff000
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100003c]
sub edi, edx
mov dword [ebp - 0x34], edi
mov edi, dword [ecx + 0x10000a0]
add edi, eax
mov eax, dword [ecx + 0x10000a4]
mov dword [ebp - 0x38], edx
add eax, edi
mov dword [ebp - 0x30], eax
jmp 0x100b645
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jae 0x100b649
add edi, dword [edi + 4]
cmp edi, eax
jne 0x100b63b
and dword [ebp - 0x28], 0
cmp edi, eax
je 0x100b68a
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jne 0x100b68a
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x10], ecx
je 0x100b68a
lea ecx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx]
and ecx, 0xfff
cmp ecx, esi
jae 0x100b68a
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], ecx
jne 0x100b66b
mov esi, 0xb58415e4
mov ecx, 0x7fffffff
jmp 0x100b69c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmp edi, eax
je 0x100b7e1
cmp dword [edi], edx
ja 0x100b7e1
mov eax, dword [edi + 4]
lea edx, [eax - 8]
shr edx, 1
mov eax, dword [ebp - 0x28]
cmp eax, edx
jne 0x100b6d8
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x30]
je 0x100b7e1
mov eax, dword [ebp - 0x38]
cmp dword [edi], eax
ja 0x100b7e1
and dword [ebp - 0x28], 0
jmp 0x100b6ac
mov edx, dword [ebp - 0x38]
cmp dword [edi], edx
jne 0x100b6f2
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x100b7e1
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [edi + eax*2 + 8], dx
je 0x100b696
movzx eax, word [edi + eax*2 + 8]
mov edx, dword [edi]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
je 0x100b77e
mov eax, dword [ebp - 4]
movzx edx, byte [eax + ebx]
sub edx, 0x4a7bea1c
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x5a17
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, esi
mul edx
add eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x100b726
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 8], eax
movzx edx, byte [ebp + ebx - 8]
sub edx, 0x4a7bea1c
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x5a17
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, esi
mul edx
add eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc ebx
cmp ebx, 4
jb 0x100b788
mov ebx, dword [ebp - 0x10]
add ebx, 4
jmp 0x100b696
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, ebx
mov dword [ebp - 0x1c], eax
je 0x100b83a
movzx edx, byte [edi + ebx]
sub edx, 0x4a7bea1c
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x5a17
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, esi
mul edx
add eax, edx
mov edx, esi
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x24], eax
inc edi
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jb 0x100b7ed
mov esi, dword [ebp - 0xc]
add dword [esi + 8], 0x10
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
and eax, 0xfffffff
sub ecx, dword [eax + 0x1000000]
sbb edx, dword [eax + 0x1000004]
mov eax, ecx
or eax, edx
je 0x100b917
call fcn.0100cd3b
mov edx, 0xfffff000
lea ecx, [esi + 0xc]
and ecx, 0xfffffffc
lea edi, [ecx + 0xfff]
and eax, edx
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], 0x1023648
and edi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x10410fc]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x10410fc], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x100b893
mov ebx, 0xffff
div ebx
inc edx
mov eax, dword [ebp - 0x1c]
cmp ecx, edi
mov dword [ebp - 0x4c], eax
mov eax, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jae 0x100b8e4
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, edi
jb 0x100b8d8
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], 0x1023648
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 8]
and eax, 0xfffffff
mov edx, ecx
mov dword [ebp - 0x48], ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x1041478]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], edx
mov eax, 0xcd15d7d3
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret