Function at 0x41bf76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, ecx
mov dword [ebp - 0x20], eax
push esi
mov esi, edx
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x41c1d0
cmp dword [ebp + 0x20], 0
jne 0x41bfa1
push 0x2d
mov ecx, str.out___NULL
jmp 0x41c1d7
cmp dword [ebp + 0x24], 0
jne 0x41bfb3
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x41c1d7
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.0041deeb
test eax, eax
jne 0x41c1cd
mov ecx, dword [ebp + 0x18]
call fcn.0041e0aa
test eax, eax
jne 0x41c1cd
imul eax, edx, 0x68
push ebx
push edi
push 0
pop ebx
mov edi, dword [eax + 0x43bbb8]
mov eax, dword [ebp + 0x10]
test al, 7
mov dword [ebp - 0xc], edi
setne bl
shr eax, 3
add ebx, eax
lea ecx, [edi + edi]
lea eax, [ebx - 2]
cmp ecx, eax
jae 0x41c1c8
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x14], eax
add eax, 0xfffffffe
cmp esi, eax
ja 0x41c1c8
mov esi, dword [sym.imp.lib.stdc.dll_malloc]
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
push edi
mov dword [ebp - 4], eax
call esi
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov edi, eax
mov dword [ebp - 8], edi
test esi, esi
je 0x41c1a9
cmp dword [ebp - 4], 0
je 0x41c1a1
test edi, edi
je 0x41c1a1
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], ebx
push eax
push esi
test edx, edx
je 0x41c064
push dword [ebp + 0xc]
jmp 0x41c068
push 0
mov edx, esi
call fcn.0041de1b
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41c184
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
sub eax, 2
push eax
push edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [esi + edi]
push eax
call fcn.00429d06
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
add eax, edi
push dword [ebp - 0x20]
mov byte [eax + esi], 1
inc eax
add eax, esi
push eax
call fcn.00429d40
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
push edi
mov edi, dword [ebp - 8]
push edi
call dword [eax + 0x43b6c4]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
cmp eax, ecx
je 0x41c0d0
push 9
pop edi
jmp 0x41c184
mov eax, ebx
mov edx, edi
sub eax, ecx
dec eax
push eax
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0041df03
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41c184
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41c112
mov edi, dword [ebp - 4]
mov edx, esi
sub edi, esi
mov esi, ecx
mov al, byte [edi + edx]
xor byte [edx], al
inc edx
sub esi, 1
jne 0x41c104
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov edx, esi
push edi
push dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.0041df03
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41c184
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x41c14c
mov esi, dword [ebp - 4]
mov ecx, edi
mov edx, dword [ebp - 8]
sub esi, edx
mov al, byte [esi + edx]
xor byte [edx], al
inc edx
sub ecx, 1
jne 0x41c13e
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 8]
cmp dword [eax], ebx
jae 0x41c15b
push 6
pop edi
jmp 0x41c182
mov eax, dword [ebp + 0x20]
push edi
push ecx
mov byte [eax], 0
inc eax
push eax
call fcn.00429d40
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x20]
inc edi
add eax, edi
push esi
push eax
call fcn.00429d40
mov eax, dword [ebp + 0x24]
add esp, 0x18
xor edi, edi
mov dword [eax], ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.lib.stdc.dll_free]
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x10]
push eax
call esi
add esp, 0xc
mov eax, edi
jmp 0x41c1cb
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c1b8
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test edi, edi
je 0x41c1c4
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x41c1ca
push 0x16
pop eax
pop edi
pop ebx
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.0041c461
int3