Function at 0x4276da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x427a5f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [eax + ecx + 0x1efc2]
xor edx, ebx
and edx, 0x3fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + eax*2 + 0x3efc0]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0x10]
mov word [edx + ecx*2 + 0x2efc0], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov cx, word [ecx + 0x14]
mov word [eax + edx*2 + 0x3efc0], cx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x10], 0
je 0x4277f6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x28]
jae 0x4277f6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
sub ecx, dword [ebp - 0x10]
cmp ecx, 0x7efa
ja 0x4277f6
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00427acf
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x20]
jbe 0x4277d3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jne 0x4277f6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 0x18]
cmp ecx, 0x1000
jbe 0x4277f6
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 3
jb 0x427973
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x10]
ja 0x427973
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
sub ecx, 3
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
sub eax, 1
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00429276
add esp, 0xc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
sub eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
sub edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [eax + ecx + 0x1efc2]
xor edx, ebx
and edx, 0x3fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + eax*2 + 0x3efc0]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0x10]
mov word [edx + ecx*2 + 0x2efc0], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov cx, word [ecx + 0x14]
mov word [eax + edx*2 + 0x3efc0], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
jne 0x42785e
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x42796e
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jl 0x42793c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1efc0]
mov dword [ebp - 0x18], ecx
jmp 0x427943
mov dword [ebp - 0x18], 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042829e
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 8], eax
jmp 0x427a37
cmp dword [ebp - 8], 0
je 0x427a12
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x1efbf]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00429276
add esp, 0xc
test eax, eax
je 0x4279f2
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jl 0x4279c0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1efc0]
mov dword [ebp - 0x1c], ecx
jmp 0x4279c7
mov dword [ebp - 0x1c], 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042829e
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
jmp 0x427a37
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20], 0x106
jae 0x427a5a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1c], 0
jne 0x427a5a
mov eax, dword [ebp + 8]
push eax
call fcn.00427521
add esp, 4
jmp 0x427a37
jmp 0x4276ef
cmp dword [ebp - 8], 0
je 0x427a86
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x1efbf]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00429276
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jl 0x427aa4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x1efc0]
mov dword [ebp - 0x20], ecx
jmp 0x427aab
mov dword [ebp - 0x20], 0
push 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042829e
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret