Function at 0x5e40a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov dword [esp + 0xc], edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x180], xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], edx
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x40], 0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xc0], 0
mov edx, dword [ebp + 0x10]
sub esp, 4
lea ebx, [esp + 0x94]
push ecx
push edx
push eax
push ebx
call sym.adb.exe_HMAC_Init_ex
add esp, 0x14
xor edi, edi
test eax, eax
je 0x5e4657
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa4]
push ecx
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4657
lea eax, [esp + 0x34]
lea ecx, [esp + 0xb4]
push ecx
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4657
lea ecx, [esp + 0x14]
lea eax, [esp + 0x94]
push eax
push ecx
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4657
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea edi, [esp + 0x1c]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push edi
call dword [eax + 0x10]
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x110]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x34]
push eax
push edi
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4643
mov eax, dword [esp + 0x14]
push dword [esp + 8]
lea ecx, [esp + 0x114]
push ecx
lea edi, [esp + 0x1c]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x150]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
xorps xmm0, xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x28]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
mov edi, 0
je 0x5e4650
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x38]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4650
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x18]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4650
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x154]
push ecx
lea ebx, [esp + 0x1c]
push ebx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0xc], eax
jbe 0x5e43a5
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4650
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x78]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4650
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4650
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
lea ebx, [esp + 0x14]
mov eax, dword [esp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push ebx
call dword [eax + 0x10]
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x110]
push ecx
push ebx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x34]
push eax
push ebx
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4647
mov eax, dword [esp + 0x14]
push edi
lea edi, [esp + 0x114]
push edi
push ebx
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xd0]
push ecx
push ebx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x1c]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
mov eax, dword [esp + 0xc]
cmp ebx, eax
cmovae ebx, eax
test ebx, ebx
lea edx, [esp + 0x54]
xorps xmm3, xmm3
je 0x5e45a0
xor eax, eax
cmp ebx, 8
jb 0x5e4584
xor eax, eax
cmp ebx, 0x20
jb 0x5e4559
lea eax, [ebx - 0x20]
mov edx, eax
shr edx, 5
inc edx
xor ecx, ecx
cmp eax, 0x20
jb 0x5e451a
mov eax, edx
and eax, 0xfffffffe
xor ecx, ecx
nop dword [eax]
movups xmm0, xmmword [esp + ecx + 0xd0]
movups xmm1, xmmword [esp + ecx + 0xe0]
movups xmm2, xmmword [esi + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + ecx], xmm2
movups xmmword [esi + ecx + 0x10], xmm0
movups xmm0, xmmword [esp + ecx + 0xf0]
movups xmm1, xmmword [esp + ecx + 0x100]
movups xmm2, xmmword [esi + ecx + 0x20]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + ecx + 0x30]
xorps xmm0, xmm1
movups xmmword [esi + ecx + 0x20], xmm2
movups xmmword [esi + ecx + 0x30], xmm0
add ecx, 0x40
add eax, 0xfffffffe
jne 0x5e44c0
mov eax, ebx
and eax, 0xffffffe0
test dl, 1
je 0x5e454c
movups xmm0, xmmword [esp + ecx + 0xd0]
movups xmm1, xmmword [esp + ecx + 0xe0]
movups xmm2, xmmword [esi + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [esi + ecx], xmm2
movups xmmword [esi + ecx + 0x10], xmm0
cmp ebx, eax
lea edx, [esp + 0x54]
je 0x5e45a0
test bl, 0x18
je 0x5e4584
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movsd xmm0, qword [esp + ecx + 0xd0]
movsd xmm1, qword [esi + ecx]
xorps xmm1, xmm0
movlps qword [esi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x5e4560
nop dword [eax]
cmp ebx, eax
je 0x5e45a0
movzx ecx, byte [esp + eax + 0xd0]
xor byte [esi + eax], cl
inc eax
jmp 0x5e4580
sub dword [esp + 0xc], ebx
je 0x5e464b
movaps xmmword [esp + 0x140], xmm3
movaps xmmword [esp + 0x130], xmm3
movaps xmmword [esp + 0x120], xmm3
movaps xmmword [esp + 0x110], xmm3
mov eax, dword [esp + 0x54]
push edi
push edx
mov edi, edx
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
push dword [eax + 0x1c]
push dword [esp + 0x5c]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x74]
push eax
push edi
call sym.adb.exe_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x5e4647
add esi, ebx
mov eax, dword [esp + 0x54]
push dword [esp + 8]
lea ecx, [esp + 0x114]
push ecx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x150]
push ecx
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 4]
push dword [eax + 0x1c]
push dword [esp + 0x5c]
jmp 0x5e4297
xor edi, edi
jmp 0x5e4657
xor edi, edi
jmp 0x5e4650
mov edi, 1
lea ebx, [esp + 0x90]
lea eax, [esp + 0x150]
push 0x40
push eax
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
lea eax, [esp + 0x10]
push eax
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
lea eax, [esp + 0x50]
push eax
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
push ebx
call sym.adb.exe_HMAC_CTX_cleanup
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret