Function at 0x1027280
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
push ebx
add ecx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, 0x1000
mov dword [ebp - 8], ecx
cmp ecx, 0x1020
jbe 0x10272bd
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 8], ecx
jbe 0x102733c
cmp dword [ebp - 0x10], 0
jne 0x1027515
cmp dword [ebp - 0xc], 0
jne 0x1027515
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], 1
cmp edx, 0x2020
jbe 0x1027515
cmp edx, dword [ebp + 0x18]
ja 0x1027515
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 4]
lea ecx, [edx + ebx - 0x400]
mov eax, 0x30
test ecx, ecx
jne 0x1027307
inc edi
sub eax, 1
jne 0x1027302
cmp edi, 0xa
mov dword [ebp - 4], edi
jg 0x1027337
push 0x80
lea edx, [edx + ebx - 0x400]
push edx
call fcn.01025eb0
fcomp qword [0x1009c60]
fnstsw ax
test ah, 5
jp 0x1027515
mov eax, 0x2000
mov edi, dword [ebp - 8]
sub edi, eax
mov eax, dword [ebp + 0x14]
cmp byte [edi + eax + 1], 0
lea ebx, [edi + eax]
je 0x10272bd
push 4
lea ecx, [edi - 4]
push ecx
mov edx, eax
push edx
call fcn.010260c0
test eax, eax
je 0x10272bd
xor eax, eax
mov ecx, ebx
lea esp, [esp]
cmp byte [ecx], 0xe8
je 0x1027381
inc eax
inc ecx
cmp eax, 0x40
jb 0x1027370
jmp 0x10272bd
mov eax, dword [ebp + 0x14]
lea ebx, [edi + eax]
push 0x40
push ebx
call fcn.01025eb0
fcomp qword [0x1009e58]
fnstsw ax
test ah, 0x41
jne 0x10272bd
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push esi
push ecx
push edx
call fcn.01026120
test eax, eax
je 0x10273ed
mov eax, dword [ebp + 0x24]
cmp eax, edi
jb 0x10273c2
cmp eax, dword [ebp - 8]
jbe 0x10272bd
mov ecx, dword [esi + 0x2c]
mov edx, dword [ebp - 4]
lea eax, [ecx + 0x20]
add ecx, 0x40
cmp eax, ecx
jae 0x10273e4
mov edi, dword [ebp + 0x14]
cmp byte [eax + edi], 0
jne 0x10273dc
inc edx
inc eax
cmp eax, ecx
jb 0x10273d2
mov dword [ebp - 4], edx
cmp edx, 0x10
jg 0x10272bd
mov eax, dword [esi + 0xe8]
mov eax, dword [eax + 0x2715c]
mov ecx, ebx
mov dl, byte [ecx]
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp + 8], edi
lea esp, [esp]
cmp dl, byte [edi + ecx]
jne 0x1027457
inc edi
cmp edi, 0x20
jl 0x1027410
lea edi, [ecx + 1]
mov dword [ebp - 0x14], 0x20
cmp dl, byte [edi - 1]
je 0x102742d
inc dword [ebp + 8]
cmp dl, byte [edi]
je 0x1027434
inc dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x102743c
inc dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x1027444
inc dword [ebp + 8]
add edi, 4
sub dword [ebp - 0x14], 1
jne 0x1027425
cmp dword [ebp + 8], 8
jl 0x10272bd
mov dword [ebp + 8], 0x20
mov edi, edi
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 8], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1027460
jmp 0x10272bd
cmp dword [ebp + 0x1c], 0x40
jbe 0x1027b50
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + ecx]
mov eax, 0xaaaaaaab
mul edx
mov eax, ecx
shr edx, 1
shr eax, 2
lea ecx, [eax + edx]
add ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x18]
jae 0x10276b0
mov ecx, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [ebp + 0x14]
lea edi, [edx + ecx]
push eax
push edi
call fcn.01025eb0
fst qword [ebp - 0x1c]
fcomp qword [0x1009e50]
fnstsw ax
test ah, 0x41
jne 0x10276b0
mov eax, dword [ebp + 0x20]
mov edx, eax
shr eax, 1
add eax, dword [ebp + 0x14]
shr edx, 2
add eax, dword [ebp + 0x1c]
push edx
push eax
call fcn.01025eb0
fadd qword [0x1009c60]
fcomp qword [ebp - 0x1c]
fnstsw ax
test ah, 5
jp 0x10276b0
mov eax, dword [esi + 0xe8]
mov eax, dword [eax + 0x2715c]
mov ecx, edi
mov dl, byte [ecx]
xor edi, edi
mov dword [ebp + 0xc], edi
cmp dl, byte [edi + ecx]
jne 0x10275f2
inc edi
cmp edi, 8
jl 0x10275a8
lea edi, [ecx + 1]
mov dword [ebp + 0x10], 8
lea ecx, [ecx]
cmp dl, byte [edi - 1]
je 0x10275c8
inc dword [ebp + 0xc]
cmp dl, byte [edi]
je 0x10275cf
inc dword [ebp + 0xc]
cmp dl, byte [edi + 1]
je 0x10275d7
inc dword [ebp + 0xc]
cmp dl, byte [edi + 2]
je 0x10275df
inc dword [ebp + 0xc]
add edi, 4
sub dword [ebp + 0x10], 1
jne 0x10275c0
cmp dword [ebp + 0xc], 2
jl 0x10276b0
mov dword [ebp + 0xc], 8
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0xc], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1027600
mov edx, dword [esi + 0x30]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
add edx, edi
cmp edx, ecx
jne 0x10276eb
mov eax, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 0x20
jb 0x10276ce
mov eax, 0x20
lea edx, [esi + 8]
push edx
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx + 0x2715c]
push eax
push edx
call fcn.01022990
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 0x18]
add edi, eax
add ecx, 0xffffffc0
mov dword [ebp + 0xc], edi
cmp edi, ecx
jae 0x1027920
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
add eax, edx
add eax, ecx
push 0x20
push eax
mov dword [ebp + 0x10], eax
call fcn.01025eb0
fcomp qword [0x1009e58]
fnstsw ax
test ah, 0x41
jne 0x1027920
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add eax, ecx
xor edx, edx
cmp eax, dword [ebp + 0x18]
ja 0x1027756
mov edi, dword [ebp + 0x14]
lea ecx, [edx + 1]
lea eax, [eax + edi - 1]
cmp byte [eax], 0
je 0x102774f
inc edx
cmp edx, 2
je 0x1027920
inc ecx
dec eax
cmp ecx, 8
jb 0x1027740
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor edi, edi
xor ebx, ebx
xor ecx, ecx
lea edx, [edx + eax + 1]
mov al, byte [edx + ecx - 1]
test al, al
jne 0x1027771
inc edi
jmp 0x102777a
cmp al, 0x41
jb 0x102777a
cmp al, 0x7a
ja 0x102777a
inc ebx
mov al, byte [edx + ecx]
test al, al
jne 0x1027784
inc edi
jmp 0x102778d
cmp al, 0x41
jb 0x102778d
cmp al, 0x7a
ja 0x102778d
inc ebx
mov al, byte [edx + ecx + 1]
test al, al
jne 0x1027798
inc edi
jmp 0x10277a1
cmp al, 0x41
jb 0x10277a1
cmp al, 0x7a
ja 0x10277a1
inc ebx
mov al, byte [edx + ecx + 2]
test al, al
jne 0x10277ac
inc edi
jmp 0x10277b5
cmp al, 0x41
jb 0x10277b5
cmp al, 0x7a
ja 0x10277b5
inc ebx
add ecx, 4
cmp ecx, 0x40
jb 0x1027766
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffe80
cmp dword [ebp + 0xc], ecx
jae 0x10277e4
mov edx, dword [ebp + 0x10]
push 3
push 0x1009e48
push 0x180
push edx
call fcn.0101c180
test eax, eax
jne 0x10277ff
cmp edi, 4
jle 0x1027920
cmp ebx, 0x14
jge 0x1027920
cmp edi, 0x20
jge 0x1027920
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0xe8]
mov eax, dword [eax + 0x2715c]
mov dl, byte [ecx]
xor edi, edi
mov dword [ebp + 0xc], edi
cmp dl, byte [edi + ecx]
jne 0x1027862
inc edi
cmp edi, 8
jl 0x1027815
lea edi, [ecx + 1]
mov dword [ebp + 0x10], 8
lea ebx, [ebx]
cmp dl, byte [edi - 1]
je 0x1027838
inc dword [ebp + 0xc]
cmp dl, byte [edi]
je 0x102783f
inc dword [ebp + 0xc]
cmp dl, byte [edi + 1]
je 0x1027847
inc dword [ebp + 0xc]
cmp dl, byte [edi + 2]
je 0x102784f
inc dword [ebp + 0xc]
add edi, 4
sub dword [ebp + 0x10], 1
jne 0x1027830
cmp dword [ebp + 0xc], 2
jl 0x1027920
mov dword [ebp + 0xc], 8
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0xc], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1027870
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
add ecx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, edi
jae 0x1027b50
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
add eax, ebx
add eax, edx
mov dword [ebp + 0x10], eax
push 0x20
add eax, 0xffffffc0
push eax
call fcn.01025eb0
fcomp qword [0x1009e58]
fnstsw ax
test ah, 0x41
jne 0x1027b50
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
xor edx, edx
add eax, ecx
mov dword [ebp + 0x14], edx
cmp eax, edi
ja 0x102798d
lea ecx, [edx + 1]
lea eax, [eax + ebx - 1]
cmp byte [eax], 0
je 0x1027986
inc edx
cmp edx, 2
je 0x1027b50
inc ecx
dec eax
cmp ecx, 6
jb 0x1027977
mov edx, dword [ebp + 0xc]
lea ecx, [edx + ebx - 0x42]
mov ebx, dword [ebp + 0x14]
mov edx, 0x10
mov edi, ebx
mov edi, edi
mov al, byte [ecx + 2]
test al, al
jne 0x10279aa
inc edi
jmp 0x10279b3
cmp al, 0x41
jb 0x10279b3
cmp al, 0x7a
ja 0x10279b3
inc ebx
mov al, byte [ecx + 1]
test al, al
jne 0x10279bd
inc edi
jmp 0x10279c6
cmp al, 0x41
jb 0x10279c6
cmp al, 0x7a
ja 0x10279c6
inc ebx
mov al, byte [ecx]
test al, al
jne 0x10279cf
inc edi
jmp 0x10279d8
cmp al, 0x41
jb 0x10279d8
cmp al, 0x7a
ja 0x10279d8
inc ebx
mov al, byte [ecx - 1]
test al, al
jne 0x10279e2
inc edi
jmp 0x10279eb
cmp al, 0x41
jb 0x10279eb
cmp al, 0x7a
ja 0x10279eb
inc ebx
sub ecx, 4
sub edx, 1
jne 0x10279a0
cmp dword [ebp + 0xc], 0x180
jbe 0x1027a1a
mov eax, dword [ebp + 0x10]
push 3
push 0x1009e48
push 0x180
add eax, 0xfffffe80
push eax
call fcn.0101c180
test eax, eax
jne 0x1027a35
cmp edi, 4
jle 0x1027b50
cmp ebx, 0x14
jge 0x1027b50
cmp edi, 0x20
jge 0x1027b50
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + 0x2715c]
mov dl, byte [ecx - 0x20]
add ecx, 0xffffffe0
xor edi, edi
mov dword [ebp + 0x14], edi
nop
cmp dl, byte [edi + ecx]
jne 0x1027a97
inc edi
cmp edi, 8
jl 0x1027a50
lea edi, [ecx + 1]
mov dword [ebp + 0x18], 8
cmp dl, byte [edi - 1]
je 0x1027a6d
inc dword [ebp + 0x14]
cmp dl, byte [edi]
je 0x1027a74
inc dword [ebp + 0x14]
cmp dl, byte [edi + 1]
je 0x1027a7c
inc dword [ebp + 0x14]
cmp dl, byte [edi + 2]
je 0x1027a84
inc dword [ebp + 0x14]
add edi, 4
sub dword [ebp + 0x18], 1
jne 0x1027a65
cmp dword [ebp + 0x14], 2
jl 0x1027b50
mov dword [ebp + 0x14], 8
mov edi, edi
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x18], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x18]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x14], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1027aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20