Function at 0x55d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x55d9ad
cmp dword [0x6464e4], 0
push esi
push edi
je 0x55d70d
lea eax, [ebp - 0x28]
push eax
call fcn.0052c980
push 0xdf
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
push 0x13
push 5
call fcn.0052cb60
lea eax, [ebp - 0x28]
push eax
push 0x646914
call fcn.0052c910
mov esi, eax
push 0xe1
neg esi
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
sbb esi, esi
push 0x13
inc esi
push 6
mov dword [ebp - 0x1c], esi
call fcn.0052cb60
add esp, 0x2c
test esi, esi
jne 0x55d72a
jmp 0x55d714
mov dword [ebp - 0x1c], 0
push 0xe6
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
push 0x12
push 9
call fcn.0052cb60
add esp, 0x10
mov ecx, dword [0x6464cc]
mov edi, ecx
mov eax, dword [0x6464d0]
add ecx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [0x6464d4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6464fc]
mov dword [ebp - 8], eax
mov dword [0x6464cc], ecx
movdqu xmm0, xmmword [0x6464ec]
movdqu xmmword [ebp - 0x18], xmm0
cmp ecx, 0x3ff
jb 0x55d793
mov eax, 0x401005
mov dword [0x6464c8], 0x3ff
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0xfffffc01
add ecx, eax
mov dword [0x6464cc], ecx
jmp 0x55d7a9
mov eax, dword [0x6464c8]
cmp eax, 0x3ff
jae 0x55d7a9
cmp ecx, eax
cmova eax, ecx
mov dword [0x6464c8], eax
mov eax, 0x66666667
mov ecx, ebx
imul ebx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
add eax, esi
add dword [0x6464d4], eax
cmp dword [ebp - 0x1c], 0
jne 0x55d7ef
push 0x106
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.0052cb60
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
call fcn.00531280
add esp, 4
test ebx, ebx
jle 0x55d90c
lea ecx, [ebx - 1]
mov eax, 0xcccccccd
mul ecx
mov eax, edx
shr eax, 4
inc eax
mov dword [ebp - 0x24], eax
mov eax, 0x14
jmp 0x55d820
cmp ebx, 0x14
mov esi, ebx
push 0
cmovg esi, eax
call fcn.005313c0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00530e60
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00531010
lea ecx, [edi - 0x3ff]
add esp, 0x18
add ecx, esi
test ecx, ecx
jle 0x55d888
mov eax, esi
sub eax, ecx
push eax
lea eax, [edi + 0x646500]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00531010
lea eax, [edi - 0x3ff]
add eax, esi
push eax
lea eax, [ebp - 0x48]
push 0x646500
push eax
call fcn.00531010
add esp, 0x18
jmp 0x55d89c
push esi
lea eax, [edi + 0x646500]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00531010
add esp, 0xc
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call fcn.00531010
push 8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00531010
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00530db0
inc dword [ebp - 0x2c]
add esp, 0x24
add dword [ebp - 0x20], esi
xor ecx, ecx
test esi, esi
jle 0x55d8fb
jmp 0x55d8e0
mov al, byte [ebp + ecx - 0x18]
xor byte [edi + 0x646500], al
inc edi
xor eax, eax
cmp edi, 0x3ff
cmovge edi, eax
inc ecx
cmp ecx, esi
jl 0x55d8e0
sub ebx, 0x14
mov eax, 0x14
dec dword [ebp - 0x24]
jne 0x55d820
lea eax, [ebp - 0x48]
push eax
call fcn.00531020
mov ebx, dword [ebp - 0x1c]
add esp, 4
pop edi
pop esi
test ebx, ebx
jne 0x55d937
push 0x137
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
push 0x12
push 9
call fcn.0052cb60
add esp, 0x10
movdqu xmm0, xmmword [ebp - 0x18]
mov eax, 0x6464ec
xor ecx, ecx
mov edx, 4
movdqu xmm1, xmmword [eax]
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
jmp 0x55d960
mov al, byte [ebp + ecx - 8]
lea ecx, [ecx + 1]
xor byte [ecx + 0x6464fb], al
dec edx
jne 0x55d960
movsd xmm0, qword [0x5f1278]
movsd xmm1, qword [0x6464d8]
comisd xmm0, xmm1
jbe 0x55d993
addsd xmm1, qword [ebp + 0x10]
movsd qword [0x6464d8], xmm1
test ebx, ebx
jne 0x55d9ad
push 0x144
push str.F:Gitcurllookaside_opensslcrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.0052cb60
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret