Function at 0x4ae510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x6c
call fcn.005e38a0
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], ebx
call fcn.004176e0
mov esi, dword [edi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
cmp eax, edi
jne 0x4ae5a9
push 0x143
push str.....cryptoevpevp_lib.c
push 0x9f
push 0xa2
push 6
call fcn.004058f0
add esp, 0x14
mov dword [esp + 0x1c], 0xffffffff
jmp 0x4ae5b0
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
cmp dword [esp + 0x20], edi
je 0x4ae9aa
cmp dword [esp + 0x1c], edi
jle 0x4ae9aa
push esi
call fcn.004ae1b0
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
jne 0x4ae5e7
push 0x93
jmp 0x4ae9af
mov edi, esi
call fcn.00436b90
mov dword [esp + 0x28], eax
call fcn.00436b90
mov edi, eax
mov dword [esp + 0x34], edi
call fcn.0042ba00
cmp dword [esp + 0x28], 0
mov ebx, eax
je 0x4ae99c
test edi, edi
je 0x4ae99c
test ebx, ebx
je 0x4ae99c
mov edi, ebx
call fcn.0042bb20
mov ecx, ebx
call fcn.0042bbb0
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.0042bbb0
mov ecx, ebx
mov dword [esp + 0x5c], eax
call fcn.0042bbb0
mov ecx, ebx
mov dword [esp + 0x54], eax
call fcn.0042bbb0
mov ecx, ebx
mov dword [esp + 0x48], eax
call fcn.0042bbb0
mov dword [esp + 0x50], eax
test eax, eax
jne 0x4ae672
push 0xa7
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x4ae9b6
mov edi, dword [esp + 0x24]
add edi, edi
mov ecx, 0xab
mov edx, str.....crypto_sm2_sm2_crypt.c
call fcn.00413cf0
mov edi, dword [esp + 0x1c]
mov ecx, 0xac
mov edx, str.....crypto_sm2_sm2_crypt.c
mov dword [esp + 0x10], eax
call fcn.00413cf0
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4ae98e
test eax, eax
je 0x4ae98e
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x58]
push eax
push 0
push ecx
call fcn.005dd9b0
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
add esp, 0xc
push 2
call fcn.004491b0
add esp, 4
test eax, eax
jne 0x4ae6eb
push 0xb6
jmp 0x4ae9af
mov edi, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x40]
xor eax, eax
lea ecx, [esp + 0x7c]
push ecx
push eax
push edx
push edi
mov ecx, esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x5c], eax
call fcn.00437540
add esp, 0x18
test eax, eax
je 0x4ae980
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.00437030
add esp, 0xc
test eax, eax
je 0x4ae980
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push ebx
push edx
push 0
push edi
push esi
call fcn.00437670
add esp, 0x14
test eax, eax
je 0x4ae980
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.00437030
add esp, 0xc
test eax, eax
je 0x4ae980
mov edi, dword [esp + 0x24]
test edi, edi
js 0x4ae979
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
push 0
push edi
push edx
call fcn.0040ace0
add esp, 0xc
test eax, eax
js 0x4ae979
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
push 0
add eax, edi
push edi
push eax
mov dword [esp + 0x4c], eax
call fcn.0040ace0
add esp, 0xc
test eax, eax
js 0x4ae979
mov edi, dword [esp + 0x14]
mov ecx, 0xc8
mov edx, str.....crypto_sm2_sm2_crypt.c
call fcn.00413cf0
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x4ae7f4
push 0xca
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x4ae9b6
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
push 0
add eax, eax
push eax
push edi
push esi
xor edx, edx
call fcn.004b16e0
add esp, 0x14
test eax, eax
jne 0x4ae827
push 0xd1
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x4ae9b6
test edi, edi
je 0x4ae840
mov edi, dword [esp + 0x60]
mov eax, esi
sub edi, esi
mov esi, dword [esp + 0x14]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4ae837
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
push eax
call fcn.00417770
add esp, 4
test eax, eax
je 0x4ae96b
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4ae96b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4ae96b
mov ecx, dword [esp + 0x40]
push edi
push ecx
mov ecx, esi
call fcn.004179e0
add esp, 8
test eax, eax
je 0x4ae96b
mov ecx, dword [esp + 0x18]
xor edi, edi
call fcn.00417a10
test eax, eax
je 0x4ae96b
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
push 4
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.00449f70
add esp, 4
push 4
mov dword [esp + 0x70], eax
call fcn.00449f70
mov edi, dword [esp + 0x70]
add esp, 4
mov dword [esp + 0x70], eax
test edi, edi
je 0x4ae95d
test eax, eax
je 0x4ae95d
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00449e50
add esp, 4
test eax, eax
je 0x4ae956
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
push edx
call fcn.00449e50
add esp, 4
test eax, eax
je 0x4ae956
push 0
push 0x66c384
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00476120
add esp, 0x10
test eax, eax
jns 0x4ae946
push 0xf3
jmp 0x4ae9af
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov dword [esp + 0x30], 1
jmp 0x4ae9c2
push 0xec
jmp 0x4ae9af
push 0xe7
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x4ae9b6
push 0xdd
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x4ae9b6
push 0xc4
jmp 0x4ae9af
push 0xbe
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x4ae9b6
push 0xaf
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x4ae9b6
push 0x9b
push str.....crypto_sm2_sm2_crypt.c
push 0x41
jmp 0x4ae9b6
push 0x8d
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.004058f0
add esp, 0x14
mov edi, dword [esp + 0x70]
test edi, edi
je 0x4ae9db
mov eax, dword [edi + 0xc]
and eax, 0x80
push eax
call fcn.0044a000
add esp, 4
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x4ae9f5
mov ecx, dword [edi + 0xc]
and ecx, 0x80
push ecx
call fcn.0044a000
add esp, 4
mov esi, dword [fcn.00413ef0]
test esi, esi
je 0x4aea23
cmp esi, fcn.00413ef0
je 0x4aea23
mov edx, dword [esp + 0x2c]
push 0xfd
push str.....crypto_sm2_sm2_crypt.c
push edx
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x4aea30
mov eax, dword [esp + 0x2c]
push eax
call fcn.005dcea1
add esp, 4
test esi, esi
je 0x4aea58
cmp esi, fcn.00413ef0
je 0x4aea58
mov ecx, dword [esp + 0x10]
push 0xfe
push str.....crypto_sm2_sm2_crypt.c
push ecx
call esi
mov esi, dword [fcn.00413ef0]
add esp, 0xc
jmp 0x4aea65
mov edx, dword [esp + 0x10]
push edx
call fcn.005dcea1
add esp, 4
test esi, esi
je 0x4aea87
cmp esi, fcn.00413ef0
je 0x4aea87
mov eax, dword [esp + 0x18]
push 0xff
push str.....crypto_sm2_sm2_crypt.c
push eax
call esi
add esp, 0xc
jmp 0x4aea94
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005dcea1
add esp, 4
mov esi, dword [esp + 0x20]
push esi
call fcn.00417660
mov eax, dword [fcn.00413ef0]
add esp, 4
test eax, eax
je 0x4aeac0
cmp eax, fcn.00413ef0
je 0x4aeac0
push 0x39
push str.....cryptoevpdigest.c
push esi
call eax
add esp, 0xc
jmp 0x4aeac9
push esi
call fcn.005dcea1
add esp, 4
mov esi, ebx
call fcn.0042bab0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4aeb09
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4aeae7
push edi
call eax
add esp, 4
mov esi, dword [fcn.00413ef0]
test esi, esi
je 0x4aeb53
cmp esi, fcn.00413ef0
je 0x4aeb53
push 0x2ae
push str.....cryptoecec_lib.c
push edi
call esi
add esp, 0xc
mov esi, dword [fcn.00413ef0]
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4aeb67
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4aeb2c
push edi
call eax
mov esi, dword [fcn.00413ef0]
add esp, 4
test esi, esi
je 0x4aeb5e
cmp esi, fcn.00413ef0
je 0x4aeb5e
push 0x2ae
push str.....cryptoecec_lib.c
push edi
call esi
mov eax, dword [esp + 0x3c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.005dcea1
add esp, 4
jmp 0x4aeb0f
push edi
call fcn.005dcea1
add esp, 4
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret