Function at 0x43d8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push ebx
push 0
mov dword [ebp - 0x18], 0
call esi
push ebx
push 0
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp + 0x24]
add ecx, 4
mov dword [ebp - 8], eax
cmp ecx, ebx
mov eax, ecx
cmovbe eax, ebx
push eax
push 0
call esi
cmp dword [ebp + 0x2c], 0
xorps xmm0, xmm0
mov edi, eax
movlpd qword [ebp - 0x20], xmm0
je 0x43daed
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x43daed
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp + 0x1c]
jne 0x43d92b
test esi, esi
jne 0x43daed
cmp dword [ebp - 4], 0
je 0x43dae6
test edi, edi
je 0x43dae6
cmp dword [ebp - 8], 0
je 0x43dae6
movd xmm1, eax
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ebx
addsd xmm1, qword [eax*8 + 0x5500e0]
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5500e0]
divsd xmm1, xmm0
movsd qword [ebp - 0x14], xmm1
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.00514480
add esp, 8
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
call fcn.004de020
mov dword [ebp - 0x10], eax
dec eax
imul eax, ebx
push esi
push dword [ebp + 0x18]
sub dword [ebp + 0x30], eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 8]
test eax, eax
jne 0x43d9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
jmp 0x43db11
mov esi, 1
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
jb 0x43dac8
push ebx
push 0
push dword [ebp - 4]
call fcn.004dff60
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x28], ebx
jbe 0x43da8e
nop dword [eax + eax]
test ebx, ebx
jne 0x43da3d
mov esi, dword [ebp + 0x24]
push esi
push dword [ebp + 0x20]
push edi
call fcn.004df9e0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, ecx
mov byte [edi + esi + 3], cl
shr eax, 0x18
mov byte [edi + esi], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [edi + esi + 2], al
lea eax, [esi + 4]
mov esi, dword [ebp + 0x14]
jmp 0x43da4f
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push edi
call fcn.004df9e0
add esp, 0xc
mov eax, esi
push dword [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0xc]
test eax, eax
je 0x43d9b1
mov eax, dword [ebp - 4]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x43da81
mov esi, dword [ebp - 8]
sub esi, eax
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x43da73
inc ebx
cmp ebx, dword [ebp + 0x28]
jb 0x43da00
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x10]
je 0x43daa4
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.004df9e0
jmp 0x43dab5
push dword [ebp + 0x30]
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.004df9e0
mov ebx, dword [ebp + 0x14]
add dword [ebp + 0x2c], ebx
inc esi
add esp, 0xc
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x10]
jbe 0x43d9e2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 1
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
jmp 0x43db11
mov ebx, 8
jmp 0x43daf2
mov ebx, 0xa0
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43db0b
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
jmp 0x43db11
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x43db18
push edi
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x43db22
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret