Function at 0x10045e18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x14], eax
add eax, 0x930c
cmp dword [eax], 0
jne 0x10045e40
push edi
mov dword [eax], 1
call fcn.10045bfc
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x14]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x18]
add ecx, eax
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 1]
shl edx, 4
xor edx, ecx
cmp eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
jge 0x100463af
jmp 0x10045e74
mov edx, dword [ebp - 0x10]
cmp esi, dword [edi + 0x28]
jae 0x100463af
mov ecx, dword [edi + 0x1c]
sub ecx, eax
cmp ecx, 3
jle 0x10045f06
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + eax + 2]
shl edx, 4
xor ecx, edx
mov dword [ebp - 0x10], ecx
and ecx, 0x7ff
lea ecx, [edi + ecx*2 + 0x830a]
movzx edx, word [ecx]
mov word [ecx], ax
mov ecx, eax
and ecx, 0x1fff
test edx, edx
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x4106]
mov edi, dword [ebp - 0x18]
mov word [ecx + edi*2], dx
je 0x10045f4d
push dword [ebp + 0x18]
lea edi, [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.10045ca8
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
lea edi, [ecx + edx]
cmp edi, eax
mov dword [ebp - 0xc], ecx
jle 0x10045efb
sub eax, edx
mov dword [ebp - 0xc], eax
mov ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, 3
jge 0x10045f56
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [eax + ecx]
mov ecx, dword [ecx*4 + 0x68cd1630]
mov edx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
shr edx, 5
shl edx, cl
mov ecx, dword [ebp - 0x18]
and ecx, 0x1f
add dword [ebp - 4], ecx
or ebx, edx
cmp dword [ebp - 4], 0x10
jl 0x10045f44
sub dword [ebp - 4], 0x10
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
inc eax
mov dword [ebp - 8], eax
jmp 0x100463a6
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
jmp 0x10045efe
inc eax
cmp ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jg 0x10046243
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + eax + 2]
mov edx, dword [ebp - 0x10]
shl edx, 4
xor ecx, edx
mov dword [ebp - 0x10], ecx
and ecx, 0x7ff
lea ecx, [edi + ecx*2 + 0x830a]
movzx edx, word [ecx]
mov word [ecx], ax
mov ecx, eax
and ecx, 0x1fff
add edi, 0x4106
test edx, edx
mov word [edi + ecx*2], dx
je 0x1004604b
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
jl 0x10045fb1
sar ecx, 2
push dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push edi
mov edi, dword [ebp - 0x14]
mov ecx, eax
call fcn.10045ca8
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], edx
add edx, ecx
cmp edx, eax
jle 0x10045fdd
sub eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], ecx
jle 0x1004613e
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [eax + ecx - 1]
mov edx, dword [ecx*4 + 0x68cd1630]
mov ecx, dword [ebp - 4]
mov edi, edx
shr edi, 5
shl edi, cl
and edx, 0x1f
add dword [ebp - 4], edx
push 0x10
pop edx
or ebx, edi
cmp dword [ebp - 4], edx
jl 0x10046026
sub dword [ebp - 4], edx
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx*4 + 0x68cd1a28]
mov ecx, edi
and ecx, 0x1f
mov dword [ebp - 0xc], ecx
cmp ecx, edx
mov ecx, dword [ebp - 4]
jg 0x10046051
shr edi, 5
shl edi, cl
or ebx, edi
add ecx, dword [ebp - 0xc]
jmp 0x10046090
and dword [ebp - 0x18], 0
jmp 0x10045fe0
mov edx, edi
shr edx, 5
and edx, 0xffff
shl edx, cl
push 0x10
or ebx, edx
pop edx
add dword [ebp - 4], edx
cmp dword [ebp - 4], edx
jl 0x1004607c
sub dword [ebp - 4], edx
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 4]
shr edi, 0x15
shl edi, cl
mov ecx, dword [ebp - 0xc]
or ebx, edi
mov edi, dword [ebp - 4]
lea ecx, [edi + ecx - 0x10]
cmp ecx, edx
mov dword [ebp - 4], ecx
jl 0x100460a8
sub dword [ebp - 4], edx
mov ecx, ebx
mov byte [esi], bl
shr ecx, 8
inc esi
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0x20]
mov edi, 0x100
cmp ecx, edi
jb 0x100460b9
shr ecx, 7
add ecx, edi
movzx ecx, byte [ecx + 0x68cd8180]
mov ecx, dword [ecx*4 + 0x68cd1e38]
mov edi, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
shr edi, 8
shl edi, cl
mov ecx, dword [ebp - 0xc]
and ecx, 0xf
add dword [ebp - 4], ecx
or ebx, edi
cmp dword [ebp - 4], edx
jl 0x100460f5
sub dword [ebp - 4], edx
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0xc]
shr ecx, 4
and ecx, 0xf
mov dword [ebp - 0xc], ecx
je 0x1004612f
mov edi, dword [ecx*4 + 0x68cd1230]
and edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
shl edi, cl
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
or ebx, edi
cmp ecx, edx
jl 0x1004612f
sub dword [ebp - 4], edx
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jmp 0x1004633c
mov edi, dword [ecx*4 + 0x68cd1a28]
mov ecx, dword [ebp - 4]
mov edx, edi
and edx, 0x1f
cmp edx, 0x10
mov dword [ebp - 0x18], edx
jg 0x10046165
add dword [ebp - 4], edx
shr edi, 5
shl edi, cl
or ebx, edi
cmp dword [ebp - 4], 0x10
jmp 0x100461a4
mov edx, edi
shr edx, 5
and edx, 0xffff
shl edx, cl
mov ecx, dword [ebp - 4]
add ecx, 0x10
or ebx, edx
cmp ecx, 0x10
jl 0x10046190
mov byte [esi], bl
mov edx, ebx
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
sub ecx, 0x10
shr ebx, 0x10
mov edx, dword [ebp - 0x18]
shr edi, 0x15
shl edi, cl
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 4], ecx
or ebx, edi
cmp ecx, 0x10
jl 0x100461b8
sub dword [ebp - 4], 0x10
mov ecx, ebx
mov byte [esi], bl
shr ecx, 8
inc esi
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0x1c]
mov edx, 0x100
cmp ecx, edx
jb 0x100461c9
shr ecx, 7
add ecx, edx
movzx ecx, byte [ecx + 0x68cd8180]
mov edi, dword [ecx*4 + 0x68cd1e38]
mov ecx, dword [ebp - 4]
mov edx, edi
shr edx, 8
shl edx, cl
mov ecx, edi
and ecx, 0xf
add dword [ebp - 4], ecx
or ebx, edx
cmp dword [ebp - 4], 0x10
jl 0x10046203
sub dword [ebp - 4], 0x10
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
shr edi, 4
and edi, 0xf
je 0x10046237
mov edx, dword [edi*4 + 0x68cd1230]
and edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], edi
shl edx, cl
or ebx, edx
cmp dword [ebp - 4], 0x10
jl 0x10046237
sub dword [ebp - 4], 0x10
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
dec dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], eax
jmp 0x1004633c
mov edi, dword [ecx*4 + 0x68cd1a28]
mov ecx, dword [ebp - 4]
mov edx, edi
and edx, 0x1f
cmp edx, 0x10
mov dword [ebp - 0x18], edx
jg 0x1004626a
add dword [ebp - 4], edx
shr edi, 5
shl edi, cl
or ebx, edi
cmp dword [ebp - 4], 0x10
jmp 0x100462a9
mov edx, edi
shr edx, 5
and edx, 0xffff
shl edx, cl
mov ecx, dword [ebp - 4]
add ecx, 0x10
or ebx, edx
cmp ecx, 0x10
jl 0x10046295
mov byte [esi], bl
mov edx, ebx
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
sub ecx, 0x10
shr ebx, 0x10
mov edx, dword [ebp - 0x18]
shr edi, 0x15
shl edi, cl
lea ecx, [ecx + edx - 0x10]
mov dword [ebp - 4], ecx
or ebx, edi
cmp ecx, 0x10
jl 0x100462bd
sub dword [ebp - 4], 0x10
mov ecx, ebx
mov byte [esi], bl
shr ecx, 8
inc esi
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp - 0x1c]
mov edx, 0x100
cmp ecx, edx
jb 0x100462ce
shr ecx, 7
add ecx, edx
movzx ecx, byte [ecx + 0x68cd8180]
mov edi, dword [ecx*4 + 0x68cd1e38]
mov ecx, dword [ebp - 4]
mov edx, edi
shr edx, 8
shl edx, cl
mov ecx, edi
and ecx, 0xf
add dword [ebp - 4], ecx
or ebx, edx
cmp dword [ebp - 4], 0x10
jl 0x10046308
sub dword [ebp - 4], 0x10
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
shr edi, 4
and edi, 0xf
je 0x1004633c
mov edx, dword [edi*4 + 0x68cd1230]
and edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], edi
shl edx, cl
or ebx, edx
cmp dword [ebp - 4], 0x10
jl 0x1004633c
sub dword [ebp - 4], 0x10
mov byte [esi], bl
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
shr ebx, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
sub edx, eax
cmp edx, ecx
jg 0x10046354
lea eax, [eax + ecx - 1]
mov dword [ebp - 8], eax
jmp 0x100463a3
dec ecx
test ecx, ecx
jle 0x100463a3
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
movzx ecx, byte [edx + eax + 2]
mov edi, dword [ebp - 0x10]
shl edi, 4
xor ecx, edi
mov dword [ebp - 0x10], ecx
and ecx, 0x7ff
lea ecx, [edx + ecx*2 + 0x830a]
movzx edi, word [ecx]
mov word [ecx], ax
mov ecx, eax
and ecx, 0x1fff
mov dword [ebp - 0xc], ecx
lea ecx, [edx + 0x4106]
mov edx, dword [ebp - 0xc]
inc eax
dec dword [ebp - 0x18]
mov word [ecx + edx*2], di
jne 0x1004635c
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
cmp eax, dword [edi + 0x1c]
jl 0x10045e71
mov ecx, dword [ebp - 4]
mov dword [edi + 0x30], ecx
mov ecx, eax
sub ecx, dword [edi + 0x1c]
mov dword [edi + 0x18], eax
neg ecx
sbb ecx, ecx
and ecx, 2
cmp eax, 0x4000
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x20], esi
mov dword [edi], ecx
jne 0x100463da
mov ebx, edi
call fcn.10045c3e
pop edi
pop esi
pop ebx
leave
ret 0x14