Function at 0x10078440
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.10097eb0
mov eax, dword [esp + 0x38]
push ebx
push edi
xor edi, edi
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
call fcn.1002efd0
mov ebx, eax
add esp, 4
cmp ebx, edi
jl 0x1007868e
push esi
mov esi, dword [esp + 0x48]
cmp esi, 0xffffffff
jne 0x1007850d
mov esi, ebx
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0x10]
push ebp
push ecx
call fcn.10033060
mov ebp, eax
sub ebp, 1
and ebp, 7
push edi
mov dword [esp + 0x24], ebp
call fcn.1002c880
add esp, 8
test ebp, ebp
mov edi, eax
mov dword [esp + 0x18], eax
jne 0x100784bf
mov eax, dword [esp + 0x40]
mov byte [eax], 0
add eax, 1
sub edi, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], edi
cmp esi, 0xfffffffe
jne 0x10078541
mov esi, edi
sub esi, ebx
sub esi, 2
test esi, esi
jle 0x1007857f
push 0xda
push str..crypto_rsa_rsa_pss.c
push esi
call fcn.10028d30
mov ebp, eax
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x1007856d
push 0xde
push str..crypto_rsa_rsa_pss.c
push 0x41
push 0x7d
push 4
call fcn.10024880
add esp, 0x14
jmp 0x10078671
cmp esi, 0xfffffffe
jne 0x10078517
jmp 0x1007847d
jge 0x1007847d
push 0xc3
push str..crypto_rsa_rsa_pss.c
push 0x88
push 0x7d
push 4
call fcn.10024880
add esp, 0x14
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret
lea edx, [ebx + esi + 2]
cmp edi, edx
jge 0x100784cb
push 0xd5
push str..crypto_rsa_rsa_pss.c
push 0x6e
push 0x7d
push 4
call fcn.10024880
add esp, 0x14
mov eax, dword [esp + 0x14]
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x28
ret
push esi
push ebp
call fcn.1002eb90
add esp, 8
test eax, eax
jle 0x1007866d
lea eax, [esp + 0x20]
sub edi, ebx
push eax
lea ebp, [edi - 1]
call fcn.1002e390
mov ecx, dword [esp + 0x4c]
push 0
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.1002e3e0
push 8
lea eax, [esp + 0x34]
push 0x100e2308
push eax
call fcn.1002e590
mov ecx, dword [esp + 0x60]
push ebx
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.1002e590
add esp, 0x28
test esi, esi
je 0x100785da
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1002e590
add esp, 0xc
mov edx, dword [esp + 0x40]
lea eax, [edx + ebp]
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1002e700
lea ecx, [esp + 0x2c]
push ecx
call fcn.1002e620
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
push edx
push ebx
add eax, ebp
push eax
push ebp
mov ebp, dword [esp + 0x60]
push ebp
call fcn.1006ec20
add esp, 0x24
test eax, eax
jne 0x1007866d
sub edi, esi
xor byte [edi + ebp - 2], 1
lea eax, [edi + ebp - 2]
add eax, 1
test esi, esi
jle 0x10078643
xor ecx, ecx
test esi, esi
jle 0x10078643
nop
mov edx, dword [esp + 0x10]
mov dl, byte [ecx + edx]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, esi
jl 0x10078630
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007865c
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebp], al
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebp - 1], 0xbc
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x10078561
push ebp
call fcn.10028ed0
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x28
ret
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret