Function at 0x100144d0
Capabilities:
Encode data using xor

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x74
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [edi + 8], 0x40
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
je 0x10014580
mov eax, 2
cmp ecx, 2
jbe 0x1001451d
nop
lea esi, [esi]
cmp byte [ebx + eax], 0
je 0x10014540
add eax, 1
cmp ecx, eax
jne 0x10014510
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090005
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
cmp ecx, eax
je 0x1001451d
mov esi, dword [ebp - 0x3c]
sub ecx, 1
sub ecx, eax
cmp dword [esi], ecx
jb 0x1001451d
cmp byte [ebx], 0
jne 0x1001451d
cmp byte [ebx + 1], 2
jne 0x1001451d
mov esi, dword [ebp - 0x3c]
lea eax, [ebx + eax + 1]
mov dword [esi], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov edx, 1
jmp 0x1001452c
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x40], ecx
lea esi, [ebp - 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8004
mov dword [esp], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sym.rsaenh.dll_CPCreateHash
mov eax, dword [ebp - 0x34]
sub esp, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.rsaenh.dll_CPHashData
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 4
sub esp, 0x14
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.rsaenh.dll_CPGetHashParam
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
sub esp, 0x18
lea eax, [edx + edx + 2]
cmp ecx, eax
jae 0x100146b0
mov dword [ebp - 0x48], 0
xor edx, edx
mov dword [ebp - 0x40], 0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090005
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
call sym.rsaenh.dll_CPDestroyHash
mov eax, dword [ebp - 0x48]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x3c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
mov eax, edx
lea esp, [edi - 8]
pop edi
ret
mov dword [ebp - 0x4c], ecx
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], edx
mov dword [ebp - 0x40], edx
call edi
mov ecx, dword [ebp - 0x4c]
mov edx, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x34]
test edx, edx
mov edx, dword [ebp - 0x40]
je 0x100149dd
mov dword [esp + 0x10], esi
mov esi, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], edx
call sym.rsaenh.dll_CPGetHashParam
mov ecx, dword [ebp - 0x40]
sub esp, 0x18
lea eax, [ecx - 1]
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x40], eax
je 0x100149c6
mov esi, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov eax, esi
mov dword [esp], esi
lea edi, [ebx + esi + 1]
not eax
mov edx, edi
add eax, ecx
mov dword [ebp - 0x4c], eax
mov ecx, eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
call sym._pkcs1_mgf1.isra.0
mov edx, eax
test eax, eax
je 0x10014940
test esi, esi
je 0x100147d6
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
add eax, 0xf
sub eax, edx
cmp eax, 0x1e
jbe 0x10014970
lea eax, [esi - 1]
cmp eax, 0xe
jbe 0x10014970
mov ecx, esi
mov dword [ebp - 0x50], esi
mov esi, dword [ebp - 0x40]
xor eax, eax
and ecx, 0xfffffff0
nop
movdqu xmm1, xmmword [edx + eax]
movdqu xmm0, xmmword [ebx + eax + 1]
pxor xmm0, xmm1
movups xmmword [esi + eax], xmm0
add eax, 0x10
cmp eax, ecx
jne 0x10014790
mov esi, dword [ebp - 0x50]
mov eax, esi
and eax, 0xfffffff0
test esi, 0xf
je 0x100147d6
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x40]
add eax, 1
movzx ecx, byte [ebx + eax]
xor cl, byte [edx + eax - 1]
mov byte [edi + eax - 1], cl
cmp esi, eax
ja 0x100147c0
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x24]
mov ecx, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call sym._pkcs1_mgf1.isra.0
mov edx, eax
test eax, eax
je 0x10014940
mov eax, dword [ebp - 0x40]
add eax, esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10014894
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
lea eax, [eax + esi + 0x10]
mov esi, dword [ebp - 0x50]
cmp edx, eax
lea eax, [edx + 0x10]
setae cl
cmp esi, eax
setae al
or cl, al
je 0x100149a0
mov ecx, dword [ebp - 0x4c]
lea eax, [ecx - 1]
cmp eax, 0xe
jbe 0x100149a0
and ecx, 0xfffffff0
xor eax, eax
lea esi, [esi]
movdqu xmm2, xmmword [edx + eax]
movdqu xmm0, xmmword [edi + eax]
pxor xmm0, xmm2
movups xmmword [esi + eax], xmm0
add eax, 0x10
cmp eax, ecx
jne 0x10014850
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
and eax, 0xfffffff0
test cl, 0xf
je 0x10014894
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x54], ebx
mov ebx, ecx
nop
movzx ecx, byte [edi + eax]
xor cl, byte [edx + eax]
mov byte [esi + eax], cl
add eax, 1
cmp ebx, eax
ja 0x10014880
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2c]
mov edi, eax
lea esi, [eax + 1]
not edi
cmp esi, dword [ebp - 0x4c]
ja 0x10014950
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x4c]
jmp 0x100148c3
add esi, 1
cmp ebx, esi
jb 0x10014950
cmp byte [eax + esi - 1], 0
lea ecx, [edi + esi]
lea edx, [esi - 1]
je 0x100148b8
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x4c], esi
jb 0x10014950
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._memcmp
cmp byte [ebx], 0
jne 0x10014950
test eax, eax
jne 0x10014950
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
cmp byte [eax + edx], 1
jne 0x10014950
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
add edi, dword [ebp - 0x4c]
sub edi, ecx
cmp edi, dword [eax]
ja 0x10014950
mov eax, dword [ebp - 0x3c]
add esi, dword [ebp - 0x50]
mov dword [eax], edi
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov edx, 1
nop
lea esi, [esi]
mov eax, dword [ebp - 0x34]
jmp 0x1001465b
mov eax, dword fs:[0x18]
xor edx, edx
mov dword [eax + 0x34], 0x80090005
mov eax, dword [ebp - 0x34]
jmp 0x1001465b
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x40]
xor eax, eax
nop
lea esi, [esi]
add eax, 1
movzx ecx, byte [ebx + eax]
xor cl, byte [edx + eax - 1]
mov byte [edi + eax - 1], cl
cmp esi, eax
jne 0x10014980
jmp 0x100147d3
mov dword [ebp - 0x54], ebx
mov esi, dword [ebp - 0x4c]
xor eax, eax
mov ebx, dword [ebp - 0x50]
nop
lea esi, [esi]
movzx ecx, byte [edi + eax]
xor cl, byte [edx + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp esi, eax
jne 0x100149b0
jmp 0x10014891
mov eax, dword fs:[0x18]
xor edx, edx
mov dword [eax + 0x34], 0x8009000e
mov eax, dword [ebp - 0x34]
jmp 0x1001465b
mov edx, dword fs:[0x18]
mov dword [ebp - 0x40], 0
mov dword [edx + 0x34], 0x8009000e
xor edx, edx
jmp 0x1001465b