Function at 0x43dfd0
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 0x43e1da
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x43e1da
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp + 0x1c]
jne 0x43e03b
test esi, esi
jne 0x43e1da
cmp dword [ebp - 4], 0
je 0x43e1d3
test edi, edi
je 0x43e1d3
cmp dword [ebp - 8], 0
je 0x43e1d3
movd xmm1, eax
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ebx
addsd xmm1, qword [eax*8 + 0x5bb220]
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5bb220]
divsd xmm1, xmm0
movsd qword [ebp - 0x14], xmm1
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.00580bb0
add esp, 8
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
call fcn.00554ae1
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 0x43e0ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x43e1df
mov esi, 1
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
jb 0x43e1c8
nop
push ebx
push 0
push dword [ebp - 4]
call fcn.00556fe0
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x28], ebx
jbe 0x43e18e
nop dword [eax]
test ebx, ebx
jne 0x43e13d
mov esi, dword [ebp + 0x24]
push esi
push dword [ebp + 0x20]
push edi
call fcn.00556a60
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 0x43e14f
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push edi
call fcn.00556a60
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 0x43e0c1
mov eax, dword [ebp - 4]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x43e181
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 0x43e173
inc ebx
cmp ebx, dword [ebp + 0x28]
jb 0x43e100
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x10]
je 0x43e1a4
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.00556a60
jmp 0x43e1b5
push dword [ebp + 0x30]
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.00556a60
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 0x43e0e0
mov dword [ebp - 0x18], 1
xor ebx, ebx
jmp 0x43e1df
mov ebx, 8
jmp 0x43e1df
mov ebx, 0xa0
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x43e1f6
push eax
call esi
test edi, edi
je 0x43e1fd
push edi
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x43e207
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