Function at 0x1023d05
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
lea ebx, [ebp + 4]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], edi
mov edi, dword [ebx + 4]
sub ebx, 4
mov eax, edi
push edi
mov dword [ebp - 0xc], edi
mov eax, 0x18115c0b
mov eax, 0xfffffff
mov esi, dword [0x1004f44]
mov edx, dword [edi + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
mov ecx, dword [edi + 4]
and ecx, eax
and edx, eax
mov eax, 0x1000000
add ecx, 0x1000000
sub eax, esi
mov dword [ebp - 0x14], eax
jne 0x1023dad
and dword [ebp - 4], 0
test edx, edx
jbe 0x1023fad
mov eax, dword [ebp - 4]
movzx esi, byte [eax + ecx]
add esi, 0x66beda4
add dword [ebp - 0x24], esi
add esi, dword [ebp - 0x20]
mov eax, esi
imul eax, eax, 0x7689
rol eax, 4
ror esi, 4
xor eax, esi
imul eax, eax, 0x66beda4
ror eax, 9
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edx
jb 0x1023d6e
jmp 0x1023fad
lea eax, [ecx + edx]
mov esi, dword [0x100003c]
mov dword [ebp - 0x1c], eax
mov eax, ecx
sub eax, 0x1000000
mov edi, eax
and edi, 0xfffff000
mov dword [ebp - 4], edi
mov edi, eax
sub edi, dword [ebp - 4]
add eax, edx
mov edx, eax
and edx, 0xfffff000
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10000a0]
mov esi, dword [esi + 0x10000a4]
mov dword [ebp - 8], edi
add eax, 0x1000000
add esi, eax
mov dword [ebp - 0x38], edx
jmp 0x1023e04
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x1023e08
add eax, dword [eax + 4]
cmp eax, esi
jne 0x1023dfa
and dword [ebp - 0x28], 0
cmp eax, esi
je 0x1023f6d
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x1023e52
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x10], edx
je 0x1023e52
lea edx, [eax + 8]
mov dword [ebp - 4], edx
jmp 0x1023e33
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, edi
jae 0x1023e52
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp edx, dword [ebp - 0x10]
jne 0x1023e30
cmp eax, esi
je 0x1023f6d
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x1023f6d
mov edx, dword [eax + 4]
lea edi, [edx - 8]
shr edi, 1
mov edx, dword [ebp - 0x28]
cmp edx, edi
jne 0x1023e90
add eax, dword [eax + 4]
cmp eax, esi
je 0x1023f6d
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x1023f6d
and dword [ebp - 0x28], 0
jmp 0x1023e65
mov edi, dword [ebp - 0x38]
cmp dword [eax], edi
jne 0x1023eab
movzx edi, word [eax + edx*2 + 8]
and edi, 0xfff
cmp edi, dword [ebp - 0x34]
jae 0x1023f6d
inc dword [ebp - 0x28]
mov edi, 0xf000
test word [eax + edx*2 + 8], di
je 0x1023e52
mov edi, dword [eax]
movzx edx, word [eax + edx*2 + 8]
and dword [ebp - 4], 0
and edx, 0xfff
lea edi, [edx + edi + 0x1000000]
mov dword [ebp - 8], edi
sub dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
je 0x1023f1d
mov edx, dword [ebp - 4]
movzx edi, byte [edx + ecx]
add edi, 0x66beda4
add dword [ebp - 0x24], edi
add edi, dword [ebp - 0x20]
mov edx, edi
imul edx, edx, 0x7689
rol edx, 4
ror edi, 4
xor edx, edi
imul edx, edx, 0x66beda4
ror edx, 9
add dword [ebp - 0x24], edx
inc dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jb 0x1023edd
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
sub ecx, dword [ebp - 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x18]
add edx, 0x66beda4
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov ecx, edx
imul ecx, ecx, 0x7689
rol ecx, 4
ror edx, 4
xor ecx, edx
imul ecx, ecx, 0x66beda4
ror ecx, 9
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp - 0x20], ecx
jb 0x1023f29
lea ecx, [edi + 4]
jmp 0x1023e52
mov edi, dword [ebp - 0x1c]
xor esi, esi
sub edi, ecx
je 0x1023faa
movzx edx, byte [esi + ecx]
add edx, 0x66beda4
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x7689
rol eax, 4
ror edx, 4
xor eax, edx
imul eax, eax, 0x66beda4
ror eax, 9
add dword [ebp - 0x24], eax
inc esi
cmp esi, edi
mov dword [ebp - 0x20], eax
jb 0x1023f76
mov edi, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
and eax, 0xfffffff
sub edx, dword [eax + 0x1000000]
sbb ecx, dword [eax + 0x1000004]
mov eax, edx
or eax, ecx
je 0x1024082
call fcn.0100cd3b
lea ecx, [ebx + 0xc]
mov edx, 0xfffff000
and eax, edx
and ecx, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0xfff]
and eax, edx
mov edx, 0xffff
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebx + 8], 0x1023648
mov esi, dword [0x10410fc]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x10410fc], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x1024003
mov esi, 0xffff
div esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
inc edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x102404c
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0xc]
jb 0x1024044
mov dword [ebx + 8], 0x1023648
mov ecx, dword [ebp - 0x44]
mov edx, ecx
mov eax, dword [edi]
mov dword [ebp - 0x48], ecx
shr eax, 1
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x104155c]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], edx
mov eax, 0x2eace8b6
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov esp, ebp
pop ebp
popfd
ret