Function at 0x43e000
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 0x43e22d
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x43e22d
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp + 0x1c]
jne 0x43e06b
test esi, esi
jne 0x43e22d
cmp dword [ebp - 4], 0
je 0x43e226
test edi, edi
je 0x43e226
cmp dword [ebp - 8], 0
je 0x43e226
movd xmm1, eax
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movd xmm0, ebx
addsd xmm1, qword [eax*8 + 0x5d2230]
cvtdq2pd xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5d2230]
divsd xmm1, xmm0
movsd qword [ebp - 0x14], xmm1
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.00590950
add esp, 8
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
call fcn.005599f0
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 0x43e111
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 0x43e251
mov esi, 1
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
jb 0x43e208
push ebx
push 0
push dword [ebp - 4]
call fcn.0055c100
xor ebx, ebx
add esp, 0xc
cmp dword [ebp + 0x28], ebx
jbe 0x43e1ce
nop dword [eax + eax]
test ebx, ebx
jne 0x43e17d
mov esi, dword [ebp + 0x24]
push esi
push dword [ebp + 0x20]
push edi
call fcn.0055bb80
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 0x43e18f
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push edi
call fcn.0055bb80
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 0x43e0f1
mov eax, dword [ebp - 4]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x43e1c1
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 0x43e1b3
inc ebx
cmp ebx, dword [ebp + 0x28]
jb 0x43e140
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x10]
je 0x43e1e4
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.0055bb80
jmp 0x43e1f5
push dword [ebp + 0x30]
push dword [ebp - 4]
push dword [ebp + 0x2c]
call fcn.0055bb80
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 0x43e122
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 0x43e251
mov ebx, 8
jmp 0x43e232
mov ebx, 0xa0
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43e24b
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call esi
jmp 0x43e251
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x43e258
push edi
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x43e262
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