Function at 0x4348a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 8]
test edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
je 0x434a4c
lea edi, [eax + 5]
lea edx, [edx*8]
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
nop word [eax + eax]
movzx esi, byte [edi - 1]
imul ebx, ecx, 0x1b3
movzx ecx, byte [edi]
mov dword [esp + 8], edx
mov edx, 0x1b3
xor esi, eax
mov eax, esi
shl esi, 8
mul edx
xor ecx, eax
add esi, edx
mov edx, 0x1b3
mov eax, ecx
add ebx, esi
shl ecx, 8
mul edx
imul esi, ebx, 0x1b3
add ecx, edx
mov edx, 0x1b3
add esi, ecx
mov ecx, eax
xor ecx, dword [edi - 5]
add edi, 8
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
imul edx, esi, 0x1b3
add ecx, edx
mov edx, dword [esp + 8]
add edx, 0xfffffff8
jne 0x4348f0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x434a62
push 0
push esi
push ecx
push eax
call fcn.004d4340
mov ecx, eax
cmp esi, eax
jbe 0x434bb8
mov ebx, dword [ebp + 8]
lea edx, [ecx + ecx*4]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov eax, dword [ebx + 4]
movzx ecx, word [eax + edx*4 + 0x10]
cmp cx, word [ebx + 0x10]
mov ecx, dword [esp]
jne 0x4349f4
cmp dword [eax + edx*4 + 8], ecx
jne 0x4349f4
mov ecx, dword [eax + edx*4 + 4]
mov edi, dword [esp + 4]
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp dword [esp], esi
je 0x434b99
movzx ebx, byte [ecx + esi*8 + 4]
mov edx, esi
cmp bl, byte [edi + esi*8 + 4]
jne 0x4349e4
movzx ebx, byte [ecx + edx*8 + 5]
cmp bl, byte [edi + edx*8 + 5]
jne 0x4349e4
mov edi, dword [ecx + edx*8]
mov ebx, dword [esp + 4]
lea esi, [edx + 1]
cmp edi, dword [ebx + edx*8]
mov edi, dword [esp + 4]
je 0x4349b0
mov ecx, dword [esp]
cmp edx, ecx
jae 0x434b99
mov ebx, dword [ebp + 8]
jmp 0x4349f8
test ecx, ecx
je 0x434a76
cmp ecx, 0xfffffff
ja 0x434bce
lea edi, [ecx*8]
test edi, edi
js 0x434bce
movzx eax, byte [0x537170]
mov eax, dword [0x5371d8]
test eax, eax
jne 0x434a36
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x434bd3
mov dword [0x5371d8], eax
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x434bd3
mov esi, eax
jmp 0x434a7d
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x43495e
mov ecx, str.attempt_to_calculate_the_remainder_with_a_divisor_of_zero
mov edx, 0x39
push 0x4e5f30
call fcn.004d6490
xor edi, edi
mov esi, 4
push edi
mov edi, dword [esp + 8]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 2
push eax
call fcn.0042b5b0
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x2a
jne 0x434b20
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jbe 0x434bc4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 8]
movzx edi, word [ebx + 0x10]
mov esi, dword [esp + 0x2c]
cmp dword [eax + ecx*4], 0
lea ebx, [eax + ecx*4]
je 0x434af9
push dword [ebx + 4]
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], di
mov dword [eax + 4], esi
mov dword [eax], 0x2a
jmp 0x434b91
mov edx, dword [esp + 0xc]
movsd xmm2, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
movsd qword [edx + 0x30], xmm2
movsd qword [edx + 0x28], xmm1
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
movsd qword [edx + 0x38], xmm0
movsd qword [edx + 0x20], xmm2
movsd qword [edx + 0x18], xmm1
movsd xmm2, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x30]
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 0x434b91
push edi
push 0
push dword [0x5371d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
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 0x434b82
jmp 0x434b91
mov edx, esi
push 0x4e5f40
call fcn.004d63d0
push 0x4e5f50
call fcn.004d63d0
call fcn.0041f600
mov ecx, 4
mov edx, edi
call fcn.004d6180
int3