Function at 0x100bc1ef
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 0x100bc1c8
xor al, al
jmp 0x100bc1d6
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f440
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.0x100bc1e8
jmp dword [eax*4 + 0x100bc3c8]
pop edi
mov ecx, esi
pop esi
jmp 0x100bc3e0
pop edi
mov ecx, esi
pop esi
jmp 0x100bc690
pop edi
mov ecx, esi
pop esi
jmp 0x100bc980
mov edx, dword [0x1027c0b4]
cmp byte [edx + 0x398], 0
je case.default.0x100bc1e8
cmp dword [edx + 0x474], 0
je case.default.0x100bc1e8
cmp dword [edx + 0x510], 0
je case.default.0x100bc1e8
mov ecx, dword [esi + 0x18]
lea eax, [edi + 2]
sub ecx, dword [esi + 0x14]
push ebx
lea ebx, [edx + 0x3ca]
cmp eax, ecx
jbe 0x100bc24f
xor ecx, ecx
jmp 0x100bc264
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc287
xor ecx, ecx
jmp 0x100bc29c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.100561f0
mov ecx, dword [0x1027c0b4]
cmp dword [ecx + 0x474], 0
je 0x100bc2e6
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bc2e6
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bc2e6
push 0
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov edi, dword [ecx + 0x4e0]
test edi, edi
je 0x100bc336
mov esi, dword [edi + 0x64]
test esi, esi
je 0x100bc336
push 0
mov ecx, esi
call dword [0x101ba7a0]
mov esi, dword [edi + 0x64]
mov ecx, dword [0x1027c0b4]
test esi, esi
je 0x100bc336
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100bc330
mov dword [0x1027c054], esi
mov dword [0x1027bfe8], 7
call fcn.100d7df0
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 0x100bc344
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.10048200
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.0x100bc1e8
mov eax, dword [eax + 0x510]
test eax, eax
je case.default.0x100bc1e8
mov ecx, dword [eax + 0x168]
test ecx, ecx
je case.default.0x100bc1e8
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 0x100bc417
xor ecx, ecx
jmp 0x100bc42c
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc44d
xor ecx, ecx
jmp 0x100bc462
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc400
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 0x100bc4a2
xor ecx, ecx
jmp 0x100bc4b6
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc4dd
xor ecx, ecx
jmp 0x100bc4f1
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc51d
xor cl, cl
jmp 0x100bc531
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc485
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 0x100bc568
xor ecx, ecx
jmp 0x100bc57c
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc59e
xor ecx, ecx
jmp 0x100bc5b3
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc5d6
xor ecx, ecx
jmp 0x100bc5eb
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc60e
xor cl, cl
jmp 0x100bc622
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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.1007ff60
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 0x100bc64e
xor cl, cl
jmp 0x100bc65c
push eax
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc680
add esp, 4
jmp fcn.10054a70
pop ecx
ret
push ecx
mov edx, dword [0x1027c0b4]
push esi
mov esi, ecx
cmp dword [edx + 0x510], 0
je 0x100bc978
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 0x100bc6cd
xor ecx, ecx
jmp 0x100bc6e2
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc703
xor ecx, ecx
jmp 0x100bc718
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc736
xor ecx, ecx
jmp 0x100bc74b
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc6b6
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 0x100bc78d
xor ecx, ecx
jmp 0x100bc7a1
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc7c8
xor ecx, ecx
jmp 0x100bc7dc
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc808
xor cl, cl
jmp 0x100bc81c
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc770
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 0x100bc852
xor ecx, ecx
jmp 0x100bc866
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc888
xor ecx, ecx
jmp 0x100bc89d
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc8c0
xor ecx, ecx
jmp 0x100bc8d5
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc8f8
xor cl, cl
jmp 0x100bc90c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f440
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.1007ff60
mov ecx, dword [0x1027c0b4]
pop edi
pop ebp
pop ebx
cmp dword [ecx + 0x474], 0
je 0x100bc978
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bc978
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bc958
push 1
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov ecx, dword [ecx + 0x510]
call fcn.10054a70
mov ecx, dword [0x1027c0b4]
pop esi
mov ecx, dword [ecx + 0x510]
add esp, 4
jmp fcn.10055e90
pop esi
pop ecx
ret
mov edx, dword [0x1027c0b4]
sub esp, 0xc
cmp dword [edx + 0x474], 0
push esi
mov esi, ecx
je 0x100bcb2d
cmp dword [edx + 0x510], 0
je 0x100bcb2d
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 0x100bc9c1
xor ebx, ebx
jmp 0x100bc9d9
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bc9ff
mov dword [esp + 0x14], 0
jmp 0x100bca1e
push eax
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bca41
mov dword [esp + 0x18], 0
jmp 0x100bca60
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bca73
xor edi, edi
jmp 0x100bca88
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bcb2a
xor cl, cl
cmp word [edx + 0x3b8], bx
jne 0x100bcac3
mov ax, word [edx + 0x3c4]
cmp ax, word [edx + 0x3be]
jae 0x100bcac3
mov eax, dword [esp + 0x14]
mov cl, 1
mov word [edx + 0x3c4], ax
cmp word [edx + 0x3ba], bx
jne 0x100bcae9
mov ax, word [edx + 0x3c6]
cmp ax, word [edx + 0x3c0]
jae 0x100bcae9
mov eax, dword [esp + 0x18]
mov cl, 1
mov word [edx + 0x3c6], ax
cmp word [edx + 0x3bc], bx
jne 0x100bcb0b
mov ax, word [edx + 0x3c8]
cmp ax, word [edx + 0x3c2]
jae 0x100bcb0b
mov word [edx + 0x3c8], di
jmp 0x100bcb0f
test cl, cl
je 0x100bcb2a
cmp dword [edx + 0x474], 0
je 0x100bcb2a
mov ecx, dword [edx + 0x510]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
jmp fcn.10055e90
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret