Function at 0x1007d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
mov al, byte [ebx + 0x1ba]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 1], al
test dword [esi + 0xc], 0x4000000
je 0x1007dd53
mov eax, dword [ebp + 0xc]
push edi
mov edi, 0xfff0bdc0
mov dword [ebp - 0x10], edi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1007d66f
mov edx, dword [esi + 4]
xor edi, edi
mov dword [ebp - 0x10], edi
test edx, edx
jle 0x1007d66f
mov eax, dword [esi + 8]
add eax, 0xc
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x1007d66c
inc edi
add eax, 0x10
cmp edi, edx
jl 0x1007d660
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 8]
add edi, edi
mov ecx, dword [eax + edi*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
test eax, eax
je 0x1007d707
nop dword [eax + eax]
cmp byte [ebx + 0x1ba], 0
mov edi, dword [eax + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
je 0x1007d6c4
push ecx
push edi
push esi
call fcn.1007c9f0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x1007d76b
mov ecx, dword [ebx]
cmp byte [ecx + 0x7c], 0
jne 0x1007d71e
lea eax, [ebx + 8]
push eax
push ecx
call fcn.100814b0
add esp, 8
test eax, eax
je 0x1007d71e
inc dword [ebx + 0x40]
mov dword [ebx + 4], eax
cmp byte [ebp - 1], 0
je 0x1007dd52
cmp byte [esi + 0x1e], 0
jne 0x1007dd52
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1007d690
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x1007d9a2
jmp 0x1007d9b5
push dword [ebp - 0x24]
push edi
push dword [ebx]
call fcn.1007c9f0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1007d773
mov eax, dword [ebp - 0x24]
push edi
test eax, eax
je 0x1007d751
push eax
push str.no_such_table
push str._s:__s._s
push ebx
call fcn.10078730
add esp, 0x14
jmp 0x1007d764
push str.no_such_table
push str._s:__s
push ebx
call fcn.10078730
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov byte [ebx + 0x12], 1
test eax, eax
je 0x1007d6e3
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 8]
push eax
push ebx
call fcn.10061010
add esp, 0x14
test eax, eax
jne 0x1007d6e3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1007d79e
mov edx, edi
mov dword [ebp - 0x14], edi
jmp 0x1007d7ad
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ecx + 0x14], eax
jle 0x1007d82e
mov edi, dword [ebp - 0xc]
nop dword [eax]
mov esi, dword [ebp + 0xc]
lea ecx, [eax*4]
mov eax, dword [ecx + edx]
cmp eax, dword [esi + 4]
mov esi, dword [ebp - 0x2c]
jne 0x1007d7dc
mov dword [ecx + edx], 0xffffffff
cmp dword [esi + 0x10c], 0
je 0x1007d81c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007d7f4
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
jmp 0x1007d7f7
mov eax, dword [edi + 4]
push dword [ebp - 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xc]
push dword [eax + ecx*8]
push dword [edi]
push ebx
call fcn.1006f710
mov edx, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ecx + 0x14]
jl 0x1007d7c0
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0
push dword [eax + 0x14]
push dword [ebp - 0x10]
push ebx
call fcn.100900a0
inc dword [ebx + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1007d86c
push dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.1005b9e0
add esp, 0x24
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1007d891
push dword [ebp - 0x20]
push 1
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.1005b9e0
add esp, 0x24
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x1007d8d6
test edi, edi
je 0x1007d8bd
cmp edi, dword [esi + 0x104]
jb 0x1007d8bd
cmp edi, dword [esi + 0x108]
jae 0x1007d8bd
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x1007d6f7
push edi
call dword [0x100ec4fc]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f8]
add dword [eax], ecx
jmp 0x1007d6f7
test edi, edi
je 0x1007d6f7
cmp edi, dword [esi + 0x104]
jb 0x1007d907
cmp edi, dword [esi + 0x108]
jae 0x1007d907
mov eax, dword [esi + 0x100]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], edi
jmp 0x1007d6f7
test edi, edi
je 0x1007d6f7
cmp dword [0x100ec4d8], 0
je 0x1007d993
mov eax, dword [0x100efb40]
test eax, eax
je 0x1007d92b
push eax
call dword [0x100ec520]
add esp, 4
push edi
call dword [0x100ec4fc]
mov ecx, dword [0x100efa38]
neg eax
add ecx, eax
mov eax, dword [0x100efa60]
cmp ecx, eax
mov dword [0x100efa38], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x100efa5c]
dec ecx
mov dword [0x100efa60], eax
mov eax, dword [0x100efa84]
cmp ecx, eax
mov dword [0x100efa5c], ecx
cmovg eax, ecx
mov dword [0x100efa84], eax
call dword [0x100ec4f4]
mov eax, dword [0x100efb40]
add esp, 8
test eax, eax
je 0x1007d6f7
push eax
call dword [0x100ec528]
add esp, 4
jmp 0x1007d6f7
push edi
call dword [0x100ec4f4]
add esp, 4
jmp 0x1007d6f7
cmp byte [ecx], 0
je 0x1007d9ad
inc edi
cmp byte [edi], 0
jne 0x1007d9a7
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [eax + 0x44]
add eax, 0x38
mov dword [ebp - 0x24], eax
cmp dword [eax + 0xc], 0
je 0x1007da0d
xor eax, eax
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x1007d9fe
xor ebx, ebx
mov esi, edi
movzx eax, byte [ecx]
dec esi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x100bc608]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
inc ecx
xor ebx, edx
mov dword [ebp - 0x28], ecx
test esi, esi
jg 0x1007d9d1
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
xor edx, edx
div dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x1007da0f
xor edx, edx
push edx
push edi
push ecx
push eax
call fcn.1005ace0
add esp, 0x10
test eax, eax
je 0x1007dd52
mov edi, dword [eax + 8]
mov dword [ebp - 8], edi
test edi, edi
je 0x1007dd52
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
jne 0x1007da5b
cmp dword [ebx + 0x1a8], 0
jne 0x1007da5b
cmp byte [ebx + 0x158], 0
je 0x1007dd44
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call fcn.10061010
add esp, 0x14
test eax, eax
je 0x1007da8d
cmp byte [ebp - 1], 0
je 0x1007dd52
cmp byte [esi + 0x1e], 0
jne 0x1007dd52
jmp 0x1007dd44
cmp byte [esi + 0x1e], 0
mov edi, dword [ebp - 0x2c]
jne 0x1007db77
cmp byte [esi + 0xea], 0
je 0x1007dab7
mov eax, 0x40
cmp ax, word [esi + 0xe8]
jbe 0x1007db01
inc dword [esi + 0xf8]
cmp dword [0x100ec4d8], 0
je 0x1007dbb8
mov eax, dword [0x100efb40]
test eax, eax
je 0x1007dad7
push eax
call dword [0x100ec520]
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0x40
call fcn.10061f30
mov eax, dword [0x100efb40]
add esp, 8
test eax, eax
je 0x1007dbb3
push eax
call dword [0x100ec528]
mov ebx, dword [ebp - 0x24]
jmp 0x1007dbc5
mov ebx, dword [esi + 0x100]
test ebx, ebx
jne 0x1007db13
inc dword [esi + 0xfc]
jmp 0x1007dab7
mov eax, dword [ebx]
mov dword [esi + 0x100], eax
mov eax, dword [esi + 0xec]
inc eax
mov dword [esi + 0xec], eax
inc dword [esi + 0xf4]
cmp eax, dword [esi + 0xf0]
jle 0x1007db3c
mov dword [esi + 0xf0], eax
push 0x40
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, 1
mov word [ebx + 2], ax
movsx eax, word [ebx]
push eax
push 1
push ebx
push esi
call fcn.1008f1d0
add esp, 0x1c
mov edx, eax
cmp byte [esi + 0x1e], 0
mov dword [ebp - 0x2c], edx
je 0x1007dbd6
push edx
push esi
call fcn.1008ea30
add esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x1007dc84
test edi, edi
je 0x1007dc6b
cmp edi, dword [esi + 0x104]
jb 0x1007dc6b
cmp edi, dword [esi + 0x108]
jae 0x1007dc6b
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x1007dd41
mov ebx, dword [ebp - 0x24]
jmp 0x1007dbc8
push 0x40
call dword [0x100ec4f0]
mov ebx, eax
mov dword [ebp - 0x24], ebx
add esp, 4
test ebx, ebx
jne 0x1007db3c
mov byte [esi + 0x1e], 1
jmp 0x1007db74
movsx ecx, word [edx]
mov ebx, dword [ebp + 8]
lea eax, [ecx*8]
sub eax, ecx
mov dword [edx + eax*8 - 0x2c], 0
mov dword [edx + eax*8 - 0x30], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx + 0x14], ecx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edx + 0xc], eax
inc word [ecx + 0x20]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x20], eax
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x1007dc36
push 0xffffffffffffffff
push ecx
push edi
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
push edx
push ebx
call fcn.1005c2f0
mov edx, dword [ebp - 0x2c]
add esp, 0x20
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007dc52
push 1
push ecx
push edi
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
push edx
push ebx
call fcn.1005c2f0
add esp, 0x20
mov eax, dword [ebp - 0x2c]
push eax
push esi
mov dword [eax + 0xc], 0
call fcn.1008ea30
add esp, 8
jmp 0x1007db77
push edi
call dword [0x100ec4fc]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f8]
add dword [eax], ecx
jmp 0x1007dd41
test edi, edi
je 0x1007dd41
cmp edi, dword [esi + 0x104]
jb 0x1007dcb5
cmp edi, dword [esi + 0x108]
jae 0x1007dcb5
mov eax, dword [esi + 0x100]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], edi
jmp 0x1007dd41
test edi, edi
je 0x1007dd41
cmp dword [0x100ec4d8], 0
je 0x1007dd37
mov eax, dword [0x100efb40]
test eax, eax
je 0x1007dcd9
push eax
call dword [0x100ec520]
add esp, 4
push edi
call dword [0x100ec4fc]
mov ecx, dword [0x100efa38]
neg eax
add ecx, eax
mov eax, dword [0x100efa60]
cmp ecx, eax
mov dword [0x100efa38], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x100efa5c]
dec ecx
mov dword [0x100efa60], eax
mov eax, dword [0x100efa84]
cmp ecx, eax
mov dword [0x100efa5c], ecx
cmovg eax, ecx
mov dword [0x100efa84], eax
call dword [0x100ec4f4]
mov eax, dword [0x100efb40]
add esp, 8
test eax, eax
je 0x1007dd41
push eax
call dword [0x100ec528]
jmp 0x1007dd3e
push edi
call dword [0x100ec4f4]
add esp, 4
mov edi, dword [ebp - 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 8], edi
test edi, edi
jne 0x1007da31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret