Function at 0x6b512a70
Capabilities:
Encode data using xor
Encrypt data using chaskey
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x15c
mov ebx, dword [esp + 0x170]
mov esi, dword [esp + 0x174]
mov dword [esp + 0xb4], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x14c], eax
xor eax, eax
mov dword [esp + 0x94], edx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], esi
shld esi, ebx, 1
add ebx, ebx
mov eax, ebx
mov dword [esp + 0xa8], ebx
add eax, 0xffffffff
mov dword [esp + 0xac], esi
shl eax, 6
add eax, edx
mov edx, dword [eax]
mov dword [esp + 0xcc], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xd4], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xd8], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xe0], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xe8], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0xec], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x60], 0
mov dword [esp + 0xf0], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x64], 0
mov dword [esp + 0xf4], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xf8], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0xfc], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x100], edx
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x104], edx
mov edx, esi
or edx, ebx
mov dword [esp + 0x108], eax
je 0x6b5131b6
lea esi, [esi]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
mov ebp, dword [ebx]
mov edx, dword [ebx + 4]
add ebx, 0x40
xor edx, dword [esp + 0xd0]
mov edi, dword [ebx - 0x24]
xor ecx, ebp
mov ebp, dword [ebx - 0x38]
xor ebp, dword [esp + 0xd4]
mov dword [esp + 0x68], edx
mov edx, dword [ebx - 0x30]
mov dword [esp + 0x6c], ebp
mov ebp, dword [ebx - 0x34]
xor edi, dword [esp + 0xe8]
mov dword [esp + 0x98], ecx
xor esi, edx
mov edx, dword [ebx - 0x2c]
mov dword [esp + 0x7c], edi
xor eax, ebp
mov dword [esp + 0x9c], esi
mov ebp, esi
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xe4]
xor esi, edx
mov edx, dword [ebx - 0x28]
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0xec]
xor eax, edx
mov edx, dword [ebx - 0x20]
mov dword [esp + 0x78], eax
xor esi, edx
mov edx, dword [ebx - 0x1c]
mov edi, esi
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0xf0]
xor esi, edx
mov edx, dword [ebx - 0x18]
mov dword [esp + 0x80], esi
mov eax, dword [esp + 0xf4]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x44], ebp
xor eax, edx
mov edx, dword [ebx - 0x14]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x84], eax
mov eax, dword [ebx - 0x10]
mov ecx, edi
xor esi, edx
mov edx, dword [ebx - 8]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x2c], ebp
xor edx, dword [esp + 0x104]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edx
mov esi, dword [ebx - 0xc]
mov dword [esp + 0x94], ebx
mov edx, dword [ebx - 4]
mov ebx, dword [esp + 0x108]
xor eax, dword [esp + 0xfc]
xor esi, dword [esp + 0x100]
mov dword [esp + 0xa4], eax
xor ebx, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0xb0], esi
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x5c], 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x38], edx
lea edx, [ebp + eax]
rol edx, 7
xor edx, dword [esp + 0x44]
mov ebx, edx
add edx, ebp
rol edx, 9
mov dword [esp + 0x44], ebx
xor edx, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x48], ecx
rol edx, 0xd
xor edx, eax
mov eax, ecx
add eax, edx
mov dword [esp + 0x4c], edx
ror eax, 0xe
xor eax, ebp
mov dword [esp + 0x50], eax
lea eax, [edi + ebx]
rol eax, 7
xor eax, dword [esp + 0x20]
mov ebp, eax
lea eax, [eax + edi]
rol eax, 9
mov dword [esp + 0x54], ebp
xor eax, esi
add ebp, eax
mov dword [esp + 0x58], eax
rol ebp, 0xd
xor ebp, ebx
mov ebx, dword [esp + 0x34]
lea eax, [eax + ebp]
ror eax, 0xe
mov esi, eax
mov eax, dword [esp + 0x28]
xor esi, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x3c]
lea edx, [esi + ebx]
rol edx, 7
xor eax, edx
mov edx, esi
lea ecx, [eax + esi]
mov dword [esp + 0x28], eax
rol ecx, 9
xor ecx, dword [esp + 0x2c]
lea esi, [eax + ecx]
rol esi, 0xd
mov edi, esi
xor edi, ebx
lea eax, [ecx + edi]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x24]
ror eax, 0xe
mov ebx, eax
xor ebx, edx
mov esi, ebx
mov ebx, dword [esp + 0x1c]
add edi, ebx
mov eax, edi
rol eax, 7
xor eax, dword [esp + 0x30]
lea edx, [eax + ebx]
rol edx, 9
xor edx, dword [esp + 0x38]
lea ebx, [eax + edx]
rol ebx, 0xd
xor ebx, dword [esp + 0x24]
lea edi, [edx + ebx]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x1c]
ror edi, 0xe
xor ebx, edi
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x50]
mov edi, ebx
add edi, eax
rol edi, 7
xor edi, ebp
mov ebp, edi
mov dword [esp + 0x40], edi
mov edi, ebx
add edi, ebp
rol edi, 9
xor edi, ecx
mov ecx, ebp
add ecx, edi
mov ebp, edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
rol ecx, 0xd
xor ecx, eax
add ebp, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x44]
ror ebp, 0xe
mov eax, ecx
xor ebp, ebx
add eax, edi
rol eax, 7
xor eax, dword [esp + 0x34]
add edi, eax
mov ebx, eax
mov dword [esp + 0x34], eax
mov eax, edi
rol eax, 9
mov edi, eax
xor edi, edx
mov edx, ebx
add edx, edi
mov dword [esp + 0x38], edi
mov eax, edx
mov edx, dword [esp + 0x54]
rol eax, 0xd
mov ebx, eax
lea eax, [edx + esi]
xor ebx, ecx
rol eax, 7
add edi, ebx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x24]
ror edi, 0xe
xor edi, dword [esp + 0x20]
xor ebx, eax
lea ecx, [esi + ebx]
mov dword [esp + 0x24], ebx
rol ecx, 9
xor ecx, dword [esp + 0x48]
lea eax, [ebx + ecx]
rol eax, 0xd
mov ebx, eax
xor ebx, edx
lea eax, [ecx + ebx]
mov dword [esp + 0x20], ebx
ror eax, 0xe
mov ebx, eax
mov eax, dword [esp + 0x28]
xor ebx, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x28]
add eax, esi
rol eax, 7
xor eax, dword [esp + 0x4c]
add esi, eax
rol esi, 9
xor esi, dword [esp + 0x58]
lea edx, [eax + esi]
rol edx, 0xd
xor ebx, edx
lea edx, [esi + ebx]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
ror edx, 0xe
xor ebx, edx
sub dword [esp + 0x5c], 1
mov dword [esp + 0x1c], ebx
jne 0x6b512d2f
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x10c], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x144], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x110], edx
add edx, dword [esp + 0x68]
mov dword [esp + 0x134], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x124], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x13c], eax
mov dword [esp + 0x114], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x118], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x120], edi
mov dword [esp + 0x148], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x140], esi
mov dword [esp + 0x138], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x128], ebp
mov ebp, dword [esp + 0x48]
add ebp, dword [esp + 0x98]
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x9c]
add eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0x2c]
add edx, ebx
mov ebx, dword [esp + 0x74]
add ebp, dword [esp + 0x6c]
mov dword [esp + 0xfc], eax
add esi, dword [esp + 0xb0]
lea eax, [esp + 0x10c]
mov dword [esp + 0xd4], ebp
add ebx, edi
mov edi, dword [esp + 0x34]
add edi, dword [esp + 0x78]
mov dword [esp + 0xdc], edx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xe4], edi
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x7c]
mov dword [esp + 0xe0], ebx
add ebp, dword [esp + 0x70]
mov dword [esp + 0xe8], edi
mov edi, dword [esp + 0xa0]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xd8], ebp
add edx, dword [esp + 0x80]
mov dword [esp + 0x100], esi
add edi, ecx
mov ecx, dword [esp + 0x3c]
add ecx, dword [esp + 0x84]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xec], edi
mov dword [esp + 0xf8], ecx
add edx, dword [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], 0x40
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x90]
mov dword [esp + 0x108], edx
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0xb8]
mov esi, dword [esp + 0x64]
mov ecx, ebx
mov eax, edi
and ecx, 1
shrd ebx, esi, 1
mul ecx
mov edx, dword [esp + 0xcc]
add eax, ebx
shl eax, 6
add eax, dword [esp + 0xb4]
mov dword [eax], edx
mov edx, dword [esp + 0xd0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xd4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xd8]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xdc]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xe4]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0xe8]
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0xec]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0xf0]
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0xf4]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 0xf8]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0xfc]
mov dword [eax + 0x30], edx
mov edx, dword [esp + 0x100]
mov dword [eax + 0x34], edx
mov edx, dword [esp + 0x104]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
mov dword [eax + 0x38], edx
mov edx, dword [esp + 0x108]
add dword [esp + 0x60], 1
mov ebx, dword [esp + 0x60]
adc dword [esp + 0x64], 0
mov esi, dword [esp + 0x64]
mov dword [eax + 0x3c], edx
mov eax, edi
mov edx, ebp
xor eax, ebx
xor edx, esi
or edx, eax
jne 0x6b512b90
lea eax, [esp + 0xcc]
mov dword [esp + 4], 0x40
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov eax, dword [esp + 0x14c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b5131e7
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.___stack_chk_fail
lea esi, [esi]