Function at 0x47d000
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 0x47d1ac
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 0x47d050
mov esi, dword [esp + 0x10]
test esi, esi
je 0x47d1c2
push 0
push esi
push ecx
push eax
call fcn.0052ea40
mov ecx, eax
cmp esi, eax
jbe 0x47d318
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 0x47d154
cmp dword [eax + edx*4 + 8], ecx
jne 0x47d154
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 0x47d2f9
movzx ebx, byte [ecx + esi*8 + 4]
mov edx, esi
cmp bl, byte [edi + esi*8 + 4]
jne 0x47d144
movzx ebx, byte [ecx + edx*8 + 5]
cmp bl, byte [edi + edx*8 + 5]
jne 0x47d144
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 0x47d110
mov ecx, dword [esp]
cmp edx, ecx
jae 0x47d2f9
mov ebx, dword [ebp + 8]
jmp 0x47d158
test ecx, ecx
je 0x47d1d6
cmp ecx, 0xfffffff
ja 0x47d32e
lea edi, [ecx*8]
test edi, edi
js 0x47d32e
movzx eax, byte [0x5a11e8]
mov eax, dword [0x5a1188]
test eax, eax
jne 0x47d196
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x47d333
mov dword [0x5a1188], eax
push edi
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x47d333
mov esi, eax
jmp 0x47d1dd
mov ecx, 0xcbf29ce4
mov eax, 0x84222325
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x47d0be
mov ecx, str.attempt_to_calculate_the_remainder_with_a_divisor_of_zero
mov edx, 0x39
push 0x54e460
call fcn.00532d60
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.00474080
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x2a
jne 0x47d280
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jbe 0x47d324
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 0x47d259
push dword [ebx + 4]
push 0
push dword [0x5a1188]
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 0x47d2f1
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 0x47d2f1
push edi
push 0
push dword [0x5a1188]
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 0x47d2e2
jmp 0x47d2f1
mov edx, esi
push 0x54e470
call fcn.00532ca0
push 0x54e480
call fcn.00532ca0
call fcn.004478d0
mov ecx, 4
mov edx, edi
call fcn.00531970
int3