Function at 0x1009b820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ecx + 0x38]
mov ebx, dword [ecx + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x3c], eax
dec eax
mov dword [ecx + 0x38], eax
mov dword [ebp - 0x20], eax
xor eax, eax
cmp byte [edx + 0x24], 0
mov dl, byte [ebp + 0x20]
setns al
cmp byte [ebp + 0x24], 0
lea eax, [eax + eax*2 + 0x1d]
mov dword [ebp - 0x30], eax
je 0x1009bb93
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
test byte [eax + 0x21], 0x40
movzx eax, dl
mov dword [ebp - 0x28], eax
mov eax, 0
jne 0x1009b899
test esi, esi
jne 0x1009b916
test eax, eax
jne 0x1009b916
mov dword [ebp - 0x1c], 0
jmp 0x1009ba50
mov esi, dword [edi + 0x48]
mov eax, dword [edi]
mov edx, dword [esi + 0x44]
mov dword [ebp - 0x1c], eax
test edx, edx
jne 0x1009bcb6
lea eax, [esi + 0x40]
add esi, 0x3c
mov esi, dword [esi]
mov edx, 0x101d4a18
test esi, esi
je 0x1009b8fc
mov eax, dword [eax]
dec esi
xor edx, edx
mov edi, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [edi + edx]
movzx ecx, byte [ecx + edx]
cmp bl, cl
jne 0x1009b8df
test bl, bl
je 0x1009bc61
inc edx
jmp 0x1009b8c5
mov bl, byte [ebx + 0x10194380]
cmp bl, byte [ecx + 0x10194380]
je 0x1009b8dc
test esi, esi
jne 0x1009b8bd
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, 0x101d4a18
cmp dword [edx + 8], 0
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
jne 0x1009b916
xor eax, eax
cmp dword [edi + 0x10], 0
setne al
jmp 0x1009b87d
xor ebx, ebx
test esi, esi
jne 0x1009bc0e
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x14]
mov esi, ecx
mov edx, ebx
call fcn.1009c060
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x2c], eax
movsx eax, word [ebx + 0x2a]
lea edi, [ecx + 1]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x2c], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], eax
jle 0x1009bd1b
lea edx, [eax + 1]
lea eax, [eax + eax*4]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0x68]
mov dword [ecx + eax*4], 0x4d
mov dword [ecx + eax*4 + 4], edx
xor edx, edx
mov dword [ecx + eax*4 + 8], edi
mov dword [ecx + eax*4 + 0xc], edx
mov dword [ecx + eax*4 + 0x10], edx
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
movzx ecx, word [eax + 0x2a]
mov eax, dword [ebp - 0x38]
test cx, cx
jle 0x1009b9fc
add dword [ebp - 0x34], 2
or edi, eax
xor esi, esi
xor edx, edx
inc edx
cmp esi, 1
mov eax, edx
cmova eax, esi
cmp edi, 0xffffffff
je 0x1009b9be
cmp esi, 0x1f
ja 0x1009b9b4
bt edi, esi
jb 0x1009b9be
inc esi
movsx eax, cx
cmp esi, eax
jl 0x1009b99d
jmp 0x1009b9fc
test si, si
jns 0x1009b9ca
mov ecx, esi
mov ebx, dword [ebp - 0x14]
jmp 0x1009b9db
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x24]
and ecx, 0x20
mov ecx, esi
jne 0x1009bd91
movsx eax, cx
mov ecx, dword [ebp - 0x18]
mov edx, ebx
add eax, dword [ebp - 0x34]
push eax
push esi
push dword [ebp + 0xc]
call fcn.10075b90
add esp, 0xc
movzx ecx, word [ebx + 0x2a]
xor edx, edx
inc edx
jmp 0x1009b9b4
mov esi, dword [ebp + 8]
test esi, esi
je 0x1009bc59
mov eax, dword [ebp - 0x18]
mov edi, esi
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + 0x6c]
cmp byte [edi + 8], 0x7e
jne 0x1009ba22
cmp byte [edi + 9], 1
je 0x1009bd70
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x1009ba12
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax + 0x6c]
mov esi, dword [ebp + 8]
jl 0x1009bdc2
mov edi, dword [ebp - 0x14]
xor eax, eax
mov edx, edi
push eax
push eax
push eax
push dword [ebp - 0x1c]
call fcn.1009c2f0
add esp, 0x10
mov ebx, dword [ebp - 0x18]
cmp dword [edi + 0xc], 0
mov eax, dword [ebp + 0xc]
jne 0x1009bb24
mov bl, byte [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, edi
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x10]
push eax
mov edi, eax
call fcn.1009caa0
add esp, 0x10
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x18]
setne al
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jle 0x1009bc9e
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], edx
mov edx, dword [ebx + 0x68]
mov dword [edx + ecx*4], 0x7b
mov dword [edx + ecx*4 + 4], edi
mov dword [edx + ecx*4 + 8], eax
xor eax, eax
mov dword [edx + ecx*4 + 0xc], eax
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x1009bc6e
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x1009badd
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], edi
cmp byte [ebp + 0x24], 0
je 0x1009baf7
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x1009baf7
mov ecx, dword [ebx + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 4
mov eax, dword [ebp - 0x24]
test eax, eax
js 0x1009bb07
cmp eax, dword [ebp + 0xc]
jne 0x1009bcf7
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x1009bb24
xor ecx, ecx
cmp byte [ebp + 0x24], 2
mov edx, dword [ebx + 0x68]
lea eax, [eax + eax*4]
sete cl
add ecx, ecx
mov word [edx + eax*4 - 0x12], cx
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov edx, edi
push eax
push eax
push dword [ebp - 0x1c]
push eax
call fcn.1009cc40
add esp, 0x10
test esi, esi
je 0x1009bb65
cmp byte [esi + 8], 0x7e
jne 0x1009bb60
cmp byte [esi + 9], 2
jne 0x1009bb60
mov ecx, dword [ebp - 0x10]
mov edx, esi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push edi
call fcn.1009e3d0
add esp, 0x10
mov esi, dword [esi + 0x20]
jmp 0x1009bb39
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ecx + 0x38]
neg esi
add eax, dword [ecx + 0x3c]
jns 0x1009bb85
mov edx, ebx
push esi
call fcn.10078ce0
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + esi*4], eax
add esp, 0x30
jmp 0x1009bb80
mov eax, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], eax
jle 0x1009bd33
lea ecx, [eax + 1]
mov esi, ebx
lea edx, [eax + eax*4]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebx + 0x68]
mov ebx, dword [ebp - 0x30]
mov byte [ecx + edx*4], bl
mov ebx, esi
mov esi, dword [ebp + 0xc]
mov word [ecx + edx*4 + 2], 0
mov dword [ecx + edx*4 + 4], esi
mov esi, dword [ebp - 0x20]
mov dword [ecx + edx*4 + 8], esi
mov esi, dword [ebp + 0x14]
mov dword [ecx + edx*4 + 0xc], esi
mov dword [ecx + edx*4 + 0x10], 0
mov byte [ecx + edx*4 + 1], 0
mov ecx, dword [ebx]
mov dl, byte [ebp + 0x20]
cmp byte [ecx + 0x51], 0
mov ecx, dword [ebp - 0x10]
jne 0x1009b85b
movsx ecx, word [ebp + 0x18]
mov edx, dword [ebx + 0x68]
lea eax, [eax + eax*4]
mov byte [edx + eax*4 + 1], 0xfd
mov dword [edx + eax*4 + 0x10], ecx
mov dl, byte [ebp + 0x20]
mov ecx, dword [ebp - 0x10]
jmp 0x1009b85b
xor ebx, ebx
cmp byte [esi + 8], 0x7e
jne 0x1009bc4c
test byte [esi + 9], 3
je 0x1009bc4c
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov eax, dword [eax + 0x108]
test eax, eax
jne 0x1009be28
mov edx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.1009d480
add esp, 8
test eax, eax
je 0x1009bc49
or ebx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x10]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1009b920
jmp 0x1009bc10
mov ecx, dword [ebp - 0x10]
jmp 0x1009ba38
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, eax
jmp 0x1009b8fc
mov eax, dword [edi]
test eax, eax
je 0x1009badd
xor ecx, ecx
movzx edx, byte [eax + ecx]
movzx ebx, byte [ecx + 0x101bc857]
cmp dl, bl
jne 0x1009bd53
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
test dl, dl
je 0x1009bac3
inc ecx
jmp 0x1009bc7a
mov ecx, ebx
mov edx, 0x7b
push 0
push eax
push edi
call fcn.1004e590
add esp, 0xc
jmp 0x1009bab3
mov bl, byte [eax]
mov edi, edx
test bl, bl
je 0x1009bd4f
lea edx, [eax + 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 0x1009bcc7
xor edx, edx
div dword [esi + 0x38]
mov ecx, dword [ebp - 0x10]
lea eax, [edi + edx*8 + 4]
lea esi, [edi + edx*8]
mov edi, dword [ebp - 0x14]
jmp 0x1009b8b2
mov dword [ebp - 0x24], eax
mov eax, edi
xor edi, edi
mov ecx, ebx
mov edx, 0x7b
push edi
xor edi, edi
push edi
mov edi, eax
push dword [ebp - 0x24]
call fcn.1004e520
add esp, 0xc
jmp 0x1009bb07
mov edx, 0x4d
push 0
push edi
push dword [ebp + 0x14]
call fcn.1004e590
add esp, 0xc
jmp 0x1009b980
movzx edx, byte [ebp - 0x30]
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.1004e590
add esp, 0xc
jmp 0x1009bbde
xor eax, eax
jmp 0x1009bce0
mov dl, byte [edx + 0x10194380]
mov edi, dword [ebp - 0x14]
cmp dl, byte [ebx + 0x10194380]
mov ebx, dword [ebp - 0x18]
je 0x1009bc9b
jmp 0x1009badd
mov ecx, dword [ebp - 0x10]
mov edx, edi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.1009e3d0
mov ecx, dword [ebp - 0x10]
add esp, 0x10
jmp 0x1009ba22
mov ebx, dword [ebx + 4]
movzx edx, word [ebx + 0x10]
and edx, 0x20
test esi, esi
je 0x1009be0b
add ebx, 0x24
xor ecx, ecx
mov dword [ebp - 0x2c], eax
movzx edx, dx
shr edx, 5
xor edx, 1
add ecx, edx
movzx edx, word [ebx]
add ebx, 0x14
and edx, 0x20
dec dword [ebp - 0x2c]
jne 0x1009bda7
jmp 0x1009be0f
mov esi, dword [ebp - 0x18]
movzx edx, byte [ebp - 0x30]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.1004e520
add esp, 0xc
mov ecx, dword [esi]
xor edx, edx
dec edx
mov dword [ebp - 0x24], edx
cmp byte [ecx + 0x51], 0
jne 0x1009be00
mov edx, dword [ebp - 0x18]
movsx ecx, word [ebp + 0x18]
lea eax, [eax + eax*4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 1], 0xfd
mov dword [edx + eax*4 + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
jmp 0x1009ba38
xor eax, eax
xor ecx, ecx
test dx, dx
je 0x1009b9c5
mov ebx, dword [ebp - 0x14]
sub eax, ecx
add ax, word [ebx + 0x2c]
mov ecx, eax
jmp 0x1009b9db
cmp dword [eax], esi
jne 0x1009be38
mov ecx, dword [ebp - 0x28]
cmp dword [eax + 0xc], ecx
je 0x1009bc46
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x1009bc32
jmp 0x1009be28