Function at 0x637260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.006d13f0
cmp dword [ebp + 0xc], 0
push esi
mov dword [ebp - 8], 0
jle 0x63754a
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x63754a
push edi
mov edi, dword [ebp + 0x18]
cmp esi, edi
jg 0x637526
cmp edi, 0xb
jl 0x637526
push ebx
push 0xb2
push str.....crypto_rsa_rsa_pk1.c
push edi
call fcn.005e91f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x6372db
push 0xb4
push str.....crypto_rsa_rsa_pk1.c
push 0x41
push 0x71
push 4
call fcn.005e34c0
add esp, 0x14
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
add ebx, edi
add edx, esi
mov dword [ebp - 0xc], ebx
test edi, edi
jle 0x63731b
nop dword [eax]
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebx
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
mov al, byte [edx]
and al, cl
mov byte [ebx], al
sub edi, 1
jne 0x6372f0
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], ebx
movzx eax, byte [ebx + 1]
mov esi, 2
xor eax, 2
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
movzx eax, byte [ebx]
dec eax
neg edx
shr eax, 0x1f
neg eax
and edx, eax
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
cmp edi, esi
jle 0x637386
nop dword [eax]
movzx edx, byte [esi + ebx]
not eax
dec edx
shr edx, 0x1f
neg edx
and eax, edx
mov dword [ebp - 0x14], eax
not eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
and ecx, esi
and eax, dword [ebp - 8]
inc esi
or eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
or eax, edx
mov dword [ebp - 0x10], eax
cmp esi, edi
jl 0x637350
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, edi
mov ecx, dword [ebp + 0xc]
sub eax, esi
dec eax
sub ecx, eax
mov dword [ebp - 8], eax
xor ecx, eax
xor eax, dword [ebp + 0xc]
or ecx, eax
lea eax, [esi - 0xa]
xor ecx, dword [ebp + 0xc]
or eax, esi
xor eax, esi
shr ecx, 0x1f
mov esi, dword [ebp + 0xc]
dec ecx
shr eax, 0x1f
dec eax
and ecx, eax
and edx, ecx
lea ecx, [edi - 0xb]
mov dword [ebp - 4], edx
mov eax, ecx
mov edx, ecx
xor eax, esi
sub edx, esi
xor edx, esi
or edx, eax
xor edx, ecx
lea ecx, [edi - 0xb]
shr edx, 0x1f
neg edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], edx
not edx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
and eax, ecx
and edx, esi
mov esi, 1
or edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, esi
jle 0x637468
mov eax, edi
sub eax, dword [ebp - 8]
add eax, 0xfffffff5
mov dword [ebp - 0x20], eax
and eax, esi
sub edi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edi, 0xb
jle 0x637458
movzx ecx, cl
add edi, 0xfffffff5
mov eax, ecx
mov dword [ebp - 0x10], ecx
not eax
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0xb]
mov ebx, dword [ebp - 0x18]
nop dword [eax]
mov dword [ebp - 0x18], ecx
lea eax, [eax + 1]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
mov dl, byte [eax + esi - 1]
and dl, cl
mov ecx, dword [ebp - 0x14]
and cl, byte [eax - 1]
or cl, dl
mov byte [eax - 1], cl
mov ecx, dword [ebp - 0x10]
sub edi, 1
jne 0x637430
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
add esi, esi
mov eax, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x1c]
jl 0x637400
mov edx, dword [ebp + 0xc]
xor esi, esi
test edx, edx
jle 0x6374d2
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0xb]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
shr eax, 0x1f
neg edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
mov edx, edi
mov ecx, esi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
xor dl, al
xor al, cl
or dl, al
movzx eax, bl
xor dl, cl
neg dl
movzx ecx, dl
mov edx, dword [ebp + 8]
and ecx, eax
mov dword [ebp - 0x20], ecx
not ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + esi]
and cl, al
mov eax, dword [ebp - 0x18]
and al, byte [esi + edx]
or al, cl
mov byte [esi + edx], al
inc esi
mov eax, dword [ebp - 0x14]
cmp esi, dword [ebp + 0xc]
jl 0x637485
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
push 0xfa
push str.....crypto_rsa_rsa_pk1.c
push edi
push ebx
call fcn.005e9300
push 0xfb
push str.....crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.005e34c0
mov ebx, dword [ebp - 4]
mov eax, ebx
and eax, 1
push eax
call fcn.005e3710
add esp, 0x28
mov dword [ebp + 0xc], ebx
not ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
and ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
pop ebx
pop edi
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xae
push str.....crypto_rsa_rsa_pk1.c
push 0x9f
push 0x71
push 4
call fcn.005e34c0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret