Function at 0x441260
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 + 8], 0x5c5d5e5f
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov eax, 0x58fa0f70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x58fa0f68]
xor ecx, eax
mov edx, ecx
not edx
and edx, 0x31
and ecx, 0xce
sub ecx, edx
inc cl
mov byte [esp + eax - 0x58fa0f68], cl
inc eax
cmp eax, 0x58fa0f77
jne 0x441290
mov ebx, dword [esp + 8]
mov eax, dword [0x44d05c]
test eax, eax
je 0x44130e
xor ecx, ecx
mov edx, dword [0x44d060]
nop
cmp dword [edx + ecx*8], 0x4f699cd4
je 0x4412e0
inc ecx
cmp eax, ecx
jne 0x4412d0
jmp 0x44130e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44130e
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44d064]
call fcn.0043df70
add esp, 0x24
mov ebx, eax
cmp ebx, 0xc0000023
jne 0x44156e
push dword [esp + 0x10]
call fcn.0043b7e0
add esp, 4
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], 0x5c5d5e5f
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov edx, 0x58fa0f70
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edx - 0x58fa0f68]
xor ebx, edx
mov esi, ebx
not esi
and esi, 0x31
and ebx, 0xce
sub ebx, esi
inc bl
mov byte [esp + edx - 0x58fa0f68], bl
inc edx
cmp edx, 0x58fa0f77
jne 0x441350
mov ebx, dword [esp + 8]
mov edx, dword [0x44d05c]
test edx, edx
je 0x4413e7
mov dword [esp], ebp
xor esi, esi
mov ebp, dword [0x44d060]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + esi*8], 0x4f699cd4
je 0x4413b1
inc esi
cmp edx, esi
jne 0x4413a0
jmp 0x4413e7
mov edx, dword [ebp + esi*8 + 4]
cmp edx, ebx
je 0x4413e7
lea esi, [esp + 0x10]
push esi
push dword [esp + 4]
push dword [esp + 0xc]
push 1
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44d064]
mov esi, eax
call fcn.0043df70
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 4]
js 0x441565
mov esi, dword [esp + 0x34]
test esi, esi
mov edx, dword [esp + 0x38]
je 0x4414ed
test edi, edi
je 0x4414e6
mov ebp, dword [ecx + 0x10]
shr ebp, 1
mov ecx, dword [esi]
cmp ecx, ebp
jb 0x44141c
mov ecx, ebp
test ecx, ecx
mov ebp, dword [esp + 0x3c]
je 0x4414dd
add eax, 0x14
mov dword [esp], ecx
and ecx, 3
je 0x441472
xor esi, esi
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 0x441440
mov ecx, dword [esp]
sub ecx, esi
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp dword [esp], 4
jae 0x44147b
jmp 0x4414dd
mov ecx, dword [esp]
cmp dword [esp], 4
jb 0x4414dd
mov dword [esp], ebx
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 0x441480
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp]
mov word [edi], 0
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x10]
shr eax, 1
mov dword [esi], eax
test edx, edx
je 0x4414f6
mov eax, dword [ecx + 4]
mov dword [edx], eax
cmp dword [esp + 0x40], 0
je 0x441565
test ebp, ebp
je 0x44155c
mov dword [esp], ebx
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x441513
mov eax, ecx
mov ebx, dword [esp + 4]
mov esi, dword [ebx + 8]
add esi, ebx
mov ecx, eax
shr ecx, 2
mov edx, eax
and edx, 0xfffffffc
mov edi, ebp
add ebp, 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, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, ebx
test al, 1
mov ebx, dword [esp]
je 0x44155c
and eax, 2
movzx ecx, byte [edx + eax]
mov byte [ebp + eax], cl
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
push ecx
call fcn.0043b860
add esp, 4
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret