Function at 0x100038a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], eax
push edi
mov eax, dword [esi + 0x10]
push dword [eax + 0x3c]
push dword [esi]
push dword [esi + 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 0xc]
xor ebx, ebx
add esp, 0xc
movzx edi, word [eax + 0x14]
add edi, eax
mov eax, dword [esi + 0x14]
cmp word [eax + 2], bx
je 0x10003910
add edi, 0x28
mov eax, dword [edi]
test eax, eax
je 0x10003901
push eax
mov eax, dword [edi + 4]
add eax, dword [esi]
push eax
mov eax, dword [edi - 4]
add eax, dword [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x28
movzx eax, word [eax + 2]
cmp ebx, eax
jne 0x100038e5
test byte [esi + 0x3c], 8
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
je 0x100039a7
mov eax, dword [esi + 0x20]
xor ecx, ecx
shr eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008294
add esp, 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ebx, dword [esi + 0x20]
xor edx, edx
mov ecx, ebx
mov edi, eax
shr ecx, 2
sub ecx, 1
je 0x10003985
nop dword [eax]
mov eax, dword [ebp - 0x24]
mov ecx, edx
and ecx, 0x1f
mov dword [eax + edx*4], edi
mov eax, edx
mov ebx, dword [esi + 0x20]
inc edx
shl eax, cl
xor edi, eax
mov eax, ebx
shr eax, 2
sub edi, 0x11111111
dec eax
cmp edx, eax
jb 0x10003960
push 0
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
push dword [esi + 0x24]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
call fcn.1000829d
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 4
mov ecx, dword [esi + 0x38]
mov edx, 0x1000a334
call fcn.10001940
mov ecx, dword [esi + 0x38]
mov edi, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push str.LoadLibraryA
mov edx, edi
call fcn.10001a70
add esp, 8
test al, al
je 0x10003a89
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0xc]
push eax
push 0x1000a438
mov edx, edi
mov dword [ebp - 0xc], 0
call fcn.10001a70
add esp, 8
test al, al
je 0x10003a89
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x28]
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x3c]
push 0x14
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x30]
mov dword [ebp - 0x20], 0
push dword [esi + 0x38]
call ebx
test eax, eax
jne 0x10003a56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008286
mov esp, ebp
pop ebp
ret 4
push 0
mov eax, 0x10004260
sub eax, 0x10003fc0
push eax
push 0x10003fc0
push dword [esi + 0x2c]
push dword [esi + 0x38]
call ebx
test eax, eax
je 0x10003a33
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008286
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 7
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008286
mov esp, ebp
pop ebp
ret 4