Function at 0x494510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4c
call fcn.00596bf0
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.00493b50
add esp, 4
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x494598
push 0x143
push str.....cryptoevpevp_lib.c
push 0x9f
push 0xa2
push 6
call fcn.0040e790
add esp, 0x14
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x4945a1
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 0x4948dc
cmp edi, eax
jle 0x4948dc
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x20]
push eax
push 0xff
push ecx
call fcn.0057e420
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x34]
call fcn.00493ac0
add esp, 0x10
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4945fd
push 0x126
push str.....crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x4948d0
mov ecx, dword [eax + 8]
cmp dword [ecx], edi
je 0x494615
push 0x12b
push str.....crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x4948d0
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.00421730
mov dword [esp + 0x18], eax
test eax, eax
jne 0x494643
push 0x135
jmp 0x4948c9
mov edi, eax
call fcn.00421830
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004218c0
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.004218c0
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x494679
push 0x13e
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x4948d0
mov edi, dword [esp + 0x24]
mov ecx, 0x142
mov edx, str.....crypto_sm2_sm2_crypt.c
call fcn.00419700
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.00419700
mov edi, dword [esp + 0x28]
mov ecx, 0x144
mov edx, str.....crypto_sm2_sm2_crypt.c
mov dword [esp + 0xc], eax
call fcn.00419700
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x4948c4
cmp dword [esp + 0xc], 0
je 0x4948c4
test eax, eax
je 0x4948c4
mov edi, esi
call fcn.00434ce0
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
jne 0x4946f9
push 0x14d
jmp 0x4948c9
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.00434fd0
add esp, 0xc
test eax, eax
je 0x4948b6
mov ecx, dword [ebx + 0x14]
mov ebx, dword [esp + 0x18]
push ebx
push edi
push 0
push edi
push esi
call fcn.00435670
add esp, 0x14
test eax, eax
je 0x4948b6
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.00435070
add esp, 0xc
test eax, eax
je 0x4948b6
mov edi, dword [esp + 0x1c]
test edi, edi
js 0x4948a8
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x2c]
push edi
push ebx
call fcn.00412fe0
add esp, 8
test eax, eax
js 0x4948a8
mov esi, dword [esp + 0x4c]
lea eax, [edi + ebx]
push edi
push eax
mov dword [esp + 0x34], eax
call fcn.00412fe0
add esp, 8
test eax, eax
js 0x4948a8
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.004969d0
add esp, 0x14
test eax, eax
je 0x4948a8
test ebx, ebx
je 0x4947e4
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
sub ecx, edi
mov eax, edi
sub esi, edi
mov edi, ebx
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec edi
mov byte [esi + eax - 1], dl
jne 0x4947d7
call fcn.0041b950
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
jne 0x4947fd
push 0x167
jmp 0x4948c9
mov eax, dword [esp + 0x48]
push eax
call fcn.0041b9e0
add esp, 4
test eax, eax
je 0x49489a
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.0041bc50
add esp, 8
test eax, eax
je 0x49489a
mov edx, dword [esp + 0x20]
push ebx
push edx
mov ecx, esi
call fcn.0041bc50
add esp, 8
test eax, eax
je 0x49489a
mov eax, dword [esp + 0x2c]
push edi
push eax
mov ecx, esi
call fcn.0041bc50
add esp, 8
test eax, eax
je 0x49489a
mov ecx, dword [esp + 0x14]
xor edi, edi
call fcn.0041bc80
test eax, eax
je 0x49489a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00527a90
add esp, 0xc
test eax, eax
je 0x49488a
push 0x175
push str.....crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x4948d0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], 1
mov dword [ecx], ebx
jmp 0x4948f2
push 0x170
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x4948d0
push 0x15e
push str.....crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x4948d0
push 0x156
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x4948d0
push 0x147
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0040e790
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.0057e420
add esp, 0xc
mov esi, dword [fcn.00419900]
test esi, esi
je 0x494920
cmp esi, fcn.00419900
je 0x494920
mov edx, dword [esp + 0x10]
push 0x180
push str.....crypto_sm2_sm2_crypt.c
push edx
call esi
mov esi, dword [fcn.00419900]
add esp, 0xc
jmp 0x49492d
mov eax, dword [esp + 0x10]
push eax
call fcn.0057bec0
add esp, 4
test esi, esi
je 0x494955
cmp esi, fcn.00419900
je 0x494955
mov ecx, dword [esp + 0xc]
push 0x181
push str.....crypto_sm2_sm2_crypt.c
push ecx
call esi
mov esi, dword [fcn.00419900]
add esp, 0xc
jmp 0x494962
mov edx, dword [esp + 0xc]
push edx
call fcn.0057bec0
add esp, 4
test esi, esi
je 0x49498a
cmp esi, fcn.00419900
je 0x49498a
mov eax, dword [esp + 0x14]
push 0x182
push str.....crypto_sm2_sm2_crypt.c
push eax
call esi
mov esi, dword [fcn.00419900]
add esp, 0xc
jmp 0x494997
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0057bec0
add esp, 4
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4949db
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x4949b4
push edi
call eax
mov esi, dword [fcn.00419900]
add esp, 4
test esi, esi
je 0x4949d2
cmp esi, fcn.00419900
je 0x4949d2
push 0x2ae
push str.....cryptoecec_lib.c
push edi
call esi
add esp, 0xc
jmp 0x4949db
push edi
call fcn.0057bec0
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.004217c0
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x3c]
push 0x5c73dc
push ecx
mov dword [esp + 0x44], eax
call fcn.00443390
mov esi, dword [esp + 0x50]
push esi
call fcn.0041b8d0
mov eax, dword [fcn.00419900]
add esp, 0x10
test eax, eax
je 0x494a32
cmp eax, fcn.00419900
je 0x494a32
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.0057bec0
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret