Function at 0x56cc30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x58
call fcn.00581be0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0
call fcn.004869e0
mov esi, dword [esp + 0x6c]
push esi
mov dword [esp + 0x2c], eax
call fcn.00461370
mov edi, eax
push edi
call fcn.0046a430
push esi
mov dword [esp + 0x58], eax
call fcn.00489c50
push dword [esp + 0x7c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call fcn.0046a900
mov ebp, eax
mov dword [esp + 0x54], 0
push esi
mov dword [esp + 0x54], ebp
call fcn.0048c640
mov ebx, eax
push esi
mov dword [esp + 0x4c], ebx
call fcn.0048c630
add esp, 0x18
mov dword [esp + 0x30], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
je 0x56d2e9
test ebp, ebp
jle 0x56d2e9
push edi
call fcn.0056c530
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x56cd2c
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0x94
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0xc0103
push 0x35
call fcn.0046b2e0
add esp, 0x18
xor ebx, ebx
jmp 0x56ce8d
push edi
call fcn.0048b000
push edi
mov dword [esp + 0x24], eax
call fcn.0048b000
add esp, 8
mov dword [esp + 0x24], eax
cmp dword [esp + 0x1c], 0
je 0x56d2b8
test eax, eax
je 0x56d2b8
push ebx
call fcn.004c2620
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x56cd98
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xa0
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x80003
push 0x35
call fcn.0046b2e0
add esp, 0x18
xor ebx, ebx
jmp 0x56ce8d
push eax
call fcn.004c26c0
mov ebx, dword [esp + 0x30]
push ebx
call fcn.004c25a0
push ebx
mov esi, eax
call fcn.004c25a0
push ebx
mov dword [esp + 0x48], eax
call fcn.004c25a0
push ebx
mov dword [esp + 0x68], eax
call fcn.004c25a0
push ebx
mov dword [esp + 0x54], eax
call fcn.004c25a0
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x56cde8
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xac
jmp 0x56cd76
mov eax, dword [esp + 0x20]
push 0xb0
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.00466190
push 0xb1
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x54]
mov dword [esp + 0x2c], eax
call fcn.00466190
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x56d2fd
test eax, eax
je 0x56d2fd
mov eax, dword [esp + 0x80]
push dword [eax]
push 0
push dword [esp + 0x84]
call fcn.00584440
push ebx
push 0
push dword [esp + 0x60]
push esi
call fcn.004daab0
add esp, 0x1c
test eax, eax
jne 0x56cf14
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xb9
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0xc0103
push 0x35
call fcn.0046b2e0
add esp, 0x18
mov ebx, dword [esp + 0x10]
push dword [esp + 0x44]
call fcn.004870d0
push dword [esp + 0x68]
call fcn.004a1c00
push dword [esp + 0x68]
call fcn.004a1c00
push 0x104
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x2c]
call fcn.00465fc0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call fcn.00465fc0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00465fc0
push dword [esp + 0x58]
call fcn.00486950
push dword [esp + 0x60]
call fcn.004c2560
push dword [esp + 0x54]
call fcn.0048ac00
push dword [esp + 0x60]
call fcn.0048ac00
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push ebx
push 0
push 0
push esi
push dword [esp + 0x2c]
push edi
call fcn.0048aec0
add esp, 0x18
test eax, eax
je 0x56d293
push ebx
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x28]
push edi
call fcn.0048ac30
add esp, 0x14
test eax, eax
je 0x56d293
push ebx
push esi
push dword [esp + 0x58]
push 0
push dword [esp + 0x34]
push edi
call fcn.0048aec0
add esp, 0x18
test eax, eax
je 0x56d293
mov esi, dword [esp + 0x54]
push ebx
push ebp
push esi
push dword [esp + 0x30]
push edi
call fcn.0048ac30
add esp, 0x14
test eax, eax
je 0x56d293
mov ebx, dword [esp + 0x20]
push ebx
push dword [esp + 0x18]
push esi
call fcn.00474940
add esp, 0xc
test eax, eax
js 0x56d27f
mov esi, dword [esp + 0x14]
push ebx
lea eax, [ebx + esi]
push eax
push ebp
call fcn.00474940
add esp, 0xc
test eax, eax
js 0x56d27f
mov edi, dword [esp + 0x78]
push 0xcb
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00466190
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x56ce89
push dword [esp + 0x30]
lea ecx, [ebx + ebx]
push dword [esp + 0x38]
push dword [esp + 0x78]
push 0
push 0
push ecx
push esi
push edi
push eax
call fcn.004abb10
add esp, 0x24
test eax, eax
jne 0x56d025
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x80006
jmp 0x56ce7f
mov ebp, dword [esp + 0x74]
xor edx, edx
test edi, edi
je 0x56d0a3
mov ebx, dword [esp + 0x18]
cmp edi, 0x20
jb 0x56d080
lea eax, [ebp - 1]
lea ecx, [ebx - 1]
add eax, edi
add ecx, edi
cmp ebx, eax
ja 0x56d04a
cmp ecx, ebp
jae 0x56d080
mov ecx, edi
mov esi, ebp
and ecx, 0xffffffe0
mov eax, ebx
sub esi, ebx
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edx + ebp + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jne 0x56d055
cmp edx, edi
je 0x56d09f
lea ecx, [edx + ebx]
mov esi, edi
mov ebx, ebp
sub ebx, dword [esp + 0x18]
sub esi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x56d091
mov ebx, dword [esp + 0x20]
push dword [esp + 0x30]
push dword [esp + 0x74]
call fcn.0046a8a0
add esp, 4
push eax
push dword [esp + 0x3c]
call fcn.00486b80
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x56d0dc
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x56ce6e
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.004864b0
add esp, 8
test eax, eax
je 0x56d24c
push ebx
push dword [esp + 0x18]
push esi
call fcn.00486510
add esp, 0xc
test eax, eax
je 0x56d24c
push edi
push ebp
push esi
call fcn.00486510
add esp, 0xc
test eax, eax
je 0x56d24c
mov eax, dword [esp + 0x14]
push ebx
add eax, ebx
push eax
push esi
call fcn.00486510
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x56d250
push 0
push ebx
push esi
call fcn.004860f0
add esp, 0xc
test eax, eax
je 0x56d250
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
call fcn.004a1c20
mov dword [esp + 0x60], eax
call fcn.004a1c20
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test ecx, ecx
je 0x56d21d
test eax, eax
je 0x56d21d
push dword [esp + 0x40]
push ebx
push ecx
call fcn.004e4870
add esp, 0xc
test eax, eax
je 0x56d1ee
push edi
push dword [esp + 0x1c]
push dword [esp + 0x6c]
call fcn.004e4870
add esp, 0xc
test eax, eax
je 0x56d1ee
push 0x61bd18
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004df010
add esp, 0xc
test eax, eax
jns 0x56d1d8
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x56d1fd
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x56ce8d
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0xc0103
push 0x35
call fcn.0046b2e0
add esp, 0x18
jmp 0x56ce8d
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xed
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x8000d
push 0x35
call fcn.0046b2e0
add esp, 0x18
jmp 0x56ce8d
mov ebx, dword [esp + 0x10]
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xe3
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x80006
push 0x35
call fcn.0046b2e0
add esp, 0x18
jmp 0x56ce8d
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xc7
jmp 0x56ce6e
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0xc1
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x80010
jmp 0x56ce7f
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0x9b
push str.crypto_sm2_sm2_crypt.c
call fcn.0046b2b0
push 0
push 0x80010
push 0x35
call fcn.0046b2e0
add esp, 0x18
xor ebx, ebx
jmp 0x56ce8d
call fcn.0046b260
push str.ossl_sm2_encrypt
push 0x8e
jmp 0x56cd0a
mov ebx, eax
jmp 0x56ce8d