Function at 0x446370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], 0x34353637
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xc]
mov edx, ecx
and edx, 0xffffffd3
or edx, 0x82104
and ecx, 0x2c
xor ecx, edx
xor ecx, 0xe7ae3fd7
mov edx, eax
xor edx, 0xe186c027
mov esi, ecx
and esi, edx
add edx, ecx
add esi, esi
sub edx, esi
add dl, 0x3c
mov byte [esp + eax + 0xc], dl
inc eax
cmp eax, 4
jne 0x446390
mov eax, dword [esp + 0xc]
mov esi, dword [0x451fbc]
test esi, esi
je 0x44641c
xor ecx, ecx
mov edx, dword [0x451fc0]
cmp dword [edx + ecx*8], 0xc59b8bcb
je 0x4463f0
inc ecx
cmp esi, ecx
jne 0x4463e0
jmp 0x44641c
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x44641c
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 6
push dword [0x451fc4]
push edx
call fcn.004426e0
add esp, 0x24
cmp eax, 0xc0000023
jne 0x44666f
push dword [esp + 8]
call fcn.0043f830
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0x34353637
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx + 0x10]
mov ecx, esi
and ecx, 0xffffffd3
or ecx, 0x82104
and esi, 0x2c
xor esi, ecx
xor esi, 0xe7ae3fd7
mov ecx, edx
xor ecx, 0xe186c027
mov ebx, esi
and ebx, ecx
add ecx, esi
add ebx, ebx
sub ecx, ebx
add cl, 0x3c
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 4
jne 0x446450
mov ebp, dword [esp + 0x10]
mov edx, dword [0x451fbc]
test edx, edx
je 0x4464c0
xor esi, esi
mov ecx, dword [0x451fc0]
mov ebx, dword [esp + 0x3c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + esi*8], 0xc59b8bcb
je 0x4464c6
inc esi
cmp edx, esi
jne 0x4464b0
jmp 0x4464fc
mov ebx, dword [esp + 0x3c]
jmp 0x4464fc
mov edx, dword [ecx + esi*8 + 4]
cmp edx, ebp
mov esi, dword [esp]
je 0x4464ff
lea ecx, [esp + 8]
push ecx
push dword [esp + 8]
push esi
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 6
push dword [0x451fc4]
push edx
mov esi, eax
call fcn.004426e0
add esp, 0x24
mov ebp, eax
mov eax, esi
mov esi, dword [esp]
mov dword [esp + 4], ebp
test ebp, ebp
mov ebp, dword [esp + 0x40]
js 0x446662
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4465f9
test edi, edi
je 0x4465f2
mov ecx, dword [esi + 0x10]
shr ecx, 1
mov ebp, dword [edx]
cmp ebp, ecx
jb 0x446530
mov ebp, ecx
test ebp, ebp
je 0x44657c
add eax, 0x14
mov ecx, ebp
and ecx, 3
je 0x446582
mov ebx, ebp
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [edi], bp
add edi, 2
inc esi
cmp ecx, esi
jne 0x446550
mov ebp, ebx
mov ecx, ebx
sub ecx, esi
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
jmp 0x446584
mov ebp, dword [esp + 0x40]
jmp 0x4465ed
mov ecx, ebp
cmp ebp, 4
mov ebp, dword [esp + 0x40]
jb 0x4465ed
nop
nop
nop
movzx edx, word [eax]
xor ebx, ebx
test dx, dx
setne bl
lea esi, [eax + ebx*2]
mov word [edi], dx
movzx eax, word [eax + ebx*2]
xor edx, edx
test ax, ax
setne dl
lea ebx, [esi + edx*2]
mov word [edi + 2], ax
movzx eax, word [esi + edx*2]
xor edx, edx
test ax, ax
setne dl
lea esi, [ebx + edx*2]
mov word [edi + 4], ax
movzx edx, word [ebx + edx*2]
xor eax, eax
test dx, dx
setne al
mov word [edi + 6], dx
add edi, 8
lea eax, [esi + eax*2]
add ecx, 0xfffffffc
jne 0x446590
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp]
mov word [edi], 0
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [edx], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x446606
mov eax, dword [esi + 4]
mov dword [ecx], eax
test ebp, ebp
je 0x446662
test ebx, ebx
je 0x44665c
mov eax, dword [ebp]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x44661a
mov eax, ecx
mov ecx, dword [esp]
mov esi, dword [ecx + 8]
add esi, dword [esp]
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, ebx
add ebx, edx
add edx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, edx
mov edi, ebx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp]
test al, 1
je 0x44665c
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebx + eax], cl
mov eax, dword [esi + 0xc]
mov dword [ebp], eax
push esi
call fcn.0043f8b0
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret