Function at 0x5030f0
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.004613c0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
call fcn.0047c8f0
mov edi, eax
push edi
call fcn.004aff90
push esi
mov dword [ebp - 0x38], eax
call fcn.0047c910
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.0044ce10
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0xc], ebx
je 0x503585
test eax, eax
jle 0x503585
push edi
call fcn.00502ad0
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x503174
push 0x93
jmp 0x50358a
push edi
call fcn.004b09e0
push edi
mov dword [ebp - 0x10], eax
call fcn.004b09e0
add esp, 8
mov dword [ebp - 0x14], eax
call fcn.004c8950
mov ebx, eax
cmp dword [ebp - 0x10], esi
je 0x503577
cmp dword [ebp - 0x14], esi
je 0x503577
test ebx, ebx
je 0x503577
push ebx
call fcn.004c8a40
push ebx
call fcn.004c87f0
push ebx
mov dword [ebp - 4], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x28], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x2c], eax
call fcn.004c87f0
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x5031f5
push 0xa7
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 3
jmp 0x503591
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.004565a0
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.004565a0
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], esi
je 0x503569
test eax, eax
je 0x503569
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.0053daa0
push dword [ebp - 0x38]
push dword [ebp - 4]
call fcn.004c8d10
add esp, 0x14
test eax, eax
jne 0x503264
push 0xb6
jmp 0x50358a
push ebx
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
push edi
call fcn.004b0990
add esp, 0x18
test eax, eax
je 0x50355b
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push edi
call fcn.004b06e0
add esp, 0x14
test eax, eax
je 0x50355b
push ebx
push dword [ebp - 4]
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x14]
push edi
call fcn.004b0990
add esp, 0x18
test eax, eax
je 0x50355b
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edi
call fcn.004b06e0
add esp, 0x14
test eax, eax
je 0x50355b
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.0049f230
add esp, 0xc
test eax, eax
js 0x503554
mov eax, dword [ebp - 8]
add eax, edi
push edi
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
call fcn.0049f230
add esp, 0xc
test eax, eax
js 0x503554
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.004565a0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x503344
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.00455e30
mov esi, dword [ebp - 4]
jmp 0x50359a
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 8]
push edi
push eax
call fcn.00501fd0
add esp, 0x1c
test eax, eax
jne 0x50337c
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.00455e30
mov esi, dword [ebp - 4]
jmp 0x50359a
xor esi, esi
test edi, edi
je 0x503437
mov edx, dword [ebp - 4]
cmp edi, 0x40
jb 0x503411
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
add eax, edi
cmp edx, eax
ja 0x5033a7
lea eax, [edx - 1]
add eax, edi
cmp eax, ecx
jae 0x503411
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 0x5033c0
mov edx, dword [ebp - 4]
cmp esi, edi
je 0x503437
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 0x503426
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
push esi
call fcn.00460eb0
add esp, 8
test eax, eax
je 0x50353a
mov esi, dword [ebp - 0x1c]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x50353a
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x50353a
push esi
push dword [ebp - 0x38]
mov esi, dword [ebp - 0xc]
push esi
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x50353a
push 0
push dword [ebp - 0x18]
push esi
call fcn.00460d70
add esp, 0xc
test eax, eax
je 0x50353a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
call fcn.00482370
mov dword [ebp - 0x48], eax
call fcn.00482370
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x503530
test eax, eax
je 0x503530
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push ecx
call fcn.004a3bb0
mov esi, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x503529
push edi
push esi
push dword [ebp - 0x44]
call fcn.004a3bb0
add esp, 0xc
test eax, eax
je 0x503529
push 0x5c28c8
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00484ae0
add esp, 0xc
test eax, eax
jns 0x50351b
push 0xf3
jmp 0x50358a
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [ecx], eax
jmp 0x50359d
push 0xec
jmp 0x50358a
push 0xe7
jmp 0x50332c
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.00455e30
mov esi, dword [ebp - 4]
jmp 0x50359a
push 0xc4
jmp 0x50358a
push 0xbe
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x503591
push 0xaf
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x503591
push 0x9b
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x503591
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.00455e30
add esp, 0x14
push dword [ebp - 0x44]
call fcn.00482350
push dword [ebp - 0x48]
call fcn.00482350
push 0xfd
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push esi
call fcn.00456390
push 0xfe
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.00456390
push 0xff
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0x18]
call fcn.00456390
push dword [ebp - 0xc]
call fcn.004613a0
push ebx
call fcn.004c8760
push dword [ebp - 0x10]
call fcn.004b06b0
push dword [ebp - 0x14]
call fcn.004b06b0
mov eax, dword [ebp - 0x34]
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret