Function at 0x547cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x547fcf
cmp dword [0x6d6fbc], 0
push esi
push edi
je 0x547d4b
lea eax, [ebp - 0x34]
push eax
call fcn.00514510
push 0xdf
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x13
push 5
call fcn.00514890
lea eax, [ebp - 0x34]
push eax
push 0x6d6fc0
call fcn.005144a0
neg eax
push 0xe1
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
sbb esi, esi
push 0x13
inc esi
push 6
mov dword [ebp - 0x20], esi
call fcn.00514890
add esp, 0x2c
test esi, esi
jne 0x547d68
jmp 0x547d52
mov dword [ebp - 0x20], 0
push 0xe6
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 9
call fcn.00514890
add esp, 0x10
mov edi, dword [0x6d6b7c]
mov eax, dword [0x6d6fa8]
movups xmm0, xmmword [0x6d6f94]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6d6fac]
lea ecx, [ebx + edi]
mov dword [ebp - 0x28], eax
mov eax, dword [0x6d6fa4]
mov dword [ebp - 8], eax
mov dword [0x6d6b7c], ecx
movups xmmword [ebp - 0x18], xmm0
cmp ecx, 0x3ff
jl 0x547dcf
mov eax, 0x80200803
mov dword [0x6d6b78], 0x3ff
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3ff
sub ecx, eax
mov dword [0x6d6b7c], ecx
jmp 0x547de5
mov eax, dword [0x6d6b78]
cmp eax, 0x3ff
jge 0x547de5
cmp ecx, eax
cmovg eax, ecx
mov dword [0x6d6b78], 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 [0x6d6fac], eax
cmp dword [ebp - 0x20], 0
jne 0x547e2b
push 0x106
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.00514890
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
call fcn.004f5660
add esp, 4
test ebx, ebx
jle 0x547f2e
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
cmp ebx, 0x14
mov esi, ebx
push 0
cmovg esi, eax
call fcn.004f5850
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004f5110
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52b0
lea ecx, [edi - 0x3ff]
add esp, 0x18
add ecx, esi
lea edx, [edi + 0x6d6b80]
mov dword [ebp - 0x30], ecx
mov eax, esi
test ecx, ecx
jle 0x547eb1
sub eax, ecx
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52b0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov edx, 0x6d6b80
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52b0
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52b0
push 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52b0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004f5060
inc dword [ebp - 0x28]
add esp, 0x30
add dword [ebp - 0x1c], esi
xor ecx, ecx
test esi, esi
jle 0x547f1c
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x18]
xor byte [edi + 0x6d6b80], al
lea eax, [edi + 1]
xor edi, edi
cmp eax, 0x3ff
cmovl edi, eax
inc ecx
cmp ecx, esi
jl 0x547f00
sub ebx, 0x14
mov eax, 0x14
sub dword [ebp - 0x24], 1
jne 0x547e57
lea eax, [ebp - 0x4c]
push eax
call fcn.004f52c0
mov ebx, dword [ebp - 0x20]
add esp, 4
pop edi
pop esi
test ebx, ebx
jne 0x547f60
push 0x137
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 9
call fcn.00514890
add esp, 0x10
nop dword [eax]
movups xmm1, xmmword [0x6d6f94]
xor ecx, ecx
mov edx, 4
movups xmm0, xmmword [ebp - 0x18]
pxor xmm1, xmm0
movups xmmword [0x6d6f94], xmm1
nop dword [eax]
mov al, byte [ebp + ecx - 8]
lea ecx, [ecx + 1]
xor byte [ecx + 0x6d6fa3], al
sub edx, 1
jne 0x547f80
movsd xmm0, qword [0x642190]
movsd xmm1, qword [0x6d6fb0]
comisd xmm0, xmm1
jbe 0x547fb5
addsd xmm1, qword [ebp + 0x10]
movsd qword [0x6d6fb0], xmm1
test ebx, ebx
jne 0x547fcf
push 0x144
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.00514890
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret