Function at 0x43f0e5
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x441004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x194], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, edx
push 0x40
mov dword [ebp - 0x180], eax
mov edi, ecx
lea eax, [ebp - 0x168]
mov dword [ebp - 0x1a4], ebx
push esi
push eax
mov dword [ebp - 0x17c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
push 0x40
lea eax, [ebp - 0x168]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_ReadProcessMemory]
test eax, eax
je 0x43f638
cmp dword [ebp - 0x178], 0x40
jb 0x43f638
push 0xf8
lea eax, [ebp - 0x128]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
push 0xf8
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
add eax, ebx
push eax
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_ReadProcessMemory]
test eax, eax
je 0x43f638
cmp dword [ebp - 0x178], 0xf8
jb 0x43f638
mov eax, 0x10b
cmp word [ebp - 0x110], ax
je 0x43f1cb
push 9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x43f638
movzx ecx, word [ebp - 0x114]
mov eax, dword [ebp - 0x12c]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x58], esi
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x174], esi
cmp cx, word [ebp - 0x122]
jae 0x43f2a3
lea edx, [ebx + eax]
mov dword [ebp - 0x170], edx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
push eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
push edx
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_ReadProcessMemory]
test eax, eax
je 0x43f638
cmp dword [ebp - 0x178], 0x28
jb 0x43f638
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x50], esi
jne 0x43f265
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0xa8], edx
jb 0x43f265
lea eax, [ecx + edx]
cmp dword [ebp - 0xa8], eax
jae 0x43f265
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp dword [ebp - 0x16c], eax
jae 0x43f278
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x170]
inc ecx
movzx eax, word [ebp - 0x122]
add edx, 0x28
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], edx
cmp ecx, eax
jb 0x43f207
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 0x14
pop ecx
div ecx
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x170], eax
add eax, ecx
imul eax, eax, 0x14
shl ecx, 4
mov dword [ebp - 0x16c], esi
add eax, 7
and eax, 0xfffffff8
add ecx, eax
mov dword [ebp - 0x19c], eax
mov eax, esi
mov dword [ebp - 0x190], ecx
mov edx, ecx
mov dword [ebp - 0x184], ecx
cmp dword [ebp - 0x180], eax
jbe 0x43f340
mov edi, dword [ebp - 0x180]
mov ebx, dword [ebp - 0x194]
mov ecx, dword [ebx + eax*4]
lea eax, [ecx + 1]
mov dword [ebp - 0x174], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f308
sub ecx, dword [ebp - 0x174]
lea eax, [ecx + 4]
and eax, 0xfffffffc
add edx, eax
mov eax, dword [ebp - 0x16c]
inc eax
mov dword [ebp - 0x16c], eax
cmp eax, edi
jb 0x43f2fc
mov ebx, dword [ebp - 0x1a4]
mov edi, dword [ebp - 0x17c]
mov dword [ebp - 0x184], edx
push edx
call fcn.0043fcc4
mov dword [ebp - 0x188], eax
pop ecx
test eax, eax
je 0x43f638
push dword [ebp - 0x184]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x104]
add esp, 0xc
add eax, ebx
mov edx, ebx
add eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0xfc]
cmp ebx, eax
jae 0x43f387
mov edx, eax
push dword [ebp - 0x184]
mov ecx, edi
call fcn.0043f037
mov dword [ebp - 0x1a8], eax
test eax, eax
je 0x43f62c
mov ecx, dword [ebp - 0xa8]
mov edx, eax
sub edx, ebx
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x17c], edx
test ecx, ecx
je 0x43f40a
imul eax, dword [ebp - 0x170], 0x14
lea edx, [ebp - 0x178]
push edx
push eax
mov dword [ebp - 0x16c], eax
imul eax, dword [ebp - 0x180], 0x14
add eax, dword [ebp - 0x188]
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_ReadProcessMemory]
test eax, eax
je 0x43f62c
mov eax, dword [ebp - 0x16c]
cmp dword [ebp - 0x178], eax
jb 0x43f62c
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x18c], esi
cmp dword [ebp - 0x180], esi
jbe 0x43f55e
mov eax, dword [ebp - 0x188]
lea ecx, [eax + 4]
mov dword [ebp - 0x16c], ecx
mov ecx, dword [ebp - 0x19c]
add edx, ecx
mov dword [ebp - 0x170], edx
lea edx, [ecx + 4]
mov ecx, dword [ebp - 0x190]
add edx, eax
mov dword [ebp - 0x174], edx
mov edx, dword [ebp - 0x184]
mov ebx, dword [ebp - 0x194]
sub edx, ecx
add ecx, eax
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x1a0], ecx
push dword [ebx + eax*4]
call fcn.0043ee93
mov ebx, dword [ebp - 0x1a4]
test eax, eax
js 0x43f62c
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x43f4b1
mov eax, dword [ebp - 0x1a0]
test eax, eax
je 0x43f4b1
jmp 0x43f4a5
cmp byte [eax], 0x3f
jne 0x43f4a3
cmp byte [eax + 1], 0x3f
je 0x43f4ac
dec ecx
inc eax
cmp ecx, 2
jae 0x43f498
jmp 0x43f4b1
mov word [eax], 0x3233
mov edx, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x170]
mov dword [edx - 4], eax
add eax, 8
mov dword [ecx - 4], 0x80000001
mov dword [ecx], esi
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x17c]
mov dword [ecx + 4], SysStringLen
mov dword [ecx + 8], esi
mov ecx, dword [ebp - 0x190]
add eax, ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [edx], esi
mov dword [edx + 4], esi
mov edx, dword [ebp - 0x194]
mov edx, dword [edx + eax*4]
lea eax, [edx + 1]
mov dword [ebp - 0x1a0], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x43f50d
sub edx, dword [ebp - 0x1a0]
add dword [ebp - 0x170], 0x10
add dword [ebp - 0x174], 0x10
add dword [ebp - 0x16c], 0x14
lea eax, [edx + 4]
and eax, 0xfffffffc
add ecx, eax
mov eax, dword [ebp - 0x18c]
inc eax
mov dword [ebp - 0x190], ecx
cmp eax, dword [ebp - 0x180]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x188]
jb 0x43f44a
jmp 0x43f564
mov ecx, dword [ebp - 0x190]
push esi
push ecx
push dword [ebp - 0x188]
push dword [ebp - 0x1a8]
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_WriteProcessMemory]
test eax, eax
je 0x43f62c
cmp dword [ebp - 0x50], esi
jne 0x43f59a
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x4c], eax
jmp 0x43f5a0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x198]
push eax
push 0x40
push dword [ebp - 0xd4]
mov dword [ebp - 0xa8], ecx
push ebx
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtectEx]
test eax, eax
je 0x43f62c
push esi
push 0x40
lea eax, [ebp - 0x168]
mov dword [ebp - 0xd0], esi
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_WriteProcessMemory]
test eax, eax
je 0x43f62c
push esi
push 0xf8
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
add eax, ebx
push eax
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_WriteProcessMemory]
test eax, eax
je 0x43f62c
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x198]
push dword [ebp - 0xd4]
push ebx
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtectEx]
test eax, eax
je 0x43f62c
xor esi, esi
inc esi
push dword [ebp - 0x188]
call fcn.0043fcaf
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ffc0
leave
ret 8