Function at 0x100d8b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101fd398]
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 0x100d8e3f
cmp dword [0x102008fc], 0
push esi
push edi
je 0x100d8bbb
lea eax, [ebp - 0x34]
push eax
call fcn.100a5380
push 0xdf
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x13
push 5
call fcn.100a5700
lea eax, [ebp - 0x34]
push eax
push 0x10200900
call fcn.100a5310
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.100a5700
add esp, 0x2c
test esi, esi
jne 0x100d8bd8
jmp 0x100d8bc2
mov dword [ebp - 0x20], 0
push 0xe6
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 9
call fcn.100a5700
add esp, 0x10
mov edi, dword [0x102004bc]
mov eax, dword [0x102008e8]
movups xmm0, xmmword [0x102008d4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x102008ec]
lea ecx, [ebx + edi]
mov dword [ebp - 0x28], eax
mov eax, dword [0x102008e4]
mov dword [ebp - 8], eax
mov dword [0x102004bc], ecx
movups xmmword [ebp - 0x18], xmm0
cmp ecx, 0x3ff
jl 0x100d8c3f
mov eax, 0x80200803
mov dword [0x102004b8], 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 [0x102004bc], ecx
jmp 0x100d8c55
mov eax, dword [0x102004b8]
cmp eax, 0x3ff
jge 0x100d8c55
cmp ecx, eax
cmovg eax, ecx
mov dword [0x102004b8], 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 [0x102008ec], eax
cmp dword [ebp - 0x20], 0
jne 0x100d8c9b
push 0x106
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.100a5700
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
call fcn.10084780
add esp, 4
test ebx, ebx
jle 0x100d8d9e
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.10084970
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10084230
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100843d0
lea ecx, [edi - 0x3ff]
add esp, 0x18
add ecx, esi
lea edx, [edi + 0x102004c0]
mov dword [ebp - 0x30], ecx
mov eax, esi
test ecx, ecx
jle 0x100d8d21
sub eax, ecx
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.100843d0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov edx, 0x102004c0
push eax
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.100843d0
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
call fcn.100843d0
push 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100843d0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10084180
inc dword [ebp - 0x28]
add esp, 0x30
add dword [ebp - 0x1c], esi
xor ecx, ecx
test esi, esi
jle 0x100d8d8c
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x18]
xor byte [edi + 0x102004c0], al
lea eax, [edi + 1]
xor edi, edi
cmp eax, 0x3ff
cmovl edi, eax
inc ecx
cmp ecx, esi
jl 0x100d8d70
sub ebx, 0x14
mov eax, 0x14
sub dword [ebp - 0x24], 1
jne 0x100d8cc7
lea eax, [ebp - 0x4c]
push eax
call fcn.100843e0
mov ebx, dword [ebp - 0x20]
add esp, 4
pop edi
pop esi
test ebx, ebx
jne 0x100d8dd0
push 0x137
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 9
call fcn.100a5700
add esp, 0x10
nop dword [eax]
movups xmm1, xmmword [0x102008d4]
xor ecx, ecx
mov edx, 4
movups xmm0, xmmword [ebp - 0x18]
pxor xmm1, xmm0
movups xmmword [0x102008d4], xmm1
nop dword [eax]
mov al, byte [ebp + ecx - 8]
lea ecx, [ecx + 1]
xor byte [ecx + 0x102008e3], al
sub edx, 1
jne 0x100d8df0
movsd xmm0, qword [0x10184608]
movsd xmm1, qword [0x102008f0]
comisd xmm0, xmm1
jbe 0x100d8e25
addsd xmm1, qword [ebp + 0x10]
movsd qword [0x102008f0], xmm1
test ebx, ebx
jne 0x100d8e3f
push 0x144
push str.g:copenssl_1.0.2ecrypto_randmd_rand.c
push 0x12
push 0xa
call fcn.100a5700
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret