Function at 0x4a6810
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.004c72a0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
test eax, eax
cmove eax, ecx
push ecx
mov dword [esp + 0x4c], eax
call fcn.004532c0
add esp, 4
mov dword [esp + 8], eax
test eax, eax
js 0x4a6a73
push edi
mov edi, dword [esp + 0x50]
cmp edi, 0xffffffff
jne 0x4a68e4
mov edi, eax
push esi
mov esi, dword [esp + 0x40]
push dword [esi + 0x10]
call fcn.00443360
dec eax
and eax, 7
push esi
mov dword [esp + 0x24], eax
call fcn.0044e2f0
mov esi, dword [esp + 0x4c]
add esp, 8
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x1c], ebx
jne 0x4a688c
mov byte [esi], bl
inc esi
dec ecx
mov dword [esp + 0x14], ecx
cmp edi, 0xfffffffe
jne 0x4a691b
mov edi, ecx
sub edi, dword [esp + 0x10]
sub edi, 2
test edi, edi
jle 0x4a6950
push 0xf2
push str..crypto_rsa_rsa_pss.c
push edi
call fcn.004411f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4a693a
push 0xf5
push str..crypto_rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.0044b560
add esp, 0x14
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp edi, 0xfffffffe
jne 0x4a68ee
jmp 0x4a6856
jge 0x4a6856
push 0xdc
push str..crypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.0044b560
add esp, 0x14
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x10]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x4a689e
push 0xed
push str..crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4a68cb
push edi
push ebp
call fcn.0044bb40
add esp, 8
test eax, eax
jle 0x4a6a64
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
dec eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
call fcn.0044fd30
push 0
push dword [esp + 0x54]
lea eax, [esp + 0x30]
push eax
call fcn.0044f920
add esp, 0x10
test eax, eax
je 0x4a6a64
push 8
lea eax, [esp + 0x28]
push 0x50e2a8
push eax
call fcn.0044fac0
add esp, 0xc
test eax, eax
je 0x4a6a64
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push dword [esp + 0x4c]
push eax
call fcn.0044fac0
add esp, 0xc
test eax, eax
je 0x4a6a64
test edi, edi
je 0x4a69d8
push edi
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.0044fac0
add esp, 0xc
test eax, eax
je 0x4a6a64
mov eax, dword [esp + 0x18]
add eax, esi
push 0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f870
add esp, 0xc
test eax, eax
je 0x4a6a64
lea eax, [esp + 0x24]
push eax
call fcn.0044fad0
push dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.004a1520
add esp, 0x18
test eax, eax
jne 0x4a6a64
mov ecx, dword [esp + 0x20]
sub ecx, edi
add ecx, esi
dec ecx
xor byte [ecx - 1], 1
test edi, edi
jle 0x4a6a3e
xor edx, edx
test edi, edi
jle 0x4a6a3e
mov al, byte [edx + ebp]
xor byte [ecx], al
inc edx
lea ecx, [ecx + 1]
cmp edx, edi
jl 0x4a6a31
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a6a56
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [esp + 0x14]
mov ebx, 1
mov byte [eax + esi - 1], 0xbc
test ebp, ebp
je 0x4a6a71
push ebp
call fcn.00441170
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret