Function at 0x10d1973
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], edi
lea ebx, [ebp + 4]
mov esi, dword [ebx + 4]
sub ebx, 4
push esi
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], esi
mov eax, 0xa704593e
mov edx, dword [0x13ca1e8]
and dword [ebp - 0x24], 0
mov edi, 0x1000000
and dword [ebp - 0x20], 0
mov eax, 0xfffffff
pop ecx
pop ecx
mov ecx, dword [esi]
mov esi, dword [esi + 0xc]
and esi, eax
and ecx, eax
add esi, edi
mov eax, edi
sub eax, edx
mov dword [ebp - 0x18], eax
jne 0x10d1a21
and dword [ebp - 4], 0
test ecx, ecx
jbe 0x10d1c0e
mov edi, 0x3421c0
mov ebx, 0xffcbde40
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, edi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xffcbde40
ror eax, 0x1e
mov edx, eax
imul edx, edx, 0x975e
xor eax, edx
mov edx, ebx
mul edx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x20], eax
jb 0x10d19e6
jmp 0x10d1c0b
mov edx, esi
sub edx, edi
lea eax, [esi + ecx]
mov edi, edx
and edi, 0xfffff000
add ecx, edx
mov dword [ebp - 4], edi
mov edi, edx
mov edx, ecx
sub edi, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100003c]
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x10000a0]
add ecx, 0x1000000
mov eax, dword [eax + 0x10000a4]
mov dword [ebp - 0x38], edx
add eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x10d1a75
mov ebx, dword [ecx]
cmp ebx, dword [ebp - 4]
jae 0x10d1a79
add ecx, dword [ecx + 4]
cmp ecx, eax
jne 0x10d1a6b
and dword [ebp - 0x28], 0
cmp ecx, eax
je 0x10d1ab2
mov ebx, dword [ebp - 4]
cmp dword [ecx], ebx
jne 0x10d1ab2
mov ebx, dword [ecx + 4]
sub ebx, 8
shr ebx, 1
mov dword [ebp - 0x10], ebx
je 0x10d1ab2
mov ebx, dword [ebp - 0x28]
movzx ebx, word [ecx + ebx*2 + 8]
and ebx, 0xfff
cmp ebx, edi
jae 0x10d1ab2
inc dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x28], ebx
jne 0x10d1a95
mov ebx, 0xffcbde40
mov edi, 0x3421c0
jmp 0x10d1ac4
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
cmp ecx, eax
je 0x10d1bce
cmp dword [ecx], edx
ja 0x10d1bce
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x10d1b00
add ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 0x30]
je 0x10d1bce
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x10d1bce
and dword [ebp - 0x28], 0
jmp 0x10d1ad4
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x10d1b1a
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x10d1bce
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], 0xf000
je 0x10d1abe
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
je 0x10d1b87
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, edi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xffcbde40
ror eax, 0x1e
mov edx, eax
imul edx, edx, 0x975e
xor eax, edx
mov edx, ebx
mul edx
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 - 0xc]
jb 0x10d1b4b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp + esi - 0xc]
sub eax, edi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xffcbde40
ror eax, 0x1e
mov edx, eax
imul edx, edx, 0x975e
xor eax, edx
mov edx, ebx
mul edx
add eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc esi
cmp esi, 4
jb 0x10d1b91
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x10d1abe
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x10d1c0b
movzx eax, byte [ecx + esi]
sub eax, edi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xffcbde40
ror eax, 0x1e
mov edx, eax
imul edx, edx, 0x975e
xor eax, edx
mov edx, ebx
mul edx
add eax, edx
add dword [ebp - 0x24], eax
inc ecx
cmp ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jb 0x10d1bda
mov ebx, dword [ebp - 8]
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
and eax, 0xfffffff
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x1000000]
jne 0x10d1c37
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x1000004]
je 0x10d1ce1
call fcn.012a18fc
mov edx, 0xffff
mov dword [ebx + 8], 0x103a6aa
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
mov edi, eax
mov eax, 0xfffff000
and edi, eax
and esi, eax
xor eax, eax
mov ebx, dword [0x1427a7c]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x1427a7c], ebx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x10d1c61
xor edx, edx
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x44], edi
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10d1ca7
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x10d1c9f
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0x103a6aa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
mov eax, dword [eax + 8]
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
mov dword [ebp - 0x50], ecx
xor edx, dword [eax]
xor edx, dword [0x1427838]
xor edx, ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], edx
mov eax, 0x1ed1cd04
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret