Function at 0x1000b643
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1000b64b
mov edx, dword [esp + 0x68]
lea ecx, [esp]
call fcn.10031000
jmp 0x1000b67f
mov ebx, dword [esp + 0x60]
and ebx, ebx
jle 0x1000b691
mov ebx, dword [esp + 0x64]
and ebx, ebx
jle 0x1000b691
jmp 0x1000b698
mov eax, 1
jmp 0x1000b69a
xor eax, eax
and eax, eax
jne 0x1000b6b1
push dword [esp]
lea edx, [0x1003e03e]
pop ecx
call fcn.100311d0
jne 0x1000b6b1
jmp 0x1000b6b8
mov eax, 1
jmp 0x1000b6ba
xor eax, eax
and eax, eax
je 0x1000b6c5
xor eax, eax
jmp 0x1000bac9
mov dword [esp + 0x24], 0x1f4
mov ebx, dword [esp + 0x24]
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
add ebx, 5
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
inc eax
lea edx, [esp + 0x28]
push edx
push 0
push 3
push eax
push 2
call fcn.100373ce
jmp 0x1000b719
mov eax, dword [esp + 0x24]
inc eax
lea edx, [esp + 0x30]
push edx
push 0
push 3
push eax
push 2
call fcn.100373ce
push dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x2c]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
cmp ebx, dword [esp + 0x24]
jle 0x1000b738
mov dword [esp + 8], 1
mov dword [esp + 4], 0
lea edx, str.arrives
lea ecx, [esp + 0x38]
call fcn.10031008
lea edx, str.winner
lea ecx, [esp + 0x3c]
call fcn.10031008
push dword [esp]
call fcn.10035550
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
add ebx, 2
push ebx
call fcn.100377e0
mov dword [esp + 0x20], eax
jmp 0x1000b7ca
mov ebx, dword [esp + 0x20]
and ebx, ebx
jne 0x1000b7d9
xor eax, eax
jmp 0x1000bac9
lea edx, str.escape
lea ecx, [esp + 0x40]
call fcn.10031008
push 0x18
push 0xffffffff
push dword [esp + 8]
push dword [esp + 0x2c]
call fcn.10037800
mov ebx, eax
and ebx, ebx
jne 0x1000b824
push dword [esp + 0x20]
call fcn.10037950
lea edx, str.files
lea ecx, [esp + 0x44]
call fcn.10031008
xor eax, eax
jmp 0x1000bac9
jmp 0x1000b830
mov ebx, dword [esp + 8]
cmp ebx, dword [esp + 0x1c]
jle 0x1000b842
mov dword [esp + 8], 1
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 8]
dec ebx
push ebx
call fcn.10037a90
push eax
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x34]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
mov ebx, dword [esp + 8]
inc ebx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
cmp ebx, dword [esp + 0x24]
jle 0x1000b830
mov word [esp + 0x48], 6
movzx ebx, word [esp + 0x48]
mov eax, 2
cmp ebx, eax
jl 0x1000b8a2
movzx ebx, word [esp + 0x48]
dec ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
jmp 0x1000b8af
movzx ebx, word [esp + 0x48]
inc ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
movzx ebx, word [esp + 0x4c]
push ebx
mov ebx, 0x11
cmp ebx, dword [esp]
jne 0x1000b8c9
add esp, 4
jmp 0x1000bac9
mov ebx, 7
cmp ebx, dword [esp]
jne 0x1000b8e1
movzx eax, word [esp + 0x50]
push eax
pop eax
mov word [esp + 0x4c], ax
jmp 0x1000b8f8
mov ebx, 5
cmp ebx, dword [esp]
jne 0x1000b8f8
movzx ebx, word [esp + 0x50]
inc ebx
push ebx
pop eax
mov word [esp + 0x4c], ax
pop eax
push dword [esp + 0x20]
call fcn.10037950
mov dword [esp + 0x20], 0
jmp 0x1000b92a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x28]
add edi, edi
movsx ecx, word [ebp + edi]
add ebx, ecx
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x30]
add edi, edi
movsx ecx, word [ebp + edi]
add ebx, ecx
and ebx, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 0x28]
add ebx, ebx
movsx eax, word [ebp + ebx]
push eax
pop eax
mov word [esp + 0x14], ax
mov ebx, dword [esp + 8]
add ebx, ebx
movsx eax, word [ebp + ebx]
push eax
mov ebx, dword [esp + 8]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
movsx eax, word [esp + 0x14]
push eax
mov ebx, dword [esp + 0xc]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
mov ebx, dword [esp + 4]
inc ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 4]
cmp ebx, dword [esp + 0x24]
jle 0x1000b93a
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov word [esp + 0x14], 0
mov ebx, dword [esp + 4]
inc ebx
and ebx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 8]
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x28]
add edi, edi
movsx ecx, word [ebp + edi]
add ebx, ecx
and ebx, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 4]
add ebx, ebx
movsx eax, word [ebp + ebx]
push eax
pop eax
mov word [esp + 0x14], ax
mov ebx, dword [esp + 8]
add ebx, ebx
movsx eax, word [ebp + ebx]
push eax
mov ebx, dword [esp + 8]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
movsx eax, word [esp + 0x14]
push eax
mov ebx, dword [esp + 0xc]
add ebx, ebx
pop eax
mov word [ebp + ebx], ax
mov ebx, dword [esp + 4]
add ebx, ebx
movsx ebx, word [ebp + ebx]
mov edi, dword [esp + 8]
add edi, edi
movsx edi, word [ebp + edi]
and edi, dword [esp + 0x24]
add ebx, edi
and ebx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0xc]
add ebx, ebx
movsx eax, word [ebp + ebx]
push eax
pop eax
mov word [esp + 0x18], ax
mov ebx, dword [esp + 0x60]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.100311a0
mov ebx, eax
xor bx, word [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x64]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.100311c0
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x64]
jne 0x1000b9d6
push dword [esp + 0x28]
call fcn.10037584
push dword [esp + 0x30]
call fcn.10037584
mov eax, dword [esp + 0x60]
jmp 0x1000bac9
push dword [esp + 0x40]
call fcn.10037d30
push dword [esp + 0x3c]
call fcn.10037d30
push dword [esp + 0x38]
call fcn.10037d30
push dword [esp]
call fcn.10037d30
push dword [esp + 0x44]
call fcn.10037d30
push eax
push dword [esp + 0x2c]
call fcn.10037589
push dword [esp + 0x34]
call fcn.10037589
pop eax
add esp, 0x50
pop edi
pop ebx
pop ebp
ret 0xc