Function at 0x424626
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, ecx
mov esi, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
push edi
test eax, eax
je 0x424876
cmp dword [ebp + 0x20], 0
jne 0x424652
push 0x2d
mov ecx, str.out___NULL
jmp 0x42487d
cmp dword [ebp + 0x24], 0
jne 0x424664
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x42487d
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.00425ebd
test eax, eax
jne 0x424872
mov ecx, dword [ebp + 0x18]
call fcn.00426027
test eax, eax
jne 0x424872
imul eax, edx, 0x68
push ebx
push 0
pop ebx
mov ecx, dword [eax + 0x43dfd8]
mov eax, dword [ebp + 0x10]
test al, 7
mov dword [ebp - 4], ecx
setne bl
shr eax, 3
add ebx, eax
lea edx, [ecx + ecx]
lea eax, [ebx - 2]
cmp edx, eax
jae 0x42486e
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
ja 0x42486e
mov esi, dword [sym.imp.lib.stdc.dll_malloc]
push ebx
call esi
mov edi, eax
push ebx
mov dword [ebp - 0xc], edi
call esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
add esp, 0xc
mov esi, eax
test edi, edi
je 0x42484f
cmp dword [ebp - 8], 0
je 0x424847
test esi, esi
je 0x424847
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x14], ebx
push eax
push edi
test edx, edx
je 0x424712
push dword [ebp + 0xc]
jmp 0x424716
push 0
mov edx, edi
call fcn.00425ded
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42482d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
sub eax, 2
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push edi
mov edi, dword [ebp - 0xc]
add eax, edi
push eax
call fcn.0042ff56
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov byte [eax + edi], 1
inc edi
add eax, edi
push eax
call fcn.0042ff90
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
mov edi, dword [ebp - 4]
push edi
push esi
call dword [eax + 0x43dae4]
add esp, 0x24
cmp eax, edi
je 0x42477e
push 9
pop edi
jmp 0x42482d
mov ecx, dword [ebp + 0x1c]
mov eax, ebx
sub eax, edi
mov edx, esi
dec eax
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push edi
call fcn.00425eda
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42482d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4247bf
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edi, edx
mov al, byte [edi + edx]
xor byte [edx], al
inc edx
sub ecx, 1
jne 0x4247b1
mov ecx, dword [ebp - 0x10]
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.00425eda
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42482d
mov edi, dword [ebp - 4]
test edi, edi
je 0x4247f6
mov edx, dword [ebp - 8]
mov ecx, esi
sub edx, esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4247e8
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
jae 0x424802
push 6
pop edi
jmp 0x42482b
mov eax, dword [ebp + 0x20]
push edi
push esi
mov byte [eax], 0
inc eax
push eax
call fcn.0042ff90
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push dword [ebp - 0xc]
inc eax
add eax, edi
push eax
call fcn.0042ff90
mov eax, dword [ebp + 0x24]
add esp, 0x18
xor edi, edi
mov dword [eax], ebx
push esi
mov esi, dword [sym.imp.lib.stdc.dll_free]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
add esp, 0xc
mov eax, edi
jmp 0x424871
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x42485e
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42486a
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x424870
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.00422e3e
int3