Function at 0x42d62e
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 0x42d87e
cmp dword [ebp + 0x20], 0
jne 0x42d65a
push 0x2d
mov ecx, str.out___NULL
jmp 0x42d885
cmp dword [ebp + 0x24], 0
jne 0x42d66c
push 0x2e
mov ecx, str.outlen___NULL
jmp 0x42d885
mov edx, dword [ebp + 0x1c]
mov ecx, edx
call fcn.0042eec5
test eax, eax
jne 0x42d87a
mov ecx, dword [ebp + 0x18]
call fcn.0042f02f
test eax, eax
jne 0x42d87a
imul eax, edx, 0x68
push ebx
push 0
pop ebx
mov ecx, dword [eax + 0x46b2f8]
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 0x42d876
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 2]
cmp esi, eax
ja 0x42d876
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 0x42d857
cmp dword [ebp - 8], 0
je 0x42d84f
test esi, esi
je 0x42d84f
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 0x42d71a
push dword [ebp + 0xc]
jmp 0x42d71e
push 0
mov edx, edi
call fcn.0042edf5
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d835
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.0043ded6
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.0043df10
imul eax, dword [ebp + 0x18], 0x28
push dword [ebp + 0x14]
mov edi, dword [ebp - 4]
push edi
push esi
call dword [eax + 0x46ae04]
add esp, 0x24
cmp eax, edi
je 0x42d786
push 9
pop edi
jmp 0x42d835
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.0042eee2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d835
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42d7c7
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 0x42d7b9
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.0042eee2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42d835
mov edi, dword [ebp - 4]
test edi, edi
je 0x42d7fe
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 0x42d7f0
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
cmp dword [eax], ebx
jae 0x42d80a
push 6
pop edi
jmp 0x42d833
mov eax, dword [ebp + 0x20]
push edi
push esi
mov byte [eax], 0
inc eax
push eax
call fcn.0043df10
push dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
push dword [ebp - 0xc]
inc eax
add eax, edi
push eax
call fcn.0043df10
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 0x42d879
push edi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d866
push eax
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
test esi, esi
je 0x42d872
push esi
call dword [sym.imp.lib.stdc.dll_free]
pop ecx
push 0xd
jmp 0x42d878
push 0x16
pop eax
pop ebx
pop edi
pop esi
leave
ret
push 0x2c
mov ecx, str.msg___NULL
call fcn.0042be94
int3