Function at 0x100047b9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1012a2b0
mov eax, 0x64
call fcn.10001f96
mov eax, dword [0x1025e3d4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x88]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call sym.libcrypto_1_1.dll_EVP_MD_size
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
js 0x1012a5dd
call sym.libcrypto_1_1.dll_HMAC_CTX_new
mov dword [esp + 0x10], eax
test eax, eax
je 0x1012a5dd
test esi, esi
jne 0x1012a31d
mov esi, 0x101d0882
xor ecx, ecx
jmp 0x1012a339
mov ecx, dword [esp + 0x78]
cmp ecx, 0xffffffff
jne 0x1012a339
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1012a330
sub ecx, edx
push ebp
push 0
push edi
push ecx
push esi
mov esi, dword [esp + 0x24]
push esi
call sym.libcrypto_1_1.dll_HMAC_Init_ex
add esp, 0x14
test eax, eax
je 0x1012a5bf
call sym.libcrypto_1_1.dll_HMAC_CTX_new
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x1012a5bf
mov edx, dword [esp + 0x90]
test edx, edx
je 0x1012a574
mov ecx, 1
nop dword [eax + eax]
cmp edx, dword [esp + 0x18]
mov edi, edx
mov eax, ecx
mov byte [esp + 0x13], cl
cmovg edi, dword [esp + 0x18]
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, ecx
shr eax, 8
push esi
push ebp
mov dword [esp + 0x30], edi
mov byte [esp + 0x1a], al
call sym.libcrypto_1_1.dll_HMAC_CTX_copy
add esp, 8
test eax, eax
je 0x1012a59b
push dword [esp + 0x84]
push dword [esp + 0x28]
push ebp
call sym.libcrypto_1_1.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1012a59b
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call sym.libcrypto_1_1.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1012a59b
push 0
lea eax, [esp + 0x34]
push eax
push ebp
call sym.libcrypto_1_1.dll_HMAC_Final
add esp, 0xc
test eax, eax
je 0x1012a59b
push edi
lea eax, [esp + 0x34]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x88], 1
jle 0x1012a551
push esi
push ebp
call sym.libcrypto_1_1.dll_HMAC_CTX_copy
add esp, 8
test eax, eax
je 0x1012a59b
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ebp
call sym.libcrypto_1_1.dll_HMAC_Update
add esp, 0xc
test eax, eax
je 0x1012a59b
push 0
lea eax, [esp + 0x34]
push eax
push ebp
call sym.libcrypto_1_1.dll_HMAC_Final
add esp, 0xc
test eax, eax
je 0x1012a59b
xor ecx, ecx
test edi, edi
jle 0x1012a537
cmp edi, 0x40
jb 0x1012a518
lea edx, [ebx - 1]
lea eax, [esp + edi + 0x2f]
add edx, edi
cmp ebx, eax
ja 0x1012a49d
lea eax, [esp + 0x30]
cmp edx, eax
jae 0x1012a518
mov eax, edi
and eax, 0x8000003f
jns 0x1012a4ab
dec eax
or eax, 0xffffffc0
inc eax
mov esi, edi
lea ebp, [esp + 0x30]
sub esi, eax
lea edi, [esp + 0x40]
sub ebp, ebx
lea eax, [ebx + 0x20]
sub edi, ebx
nop
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esp + ecx + 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [esp + ecx + 0x40]
add ecx, 0x40
mov edx, ecx
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ecx, esi
jl 0x1012a4c0
mov edi, dword [esp + 0x28]
cmp edx, edi
jge 0x1012a533
lea esi, [esp + 0x30]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1012a525
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x88]
jl 0x1012a431
mov edx, dword [esp + 0x90]
add ebx, edi
mov ecx, dword [esp + 0x20]
sub edx, edi
inc ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x20], ecx
test edx, edx
jne 0x1012a380
push ebp
call sym.libcrypto_1_1.dll_HMAC_CTX_free
push esi
call sym.libcrypto_1_1.dll_HMAC_CTX_free
add esp, 8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100032f1
add esp, 0x64
ret
push ebp
call sym.libcrypto_1_1.dll_HMAC_CTX_free
push esi
call sym.libcrypto_1_1.dll_HMAC_CTX_free
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100032f1
add esp, 0x64
ret
push esi
call sym.libcrypto_1_1.dll_HMAC_CTX_free
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100032f1
add esp, 0x64
ret
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100032f1
add esp, 0x64
ret