Function at 0x40be40
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596958
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40bf57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x611c30], edi
je 0x40c32e
push ecx
mov ecx, 0x611c30
call fcn.004f1210
mov ecx, dword [0x611c30]
cmp byte [ecx + 0x54], 0
je 0x40c32e
cmp dword [ecx + 0x58], 4
jb 0x40c32e
mov bl, byte [ecx + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push str.OpenProcess_dwErr__0x_X
push eax
call fcn.004f2e00
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push 0x12c
push 0x5d5bb8
push 0x5d5bb8
push eax
push 4
call fcn.004f2540
test bl, bl
je 0x40bf14
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push eax
call fcn.004f2b60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c32e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bf48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c34c
push edx
push ecx
call fcn.0053fb46
add esp, 8
jmp 0x40c32e
mov ebx, dword [esi + 0x10]
push 4
push 0x1000
inc ebx
push ebx
push 0
push edi
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x40c058
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x611c30], 0
mov esi, eax
je 0x40c327
push ecx
mov ecx, 0x611c30
call fcn.004f1210
mov ecx, dword [0x611c30]
cmp byte [ecx + 0x54], 0
je 0x40c327
cmp dword [ecx + 0x58], 4
jb 0x40c327
mov bl, byte [ecx + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push str.VirtualAllocEx_dwErr__0x_X
push eax
call fcn.004f2e00
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push 0x135
push 0x5d5bb8
push 0x5d5bb8
push eax
push 4
call fcn.004f2540
test bl, bl
je 0x40c015
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push eax
call fcn.004f2b60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c327
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c049
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c351
push edx
push ecx
call fcn.0053fb46
add esp, 8
jmp 0x40c327
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x2c], 0
jb 0x40c067
mov esi, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40c244
cmp dword [ebp - 0x2c], ebx
je 0x40c146
push 4
mov ecx, 0x611c30
or esi, 0xffffffff
call fcn.004f24d0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40c317
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ebx
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
push str.WriteProcessMemory_numberOfBytesWritten____remoteBufSize_numberOfBytesWritten____d_remoteBufSize___d
push eax
call fcn.004f2e00
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push 0x142
push 0x5d5bb8
push 0x5d5bb8
push eax
push 4
call fcn.004f2540
cmp dword [ebp - 0x34], 1
jbe 0x40c103
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push eax
call fcn.004f2b60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c317
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c356
push edx
push ecx
call fcn.0053fb46
add esp, 8
jmp 0x40c317
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push dword [ebp - 0x38]
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x40c22d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov ecx, 0x611c30
mov esi, eax
call fcn.004f24d0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40c317
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push str.CreateRemoteThread_dwErr__0x_X
push eax
call fcn.004f2e00
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push 0x153
push 0x5d5bb8
push 0x5d5bb8
push eax
push 4
call fcn.004f2540
cmp dword [ebp - 0x34], 1
jbe 0x40c1f0
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push eax
call fcn.004f2b60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c317
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c137
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c35b
jmp 0x40c137
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x40c317
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x611c30], 0
mov esi, eax
je 0x40c317
push ecx
mov ecx, 0x611c30
call fcn.004f1210
mov eax, dword [0x611c30]
cmp byte [eax + 0x54], 0
je 0x40c317
cmp dword [eax + 0x58], 4
jb 0x40c317
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push str.WriteProcessMemory_dwErr__0x_X
push eax
call fcn.004f2e00
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push 0x14a
push 0x5d5bb8
push 0x5d5bb8
push eax
push 4
call fcn.004f2540
test bl, bl
je 0x40c2de
lea eax, [ebp - 0x28]
mov ecx, 0x611c30
push eax
call fcn.004f2b60
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c314
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c30a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c360
push edx
push ecx
call fcn.0053fb46
add esp, 8
mov ebx, dword [ebp - 0x34]
push 0x1000
push ebx
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret
call fcn.0054cdad
call fcn.0054cdad
call fcn.0054cdad
call fcn.0054cdad
call fcn.0054cdad
int3