Function at 0x5043d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
call fcn.0047e0e0
xor edi, edi
mov dword [ebp - 0x18], eax
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
call fcn.005042d0
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call fcn.0044e610
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x504470
test eax, eax
jle 0x504470
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.0053f280
push 0x5c5e48
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.00484920
mov edi, eax
add esp, 0x1c
mov dword [ebp - 4], edi
test edi, edi
jne 0x5044e6
push 0x126
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.00457620
add esp, 0x14
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.0053f280
add esp, 0xc
push 0x180
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.00457b80
push 0x181
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0x10]
call fcn.00457b80
push 0x182
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push ebx
call fcn.00457b80
push dword [ebp - 0x20]
call fcn.004b1ea0
push dword [ebp - 0x14]
call fcn.004c9f50
push 0x5c5e48
push edi
call fcn.00484580
push esi
call fcn.00462b90
mov eax, dword [ebp - 0x30]
add esp, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x504501
push 0x12b
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x504464
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x48], ecx
mov ebx, dword [eax + 8]
mov edi, dword [eax]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
call fcn.004ca140
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x50453e
push 0x135
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00457620
mov edi, dword [ebp - 4]
jmp 0x50446d
push eax
call fcn.004ca230
push dword [ebp - 0x14]
call fcn.004c9fe0
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.004c9fe0
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x50457e
push 0x13e
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call fcn.00457620
mov edi, dword [ebp - 4]
jmp 0x50446d
push 0x142
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push edi
call fcn.00457d90
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
push 0x143
add eax, eax
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x34], eax
call fcn.00457d90
push 0x144
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
call fcn.00457d90
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], esi
je 0x5048e0
cmp dword [ebp - 0x10], esi
je 0x5048e0
test eax, eax
je 0x5048e0
push dword [ebp - 0x18]
call fcn.004b21d0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x504615
push 0x14d
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00457620
mov edi, dword [ebp - 4]
add esp, 0x14
mov ebx, dword [ebp - 8]
jmp 0x504472
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x18]
call fcn.004b2310
add esp, 0x14
test eax, eax
je 0x5048cf
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0047e0f0
add esp, 4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push eax
push dword [ebp - 0x18]
call fcn.004b2180
add esp, 0x18
test eax, eax
je 0x5048cf
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.004b1ed0
add esp, 0x14
test eax, eax
je 0x5048cf
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.004a0a20
add esp, 0xc
test eax, eax
js 0x5048be
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
call fcn.004a0a20
add esp, 0xc
test eax, eax
js 0x5048be
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x10]
push edi
push dword [ebp - 0xc]
call fcn.005037d0
add esp, 0x1c
test eax, eax
je 0x5048be
xor esi, esi
test edi, edi
je 0x5047e2
mov edx, dword [ebp - 0xc]
cmp edi, 0x40
jb 0x5047b3
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x504705
lea eax, [ecx - 1]
add eax, edi
cmp eax, edx
jae 0x5047b3
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x50471b
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x5047b3
mov eax, edi
and eax, 0x8000003f
jns 0x504729
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp - 0x18], edi
add ecx, 0x10
sub dword [ebp - 0x18], eax
mov edi, ebx
sub edi, edx
mov eax, edx
mov dword [ebp - 0x34], edi
mov edi, dword [ebp + 0x18]
sub edi, edx
mov edx, ebx
sub edx, dword [ebp + 0x18]
mov dword [ebp - 0x28], edx
lea edx, [ebx + 0x30]
mov dword [ebp - 0x38], edx
mov ebx, edi
mov edx, dword [ebp - 0x34]
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x28]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [edi + ecx - 0x40]
mov edi, dword [ebp - 0x38]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [edi + esi - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [edi + esi]
mov edi, dword [ebp - 0x3c]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, dword [ebp - 0x18]
jne 0x504753
mov ebx, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
cmp esi, edi
je 0x5047e2
mov eax, dword [ebp + 0x18]
lea ecx, [esi + edx]
sub eax, edx
sub ebx, edx
mov edx, edi
mov dword [ebp - 0x40], eax
sub edx, esi
mov esi, eax
nop word [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + esi - 1], al
sub edx, 1
jne 0x5047d0
call fcn.00462bb0
mov esi, eax
test esi, esi
jne 0x5047f7
push 0x167
jmp 0x5045f7
push dword [ebp + 0xc]
push esi
call fcn.004626a0
add esp, 8
test eax, eax
je 0x50489b
mov ebx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
je 0x50489b
push edi
push dword [ebp + 0x18]
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
je 0x50489b
push ebx
push dword [ebp - 0x44]
push esi
call fcn.00462860
mov ebx, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x50489e
push 0
push ebx
push esi
call fcn.00462560
add esp, 0xc
test eax, eax
je 0x50489e
push dword [ebp - 0x24]
push dword [ebp - 0x48]
push ebx
call fcn.00459460
add esp, 0xc
test eax, eax
je 0x504887
push 0x175
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call fcn.00457620
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x504472
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 1
mov dword [eax], edi
mov edi, dword [ebp - 4]
jmp 0x504484
mov ebx, dword [ebp - 8]
push 0x170
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call fcn.00457620
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x504472
push 0x15e
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x5045fe
push 0x156
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x5045fe
push 0x147
jmp 0x5045f7