Function at 0x443776
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push esi
push edi
mov eax, dword [0x44dd1c]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], 0
push 0x4412ec
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x44da84], eax
call fcn.00443e3b
sub eax, 6
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x1e0]
push eax
push 0
call fcn.004431e2
add esp, 0x10
test eax, eax
je 0x443e1f
mov ecx, dword [0x44da84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1e0]
and edx, 0xff
test edx, edx
je 0x44380e
lea ecx, [ebp - 0x338]
call fcn.00447a60
lea ecx, [ebp - 0x338]
call fcn.00447a7f
push 0x1c8
lea eax, [ebp - 0x1e0]
push eax
push 0x44d8b0
call fcn.004481b0
add esp, 0xc
mov byte [ebp - 0x318], 4
mov byte [ebp - 0x317], 8
mov byte [ebp - 0x316], 0
mov byte [ebp - 0x315], 0
mov byte [ebp - 0x314], 0xc8
mov byte [ebp - 0x313], 0
mov byte [ebp - 0x312], 0
mov byte [ebp - 0x311], 0
mov byte [ebp - 0x310], 0x18
mov byte [ebp - 0x30f], 0x61
mov byte [ebp - 0x30e], 0xe
mov byte [ebp - 0x30d], 0
mov byte [ebp - 0x30c], 0x22
mov byte [ebp - 0x30b], 0
mov byte [ebp - 0x30a], 0
mov byte [ebp - 0x309], 0
mov byte [ebp - 0x308], 0x90
mov byte [ebp - 0x307], 0x66
mov byte [ebp - 0x306], 0xe
mov byte [ebp - 0x305], 0
mov byte [ebp - 0x304], 0xe8
mov byte [ebp - 0x303], 2
mov byte [ebp - 0x302], 0
mov byte [ebp - 0x301], 0
mov byte [ebp - 0x300], 0
mov byte [ebp - 0x2ff], 0
mov byte [ebp - 0x2fe], 0
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 0x2fc], 0
mov byte [ebp - 0x2fb], 0
mov byte [ebp - 0x2fa], 0
mov byte [ebp - 0x2f9], 0
push 0x1c8
lea ecx, [ebp - 0x318]
push ecx
push 0x64
push 0x44d8b0
call fcn.0044741d
add esp, 0x10
mov edx, dword [ebp - 0x1d4]
and edx, 0xff
test edx, edx
je 0x44395c
mov eax, dword [ebp - 0x1de]
and eax, 0xff
cmp eax, 2
je 0x44395c
sub esp, 0x1c8
mov ecx, 0x72
mov esi, 0x44d8b0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x44dca8]
mov ecx, dword [ebp - 4]
sub ecx, 0x1c8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1d8]
and edx, 0xff
test edx, edx
je 0x4439c8
mov eax, dword [0x44de28]
push eax
call fcn.0044d3e0
add esp, 4
mov dword [ebp - 0x33c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x33c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x44de28]
push edx
call fcn.0044d360
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x4439f5
push 4
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x44de28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004481b0
add esp, 0xc
cmp dword [0x44d890], 0
je 0x443a12
push 0x8000
push 0
mov ecx, dword [0x44de28]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00443edb
add esp, 0x18
test eax, eax
jne 0x443a54
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x443e35
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x330], eax
call fcn.00443751
mov dword [0x44da80], eax
mov dword [ebp - 0x2f0], 0x44de28
mov dword [ebp - 0x320], 0x44da80
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x443ab1
xor eax, eax
jmp 0x443e35
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x44d8a8], eax
mov dword [ebp - 0x32c], 0
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0x6a
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [0x44d8a8]
add eax, dword [ebp - 0x32c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x32c]
add ecx, 1
mov dword [ebp - 0x32c], ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
push edx
call fcn.004481b0
add esp, 0xc
mov eax, dword [ebp - 0x32c]
add eax, 4
mov dword [ebp - 0x32c], eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
push 4
push 0x44da8c
mov eax, dword [0x44d8a8]
add eax, dword [ebp - 0x32c]
push eax
call fcn.004481b0
add esp, 0xc
mov ecx, dword [ebp - 0x32c]
add ecx, 4
mov dword [ebp - 0x32c], ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
mov byte [edx], 0x68
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
push 4
lea ecx, [ebp - 0x2ec]
push ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
push edx
call fcn.004481b0
add esp, 0xc
mov eax, dword [ebp - 0x32c]
add eax, 4
mov dword [ebp - 0x32c], eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
push 4
lea eax, [ebp - 0x330]
push eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
push ecx
call fcn.004481b0
add esp, 0xc
mov edx, dword [ebp - 0x32c]
add edx, 4
mov dword [ebp - 0x32c], edx
mov eax, dword [0x44d8a8]
add eax, dword [ebp - 0x32c]
mov byte [eax], 0xff
mov ecx, dword [ebp - 0x32c]
add ecx, 1
mov dword [ebp - 0x32c], ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
mov byte [edx], 0x15
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
push 4
lea ecx, [ebp - 0x320]
push ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
push edx
call fcn.004481b0
add esp, 0xc
mov eax, dword [ebp - 0x32c]
add eax, 4
mov dword [ebp - 0x32c], eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [0x44d8a8]
add eax, dword [ebp - 0x32c]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x32c]
add ecx, 1
mov dword [ebp - 0x32c], ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0x8b
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [0x44d8a8]
add eax, dword [ebp - 0x32c]
mov byte [eax], 0xe5
mov ecx, dword [ebp - 0x32c]
add ecx, 1
mov dword [ebp - 0x32c], ecx
mov edx, dword [0x44d8a8]
add edx, dword [ebp - 0x32c]
mov byte [edx], 0x5d
mov eax, dword [ebp - 0x32c]
add eax, 1
mov dword [ebp - 0x32c], eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x32c]
add edx, 1
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [0x44d8a8]
sub ecx, dword [ebp - 0x2f8]
sub ecx, 5
mov dword [0x44da7c], ecx
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x1dc]
add eax, dword [0x44dd1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [0x44d8a8]
mov edx, dword [ebp - 0x32c]
add edx, 4
sub ecx, edx
mov dword [ebp - 0x2f4], ecx
push 4
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [0x44d8a8]
add ecx, dword [ebp - 0x32c]
push ecx
call fcn.004481b0
add esp, 0xc
mov byte [ebp - 0x328], 0xe9
push 4
push 0x44da7c
lea edx, [ebp - 0x327]
push edx
call fcn.004481b0
add esp, 0xc
push 0
push 5
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x330]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x31c], eax
jmp 0x443e33
push 0x10
push 0x4412fc
push 0x441304
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret