Function at 0x4aeb80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4c
call fcn.005e28b0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebx + 0xc]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
xor eax, eax
push esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
call fcn.004ae1b0
add esp, 4
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4aec08
push 0x143
push str.....cryptoevpevp_lib.c
push 0x9f
push 0xa2
push 6
call fcn.004058f0
add esp, 0x14
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x4aec11
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov edi, ecx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0x1c], eax
je 0x4aef55
cmp edi, eax
jle 0x4aef55
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x20]
push eax
push 0xff
push ecx
call fcn.005dc9c0
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x34]
call fcn.004ae090
add esp, 0x10
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4aec6d
push 0x126
push str.....crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x4aef49
mov ecx, dword [eax + 8]
cmp dword [ecx], edi
je 0x4aec85
push 0x12b
push str.....crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x4aef49
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], edx
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edx
call fcn.0042ba00
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4aecb3
push 0x135
jmp 0x4aef42
mov edi, eax
call fcn.0042bb20
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0042bbb0
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.0042bbb0
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x4aece9
push 0x13e
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x4aef49
mov edi, dword [esp + 0x24]
mov ecx, 0x142
mov edx, str.....crypto_sm2_sm2_crypt.c
call fcn.00413cf0
mov edi, dword [esp + 0x1c]
add edi, edi
mov ecx, 0x143
mov edx, str.....crypto_sm2_sm2_crypt.c
mov dword [esp + 0x10], eax
call fcn.00413cf0
mov edi, dword [esp + 0x28]
mov ecx, 0x144
mov edx, str.....crypto_sm2_sm2_crypt.c
mov dword [esp + 0xc], eax
call fcn.00413cf0
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x4aef3d
cmp dword [esp + 0xc], 0
je 0x4aef3d
test eax, eax
je 0x4aef3d
mov edi, esi
call fcn.00436b90
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x4aed69
push 0x14d
jmp 0x4aef42
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.00436f50
add esp, 0xc
test eax, eax
je 0x4aef2f
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x18]
push ebx
push edi
push 0
push edi
push esi
call fcn.00437670
add esp, 0x14
test eax, eax
je 0x4aef2f
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.00437030
add esp, 0xc
test eax, eax
je 0x4aef2f
mov edi, dword [esp + 0x1c]
test edi, edi
js 0x4aef21
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
push 0
push edi
push ebx
call fcn.0040ace0
add esp, 0xc
test eax, eax
js 0x4aef21
mov esi, dword [esp + 0x4c]
push 0
lea eax, [edi + ebx]
push edi
push eax
mov dword [esp + 0x38], eax
call fcn.0040ace0
add esp, 0xc
test eax, eax
js 0x4aef21
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push edx
push 0
lea eax, [edi + edi]
mov edi, dword [esp + 0x18]
push eax
push ebx
push edi
xor edx, edx
call fcn.004b16e0
add esp, 0x14
test eax, eax
je 0x4aef21
test ebx, ebx
je 0x4aee5d
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
sub ecx, edi
mov eax, edi
sub esi, edi
mov edi, ebx
jmp 0x4aee50
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec edi
mov byte [esi + eax - 1], dl
jne 0x4aee50
call fcn.004176e0
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
jne 0x4aee76
push 0x167
jmp 0x4aef42
mov eax, dword [esp + 0x48]
push eax
call fcn.00417770
add esp, 4
test eax, eax
je 0x4aef13
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4aef13
mov edx, dword [esp + 0x20]
push ebx
push edx
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4aef13
mov eax, dword [esp + 0x2c]
push edi
push eax
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4aef13
mov ecx, dword [esp + 0x14]
xor edi, edi
call fcn.00417a10
test eax, eax
je 0x4aef13
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00586d50
add esp, 0xc
test eax, eax
je 0x4aef03
push 0x175
push str.....crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x4aef49
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], 1
mov dword [ecx], ebx
jmp 0x4aef6b
push 0x170
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x4aef49
push 0x15e
push str.....crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x4aef49
push 0x156
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x4aef49
push 0x147
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.004058f0
add esp, 0x14
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x20]
push eax
push 0
push ecx
call fcn.005dc9c0
add esp, 0xc
mov esi, dword [fcn.00413ef0]
test esi, esi
je 0x4aef99
cmp esi, fcn.00413ef0
je 0x4aef99
mov edx, dword [esp + 0x10]
push 0x180
push str.....crypto_sm2_sm2_crypt.c
push edx
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x4aefa6
mov eax, dword [esp + 0x10]
push eax
call fcn.005dc555
add esp, 4
test esi, esi
je 0x4aefce
cmp esi, fcn.00413ef0
je 0x4aefce
mov ecx, dword [esp + 0xc]
push 0x181
push str.....crypto_sm2_sm2_crypt.c
push ecx
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x4aefdb
mov edx, dword [esp + 0xc]
push edx
call fcn.005dc555
add esp, 4
test esi, esi
je 0x4af003
cmp esi, fcn.00413ef0
je 0x4af003
mov eax, dword [esp + 0x14]
push 0x182
push str.....crypto_sm2_sm2_crypt.c
push eax
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x4af010
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005dc555
add esp, 4
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4af054
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4af02d
push edi
call eax
mov esi, dword [fcn.00413ef0]
add esp, 4
test esi, esi
je 0x4af04b
cmp esi, fcn.00413ef0
je 0x4af04b
push 0x2ae
push str.....cryptoecec_lib.c
push edi
call esi
add esp, 0xc
jmp 0x4af054
push edi
call fcn.005dc555
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0042bab0
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x3c]
push 0x66b334
push ecx
mov dword [esp + 0x44], eax
call fcn.0044ae30
mov esi, dword [esp + 0x50]
push esi
call fcn.00417660
mov eax, dword [fcn.00413ef0]
add esp, 0x10
test eax, eax
je 0x4af0ab
cmp eax, fcn.00413ef0
je 0x4af0ab
push 0x39
push str.....cryptoevpdigest.c
push esi
call eax
mov eax, dword [esp + 0x3c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.005dc555
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret