Function at 0x49dbdb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0045258f
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.0049daf9
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0046075b
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], esi
mov edi, esi
test ebx, ebx
je 0x49df16
test eax, eax
jle 0x49df16
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.00559fa0
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.0049dade
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x49dc68
push 0x126
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x49df0a
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x20]
cmp dword [ecx], edx
je 0x49dc83
push 0x12b
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x49df0a
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x34], edx
call fcn.0045b2a0
mov dword [ebp - 8], eax
test eax, eax
jne 0x49dcaa
push 0x135
jmp 0x49df03
push eax
call fcn.0045b2fe
push dword [ebp - 8]
call fcn.0045b241
push dword [ebp - 8]
mov dword [ebp - 0x28], eax
call fcn.0045b241
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x49dcde
push 0x13e
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 3
jmp 0x49df0a
push 0x142
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push ebx
call fcn.00455348
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push 0x143
add eax, eax
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x30], eax
call fcn.00455348
push 0x144
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push dword [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.00455348
add esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], esi
je 0x49defe
cmp dword [ebp - 4], esi
je 0x49defe
test eax, eax
je 0x49defe
push dword [ebp - 0x14]
call fcn.00471009
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x49dd5a
push 0x14d
jmp 0x49df03
mov eax, dword [ebp - 0x24]
push dword [ebp - 8]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.00471109
add esp, 0x14
test eax, eax
je 0x49def0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0045fe37
pop ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push eax
push dword [ebp - 0x14]
call fcn.00470fcb
add esp, 0x18
test eax, eax
je 0x49def0
push dword [ebp - 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00470de4
add esp, 0x14
test eax, eax
je 0x49def0
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x28]
call fcn.00459f5d
add esp, 0xc
test eax, eax
js 0x49dee2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
call fcn.00459f5d
add esp, 0xc
test eax, eax
js 0x49dee2
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp - 0x30]
push dword [ebp - 4]
push ebx
push dword [ebp - 0x10]
call fcn.0049d04d
add esp, 0x1c
test eax, eax
je 0x49dee2
test ebx, ebx
je 0x49de3b
mov eax, dword [ebp - 0x10]
mov edi, ebx
mov esi, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp + 0x18]
sub esi, eax
sub edx, eax
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x49de2b
xor esi, esi
call fcn.00466c42
mov edi, eax
test edi, edi
jne 0x49de50
push 0x167
jmp 0x49df03
push dword [ebp + 0xc]
push edi
call fcn.00466935
pop ecx
pop ecx
test eax, eax
je 0x49ded4
push dword [ebp - 0xc]
push dword [ebp - 4]
push edi
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x49ded4
push ebx
push dword [ebp + 0x18]
push edi
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x49ded4
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push edi
call fcn.00466ad3
add esp, 0xc
test eax, eax
je 0x49ded4
push esi
push dword [ebp - 0x18]
push edi
call fcn.0046681e
add esp, 0xc
test eax, eax
je 0x49ded4
push dword [ebp - 0x20]
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call fcn.0048309f
add esp, 0xc
test eax, eax
je 0x49deca
push 0x175
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x49df0a
mov eax, dword [ebp + 0x1c]
xor esi, esi
inc esi
mov dword [eax], ebx
jmp 0x49df27
push 0x170
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 6
jmp 0x49df0a
push 0x15e
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x49df0a
push 0x156
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x49df0a
push 0x147
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.004559e9
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push esi
push dword [ebp + 0x18]
call fcn.00559fa0
add esp, 0xc
push 0x180
mov ebx, str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push ebx
push dword [ebp - 0x10]
call fcn.004551e9
push 0x181
push ebx
push dword [ebp - 4]
call fcn.004551e9
push 0x182
push ebx
push dword [ebp - 0x18]
call fcn.004551e9
push dword [ebp - 0x1c]
call fcn.00470db6
push dword [ebp - 8]
call fcn.0045b205
push 0x5c7670
push dword [ebp - 0x24]
call fcn.00457d46
push edi
call fcn.00466c23
add esp, 0x38
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret