Function at 0x303c860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x18], 0x40414e4f
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x303c8f4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x18]
lea esi, [eax + 0x266168f6]
lea ecx, [eax + edx]
add ecx, 0x266168f6
add eax, 0xf6
or esi, eax
and esi, edx
and eax, edx
add eax, esi
mov edx, eax
xor edx, ecx
not eax
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0x46
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x303c8a0
mov esi, dword [esp + 0x18]
mov eax, dword [0x304ab40]
test eax, eax
je 0x303c94c
xor ecx, ecx
mov edx, dword [0x304ab44]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x2286b4e
je 0x303c920
inc ecx
cmp eax, ecx
jne 0x303c910
jmp 0x303c94c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x303c94c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x304ab48]
push eax
call fcn.03038ad0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x303cc86
push dword [esp + 0x10]
call fcn.030366c0
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x40414e4f
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x303c9f6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx esi, byte [esp + edx + 0x18]
lea ebx, [ecx + 0x266168f6]
lea edx, [ecx + esi]
add edx, 0x266168f6
add ecx, 0xf6
or ebx, ecx
and ebx, esi
and ecx, esi
add ecx, ebx
mov esi, ecx
xor esi, edx
not ecx
and ecx, edx
add ecx, ecx
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
add cl, 0x46
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x18], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x303c9a0
mov esi, dword [esp + 0x18]
mov ecx, dword [0x304ab40]
test ecx, ecx
je 0x303ca32
mov edi, esi
xor edx, edx
mov esi, dword [0x304ab44]
mov ebx, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x303ca38
inc edx
cmp ecx, edx
jne 0x303ca20
mov esi, edi
jmp 0x303ca64
mov ebx, dword [esp + 8]
jmp 0x303ca64
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x303ca64
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x304ab48]
push ecx
call fcn.03038ad0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x303cc7d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x28], esi
je 0x303cb5c
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x303cb55
mov eax, edx
mov edx, dword [ebx + 0x10]
shr edx, 1
mov eax, dword [eax]
cmp eax, edx
jb 0x303ca98
mov eax, edx
test eax, eax
je 0x303cb49
mov esi, ebx
add esi, 0x14
mov ebx, eax
and ebx, 3
mov dword [esp + 0xc], eax
mov edx, eax
je 0x303cad8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec edx
movzx ecx, word [esi]
xor eax, eax
test cx, cx
setne al
lea esi, [esi + eax*2]
mov word [edi], cx
add edi, 2
dec ebx
jne 0x303cac0
cmp dword [esp + 0xc], 4
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
jb 0x303cb49
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
setne cl
mov word [edi], ax
lea eax, [esi + ecx*2]
movzx ecx, word [esi + ecx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edi + 2], cx
lea ecx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edi + 4], ax
lea eax, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [eax + ebx*2]
mov word [edi + 6], cx
add edi, 8
add edx, 0xfffffffc
jne 0x303caf0
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
mov word [edi], 0
mov esi, dword [esp + 0x28]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edx], eax
test ecx, ecx
je 0x303cb65
mov eax, dword [ebx + 4]
mov dword [ecx], eax
cmp dword [ebp + 0x20], 0
je 0x303cc7d
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x303cc71
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebx + 0xc]
cmp edx, ecx
jb 0x303cb88
mov edx, ecx
mov esi, dword [ebx + 8]
add esi, ebx
mov ecx, edx
shr ecx, 2
mov ebx, edx
and edx, 0xfffffffc
mov edi, eax
add eax, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov dword [esp + 0xc], ebx
mov ecx, ebx
and ecx, 3
mov esi, ecx
not esi
or esi, 1
add esi, ecx
shr ecx, 1
mov ebx, edx
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 8]
mov ecx, esi
inc ecx
je 0x303cc71
mov edi, dword [esp + 0xc]
and edi, 2
add edx, edi
add eax, edi
mov ebx, ecx
and ebx, 7
je 0x303cc06
mov dword [esp + 0xc], ecx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + edi]
mov byte [eax + edi], cl
inc edi
cmp ebx, edi
jne 0x303cbf0
add edx, edi
add eax, edi
mov ecx, dword [esp + 0xc]
sub ecx, edi
cmp esi, 7
mov ebx, dword [esp + 8]
jb 0x303cc71
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, ecx
movzx ecx, byte [edx + esi]
mov byte [eax + esi], cl
movzx ecx, byte [edx + esi + 1]
mov byte [eax + esi + 1], cl
movzx ecx, byte [edx + esi + 2]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edx + esi + 3]
mov byte [eax + esi + 3], cl
movzx ecx, byte [edx + esi + 4]
mov byte [eax + esi + 4], cl
movzx ecx, byte [edx + esi + 5]
mov byte [eax + esi + 5], cl
movzx ecx, byte [edx + esi + 6]
mov byte [eax + esi + 6], cl
movzx ecx, byte [edx + esi + 7]
mov byte [eax + esi + 7], cl
mov ecx, edi
add esi, 8
cmp edi, esi
jne 0x303cc20
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov esi, dword [esp + 0x28]
push ebx
call fcn.030367d0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret