Function at 0x5048f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x34], 0
xor ebx, ebx
call fcn.00462bb0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
call fcn.0047e0e0
mov edi, eax
push edi
call fcn.004b1780
push esi
mov dword [ebp - 0x38], eax
call fcn.0047e100
push dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.0044e610
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0xc], ebx
je 0x504d85
test eax, eax
jle 0x504d85
push edi
call fcn.005042d0
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x504974
push 0x93
jmp 0x504d8a
push edi
call fcn.004b21d0
push edi
mov dword [ebp - 0x10], eax
call fcn.004b21d0
add esp, 8
mov dword [ebp - 0x14], eax
call fcn.004ca140
mov ebx, eax
cmp dword [ebp - 0x10], esi
je 0x504d77
cmp dword [ebp - 0x14], esi
je 0x504d77
test ebx, ebx
je 0x504d77
push ebx
call fcn.004ca230
push ebx
call fcn.004c9fe0
push ebx
mov dword [ebp - 4], eax
call fcn.004c9fe0
push ebx
mov dword [ebp - 0x28], eax
call fcn.004c9fe0
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c9fe0
push ebx
mov dword [ebp - 0x2c], eax
call fcn.004c9fe0
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x5049f5
push 0xa7
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 3
jmp 0x504d91
mov eax, dword [ebp - 0x1c]
push 0xab
add eax, eax
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x40], eax
call fcn.00457d90
push 0xac
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0x30]
mov dword [ebp - 8], eax
call fcn.00457d90
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], esi
je 0x504d69
test eax, eax
je 0x504d69
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.0053f280
push dword [ebp - 0x38]
push dword [ebp - 4]
call fcn.004ca500
add esp, 0x14
test eax, eax
jne 0x504a64
push 0xb6
jmp 0x504d8a
push ebx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
push edi
call fcn.004b2180
add esp, 0x18
test eax, eax
je 0x504d5b
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push edi
call fcn.004b1ed0
add esp, 0x14
test eax, eax
je 0x504d5b
push ebx
push dword [ebp - 4]
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x14]
push edi
call fcn.004b2180
add esp, 0x18
test eax, eax
je 0x504d5b
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
call fcn.004b1ed0
add esp, 0x14
test eax, eax
je 0x504d5b
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.004a0a20
add esp, 0xc
test eax, eax
js 0x504d54
mov eax, dword [ebp - 8]
add eax, edi
push edi
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
call fcn.004a0a20
add esp, 0xc
test eax, eax
js 0x504d54
mov edi, dword [ebp + 0x14]
push 0xc8
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push edi
call fcn.00457d90
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x504b44
push 0xca
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.00457620
mov esi, dword [ebp - 4]
jmp 0x504d9a
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 8]
push edi
push eax
call fcn.005037d0
add esp, 0x1c
test eax, eax
jne 0x504b7c
push 0xd1
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.00457620
mov esi, dword [ebp - 4]
jmp 0x504d9a
xor esi, esi
test edi, edi
je 0x504c37
mov edx, dword [ebp - 4]
cmp edi, 0x40
jb 0x504c11
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
add eax, edi
cmp edx, eax
ja 0x504ba7
lea eax, [edx - 1]
add eax, edi
cmp eax, ecx
jae 0x504c11
mov eax, edi
mov edi, ecx
and eax, 0xffffffc0
sub edi, edx
mov dword [ebp - 0x40], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, edx
mov edx, dword [ebp - 0x40]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + esi + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx + esi + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ecx + esi + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp esi, dword [ebp - 0x3c]
jne 0x504bc0
mov edx, dword [ebp - 4]
cmp esi, edi
je 0x504c37
mov eax, dword [ebp + 0x10]
lea ecx, [esi + edx]
sub eax, edx
mov edx, edi
mov dword [ebp - 0x40], eax
sub edx, esi
mov edi, eax
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x504c26
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
push esi
call fcn.004626a0
add esp, 8
test eax, eax
je 0x504d3a
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00462860
add esp, 0xc
test eax, eax
je 0x504d3a
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call fcn.00462860
add esp, 0xc
test eax, eax
je 0x504d3a
push esi
push dword [ebp - 0x38]
mov esi, dword [ebp - 0xc]
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
je 0x504d3a
push 0
push dword [ebp - 0x18]
push esi
call fcn.00462560
add esp, 0xc
test eax, eax
je 0x504d3a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.00483b60
mov dword [ebp - 0x48], eax
call fcn.00483b60
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x504d30
test eax, eax
je 0x504d30
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push ecx
call fcn.004a53b0
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x504d29
push edi
push esi
push dword [ebp - 0x44]
call fcn.004a53b0
add esp, 0xc
test eax, eax
je 0x504d29
push 0x5c5e48
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004862d0
add esp, 0xc
test eax, eax
jns 0x504d1b
push 0xf3
jmp 0x504d8a
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [ecx], eax
jmp 0x504d9d
push 0xec
jmp 0x504d8a
push 0xe7
jmp 0x504b2c
push 0xdd
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.00457620
mov esi, dword [ebp - 4]
jmp 0x504d9a
push 0xc4
jmp 0x504d8a
push 0xbe
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x504d91
push 0xaf
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x504d91
push 0x9b
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x504d91
push 0x8d
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.00457620
add esp, 0x14
push dword [ebp - 0x44]
call fcn.00483b40
push dword [ebp - 0x48]
call fcn.00483b40
push 0xfd
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push esi
call fcn.00457b80
push 0xfe
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.00457b80
push 0xff
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0x18]
call fcn.00457b80
push dword [ebp - 0xc]
call fcn.00462b90
push ebx
call fcn.004c9f50
push dword [ebp - 0x10]
call fcn.004b1ea0
push dword [ebp - 0x14]
call fcn.004b1ea0
mov eax, dword [ebp - 0x34]
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret