Function at 0x10179fe0
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 0x1017a723
mov eax, dword [ebp + 0xc]
push edi
mov edi, 0xfff0bdc0
mov dword [ebp - 0x10], edi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1017a03f
mov edx, dword [esi + 4]
xor edi, edi
mov dword [ebp - 0x10], edi
test edx, edx
jle 0x1017a03f
mov eax, dword [esi + 8]
add eax, 0xc
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x1017a03c
inc edi
add eax, 0x10
cmp edi, edx
jl 0x1017a030
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 0x1017a0d7
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 0x1017a094
push ecx
push edi
push esi
call fcn.101793c0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x1017a13b
mov ecx, dword [ebx]
cmp byte [ecx + 0x7c], 0
jne 0x1017a0ee
lea eax, [ebx + 8]
push eax
push ecx
call fcn.1017de80
add esp, 8
test eax, eax
je 0x1017a0ee
inc dword [ebx + 0x40]
mov dword [ebx + 4], eax
cmp byte [ebp - 1], 0
je 0x1017a722
cmp byte [esi + 0x1e], 0
jne 0x1017a722
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1017a060
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x1017a372
jmp 0x1017a385
push dword [ebp - 0x24]
push edi
push dword [ebx]
call fcn.101793c0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1017a143
mov eax, dword [ebp - 0x24]
push edi
test eax, eax
je 0x1017a121
push eax
push str.no_such_table
push str._s:__s._s
push ebx
call fcn.10175100
add esp, 0x14
jmp 0x1017a134
push str.no_such_table
push str._s:__s
push ebx
call fcn.10175100
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov byte [ebx + 0x12], 1
test eax, eax
je 0x1017a0b3
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 8]
push eax
push ebx
call fcn.1015d880
add esp, 0x14
test eax, eax
jne 0x1017a0b3
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1017a16e
mov edx, edi
mov dword [ebp - 0x14], edi
jmp 0x1017a17d
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 0x1017a1fe
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 0x1017a1ac
mov dword [ecx + edx], 0xffffffff
cmp dword [esi + 0x10c], 0
je 0x1017a1ec
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1017a1c4
mov eax, dword [eax + 8]
mov eax, dword [ecx + eax]
jmp 0x1017a1c7
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.1016c0c0
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 0x1017a190
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.1018ca30
inc dword [ebx + 0x44]
add esp, 0x14
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1017a23c
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.10158240
add esp, 0x24
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1017a261
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.10158240
add esp, 0x24
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x1017a2a6
test edi, edi
je 0x1017a28d
cmp edi, dword [esi + 0x104]
jb 0x1017a28d
cmp edi, dword [esi + 0x108]
jae 0x1017a28d
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x1017a0c7
push edi
call dword [0x1022a50c]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f8]
add dword [eax], ecx
jmp 0x1017a0c7
test edi, edi
je 0x1017a0c7
cmp edi, dword [esi + 0x104]
jb 0x1017a2d7
cmp edi, dword [esi + 0x108]
jae 0x1017a2d7
mov eax, dword [esi + 0x100]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], edi
jmp 0x1017a0c7
test edi, edi
je 0x1017a0c7
cmp dword [0x1022a4e8], 0
je 0x1017a363
mov eax, dword [0x1022e178]
test eax, eax
je 0x1017a2fb
push eax
call dword [0x1022a530]
add esp, 4
push edi
call dword [0x1022a50c]
mov ecx, dword [0x1022e070]
neg eax
add ecx, eax
mov eax, dword [0x1022e098]
cmp ecx, eax
mov dword [0x1022e070], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x1022e094]
dec ecx
mov dword [0x1022e098], eax
mov eax, dword [0x1022e0bc]
cmp ecx, eax
mov dword [0x1022e094], ecx
cmovg eax, ecx
mov dword [0x1022e0bc], eax
call dword [0x1022a504]
mov eax, dword [0x1022e178]
add esp, 8
test eax, eax
je 0x1017a0c7
push eax
call dword [0x1022a538]
add esp, 4
jmp 0x1017a0c7
push edi
call dword [0x1022a504]
add esp, 4
jmp 0x1017a0c7
cmp byte [ecx], 0
je 0x1017a37d
inc edi
cmp byte [edi], 0
jne 0x1017a377
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 0x1017a3dd
xor eax, eax
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x1017a3ce
xor ebx, ebx
mov esi, edi
movzx eax, byte [ecx]
dec esi
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x101d1f48]
xor edx, ecx
mov ecx, dword [ebp - 0x28]
inc ecx
xor ebx, edx
mov dword [ebp - 0x28], ecx
test esi, esi
jg 0x1017a3a1
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 0x1017a3df
xor edx, edx
push edx
push edi
push ecx
push eax
call fcn.10157540
add esp, 0x10
test eax, eax
je 0x1017a722
mov edi, dword [eax + 8]
mov dword [ebp - 8], edi
test edi, edi
je 0x1017a722
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
jne 0x1017a42b
cmp dword [ebx + 0x1a8], 0
jne 0x1017a42b
cmp byte [ebx + 0x158], 0
je 0x1017a714
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call fcn.1015d880
add esp, 0x14
test eax, eax
je 0x1017a45d
cmp byte [ebp - 1], 0
je 0x1017a722
cmp byte [esi + 0x1e], 0
jne 0x1017a722
jmp 0x1017a714
cmp byte [esi + 0x1e], 0
mov edi, dword [ebp - 0x2c]
jne 0x1017a547
cmp byte [esi + 0xea], 0
je 0x1017a487
mov eax, 0x40
cmp ax, word [esi + 0xe8]
jbe 0x1017a4d1
inc dword [esi + 0xf8]
cmp dword [0x1022a4e8], 0
je 0x1017a588
mov eax, dword [0x1022e178]
test eax, eax
je 0x1017a4a7
push eax
call dword [0x1022a530]
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0x40
call fcn.1015e7c0
mov eax, dword [0x1022e178]
add esp, 8
test eax, eax
je 0x1017a583
push eax
call dword [0x1022a538]
mov ebx, dword [ebp - 0x24]
jmp 0x1017a595
mov ebx, dword [esi + 0x100]
test ebx, ebx
jne 0x1017a4e3
inc dword [esi + 0xfc]
jmp 0x1017a487
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 0x1017a50c
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.1018bb60
add esp, 0x1c
mov edx, eax
cmp byte [esi + 0x1e], 0
mov dword [ebp - 0x2c], edx
je 0x1017a5a6
push edx
push esi
call fcn.1018b3c0
add esp, 8
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x1017a654
test edi, edi
je 0x1017a63b
cmp edi, dword [esi + 0x104]
jb 0x1017a63b
cmp edi, dword [esi + 0x108]
jae 0x1017a63b
movzx ecx, word [esi + 0xe8]
add dword [eax], ecx
jmp 0x1017a711
mov ebx, dword [ebp - 0x24]
jmp 0x1017a598
push 0x40
call dword [0x1022a500]
mov ebx, eax
mov dword [ebp - 0x24], ebx
add esp, 4
test ebx, ebx
jne 0x1017a50c
mov byte [esi + 0x1e], 1
jmp 0x1017a544
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 0x1017a606
push 0xffffffffffffffff
push ecx
push edi
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
push edx
push ebx
call fcn.10158b50
mov edx, dword [ebp - 0x2c]
add esp, 0x20
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1017a622
push 1
push ecx
push edi
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
push edx
push ebx
call fcn.10158b50
add esp, 0x20
mov eax, dword [ebp - 0x2c]
push eax
push esi
mov dword [eax + 0xc], 0
call fcn.1018b3c0
add esp, 8
jmp 0x1017a547
push edi
call dword [0x1022a50c]
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x1f8]
add dword [eax], ecx
jmp 0x1017a711
test edi, edi
je 0x1017a711
cmp edi, dword [esi + 0x104]
jb 0x1017a685
cmp edi, dword [esi + 0x108]
jae 0x1017a685
mov eax, dword [esi + 0x100]
mov dword [edi], eax
dec dword [esi + 0xec]
mov dword [esi + 0x100], edi
jmp 0x1017a711
test edi, edi
je 0x1017a711
cmp dword [0x1022a4e8], 0
je 0x1017a707
mov eax, dword [0x1022e178]
test eax, eax
je 0x1017a6a9
push eax
call dword [0x1022a530]
add esp, 4
push edi
call dword [0x1022a50c]
mov ecx, dword [0x1022e070]
neg eax
add ecx, eax
mov eax, dword [0x1022e098]
cmp ecx, eax
mov dword [0x1022e070], ecx
push edi
cmovg eax, ecx
mov ecx, dword [0x1022e094]
dec ecx
mov dword [0x1022e098], eax
mov eax, dword [0x1022e0bc]
cmp ecx, eax
mov dword [0x1022e094], ecx
cmovg eax, ecx
mov dword [0x1022e0bc], eax
call dword [0x1022a504]
mov eax, dword [0x1022e178]
add esp, 8
test eax, eax
je 0x1017a711
push eax
call dword [0x1022a538]
jmp 0x1017a70e
push edi
call dword [0x1022a504]
add esp, 4
mov edi, dword [ebp - 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 8], edi
test edi, edi
jne 0x1017a401
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret