Function at 0x10012e30
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
sub esp, 0x64
mov dword [ebp - 0x3c], eax
mov eax, dword [edi]
mov esi, dword [edi + 8]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x40
je 0x10012f90
mov eax, dword [ebp - 0x38]
sub eax, 0xb
cmp ecx, eax
jbe 0x10012e90
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090004
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov edi, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, ebx
sub edi, ecx
add eax, edi
mov dword [ebp - 0x3c], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, 0x200
mov ecx, ebx
mov word [ebx], ax
mov eax, edi
lea edi, [edi - 1]
cmp edi, 2
jbe 0x10013320
lea eax, [ecx + eax - 1]
lea ebx, [ebx + 2]
mov dword [ebp - 0x38], eax
lea esi, [esi]
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._gen_rand_impl
cmp byte [ebx], 0
je 0x10012ed8
add ebx, 1
cmp ebx, dword [ebp - 0x38]
jne 0x10012ed8
mov edx, edi
and esi, 2
je 0x10012f72
lea ecx, [edx - 8]
cmp edi, ecx
jbe 0x10013330
mov ebx, dword [ebp - 0x3c]
lea eax, [ebx + 7]
add ebx, 6
mov esi, eax
sub ebx, edx
mov dword [ebp - 0x38], eax
sub esi, edx
cmp ebx, 0xe
jbe 0x10013340
movdqu xmm0, xmmword [0x1002d1e0]
mov eax, dword [ebp - 0x40]
mov ebx, esi
and ebx, 0xfffffff0
add eax, ecx
add ebx, eax
lea esi, [esi]
lea edi, [edi]
movups xmmword [eax], xmm0
add eax, 0x10
cmp eax, ebx
jne 0x10012f40
mov ebx, esi
and ebx, 0xfffffff0
lea eax, [ecx + ebx]
cmp esi, ebx
je 0x10012f6b
mov ebx, dword [ebp - 0x40]
lea esi, [esi]
mov byte [ebx + eax], 3
add eax, 1
cmp edi, eax
ja 0x10012f60
add ecx, dword [ebp - 0x38]
sub ecx, edx
mov edx, ecx
mov eax, dword [ebp - 0x40]
mov esi, 1
mov byte [eax + edx], 0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
lea esi, [ebp - 0x30]
mov dword [esp + 0x10], eax
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8004
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], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
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], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov dword [esp + 8], 4
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPGetHashParam
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x4c]
sub esp, 0x18
mov dword [ebp - 0x48], eax
add eax, eax
sub ebx, eax
sub ebx, 2
cmp ecx, ebx
ja 0x10013300
mov edx, dword [ebp - 0x48]
add eax, 2
lea ebx, [edx + 1]
mov edx, dword [ebp - 0x34]
cmp dword [ebp - 0x38], eax
jae 0x100130b8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xea
xor esi, esi
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.rsaenh.dll_CPDestroyHash
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], edi
call ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
test eax, eax
mov edi, eax
je 0x10013394
mov byte [eax], 0
add ebx, edi
lea eax, [eax + 1]
mov dword [esp + 0x10], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [ebp - 0x54], eax
mov eax, ecx
not eax
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x4c], eax
call sym.rsaenh.dll_CPGetHashParam
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
sub esp, 0x18
mov ecx, esi
lea edx, [ebx + esi]
mov dword [esp + 4], 0
not ecx
mov dword [esp], edx
add eax, ecx
mov ecx, dword [ebp - 0x50]
sub eax, ecx
mov dword [esp + 8], eax
call sym._memset
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
sub eax, ecx
mov byte [ebx + eax - 1], 1
add eax, ebx
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
lea edx, [edi + 1]
mov dword [esp + 4], esi
mov dword [esp], edx
call sym._gen_rand_impl
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x24]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x2c]
lea edx, [edi + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], esi
call sym._pkcs1_mgf1.isra.0
mov esi, eax
test eax, eax
je 0x100132f8
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x10013226
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
lea edx, [edi + esi + 0x11]
cmp eax, edx
lea edx, [eax + 0x10]
setae cl
cmp ebx, edx
setae dl
or cl, dl
je 0x10013350
mov esi, dword [ebp - 0x4c]
lea edx, [esi - 1]
cmp edx, 0xe
jbe 0x10013350
and esi, 0xfffffff0
xor edx, edx
mov ecx, esi
nop
lea esi, [esi]
movdqu xmm0, xmmword [ebx + edx]
movdqu xmm1, xmmword [eax + edx]
pxor xmm0, xmm1
movups xmmword [ebx + edx], xmm0
add edx, 0x10
cmp edx, ecx
jne 0x100131e8
mov esi, dword [ebp - 0x4c]
mov edx, esi
and edx, 0xfffffff0
test esi, 0xf
je 0x10013226
lea esi, [esi]
movzx ecx, byte [eax + edx]
xor byte [ebx + edx], cl
add edx, 1
cmp esi, edx
ja 0x10013218
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], edx
mov edx, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call sym._pkcs1_mgf1.isra.0
mov esi, eax
test eax, eax
je 0x100132f8
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x100132cf
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x54]
lea eax, [ecx + 0x10]
cmp ebx, eax
lea eax, [edi + 0x11]
setae dl
cmp ecx, eax
setae al
or dl, al
je 0x10013376
lea eax, [esi - 1]
cmp eax, 0xe
jbe 0x10013376
mov edx, ebx
mov ebx, esi
mov eax, ecx
and ebx, 0xfffffff0
add ebx, ecx
lea esi, [esi]
movdqu xmm0, xmmword [edx]
movdqu xmm2, xmmword [eax]
add eax, 0x10
add edx, 0x10
pxor xmm0, xmm2
movups xmmword [edx - 0x10], xmm0
cmp eax, ebx
jne 0x10013290
mov eax, esi
and eax, 0xfffffff0
test esi, 0xf
je 0x100132cf
mov esi, esi
lea edi, [edi]
movzx edx, byte [ecx + eax]
xor byte [edi + eax + 1], dl
add eax, 1
cmp esi, eax
ja 0x100132c0
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], edi
mov esi, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x34]
jmp 0x1001307a
mov edx, dword [ebp - 0x34]
jmp 0x1001307a
mov eax, dword fs:[0x18]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x34], 0x80090004
xor esi, esi
xor edi, edi
jmp 0x1001307a
mov edx, 2
jmp 0x10012ef7
mov edx, ecx
jmp 0x10012f72
mov ebx, dword [ebp - 0x40]
mov eax, ecx
jmp 0x10012f60
mov esi, dword [ebp - 0x4c]
mov edx, ebx
lea ecx, [esi + ebx]
mov esi, ebx
lea esi, [esi]
movzx ebx, byte [eax]
xor byte [edx], bl
add edx, 1
add eax, 1
cmp edx, ecx
jne 0x10013360
mov ebx, esi
jmp 0x10013226
mov edx, dword [ebp - 0x54]
lea eax, [edi + esi + 1]
lea esi, [esi]
movzx ebx, byte [ecx]
xor byte [edx], bl
add edx, 1
add ecx, 1
cmp edx, eax
jne 0x10013380
jmp 0x100132cf
mov eax, dword fs:[0x18]
xor esi, esi
mov dword [eax + 0x34], 0x8009000e
jmp 0x1001307a