Function at 0x43dfe0
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 0x43e20d
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x43e20d
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp + 0x1c]
jne 0x43e04b
test esi, esi
jne 0x43e20d
cmp dword [ebp - 4], 0
je 0x43e206
test edi, edi
je 0x43e206
cmp dword [ebp - 8], 0
je 0x43e206
movd xmm1, eax
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ebx
addsd xmm1, qword [eax*8 + 0x5cf230]
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cf230]
divsd xmm1, xmm0
movsd qword [ebp - 0x14], xmm1
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.0058d6e0
add esp, 8
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
call fcn.00556780
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 0x43e0f1
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 0x43e231
mov esi, 1
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
jb 0x43e1e8
push ebx
push 0
push dword [ebp - 4]
call fcn.00558e90
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x28], ebx
jbe 0x43e1ae
nop dword [eax + eax]
test ebx, ebx
jne 0x43e15d
mov esi, dword [ebp + 0x24]
push esi
push dword [ebp + 0x20]
push edi
call fcn.00558910
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 0x43e16f
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push edi
call fcn.00558910
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 0x43e0d1
mov eax, dword [ebp - 4]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x43e1a1
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 0x43e193
inc ebx
cmp ebx, dword [ebp + 0x28]
jb 0x43e120
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x10]
je 0x43e1c4
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.00558910
jmp 0x43e1d5
push dword [ebp + 0x30]
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.00558910
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 0x43e102
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 0x43e231
mov ebx, 8
jmp 0x43e212
mov ebx, 0xa0
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43e22b
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
jmp 0x43e231
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x43e238
push edi
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x43e242
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