Function at 0x10044990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x10072f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x57]
push 0x52
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0xc8], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1388
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100449e9
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005078e
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
mov edx, 0x80
mov cl, byte [ebx + 0x14]
cmp al, 0xff
jne 0x10044a04
test cl, cl
setne cl
dec cl
and ecx, 0xffffff80
jmp 0x10044a0c
cmp al, 0x80
movzx ecx, cl
cmove ecx, edx
push edi
or ecx, 0x1f
mov dword [ebp - 0xc4], 0
lea edi, [esi + 3]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xcc], edi
nop dword [eax]
mov al, byte [ebx + 4]
mov byte [ebp - 0x60], al
xor eax, eax
mov byte [ebp - 0x5e], cl
mov cl, byte [esi + 2]
mov word [ebp - 0x5d], ax
movzx eax, cl
mov word [ebp - 0x5b], ax
mov eax, edx
or ax, word [esi]
mov byte [ebp - 0x5f], 0
mov word [ebp - 0x59], ax
movzx esi, cl
test cl, cl
je 0x10044aaf
test edi, edi
je 0x10044a76
cmp esi, 0x50
ja 0x10044a76
push esi
lea eax, [ebp - 0x57]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10044aaf
push 0x50
lea eax, [ebp - 0x57]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
jne 0x10044a98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10044aa9
cmp esi, 0x50
jbe 0x10044aaf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
push dword [ebp - 0x5b]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x30]
push dword [ebp - 0x59]
mov word [ebp - 0x5b], ax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x30]
mov word [ebp - 0x59], ax
lea ecx, [ebp - 0x60]
mov eax, 2
xorps xmm1, xmm1
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [ecx + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x50]
add eax, 0x20
pxor xmm2, xmm0
cmp eax, 0x41
jle 0x10044ae0
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd ecx, xmm1
cmp eax, 0x58
jg 0x10044b40
xor cl, byte [ebp + eax - 0x60]
inc eax
cmp eax, 0x58
jle 0x10044b36
push dword [ebx + 0x10]
mov byte [ebp - 7], cl
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x60]
push 0x5b
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
js 0x10044c09
xor edi, edi
push 0x5a
lea eax, [ebp - 0xbb]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0xbc]
mov al, byte [ebx + 4]
mov byte [ebp - 0xbc], al
push 0x5b
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
js 0x10044bcf
mov al, byte [ebp - 0xba]
mov ecx, dword [ebp - 0xc0]
and al, 0x9f
cmp cl, al
jne 0x10044c02
mov ax, word [ebp - 0xb5]
cmp ax, word [ebp - 0x59]
jne 0x10044bca
cmp byte [ebp - 0xbb], 2
je 0x10044bd7
mov esi, 0x80004005
inc edi
cmp edi, 5
jl 0x10044b66
jmp 0x10044c15
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebx]
shr eax, 8
push eax
push ebx
call dword [ecx + 0x30]
movzx ecx, ax
mov eax, dword [ebp - 0xc8]
mov dl, byte [eax + 2]
movzx eax, dl
cmp ax, cx
jae 0x10044c4b
mov esi, 0x80004005
jmp 0x10044c1d
mov esi, 0x80004005
jmp 0x10044c23
cmp esi, 0x8000ffff
je 0x10044ca3
test esi, esi
jns 0x10044ca3
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc4]
inc edx
mov dword [ebp - 0xc4], edx
cmp edx, 5
jge 0x10044ca3
mov edi, dword [ebp - 0xcc]
mov edx, 0x80
mov esi, dword [ebp - 0xc8]
jmp 0x10044a30
mov eax, ecx
movzx ecx, dl
test eax, eax
je 0x10044ca1
mov edx, dword [ebp - 0xcc]
test edx, edx
jne 0x10044c6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x10044c9b
cmp ecx, eax
jb 0x10044c83
push eax
lea eax, [ebp - 0xb3]
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10044ca1
push ecx
push 0
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
xor esi, esi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005078e
mov esp, ebp
pop ebp
ret 8