Function at 0x100bb7e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x100bb7f8
xor al, al
jmp 0x100bb806
push ecx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ecx, dword [esi + 8]
mov al, byte [eax]
movzx eax, al
lea edi, [ecx + 1]
mov dword [esi + 8], edi
cmp eax, 5
ja case.default.0x100bb818
jmp dword [eax*4 + 0x100bb9f8]
pop edi
mov ecx, esi
pop esi
jmp 0x100bba10
pop edi
mov ecx, esi
pop esi
jmp 0x100bbcc0
pop edi
mov ecx, esi
pop esi
jmp 0x100bbfb0
mov edx, dword [0x1027c0b4]
cmp byte [edx + 0x398], 0
je case.default.0x100bb818
cmp dword [edx + 0x474], 0
je case.default.0x100bb818
cmp dword [edx + 0x510], 0
je case.default.0x100bb818
mov ecx, dword [esi + 0x18]
lea eax, [edi + 2]
sub ecx, dword [esi + 0x14]
push ebx
lea ebx, [edx + 0x3ca]
cmp eax, ecx
jbe 0x100bb87f
xor ecx, ecx
jmp 0x100bb894
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edx + 0x3cc]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bb8b7
xor ecx, ecx
jmp 0x100bb8cc
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
mov ecx, dword [edx + 0x510]
pop ebx
pop edi
pop esi
jmp fcn.10055870
mov ecx, dword [0x1027c0b4]
cmp dword [ecx + 0x474], 0
je 0x100bb916
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bb916
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bb916
push 0
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov edi, dword [ecx + 0x4e0]
test edi, edi
je 0x100bb966
mov esi, dword [edi + 0x64]
test esi, esi
je 0x100bb966
push 0
mov ecx, esi
call dword [0x101ba7a0]
mov esi, dword [edi + 0x64]
mov ecx, dword [0x1027c0b4]
test esi, esi
je 0x100bb966
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100bb960
mov dword [0x1027c054], esi
mov dword [0x1027bfe8], 7
call fcn.100d7450
mov ecx, dword [0x1027c0b4]
xor edx, edx
lea esi, [ecx + 0x3a8]
lea eax, [ecx + 0x3be]
xor edi, edi
lea eax, [eax + 2]
mov word [eax - 8], di
lea esi, [esi + 4]
mov word [eax - 2], di
mov word [eax + 4], di
mov dword [esi - 0x10], edi
mov dword [esi - 4], edi
mov byte [ecx + edx + 0x3cf], 0
inc edx
cmp edx, 3
jl 0x100bb974
xor eax, eax
mov dword [ecx + 0x3b4], edi
push 0x15
mov dword [ecx + 0x3ca], eax
add ecx, 0x3d4
push str.Collection_Race_Event
call fcn.10047890
mov eax, dword [0x1027c0b4]
pop edi
pop esi
mov byte [eax + 0x398], 0
ret
mov eax, dword [0x1027c0b4]
cmp dword [eax + 0x474], 0
je case.default.0x100bb818
mov eax, dword [eax + 0x510]
test eax, eax
je case.default.0x100bb818
mov ecx, dword [eax + 0x168]
test ecx, ecx
je case.default.0x100bb818
push 0
call dword [0x101ba7a0]
pop edi
pop esi
ret
push ecx
push ebx
push esi
push edi
mov edi, dword [0x1027c0b4]
mov esi, ecx
mov ebx, 0x3be
push ebp
mov byte [esi + 4], 1
mov byte [edi + 0x398], 1
nop dword [eax]
mov edx, dword [esi + 8]
lea ebp, [ebx + edi]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x100bba47
xor ecx, ecx
jmp 0x100bba5c
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [esi + 8], eax
mov word [ebp - 6], cx
lea ebp, [ebx + edi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x100bba7d
xor ecx, ecx
jmp 0x100bba92
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [esi + 8], eax
xor eax, eax
mov word [ebp], cx
mov word [ebx + edi + 6], ax
add ebx, 2
cmp ebx, 0x3c4
jl 0x100bba30
xor ebp, ebp
mov ebx, 0x3a8
mov edx, dword [esi + 8]
lea eax, [edi - 0xc]
mov ecx, dword [esi + 0x18]
add eax, ebx
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100bbad2
xor ecx, ecx
jmp 0x100bbae6
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [edx + 4]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
lea eax, [ebx + edi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100bbb0d
xor ecx, ecx
jmp 0x100bbb21
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [edx + 4]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
lea eax, [ebp + 0x3cf]
mov edx, dword [esi + 8]
add eax, edi
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100bbb4d
xor cl, cl
jmp 0x100bbb61
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edx + 1]
add ebx, 4
mov dword [esi + 8], eax
inc ebp
mov eax, dword [esp + 0x10]
mov byte [eax], cl
cmp ebx, 0x3b4
jl 0x100bbab5
mov edx, dword [esi + 8]
lea ebx, [edi + 0x3b4]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
pop ebp
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100bbb98
xor ecx, ecx
jmp 0x100bbbac
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [edx + 4]
mov dword [esi + 8], eax
mov dword [ebx], ecx
lea ebx, [edi + 0x3ca]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x100bbbce
xor ecx, ecx
jmp 0x100bbbe3
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edi + 0x3cc]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x100bbc06
xor ecx, ecx
jmp 0x100bbc1b
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edx + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edi + 0x3ce]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x100bbc3e
xor cl, cl
jmp 0x100bbc52
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov edi, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edx + 1]
mov dword [esi + 8], eax
lea eax, [edi + 0x3d4]
mov byte [ebx], cl
mov ecx, esi
push eax
call fcn.1007f620
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
lea ecx, [eax + 1]
cmp ecx, edx
jbe 0x100bbc7e
xor cl, cl
jmp 0x100bbc8c
push eax
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov cl, byte [eax]
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [0x1027c0b4]
mov byte [edi + 0x3f0], cl
pop edi
pop esi
mov ecx, dword [eax + 0x510]
pop ebx
test ecx, ecx
je 0x100bbcb0
add esp, 4
jmp fcn.100540f0
pop ecx
ret
push ecx
mov edx, dword [0x1027c0b4]
push esi
mov esi, ecx
cmp dword [edx + 0x510], 0
je 0x100bbfa8
push ebx
push ebp
push edi
mov byte [edx + 0x398], 1
mov edi, 0x3be
mov ebx, dword [esi + 8]
lea ebp, [edi + edx]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [ebx + 2]
cmp eax, ecx
jbe 0x100bbcfd
xor ecx, ecx
jmp 0x100bbd12
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [ebx + 2]
mov dword [esi + 8], eax
mov word [ebp - 6], cx
lea ebp, [edi + edx]
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [ebx + 2]
cmp eax, ecx
jbe 0x100bbd33
xor ecx, ecx
jmp 0x100bbd48
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [ebx + 2]
mov dword [esi + 8], eax
mov word [ebp], cx
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [ebx + 2]
cmp eax, ecx
jbe 0x100bbd66
xor ecx, ecx
jmp 0x100bbd7b
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [ebx + 2]
mov dword [esi + 8], eax
mov word [edi + edx + 6], cx
add edi, 2
cmp edi, 0x3c4
jl 0x100bbce6
xor ebp, ebp
mov edi, 0x3a8
nop dword [eax]
mov ebx, dword [esi + 8]
lea eax, [edx - 0xc]
mov ecx, dword [esi + 0x18]
add eax, edi
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebx + 4]
cmp eax, ecx
jbe 0x100bbdbd
xor ecx, ecx
jmp 0x100bbdd1
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [ebx + 4]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
lea eax, [edi + edx]
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebx + 4]
cmp eax, ecx
jbe 0x100bbdf8
xor ecx, ecx
jmp 0x100bbe0c
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [ebx + 4]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
lea eax, [ebp + 0x3cf]
mov ebx, dword [esi + 8]
add eax, edx
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x100bbe38
xor cl, cl
jmp 0x100bbe4c
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ebx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [ebx + 1]
add edi, 4
mov dword [esi + 8], eax
inc ebp
mov eax, dword [esp + 0x10]
mov byte [eax], cl
cmp edi, 0x3b4
jl 0x100bbda0
mov edi, dword [esi + 8]
lea ebx, [edx + 0x3b4]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x100bbe82
xor ecx, ecx
jmp 0x100bbe96
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov ecx, dword [eax]
lea eax, [edi + 4]
mov dword [esi + 8], eax
mov dword [ebx], ecx
lea ebx, [edx + 0x3ca]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bbeb8
xor ecx, ecx
jmp 0x100bbecd
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edx + 0x3cc]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 2]
cmp eax, ecx
jbe 0x100bbef0
xor ecx, ecx
jmp 0x100bbf05
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx ecx, word [eax]
lea eax, [edi + 2]
mov dword [esi + 8], eax
mov word [ebx], cx
lea ebx, [edx + 0x3ce]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100bbf28
xor cl, cl
jmp 0x100bbf3c
push edi
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [edi + 1]
mov dword [esi + 8], eax
lea eax, [edx + 0x3d4]
mov byte [ebx], cl
mov ecx, esi
push eax
call fcn.1007f620
mov ecx, dword [0x1027c0b4]
pop edi
pop ebp
pop ebx
cmp dword [ecx + 0x474], 0
je 0x100bbfa8
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bbfa8
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bbf88
push 1
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov ecx, dword [ecx + 0x510]
call fcn.100540f0
mov ecx, dword [0x1027c0b4]
pop esi
mov ecx, dword [ecx + 0x510]
add esp, 4
jmp fcn.10055510
pop esi
pop ecx
ret
mov edx, dword [0x1027c0b4]
sub esp, 0xc
cmp dword [edx + 0x474], 0
push esi
mov esi, ecx
je 0x100bc15d
cmp dword [edx + 0x510], 0
je 0x100bc15d
push ebx
mov ebx, dword [esi + 8]
push ebp
mov ebp, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x18]
lea eax, [ebx + 2]
mov ecx, edi
sub ecx, ebp
cmp eax, ecx
jbe 0x100bbff1
xor ebx, ebx
jmp 0x100bc009
push ebx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 0x18]
mov ebp, dword [esi + 0x14]
mov edx, dword [0x1027c0b4]
movzx ebx, word [eax]
mov eax, dword [esi + 8]
mov ecx, edi
add eax, 2
sub ecx, ebp
mov dword [esp + 0x10], eax
mov dword [esi + 8], eax
add eax, 2
cmp eax, ecx
mov eax, dword [esp + 0x10]
jbe 0x100bc02f
mov dword [esp + 0x14], 0
jmp 0x100bc04e
push eax
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edi, dword [esi + 0x18]
mov ebp, dword [esi + 0x14]
mov edx, dword [0x1027c0b4]
movzx eax, word [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
add eax, 2
mov ecx, edi
mov dword [esp + 0x10], eax
sub ecx, ebp
mov dword [esi + 8], eax
add eax, 2
cmp eax, ecx
mov ecx, dword [esp + 0x10]
jbe 0x100bc071
mov dword [esp + 0x18], 0
jmp 0x100bc090
push ecx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x18]
mov ebp, dword [esi + 0x14]
movzx eax, word [eax]
mov edx, dword [0x1027c0b4]
mov dword [esp + 0x18], eax
add ecx, 2
sub edi, ebp
mov dword [esi + 8], ecx
lea eax, [ecx + 2]
cmp eax, edi
jbe 0x100bc0a3
xor edi, edi
jmp 0x100bc0b8
push ecx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov ecx, dword [esi + 8]
mov edx, dword [0x1027c0b4]
movzx edi, word [eax]
lea eax, [ecx + 2]
mov dword [esi + 8], eax
cmp byte [edx + 0x398], 0
je 0x100bc15a
xor cl, cl
cmp word [edx + 0x3b8], bx
jne 0x100bc0f3
mov ax, word [edx + 0x3c4]
cmp ax, word [edx + 0x3be]
jae 0x100bc0f3
mov eax, dword [esp + 0x14]
mov cl, 1
mov word [edx + 0x3c4], ax
cmp word [edx + 0x3ba], bx
jne 0x100bc119
mov ax, word [edx + 0x3c6]
cmp ax, word [edx + 0x3c0]
jae 0x100bc119
mov eax, dword [esp + 0x18]
mov cl, 1
mov word [edx + 0x3c6], ax
cmp word [edx + 0x3bc], bx
jne 0x100bc13b
mov ax, word [edx + 0x3c8]
cmp ax, word [edx + 0x3c2]
jae 0x100bc13b
mov word [edx + 0x3c8], di
jmp 0x100bc13f
test cl, cl
je 0x100bc15a
cmp dword [edx + 0x474], 0
je 0x100bc15a
mov ecx, dword [edx + 0x510]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
jmp fcn.10055510
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret