Function at 0x1009c2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x101d2014]
mov ebx, edx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [ecx]
test byte [edx + 0x21], 0x40
jne 0x1009c31f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [ecx + 0x96]
mov esi, dword [ebx + 0x48]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x2d], al
mov eax, dword [edx + 0x10]
test esi, esi
je 0x1009c7cc
xor edi, edi
lea ecx, [eax + 0xc]
dec edi
inc edi
cmp dword [ecx], esi
lea ecx, [ecx + 0x10]
jne 0x1009c33f
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], edx
test ecx, ecx
jne 0x1009c59c
mov edi, dword [esi + 0x44]
mov ecx, dword [ebx]
test edi, edi
mov dword [ebp - 0x20], ecx
jne 0x1009c55a
lea eax, [esi + 0x40]
add esi, 0x3c
mov esi, dword [esi]
mov edi, 0x101d4a18
test esi, esi
je 0x1009c3bb
mov eax, dword [eax]
dec esi
xor ebx, ebx
mov edi, dword [eax + 0xc]
movzx edx, byte [edi + ebx]
movzx ecx, byte [ecx + ebx]
cmp dl, cl
jne 0x1009c39b
test dl, dl
je 0x1009c54d
mov ecx, dword [ebp - 0x20]
inc ebx
jmp 0x1009c381
mov dl, byte [edx + 0x10194380]
cmp dl, byte [ecx + 0x10194380]
je 0x1009c395
mov ecx, dword [ebp - 0x20]
test esi, esi
jne 0x1009c379
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov edi, 0x101d4a18
mov esi, dword [edi + 8]
mov edi, dword [ebp - 0x24]
test esi, esi
je 0x1009c30d
cmp dword [ebp + 0x10], 0
mov eax, 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jne 0x1009c9b3
cmp byte [esi + 0x18], 0
jne 0x1009c3f4
test byte [edx + 0x22], 8
jne 0x1009c3f4
cmp dword [edi + 0x74], 0
je 0x1009c4e6
lea eax, [ebp - 0x18]
mov ecx, edi
mov edx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.1009e140
add esp, 0xc
test eax, eax
jne 0x1009c9d8
mov ecx, dword [edi]
cmp word [ecx + 0x114], 0x4f
jbe 0x1009c4f2
mov edx, dword [ecx + 0x138]
test edx, edx
je 0x1009c51b
mov eax, dword [edx]
mov dword [ecx + 0x138], eax
inc dword [ecx + 0x120]
test edx, edx
je 0x1009c4c5
xor eax, eax
lea edi, [edx + 8]
mov ecx, 0x12
inc eax
mov dword [edx + 4], eax
mov dword [edx], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0
mov dword [edx + 0x34], 0xffffffff
mov edi, edx
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], eax
mov eax, dword [esi]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov ecx, dword [ecx]
mov dword [edx + 0x10], ecx
inc dword [eax + 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x28]
lea ecx, [eax + 1]
mov dword [edx + 0x28], ecx
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1009c4aa
mov ecx, dword [ebp - 0x24]
mov edx, edi
push 0xffffffffffffffff
push eax
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
push ebx
call fcn.1009ef90
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x1009c9f4
mov ecx, dword [ebp - 0x28]
mov edx, edi
mov dword [edi + 0x10], 0
call fcn.1004c130
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x1009ca49
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1009c30d
jmp 0x1009c3c9
cmp byte [edi + 0x14], 0
jne 0x1009c3f4
jmp 0x1009c4d6
cmp dword [ecx + 0x110], 0
je 0x1009c7c1
cmp byte [ecx + 0x51], 0
jne 0x1009c4c5
mov edx, 0x50
push 0
call fcn.1001a100
add esp, 4
mov edx, eax
jmp 0x1009c43d
mov edx, dword [ecx + 0x134]
test edx, edx
jne 0x1009c79a
mov edx, dword [ecx + 0x130]
test edx, edx
jne 0x1009c7a7
mov edx, dword [ecx + 0x12c]
test edx, edx
jne 0x1009c7b4
inc dword [ecx + 0x128]
jmp 0x1009c505
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov edi, eax
jmp 0x1009c3bb
mov bl, byte [ecx]
test bl, bl
je 0x1009c793
lea edx, [ecx + 1]
xor eax, eax
movzx ecx, bl
mov bl, byte [edx]
inc edx
movzx ecx, byte [ecx + 0x10194380]
add ecx, eax
imul eax, ecx, 0x9e3779b1
test bl, bl
jne 0x1009c569
xor edx, edx
div dword [esi + 0x38]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
lea eax, [edi + edx*8 + 4]
lea esi, [edi + edx*8]
mov edx, dword [ebp - 0x28]
jmp 0x1009c36e
mov edx, ecx
mov ecx, edi
shl ecx, 4
mov eax, dword [eax + ecx]
mov ecx, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x48], eax
mov eax, 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
je 0x1009c628
mov ecx, dword [ebx]
test ecx, ecx
je 0x1009c980
cmp dword [ebp - 0x2c], 0
je 0x1009c608
xor edx, edx
mov eax, dword [ebp - 0x2c]
movzx ebx, byte [ecx + edx]
movzx eax, byte [eax + edx]
cmp bl, al
jne 0x1009c5f7
test bl, bl
mov ebx, dword [ebp - 0x34]
je 0x1009c628
inc edx
jmp 0x1009c5de
mov bl, byte [ebx + 0x10194380]
cmp bl, byte [eax + 0x10194380]
mov ebx, dword [ebp - 0x34]
je 0x1009c5f4
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x1009c8e8
lea edx, [esi + 0x24]
mov esi, dword [edx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + esi*4], 0
js 0x1009c98f
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x96], 0
jne 0x1009c8f2
xor edx, edx
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
call fcn.1000eee0
add esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x1009c7d6
mov ecx, dword [ebp - 0x24]
mov edx, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.1009e140
add esp, 0xc
test eax, eax
jne 0x1009c7d6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
test edx, edx
jne 0x1009c686
mov eax, dword [ecx + 0x24]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
cmp dword [ecx + 0x14], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], edx
jle 0x1009c6ce
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov dword [ebp - 0x38], 0
add eax, 0x28
mov dword [ebp - 0x40], eax
movsx eax, word [ebx + 0x28]
cmp dword [edx + esi*4], eax
je 0x1009c908
cmp dword [ecx + 0x148], 0
jne 0x1009c914
mov eax, dword [ebp - 0x20]
inc esi
cmp esi, dword [eax + 0x14]
jl 0x1009c6ab
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edx, edi
push dword [esi]
push 0
push dword [esi + 0x1c]
call fcn.10070dc0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
inc dword [ecx + 0x28]
cmp dword [ebp + 8], 0
jne 0x1009c746
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1009c729
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov eax, dword [eax + 0x108]
test eax, eax
jne 0x1009c76a
mov ecx, dword [ebp - 0x24]
mov edx, edi
push dword [ebp - 0x38]
push 1
push esi
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.1009e530
add esp, 0x1c
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x1009c95d
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x1009c78b
jmp 0x1009c5b2
mov ecx, dword [ebp - 0x24]
mov edx, edi
push dword [ebp - 0x38]
push 0xffffffffffffffff
push dword [ebp + 8]
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push esi
call fcn.1009e530
mov ecx, dword [ebp - 0x24]
add esp, 0x1c
jmp 0x1009c6f1
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx + 0x1c]
je 0x1009ca6f
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx + 0x20]
jne 0x1009c70a
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x1a], 8
jne 0x1009c70a
jmp 0x1009c729
mov esi, dword [ebx + 0x48]
jmp 0x1009c358
xor eax, eax
jmp 0x1009c582
mov eax, dword [edx]
mov dword [ecx + 0x134], eax
jmp 0x1009c437
mov eax, dword [edx]
mov dword [ecx + 0x130], eax
jmp 0x1009c437
mov eax, dword [edx]
mov dword [ecx + 0x12c], eax
jmp 0x1009c437
inc dword [ecx + 0x124]
jmp 0x1009c505
mov edi, 0xffff8000
jmp 0x1009c347
cmp byte [ebp - 0x2d], 0
je 0x1009c30d
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x51]
test al, al
jne 0x1009c96a
cmp dword [ebp - 0x2c], 0
jne 0x1009c96a
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x38], eax
je 0x1009ca56
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jle 0x1009c8c9
mov ecx, dword [ebp - 0x38]
xor ebx, ebx
mov ecx, dword [ecx + 0x6c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + ebx*8 + 0x24]
test ax, ax
js 0x1009c89e
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ecx + 0x24]
and ecx, 0x20
je 0x1009c89e
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 4]
movzx esi, word [ecx + 0x10]
and esi, 0x20
test ax, ax
jle 0x1009c882
movsx edx, ax
mov eax, 1
test edx, edx
cmovle edx, eax
add ecx, 0x24
xor eax, eax
mov dword [ebp - 0x40], edx
movzx esi, si
shr esi, 5
xor esi, 1
add eax, esi
movzx esi, word [ecx]
add ecx, 0x14
and esi, 0x20
dec edx
jne 0x1009c869
jmp 0x1009c88b
mov dword [ebp - 0x40], 0
xor eax, eax
test si, si
je 0x1009c89e
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov eax, dword [ebp - 0x2c]
add cx, word [eax + 0x2c]
mov eax, ecx
cwde
mov ecx, dword [ebp - 0x38]
mov edx, 0x32
add eax, dword [ebp - 0x48]
push 0
push dword [ebp - 0x3c]
push eax
call fcn.1004e520
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, ebx
inc ecx
mov ebx, ecx
cmp ecx, dword [eax + 0x14]
jl 0x1009c826
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
mov edx, 0x97
movzx eax, byte [esi + 0x18]
push 0
push 0xffffffffffffffff
push eax
call fcn.1004e520
add esp, 0xc
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov ecx, esi
jmp 0x1009c73a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
push dword [ebp - 0x44]
call fcn.10017e00
add esp, 4
jmp 0x1009c648
mov dword [edx + esi*4], 0xffffffff
jmp 0x1009c6b8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x1009c92a
lea edx, [esi + esi]
add edx, dword [ecx + 4]
movsx ecx, word [edx]
lea ebx, [ecx + ecx*4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
push edi
push dword [eax + ebx*4]
call fcn.1007ea00
add esp, 8
xor ecx, ecx
cmp eax, 2
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
sete cl
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x28]
jmp 0x1009c6c5
mov ecx, dword [ebp - 0x28]
call fcn.10019c40
jmp 0x1009c734
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
test al, al
je 0x1009c73a
jmp 0x1009c30d
cmp dword [ebp - 0x2c], 0
jne 0x1009c608
jmp 0x1009c628
cmp dword [ebp + 0x14], 0
je 0x1009c9a1
movsx eax, word [ebx + 0x28]
cmp esi, eax
je 0x1009c628
mov esi, dword [ebp - 0x20]
add edx, 8
dec ecx
jne 0x1009c619
jmp 0x1009c8e8
mov edx, esi
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1009be50
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
add esp, 8
test eax, eax
jne 0x1009c3de
jmp 0x1009c4d6
cmp byte [ebp - 0x2d], 0
mov edx, dword [ebp - 0x28]
je 0x1009c30d
cmp byte [edx + 0x51], 0
je 0x1009c4d6
jmp 0x1009c30d
cmp dword [ebp + 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0x24]
mov edx, edi
sbb eax, 0xffffffff
mov bl, byte [eax + 0x19]
push 1
push dword [ebp + 8]
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x34]
call fcn.1009ef90
add esp, 0x18
and bl, 0xfd
cmp bl, 8
mov ebx, dword [ebp - 0x34]
je 0x1009c4b4
cmp byte [esi + 0x18], 0
jne 0x1009c4b4
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov byte [eax + 0x15], 1
jmp 0x1009c4b4
mov ecx, dword [ebp - 0x28]
call fcn.10019c40
jmp 0x1009c4d0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x74], 0
je 0x1009ca81
mov ecx, dword [ebp - 0x24]
call fcn.1000f530
mov dword [ebp - 0x38], eax
jmp 0x1009c809
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + 0x19], 8
je 0x1009c729
jmp 0x1009c778
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test byte [eax + 0x4c], 8
jne 0x1009ca5f
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x17], 1
jmp 0x1009ca5f