Function at 0x59bd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x8c]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0
call fcn.00531280
test esi, esi
push edi
cmove esi, edi
mov dword [ebp - 0x4c], esi
call fcn.00541650
mov edi, eax
add esp, 8
mov dword [ebp - 0x60], edi
test edi, edi
js 0x59c13c
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
jne 0x59bdf8
mov dword [ebp + 0x1c], edi
mov esi, dword [ebp - 0x50]
push dword [esi + 0x10]
call fcn.005146c0
dec eax
and eax, 7
push esi
mov dword [ebp - 0x50], eax
call fcn.00545a80
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov eax, 0xff
add esp, 8
shl eax, cl
test byte [ebx], al
je 0x59be24
push 0x76
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x85
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c13c
cmp eax, 0xfffffffe
jne 0x59be02
mov dword [ebp + 0x1c], eax
jmp 0x59bdad
jge 0x59bdad
push 0x6f
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c13c
test ecx, ecx
jne 0x59be2d
inc ebx
dec esi
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp + 0x1c]
add eax, 2
add eax, edi
cmp esi, eax
jge 0x59be56
push 0x7e
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x6d
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c13c
cmp byte [ebx + esi - 1], 0xbc
je 0x59be80
push 0x82
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x86
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c13c
sub esi, edi
dec esi
push 0x87
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
add ebx, esi
mov dword [ebp - 0x54], esi
push esi
mov dword [ebp - 0x6c], ebx
call fcn.00513040
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x59bec5
push 0x89
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c13c
push dword [ebp - 0x4c]
push edi
push ebx
push esi
push eax
call fcn.00593eb0
add esp, 0x14
test eax, eax
js 0x59c131
xor eax, eax
test esi, esi
jle 0x59bf8f
mov edx, dword [ebp - 0x48]
cmp esi, 0x20
jb 0x59bf6b
mov ecx, dword [ebp - 0x5c]
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x59bf03
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x59bf69
mov eax, esi
and eax, 0x8000001f
jns 0x59bf11
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x4c], esi
sub dword [ebp - 0x4c], eax
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x70], eax
lea eax, [ecx + 0x10]
mov edi, dword [ebp - 0x70]
mov ecx, edx
mov dword [ebp - 0x64], eax
xor eax, eax
mov ebx, dword [ebp - 0x64]
mov edi, edi
movdqu xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movdqu xmm1, xmmword [edi + ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x20], xmm1
movdqu xmm1, xmmword [ebx + eax]
add eax, 0x20
movdqu xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x10], xmm1
cmp eax, dword [ebp - 0x4c]
jl 0x59bf30
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x6c]
jmp 0x59bf6b
xor eax, eax
cmp eax, esi
jge 0x59bf8f
mov edi, dword [ebp - 0x5c]
lea ecx, [eax + edx]
sub edi, edx
sub esi, eax
lea esp, [esp]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x59bf80
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x59bfab
mov ecx, 8
mov edx, 0xff
sub ecx, eax
mov eax, dword [ebp - 0x48]
sar edx, cl
and byte [eax], dl
jmp 0x59bfae
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
xor esi, esi
cmp byte [eax], 0
jne 0x59bfcb
lea edx, [ecx - 1]
jmp 0x59bfc0
cmp esi, edx
jge 0x59bfcb
inc esi
cmp byte [esi + eax], 0
je 0x59bfc0
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x59bff6
push 0x94
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x87
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c131
mov edx, dword [ebp + 0x1c]
test edx, edx
js 0x59c028
mov eax, ecx
sub eax, esi
cmp eax, edx
je 0x59c028
push 0x98
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.00529440
add esp, 0x14
jmp 0x59c131
push 0
push dword [ebp - 0x74]
lea eax, [ebp - 0x8c]
push eax
call fcn.00530e60
add esp, 0xc
test eax, eax
je 0x59c131
push 8
lea eax, [ebp - 0x8c]
push 0x606f58
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59c131
push edi
push dword [ebp - 0x68]
lea eax, [ebp - 0x8c]
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59c131
mov eax, dword [ebp - 0x54]
sub eax, esi
je 0x59c0a2
push eax
mov eax, dword [ebp - 0x48]
add eax, esi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59c131
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00530db0
add esp, 0xc
test eax, eax
je 0x59c131
lea ecx, [ebp - 0x44]
sub edi, 4
jb 0x59c0d4
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x59c0d9
add ecx, 4
add ebx, 4
sub edi, 4
jae 0x59c0c3
cmp edi, 0xfffffffc
je 0x59c12a
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x59c106
cmp edi, 0xfffffffd
je 0x59c12a
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x59c106
cmp edi, 0xfffffffe
je 0x59c12a
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x59c106
cmp edi, 0xffffffff
je 0x59c12a
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x59c12a
push 0xa6
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x68
push 0x98
push 4
call fcn.00529440
add esp, 0x14
mov dword [ebp - 0x58], 0
jmp 0x59c131
mov dword [ebp - 0x58], 1
push dword [ebp - 0x48]
call fcn.00512fc0
add esp, 4
lea eax, [ebp - 0x8c]
push eax
call fcn.00531020
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x58]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret