Function at 0x4d3c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], esp
mov dword [esi + 0x80], 0xffffffff
mov dword [esi + 0x7c], 0x578fa0
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], edx
mov eax, dword fs:[0]
mov dword [esi + 0x78], eax
lea eax, [esi + 0x78]
mov dword fs:[0], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esi + 0x10], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
je 0x4d3dd7
lea edi, [eax + 5]
lea edx, [edx*8]
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
nop word cs:[eax + eax]
nop
mov dword [esi + 4], edi
mov dword [esi + 0x18], edx
imul ebx, ecx, 0x1b3
mov edx, dword [esi + 4]
mov ecx, dword [esi + 4]
movzx edi, byte [edx - 1]
movzx ecx, byte [ecx]
mov edx, 0x1b3
xor edi, eax
mov eax, edi
shl edi, 8
mul edx
xor ecx, eax
add edi, edx
mov edx, 0x1b3
mov eax, ecx
add ebx, edi
shl ecx, 8
mul edx
imul edi, ebx, 0x1b3
add ecx, edx
mov edx, 0x1b3
add edi, ecx
mov ecx, eax
mov eax, dword [esi + 4]
xor ecx, dword [eax - 5]
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
imul edx, edi, 0x1b3
mov edi, dword [esi + 4]
add ecx, edx
mov edx, dword [esi + 0x18]
add edi, 8
add edx, 0xfffffff8
jne 0x4d3ca0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x4d3dec
push 0
push edi
push ecx
push eax
call fcn.0057a380
mov ecx, eax
cmp edi, eax
jbe 0x4d3f6e
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
lea ecx, [ecx + ecx*4]
mov edi, dword [esi + 8]
mov dword [esi + 4], ecx
mov eax, dword [edx + 4]
movzx ecx, word [eax + ecx*4 + 0x10]
cmp cx, word [edx + 0x10]
jne 0x4d3d90
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
cmp dword [eax + edx*4 + 8], ecx
jne 0x4d3d90
mov ecx, dword [esi + 4]
xor edx, edx
mov ecx, dword [eax + ecx*4 + 4]
cmp dword [esi + 0xc], edx
je 0x4d3f51
movzx ebx, byte [ecx + edx*8 + 4]
cmp bl, byte [edi + edx*8 + 4]
jne 0x4d3d90
movzx ebx, byte [ecx + edx*8 + 5]
cmp bl, byte [edi + edx*8 + 5]
jne 0x4d3d90
mov edi, dword [ecx + edx*8]
mov ebx, dword [esi + 8]
cmp edi, dword [ebx + edx*8]
mov edi, dword [esi + 8]
lea edx, [edx + 1]
je 0x4d3d60
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4d3e16
cmp eax, 0xfffffff
ja 0x4d3fa6
lea ebx, [eax*8]
test ebx, ebx
js 0x4d3fbb
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, ebx
call fcn.0056a9f0
test eax, eax
mov dword [esi + 0x80], 0
je 0x4d3fd0
mov edi, eax
jmp 0x4d3e1d
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x4d3d1a
mov byte [esi + 3], 0
mov dword [esi + 0x80], 0
mov ecx, str.attempt_to_calculate_the_remainder_with_a_divisor_of_zero
mov edx, 0x39
push 0x59d52c
call fcn.0057f7d0
add esp, 4
jmp 0x4d3fe0
xor ebx, ebx
mov edi, 4
push ebx
push dword [esi + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x1c]
mov byte [esi + 3], 0
mov dword [esi + 0x80], 0
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0x20], 2
push eax
call fcn.004c8260
add esp, 4
mov eax, dword [esi + 0x30]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
cmp eax, 0x2a
jne 0x4d3ed5
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [eax]
cmp edx, ecx
mov dword [esi + 0x10], eax
jbe 0x4d3f8d
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
cmp dword [eax + ecx*4], 0
lea ebx, [eax + ecx*4]
mov ecx, edi
mov edi, dword [esi + 0x34]
movzx ecx, word [ecx + 0x10]
je 0x4d3eaf
push dword [ebx + 4]
push 0
push dword [0x5fd290]
mov word [esi + 4], cx
call dword [sym.imp.kernel32.dll_HeapFree]
movzx ecx, word [esi + 4]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
mov word [ebx + 0x10], cx
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], edi
mov dword [ecx], 0x2a
jmp 0x4d3f40
mov edx, dword [esi + 0x14]
movsd xmm2, qword [esi + 0x60]
movsd xmm1, qword [esi + 0x58]
movsd xmm0, qword [esi + 0x68]
mov ecx, dword [esi + 0x34]
mov edi, dword [esi + 8]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esi + 0x50]
movsd xmm1, qword [esi + 0x48]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x38]
movsd qword [edx + 0x10], xmm2
movsd qword [edx + 8], xmm1
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4d3f40
push edi
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x78]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + ecx*4 + 0xc]
mov dword [edx + 4], eax
mov dword [edx], 0x2a
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4d3f31
jmp 0x4d3f40
mov byte [esi + 3], 0
mov dword [esi + 0x80], 0
mov edx, edi
push 0x59d53c
call fcn.0057f710
add esp, 4
jmp 0x4d3fe0
mov dword [esi + 0x80], 1
push 0x59d54c
call fcn.0057f710
add esp, 4
jmp 0x4d3fe0
mov byte [esi + 3], 0
mov dword [esi + 0x80], 0
call fcn.004634e0
jmp 0x4d3fe0
mov byte [esi + 3], 0
mov dword [esi + 0x80], 0
call fcn.004634e0
jmp 0x4d3fe0
mov ecx, 4
mov edx, ebx
mov byte [esi + 3], 0
call fcn.0057f230
ud2