Function at 0x100106f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
cmp dword [ebp + 0x20c], 0
jne 0x10010714
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x20c], eax
mov eax, dword [ebp + 0x20c]
test eax, eax
je 0x1001073d
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x214], eax
test eax, eax
jne 0x10010746
mov ecx, dword [ebp + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop ebp
add esp, 0x30
ret 4
lea edx, [esp + 0x38]
push edx
push 0x40
push 0x19
push eax
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10010778
mov eax, dword [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop ebp
add esp, 0x30
ret 4
push esi
mov esi, dword [ebp + 0x214]
push edi
lea edx, [ebp + 0x21c]
mov ecx, 6
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov al, byte [edx]
cmp al, byte [str.XP_ah]
jne 0x100107af
mov cl, byte [ebp + 0x21d]
cmp cl, byte [0x1004cffe]
jne 0x100107af
mov ecx, 1
jmp 0x100107b1
xor ecx, ecx
cmp al, byte [0x1004cff8]
je 0x100107c5
cmp al, byte [0x1004cff9]
je 0x100107c5
xor eax, eax
jmp 0x100107ca
mov eax, 1
test ecx, ecx
jne 0x1001094e
test eax, eax
jne 0x1001094e
push 0x30
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
call fcn.10024010
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10013c00
add esp, 0x14
test eax, eax
je 0x10010827
jmp 0x10010800
mov eax, dword [esp + 0xc]
add dword [ebp + 0x208], eax
cmp dword [ebp + 0x208], 5
jae 0x10010827
lea ecx, [esp + 0xc]
add esi, eax
push ecx
push esi
call fcn.10013c00
add esp, 8
test eax, eax
jne 0x10010800
cmp dword [ebp + 0x208], 0
jne 0x10010848
mov edx, dword [ebp + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x30
ret 4
push ebx
push 0x40
push 0x1000
push 0x40
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov bl, byte [0x1004cff8]
movzx edx, byte [str.XP_ah]
mov dword [ebp + 0x218], eax
mov eax, dword [ebp + 0x214]
mov byte [eax], bl
mov ecx, dword [ebp + 0x218]
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [ebp + 0x218]
movzx eax, byte [0x1004cffe]
mov byte [esi], dl
movzx edx, byte [0x1004cffb]
mov byte [esi + 1], al
mov ecx, dword [ebp + 0x218]
inc esi
inc esi
add ecx, 0xc
mov dword [esi], ecx
mov byte [esi + 4], dl
add esi, 4
mov byte [esi + 1], bl
mov eax, dword [ebp + 0x210]
inc esi
inc esi
sub eax, esi
sub eax, 4
mov dword [esi], eax
mov ecx, dword [ebp + 0x208]
push ecx
lea edi, [ebp + 0x21c]
add esi, 4
push edi
push esi
call fcn.10025590
mov al, byte [edi]
add esp, 0xc
cmp al, bl
je 0x100108e9
cmp al, byte [0x1004cff9]
jne 0x100108f4
mov edx, dword [ebp + 0x214]
sub edx, esi
add dword [esi + 1], edx
add esi, dword [ebp + 0x208]
push 0
mov byte [esi], bl
mov eax, dword [ebp + 0x214]
mov ecx, dword [ebp + 0x208]
inc esi
sub eax, esi
lea edx, [eax + ecx - 4]
push 0
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x214]
lea eax, [esp + 0x44]
push eax
push ecx
push 0x19
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
mov byte [ebp + 0x235], 1
mov al, 1
pop ebp
add esp, 0x30
ret 4
mov eax, dword [ebp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x30
ret 4