Function at 0x1059f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x100000
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov eax, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
nop
nop
nop
lea edx, [eax - 0x97fffff]
mov edi, edx
or edi, 0xff8b4529
lea esi, [ecx + edi]
mov ebx, eax
sub ebx, edi
and ebx, 0x934be76
mov edi, esi
and edi, 0x36080009
or edi, ebx
and edx, 0x141886
xor edi, edx
and edx, esi
movzx esi, byte [esp + eax - 0x9971d7e]
xor edi, 0x4934fe76
or edx, edi
xor edx, esi
xor edx, 0xff8b4529
lea esi, [edx + 0x500c6c70]
mov edi, edx
and edi, 1
add edx, edi
add edx, 0x500c6c70
mov edi, esi
xor esi, 1
add edx, esi
and edi, 0xfe
sub edx, edi
mov byte [esp + eax - 0x9971d7e], dl
inc eax
dec ecx
cmp eax, 0x9971d88
jne 0x1059f80
mov eax, dword [esp + 4]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105a058
xor edx, edx
mov esi, dword [0xefa7f8]
nop
cmp dword [esi + edx*8], 0x3e416e49
je 0x105a02a
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, ecx
jb 0x105a010
jmp 0x105a058
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x105a058
lea eax, [esp + 0x34]
lea edx, [esp + 0x18]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x2c]
js 0x105a852
cmp dword [esi + 4], 0
je 0x105a7e0
mov edi, esi
mov eax, dword [esi + 4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 4], 0x111d1f1c
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov ecx, 5
mov edx, 0xa
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [ecx - 0x6b37bd80]
mov esi, edx
and esi, 0xd
and ebx, 0x80c00002
or ebx, esi
mov esi, ecx
and esi, 0xd
xor esi, 0x68361c3d
or ebx, esi
movzx esi, byte [esp + ecx - 1]
xor ebx, esi
mov esi, ebx
and esi, 0x9a
xor esi, 2
and ebx, 0x65
xor ebx, 0x25
sub ebx, esi
inc bl
mov byte [esp + ecx - 1], bl
inc ecx
dec edx
cmp ecx, 0xc
jne 0x105a0d0
mov dword [esp + 0x38], 0x7fff
cmp eax, 2
je 0x105a12c
mov dword [esp + 0x38], 0
mov eax, 0xfffeffff
mov edx, dword [ebp + 0x10]
je 0x105a13b
mov eax, 0x7fffffff
mov ecx, dword [esp + 4]
mov ebx, ecx
sar ebx, 0x1f
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
cmp ecx, eax
mov eax, ebx
sbb eax, dword [esp + 0x38]
jae 0x105a715
mov esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
jmp 0x105a1a6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
adc ebx, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
cmp ecx, eax
mov eax, ebx
sbb eax, dword [esp + 0x38]
jae 0x105a715
mov ecx, esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push ebx
push dword [esp + 0x3c]
mov edi, edx
call fcn.01059990
cmp eax, 0xbfffffff
ja 0x105a715
mov edx, edi
test eax, eax
js 0x105a180
cmp dword [esp + 0x60], 0x1000
mov eax, dword [esp + 0x20]
jne 0x105a184
test byte [esp + 0x5c], 0x66
je 0x105a184
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x34], edx
mov edi, dword [esp + 0x44]
mov eax, 0
sbb eax, edi
jae 0x105a432
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov esi, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
nop
nop
lea edx, [esi - 0x97fffff]
mov ebx, edx
or ebx, 0xff8b4529
lea edi, [ecx + ebx]
mov eax, esi
sub eax, ebx
and eax, 0x934be76
mov ebx, edi
and ebx, 0x36080009
or ebx, eax
and edx, 0x141886
xor ebx, edx
and edx, edi
movzx eax, byte [esp + esi - 0x9971d7e]
xor ebx, 0x4934fe76
or edx, ebx
xor edx, eax
xor edx, 0xff8b4529
lea eax, [edx + 0x500c6c70]
mov edi, edx
and edi, 1
add edx, edi
add edx, 0x500c6c70
mov edi, eax
xor eax, 1
add edx, eax
and edi, 0xfe
sub edx, edi
mov byte [esp + esi - 0x9971d7e], dl
inc esi
dec ecx
cmp esi, 0x9971d88
jne 0x105a230
mov eax, dword [0xefa7f4]
test eax, eax
je 0x105a2fa
mov ecx, dword [esp + 4]
xor edx, edx
mov edi, dword [0xefa7f8]
nop
nop
cmp dword [edi + edx*8], 0x16194952
je 0x105a2d0
inc edx
cmp eax, edx
jne 0x105a2c0
jmp 0x105a2fa
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x105a2fa
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov edi, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
nop
nop
nop
lea edx, [edi - 0x97fffff]
mov esi, edx
or esi, 0xff8b4529
lea ebx, [ecx + esi]
mov eax, edi
sub eax, esi
and eax, 0x934be76
mov esi, ebx
and ebx, 0x36080009
or ebx, eax
and edx, 0x141886
xor ebx, edx
and edx, esi
movzx eax, byte [esp + edi - 0x9971d7e]
xor ebx, 0x4934fe76
or edx, ebx
xor edx, eax
xor edx, 0xff8b4529
lea eax, [edx + 0x500c6c70]
mov esi, edx
and esi, 1
add edx, esi
add edx, 0x500c6c70
mov esi, eax
xor eax, 1
add edx, eax
and esi, 0xfe
sub edx, esi
mov byte [esp + edi - 0x9971d7e], dl
inc edi
dec ecx
cmp edi, 0x9971d88
jne 0x105a330
mov eax, dword [esp + 4]
mov ecx, dword [0xefa7f4]
test ecx, ecx
je 0x105a3ea
xor edx, edx
mov edi, dword [0xefa7f8]
mov ebx, dword [esp + 0x30]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x105a3f0
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
cmp edx, ecx
jb 0x105a3d0
jmp 0x105a41e
mov ebx, dword [esp + 0x30]
jmp 0x105a41e
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x105a41e
push 4
push 0x3000
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
js 0x105a715
mov ecx, esi
lea eax, [esp + 0x70]
push eax
push edi
push edx
push dword [esp + 0x24]
push ebx
push dword [esp + 0x3c]
call fcn.01059d40
test eax, eax
jns 0x105a460
cmp eax, 0x8000000d
je 0x105a460
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
jmp 0x105a184
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x105a180
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
call fcn.0105a8a0
add esp, 0x18
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
cmp eax, ecx
je 0x105a6e6
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], eax
mov ebx, dword [esp]
jmp 0x105a4d3
mov ebx, eax
mov eax, dword [esp + 0x24]
mov dword [ebx + ecx], edi
mov dword [esp + 0x14], ebx
mov dword [ebx + ecx + 4], esi
add edx, 8
add eax, 4
cmp eax, dword [esp + 0x58]
mov ebx, edx
je 0x105a6a8
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, ecx
xor edx, eax
not ecx
and ecx, eax
add ecx, ecx
sub ecx, edx
mov esi, ecx
sar esi, 0x1f
mov eax, dword [esp + 0x28]
and eax, ecx
mov edi, dword [esp + 0x30]
mov edx, edi
and edx, esi
shld edx, eax, 1
add eax, eax
xor esi, edi
mov edi, ecx
xor edi, dword [esp + 0x28]
add edi, eax
adc esi, edx
mov ecx, ebx
mov eax, dword [esp + 0x14]
sub ecx, eax
cmp ebx, dword [esp + 0x1c]
mov edx, ebx
jne 0x105a4b0
mov dword [esp], edx
mov dword [esp + 0x10], ecx
sar ecx, 3
lea edx, [ecx + 1]
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, edx
ja 0x105a537
mov eax, edx
mov ebx, eax
and ebx, 8
mov ecx, eax
or ecx, 8
imul ecx, ebx
xor ebx, 8
mov dword [esp + 0x1c], eax
and eax, 0xfffffff7
imul eax, ebx
add ecx, eax
push ecx
call fcn.0102a430
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0x14]
test edx, edx
je 0x105a690
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], esi
cmp ebx, edx
mov dword [esp + 0x54], ebx
jbe 0x105a62f
cmp dword [esp], ebx
jbe 0x105a62f
cmp dword [esp + 0x10], 0
je 0x105a678
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add eax, edx
dec eax
mov ecx, dword [esp + 0x54]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x105a5c4
neg edi
xor edx, edx
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x105a5b0
add eax, edx
add ecx, edx
add edx, dword [esp + 0x10]
mov ebx, dword [esp]
mov edi, dword [esp + 0x14]
sub edi, ebx
cmp edi, 0xfffffff8
ja 0x105a678
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x105a5e0
jmp 0x105a678
mov esi, dword [esp + 0x10]
mov ecx, esi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, esi
and edx, 0xfffffffc
lea ecx, [ebx + edx]
add edx, eax
mov eax, esi
mov esi, ecx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edi, edx
mov dword [esp], edx
mov edi, esi
mov ebx, dword [esp]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp + 0x10], 1
je 0x105a678
movzx ecx, byte [edx + eax - 1]
mov byte [esi + eax - 1], cl
push dword [esp + 0x14]
call fcn.0102a440
add esp, 4
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
lea eax, [ebx + eax*8]
mov dword [esp + 0x1c], eax
mov edx, ebx
mov ecx, dword [esp + 0x10]
add edx, ecx
jmp 0x105a4b2
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x105a709
cmp eax, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
je 0x105a701
mov dword [esp], ebx
push eax
call fcn.0102a440
add esp, 4
mov dword [esp + 4], 0
jmp 0x105a454
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
jmp 0x105a454
mov dword [esp], ebx
jmp 0x105a454
mov dword [esp], ebx
mov esi, dword [esp + 0x2c]
jmp 0x105a454
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov eax, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
lea edx, [eax - 0x97fffff]
mov edi, edx
or edi, 0xff8b4529
lea esi, [ecx + edi]
mov ebx, eax
sub ebx, edi
and ebx, 0x934be76
mov edi, esi
and edi, 0x36080009
or edi, ebx
and edx, 0x141886
xor edi, edx
and edx, esi
movzx esi, byte [esp + eax - 0x9971d7e]
xor edi, 0x4934fe76
or edx, edi
xor edx, esi
xor edx, 0xff8b4529
lea esi, [edx + 0x500c6c70]
mov edi, edx
and edi, 1
add edx, edi
add edx, 0x500c6c70
mov edi, esi
xor esi, 1
add edx, esi
and edi, 0xfe
sub edx, edi
mov byte [esp + eax - 0x9971d7e], dl
inc eax
dec ecx
cmp eax, 0x9971d88
jne 0x105a730
mov eax, dword [0xefa7f4]
test eax, eax
je 0x105a852
mov ecx, dword [esp + 4]
xor edx, edx
mov esi, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x105a828
inc edx
cmp eax, edx
jne 0x105a7d0
jmp 0x105a852
push 0xbbf966b4
push dword [0xefa7e8]
call fcn.0105f180
add esp, 8
test eax, eax
je 0x105a85f
mov ecx, dword [esi]
test ecx, ecx
je 0x105a06e
mov dword [esp + 4], 0
lea edx, [esp + 4]
push edx
push ecx
call eax
test eax, eax
je 0x105a86b
cmp dword [esp + 4], 0
je 0x105a86b
mov dword [esi + 4], 3
jmp 0x105a06e
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x105a852
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [esi + 4], 1
jmp 0x105a06e
lea eax, [esp + 0x48]
push eax
call fcn.0105f910
add esp, 4
test al, al
je 0x105a06e
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x105a890
mov ecx, eax
mov dword [esi + 4], ecx
jmp 0x105a06e