Function at 0x100bc36f
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 0x100bc348
xor al, al
jmp 0x100bc356
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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.0x100bc368
jmp dword [eax*4 + 0x100bc548]
pop edi
mov ecx, esi
pop esi
jmp 0x100bc560
pop edi
mov ecx, esi
pop esi
jmp 0x100bc810
pop edi
mov ecx, esi
pop esi
jmp 0x100bcb00
mov edx, dword [0x1027c0b4]
cmp byte [edx + 0x398], 0
je case.default.0x100bc368
cmp dword [edx + 0x474], 0
je case.default.0x100bc368
cmp dword [edx + 0x510], 0
je case.default.0x100bc368
mov ecx, dword [esi + 0x18]
lea eax, [edi + 2]
sub ecx, dword [esi + 0x14]
push ebx
lea ebx, [edx + 0x3ca]
cmp eax, ecx
jbe 0x100bc3cf
xor ecx, ecx
jmp 0x100bc3e4
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc407
xor ecx, ecx
jmp 0x100bc41c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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.10056360
mov ecx, dword [0x1027c0b4]
cmp dword [ecx + 0x474], 0
je 0x100bc466
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bc466
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bc466
push 0
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov edi, dword [ecx + 0x4e0]
test edi, edi
je 0x100bc4b6
mov esi, dword [edi + 0x64]
test esi, esi
je 0x100bc4b6
push 0
mov ecx, esi
call dword [0x101ba7a0]
mov esi, dword [edi + 0x64]
mov ecx, dword [0x1027c0b4]
test esi, esi
je 0x100bc4b6
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100bc4b0
mov dword [0x1027c054], esi
mov dword [0x1027bfe8], 7
call fcn.100d7f80
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 0x100bc4c4
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.10048350
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.0x100bc368
mov eax, dword [eax + 0x510]
test eax, eax
je case.default.0x100bc368
mov ecx, dword [eax + 0x168]
test ecx, ecx
je case.default.0x100bc368
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 0x100bc597
xor ecx, ecx
jmp 0x100bc5ac
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc5cd
xor ecx, ecx
jmp 0x100bc5e2
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc580
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 0x100bc622
xor ecx, ecx
jmp 0x100bc636
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc65d
xor ecx, ecx
jmp 0x100bc671
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc69d
xor cl, cl
jmp 0x100bc6b1
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc605
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 0x100bc6e8
xor ecx, ecx
jmp 0x100bc6fc
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc71e
xor ecx, ecx
jmp 0x100bc733
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc756
xor ecx, ecx
jmp 0x100bc76b
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc78e
xor cl, cl
jmp 0x100bc7a2
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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.100800e0
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 0x100bc7ce
xor cl, cl
jmp 0x100bc7dc
push eax
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc800
add esp, 4
jmp fcn.10054be0
pop ecx
ret
push ecx
mov edx, dword [0x1027c0b4]
push esi
mov esi, ecx
cmp dword [edx + 0x510], 0
je 0x100bcaf8
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 0x100bc84d
xor ecx, ecx
jmp 0x100bc862
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc883
xor ecx, ecx
jmp 0x100bc898
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc8b6
xor ecx, ecx
jmp 0x100bc8cb
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc836
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 0x100bc90d
xor ecx, ecx
jmp 0x100bc921
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc948
xor ecx, ecx
jmp 0x100bc95c
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc988
xor cl, cl
jmp 0x100bc99c
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bc8f0
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 0x100bc9d2
xor ecx, ecx
jmp 0x100bc9e6
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bca08
xor ecx, ecx
jmp 0x100bca1d
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bca40
xor ecx, ecx
jmp 0x100bca55
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bca78
xor cl, cl
jmp 0x100bca8c
push edi
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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.100800e0
mov ecx, dword [0x1027c0b4]
pop edi
pop ebp
pop ebx
cmp dword [ecx + 0x474], 0
je 0x100bcaf8
mov eax, dword [ecx + 0x510]
test eax, eax
je 0x100bcaf8
mov eax, dword [eax + 0x168]
test eax, eax
je 0x100bcad8
push 1
mov ecx, eax
call dword [0x101ba7a0]
mov ecx, dword [0x1027c0b4]
mov ecx, dword [ecx + 0x510]
call fcn.10054be0
mov ecx, dword [0x1027c0b4]
pop esi
mov ecx, dword [ecx + 0x510]
add esp, 4
jmp fcn.10056000
pop esi
pop ecx
ret
mov edx, dword [0x1027c0b4]
sub esp, 0xc
cmp dword [edx + 0x474], 0
push esi
mov esi, ecx
je 0x100bccad
cmp dword [edx + 0x510], 0
je 0x100bccad
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 0x100bcb41
xor ebx, ebx
jmp 0x100bcb59
push ebx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bcb7f
mov dword [esp + 0x14], 0
jmp 0x100bcb9e
push eax
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bcbc1
mov dword [esp + 0x18], 0
jmp 0x100bcbe0
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bcbf3
xor edi, edi
jmp 0x100bcc08
push ecx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bccaa
xor cl, cl
cmp word [edx + 0x3b8], bx
jne 0x100bcc43
mov ax, word [edx + 0x3c4]
cmp ax, word [edx + 0x3be]
jae 0x100bcc43
mov eax, dword [esp + 0x14]
mov cl, 1
mov word [edx + 0x3c4], ax
cmp word [edx + 0x3ba], bx
jne 0x100bcc69
mov ax, word [edx + 0x3c6]
cmp ax, word [edx + 0x3c0]
jae 0x100bcc69
mov eax, dword [esp + 0x18]
mov cl, 1
mov word [edx + 0x3c6], ax
cmp word [edx + 0x3bc], bx
jne 0x100bcc8b
mov ax, word [edx + 0x3c8]
cmp ax, word [edx + 0x3c2]
jae 0x100bcc8b
mov word [edx + 0x3c8], di
jmp 0x100bcc8f
test cl, cl
je 0x100bccaa
cmp dword [edx + 0x474], 0
je 0x100bccaa
mov ecx, dword [edx + 0x510]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
jmp fcn.10056000
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret