Function at 0x1002af70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
test ebx, ebx
je 0x1002b59b
cmp dword [ebx], 0
jg 0x1002b59b
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002b595
mov esi, dword [ebp + 0x10]
test esi, esi
js 0x1002b595
jle 0x1002afaf
cmp dword [ebp + 0xc], 0
je 0x1002b595
mov eax, dword [ebp + 0x14]
mov ecx, 0x1002a400
test eax, eax
cmovne ecx, eax
cmp byte [edi + 0x22097], 0
mov dword [ebp - 0x20], ecx
jne 0x1002b401
push 0x22084
lea ebx, [edi + 0x22098]
push 0xff
push ebx
call fcn.10108310
mov eax, dword [edi + 0x22088]
add esp, 0xc
xor ecx, ecx
test eax, eax
jle 0x1002b012
mov eax, dword [edi + ecx*4]
inc ecx
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov dword [edi + eax*4 + 0x22098], 0
mov eax, dword [edi + 0x22088]
cmp ecx, eax
jl 0x1002aff1
mov dword [ebx], 0
mov edx, 0x20
cmp byte [edi + 0x22096], 0
mov ecx, 0x120
mov ebx, edx
mov esi, edx
cmove ecx, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], esi
cmp dword [edi + 0x22090], edx
jle 0x1002b17f
mov eax, esi
sar eax, 5
add eax, 0x8826
cmp dword [edi + eax*4], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
jge 0x1002b066
add esi, 0x20
mov dword [ebp - 4], esi
jmp 0x1002b16a
cmp esi, ecx
jl 0x1002b0f0
mov eax, dword [edi + 0x22080]
lea ecx, [ebx - 0x20]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
js 0x1002b0ea
lea ecx, [eax + esi*4]
mov dword [ebp - 0x18], ecx
nop dword [eax]
mov esi, 0x20
mov edx, eax
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1002b0cf
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x1002b0ce
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x1002b0c9
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x1002b0c4
sub esi, 4
add edx, 0x10
add ecx, 0x10
test esi, esi
jg 0x1002b097
jmp 0x1002b0cf
sub esi, 3
jmp 0x1002b0cf
sub esi, 2
jmp 0x1002b0cf
dec esi
test esi, esi
je 0x1002b146
mov eax, dword [ebp - 0x10]
add ebx, 0x20
mov ecx, dword [ebp - 0x18]
sub eax, 0xffffff80
mov dword [ebp - 0x10], eax
cmp ebx, dword [ebp - 0x14]
jle 0x1002b090
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
cmp ebx, esi
jge 0x1002b15d
mov dword [eax], ebx
mov edx, 8
nop dword [eax + eax]
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4]
mov dword [ecx + ebx*4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + ebx*4 + 4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 8]
mov dword [ecx + ebx*4 + 8], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + esi*4 + 0xc]
add esi, 4
mov dword [ecx + ebx*4 + 0xc], eax
add ebx, 4
sub edx, 1
jne 0x1002b100
mov dword [ebp - 4], esi
jmp 0x1002b167
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
test ebx, ebx
js 0x1002b0ed
add esi, 0x20
mov dword [eax], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], esi
jmp 0x1002b16a
add ebx, 0x20
mov dword [eax], esi
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x1c]
cmp esi, dword [edi + 0x22090]
jl 0x1002b045
mov eax, dword [edi + 0x22088]
xor ecx, ecx
test eax, eax
jle 0x1002b1a3
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov eax, dword [edi + eax*4 + 0x22098]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x22088]
jl 0x1002b185
mov dword [edi + 0x22090], ebx
mov ebx, dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x20]
push edi
call sym.icuuc67.dll__caseMap_UnicodeString_icu_67__AAEAAV12_HIPAVBreakIterator_2_P6AHHI0PA_SHPB_SHPAVEdits_2_AAW4UErrorCode___Z_Z
add esp, 0xc
cmp dword [ebx], 0
jg 0x1002b3ee
cmp byte [edi + 0x22097], 0
jne 0x1002b3ee
push 0x22084
push 0xff
lea esi, [edi + 0x22098]
push esi
call fcn.10108310
mov eax, dword [edi + 0x22088]
add esp, 0xc
xor ecx, ecx
test eax, eax
jle 0x1002b215
mov eax, dword [edi + ecx*4]
inc ecx
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov dword [edi + eax*4 + 0x22098], 0
mov eax, dword [edi + 0x22088]
cmp ecx, eax
jl 0x1002b1f4
mov dword [esi], 0
mov edx, 0x20
cmp byte [edi + 0x22096], 0
mov ecx, 0x120
mov esi, edx
mov ebx, edx
cmove ecx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
cmp dword [edi + 0x22090], edx
jle 0x1002b3c1
mov eax, ebx
sar eax, 5
add eax, 0x8826
cmp dword [edi + eax*4], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0xc], eax
jge 0x1002b263
add ebx, 0x20
jmp 0x1002b3ac
cmp ebx, ecx
jl 0x1002b33d
mov edx, dword [edi + 0x22080]
lea eax, [esi - 0x20]
xor edi, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], eax
test eax, eax
js 0x1002b2f1
lea ecx, [edx + ebx*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
mov eax, edx
nop dword [eax + eax]
mov esi, 0x20
mov edx, ecx
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x1002b2cf
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 4]
jne 0x1002b2ce
mov ecx, dword [eax + 8]
cmp ecx, dword [edx + 8]
jne 0x1002b2c9
mov ecx, dword [eax + 0xc]
cmp ecx, dword [edx + 0xc]
jne 0x1002b2c4
sub esi, 4
add eax, 0x10
add edx, 0x10
test esi, esi
jg 0x1002b297
jmp 0x1002b2cf
sub esi, 3
jmp 0x1002b2cf
sub esi, 2
jmp 0x1002b2cf
dec esi
test esi, esi
je 0x1002b396
mov eax, dword [ebp - 0x10]
add edi, 4
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x20]
jle 0x1002b290
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea eax, [edx + ebx*4]
mov edi, 0x1c
lea esi, [esi*4 - 0x70]
mov dword [ebp - 0x20], eax
sub esi, eax
add esi, edx
mov edx, edi
mov ecx, eax
nop dword [eax + eax]
mov eax, dword [esi + ecx]
cmp eax, dword [ecx]
jne 0x1002b31f
dec edx
add ecx, 4
test edx, edx
jg 0x1002b310
test edx, edx
je 0x1002b418
mov eax, dword [ebp - 0x20]
sub edi, 4
add esi, 0x10
test edi, edi
jg 0x1002b307
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp esi, ebx
jge 0x1002b45b
mov dword [eax], esi
mov edx, 8
nop dword [eax]
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4]
mov dword [ecx + esi*4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 4]
mov dword [ecx + esi*4 + 4], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 8]
mov dword [ecx + esi*4 + 8], eax
mov ecx, dword [edi + 0x22080]
mov eax, dword [ecx + ebx*4 + 0xc]
add ebx, 4
mov dword [ecx + esi*4 + 0xc], eax
add esi, 4
sub edx, 1
jne 0x1002b350
mov dword [ebp - 4], esi
jmp 0x1002b3ac
test edi, edi
js 0x1002b2eb
mov ecx, dword [ebp - 0xc]
add ebx, 0x20
mov esi, dword [ebp - 4]
mov dword [ecx], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
cmp ebx, dword [edi + 0x22090]
jl 0x1002b245
mov eax, dword [edi + 0x22088]
xor ecx, ecx
test eax, eax
jle 0x1002b3e5
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
sar eax, 5
mov eax, dword [edi + eax*4 + 0x22098]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x22088]
jl 0x1002b3c7
mov ebx, dword [ebp + 0x1c]
mov dword [edi + 0x22090], esi
mov byte [edi + 0x22097], 1
cmp dword [ebx], 0
jg 0x1002b59b
mov esi, dword [ebp + 0x10]
mov dl, byte [ebp + 0x18]
mov eax, dword [edi + 0x22090]
test dl, dl
je 0x1002b46a
mov ecx, dword [edi + 0x22088]
add ecx, eax
jmp 0x1002b46c
test edi, edi
je 0x1002b334
mov esi, dword [ebp - 4]
mov edx, 0x20
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub eax, edi
sub edx, edi
add ebx, edi
mov dword [ecx], eax
test edx, edx
jle 0x1002b3a9
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x22080]
dec edx
mov eax, dword [ecx + ebx*4]
inc ebx
mov dword [ecx + esi*4], eax
inc esi
test edx, edx
jg 0x1002b440
mov dword [ebp - 4], esi
jmp 0x1002b3ac
add esi, 0x20
mov dword [eax], ebx
mov dword [ebp - 4], esi
mov ebx, esi
jmp 0x1002b3ac
mov ecx, eax
cmp ecx, 0x40000
jl 0x1002b480
mov dword [ebx], 8
mov eax, dword [edi + 0x22090]
mov edi, dword [edi + 0x22088]
xor ecx, ecx
test dl, dl
sete cl
add edi, 8
lea ecx, [ecx*2 + 2]
imul ecx, eax
lea edi, [ecx + edi*2]
cmp edi, esi
jg 0x1002b58c
cmp byte [ebp + 0x18], 0
mov eax, 0x25
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 0x10]
mov dword [ecx], 0x54726965
mov dword [ecx + 4], 0x25
jne 0x1002b4cf
mov dword [ecx + 4], 0x125
mov eax, 0x125
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x22096], 0
je 0x1002b4e3
or eax, 0x200
mov dword [ecx + 4], eax
cmp byte [ebp + 0x18], 0
mov esi, ebx
mov eax, dword [ebx + 0x22088]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x22090]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx + 0x22088]
je 0x1002b55b
test ecx, ecx
jle 0x1002b529
nop word [eax + eax]
mov eax, dword [esi]
lea esi, [esi + 4]
add eax, dword [ebx + 0x22088]
dec ecx
shr eax, 2
mov word [edx], ax
add edx, 2
test ecx, ecx
jg 0x1002b510
mov ecx, dword [ebx + 0x22090]
mov esi, dword [ebx + 0x22080]
test ecx, ecx
jle 0x1002b58c
nop dword [eax]
mov ax, word [esi]
lea edx, [edx + 2]
dec ecx
mov word [edx - 2], ax
lea esi, [esi + 4]
test ecx, ecx
jg 0x1002b540
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jle 0x1002b573
nop
mov eax, dword [esi]
lea esi, [esi + 4]
shr eax, 2
dec ecx
mov word [edx], ax
add edx, 2
test ecx, ecx
jg 0x1002b560
mov ecx, dword [ebx + 0x22090]
shl ecx, 2
push ecx
push dword [ebx + 0x22080]
push edx
call fcn.10108470
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret