Function at 0x1004b010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
movzx eax, byte [ebx]
cmp eax, 8
ja case.default.0x1004b02d
push esi
jmp dword [eax*4 + 0x1004b66c]
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
cmp dword [eax + 4], 0
mov edx, dword [ecx]
jne 0x1004b054
push 2
push 0x100c70fc
call dword [edx + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x1004b1e1
push 2
push 0x100c7100
call dword [edx + 4]
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x14]
mov eax, dword [edi + 0x260]
cmp eax, ecx
jae 0x1004b088
push 0x20
add eax, eax
lea ecx, [edi + 0x250]
push eax
call fcn.1001b500
mov eax, dword [ebx + 8]
mov dword [ebp - 8], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [ebp + 0xc], esi
sub eax, 1
je 0x1004b141
cmp dword [edi + 0x264], 0x10
lea ecx, [edi + 0x250]
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, ecx
jb 0x1004b0c2
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
push ecx
push eax
mov ecx, edx
call dword [ebp - 0x10]
mov edi, dword [ebp - 4]
push 0x22
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x10]
push ebx
push eax
mov ecx, edi
call fcn.1004b690
mov ecx, dword [edi]
push 3
push 0x100c7104
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
add esi, 0x28
mov eax, dword [ebp + 0x18]
add eax, ecx
push eax
push ecx
push ebx
push 1
push esi
mov ecx, edi
call fcn.1004b010
mov ecx, dword [edi]
push 2
push 0x100c7108
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
lea ecx, [ebp + 0xc]
inc esi
mov dword [ebp - 8], esi
call fcn.10013f70
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [ebp + 0xc]
jb 0x1004b0a5
cmp dword [edi + 0x264], 0x10
lea edx, [edi + 0x250]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
jb 0x1004b160
mov edx, dword [edi + 0x250]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
push eax
push edx
call dword [ebp + 0xc]
mov edi, dword [ebp - 4]
push 0x22
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1004b690
mov ecx, dword [edi]
push 3
push 0x100c7104
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
add esi, 0x28
mov eax, dword [ebp + 0x18]
add eax, ecx
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push 1
push esi
call fcn.1004b010
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [edi + 0x264], 0x10
lea ebx, [edi + 0x250]
mov ecx, dword [edi]
mov eax, dword [ecx]
jb 0x1004b1c9
mov ebx, dword [ebx]
push dword [ebp + 0x18]
push ebx
call dword [eax + 4]
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x7b
call dword [edx]
mov eax, dword [ebx + 8]
mov dword [ebp + 8], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esi]
mov dword [ebp + 0xc], esi
sub eax, 1
je 0x1004b25f
nop
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.1004b690
mov ecx, dword [edi]
push 2
push 0x100c710c
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push esi
call fcn.1004b010
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp + 8]
lea ecx, [ebp + 0xc]
inc esi
mov dword [ebp + 8], esi
call fcn.10013f70
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
mov esi, dword [ebp + 0xc]
jb 0x1004b200
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x10]
push ebx
push eax
mov ecx, edi
call fcn.1004b690
mov ecx, dword [edi]
push 2
push 0x100c710c
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x18]
add esi, 0x28
mov ecx, edi
push dword [ebp + 0x14]
push ebx
push 0
push esi
call fcn.1004b010
mov ecx, dword [edi]
push 0x7d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebx + 8]
mov ecx, dword [edi]
mov eax, dword [edx]
mov esi, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x1004b2ca
push 2
push 0x100c7110
call dword [esi + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x1004b3ef
push 2
push 0x100c7114
call dword [esi + 4]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov edx, dword [edi + 0x260]
cmp edx, eax
jae 0x1004b2ff
push 0x20
lea eax, [edx + edx]
lea ecx, [edi + 0x250]
push eax
call fcn.1001b500
mov eax, dword [ebx + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
je 0x1004b376
lea ecx, [edi + 0x250]
cmp dword [ecx + 0x14], 0x10
mov edx, dword [edi]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
mov eax, ecx
jb 0x1004b328
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0x18]
push ecx
push eax
mov ecx, edx
call dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp - 4]
add eax, ecx
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push 1
push esi
call fcn.1004b010
mov ecx, dword [edi]
push 2
push 0x100c7108
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x250]
add esi, 0x10
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
sub eax, 0x10
cmp esi, eax
jne 0x1004b314
cmp dword [edi + 0x264], 0x10
lea esi, [edi + 0x250]
mov eax, dword [edi]
mov edx, esi
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
jb 0x1004b393
mov edx, dword [esi]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov ecx, dword [edi]
push eax
push edx
call dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
add eax, ecx
push eax
push ecx
push dword [ebp + 0x10]
mov eax, dword [ebx + 8]
mov ecx, edi
push 1
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.1004b010
mov ecx, dword [edi]
push 0xa
mov eax, dword [ecx]
call dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, dword [edi]
mov eax, dword [ecx]
jb 0x1004b3d7
mov esi, dword [esi]
push dword [ebp + 0x18]
push esi
call dword [eax + 4]
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x5b
call dword [esi]
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
je 0x1004b435
push eax
push edx
push dword [ebp + 0x10]
mov ecx, edi
push 0
push esi
call fcn.1004b010
mov ecx, dword [edi]
push 0x2c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 8]
add esi, 0x10
mov edx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
sub eax, 0x10
cmp esi, eax
mov eax, dword [ebp + 0x18]
jne 0x1004b408
push eax
mov eax, dword [ecx + 4]
mov ecx, edi
push edx
push dword [ebp + 0x10]
sub eax, 0x10
push 0
push eax
call fcn.1004b010
mov ecx, dword [edi]
push 0x5d
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebx + 8]
call fcn.1004b690
mov ecx, dword [edi]
push 0x22
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebx + 8], 0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
je 0x1004b4a0
push 4
push str.true
call eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 5
push str.false
call eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov ebx, eax
or eax, ecx
je 0x1004b554
test ecx, ecx
jg 0x1004b4d2
jl 0x1004b4cc
test ebx, ebx
jne 0x1004b4d2
mov byte [ebp + 0xf], 1
jmp 0x1004b4d6
mov byte [ebp + 0xf], 0
lea edx, [edi + 8]
xor esi, esi
mov dword [ebp + 0x18], edx
xor edi, edi
push 0
push 0xa
push ecx
push ebx
call fcn.100786a0
mov esi, eax
mov dword [ebp + 0x14], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebx, ecx
mov ecx, dword [ebp + 0x14]
mov eax, ebx
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0x18]
add al, 0x30
mov byte [edi + edx], al
mov eax, ebx
inc edi
or eax, ecx
jne 0x1004b4e0
mov dword [ebp + 0x18], edi
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
cmp byte [ebp + 0xf], al
je 0x1004b526
mov byte [esi + edi + 8], 0x2d
inc esi
lea eax, [esi + edx]
push eax
push edx
call fcn.1007ab75
mov ecx, dword [edi]
lea edx, [edi + 8]
add esp, 8
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov ebx, eax
or eax, ecx
jne 0x1004b565
mov ecx, dword [edi]
push 0x30
mov eax, dword [ecx]
call dword [eax]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test ecx, ecx
ja 0x1004b575
jb 0x1004b56f
test ebx, ebx
jne 0x1004b575
mov byte [ebp + 0xf], 1
jmp 0x1004b579
mov byte [ebp + 0xf], 0
lea edx, [edi + 8]
xor esi, esi
mov dword [ebp + 0x18], edx
xor edi, edi
push 0
push 0xa
push ecx
push ebx
call fcn.10078bd0
mov esi, eax
mov dword [ebp + 0x14], edx
lea ecx, [esi + esi*4]
add ecx, ecx
sub ebx, ecx
mov ecx, dword [ebp + 0x14]
mov eax, ebx
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0x18]
add al, 0x30
mov byte [edi + edx], al
mov eax, ebx
inc edi
or eax, ecx
jne 0x1004b583
mov dword [ebp + 0x18], edi
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
cmp byte [ebp + 0xf], al
je 0x1004b5c9
mov byte [esi + edi + 8], 0x2d
inc esi
lea eax, [esi + edx]
push eax
push edx
call fcn.1007ab75
mov ecx, dword [edi]
lea edx, [edi + 8]
add esp, 8
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movsd xmm0, qword [ebx + 8]
lea eax, [ebp - 0x14]
push eax
movsd qword [ebp - 0xc], xmm0
movsd qword [ebp - 0x14], xmm0
call fcn.1008b68f
add esp, 4
test ax, ax
jg case.0x1004b02d.0
movsd xmm0, qword [ebp - 0xc]
lea esi, [edi + 8]
sub esp, 8
lea eax, [esi + 0x40]
movsd qword [esp], xmm0
push eax
push esi
call fcn.10041940
mov ecx, dword [edi]
add esp, 0x10
sub eax, esi
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 0xb
push str._discarded_
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
push 4
push str.null
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14