Function at 0x5b280
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x61
mov byte [ebp - 1], 0
call fcn.00049640
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5b2a3
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push ebx
push esi
push edi
push 0x49c9
call fcn.00049640
push 0x20
mov ecx, eax
call fcn.00049640
mov ebx, eax
push 0x21
mov dword [ebp - 0x14], ebx
call fcn.00049640
mov edi, eax
push 0x22
mov dword [ebp - 8], edi
call fcn.00049640
push 3
mov edx, eax
call fcn.00049640
push 2
mov dword [ebp - 0xc], eax
call fcn.00049640
push 0x4b34
mov esi, eax
call fcn.00049640
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x5b49d
cmp ecx, edi
jae 0x5b49d
test ebx, ebx
je 0x5b49d
test edx, edx
je 0x5b49d
test edi, edi
je 0x5b49d
cmp dword [ebp - 0xc], 0
je 0x5b49d
test esi, esi
je 0x5b49d
mov edi, dword [edx + 0x34]
mov edx, dword [ebp - 8]
add ebx, ecx
add edx, dword [ebp - 0x14]
mov byte [ebp - 2], 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x10]
push ecx
lea esi, [ebp - 0x5c]
mov ecx, ebx
call fcn.00032c70
test al, al
je 0x5b49d
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
add ebx, dword [ebp - 0x44]
cmp eax, 0x10b3
je 0x5b49d
mov ecx, dword [sym.imp.ntoskrnl.exe_NtBuildNumber]
movzx ecx, word [ecx]
mov edx, 0x1770
cmp cx, dx
ja 0x5b3e9
cmp eax, 0x10b7
jne 0x5b54c
cmp dword [ebp - 0x4c], 1
jne 0x5b54c
cmp dword [ebp - 0x50], 0x18
jne 0x5b54c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00032c70
test al, al
je 0x5b49d
mov ecx, dword [ebp - 0x3c]
add ebx, dword [ebp - 0x44]
cmp dword [ecx], 0x107e
jne 0x5b54c
mov eax, dword [ebp - 0x50]
test eax, eax
jle 0x5b49d
cmp eax, edi
jbe 0x5b49d
sub eax, edi
cmp eax, dword [ebp - 8]
jae 0x5b49d
jmp 0x5b48b
mov edx, 0x23f0
cmp cx, dx
jae 0x5b435
cmp eax, 0x107c
jne 0x5b54c
mov eax, dword [ebp - 0x10]
push eax
lea esi, [ebp - 0x5c]
mov ecx, ebx
call fcn.00032c70
test al, al
je 0x5b49d
mov ecx, dword [ebp - 0x3c]
add ebx, dword [ebp - 0x44]
cmp dword [ecx], 0x10b8
jne 0x5b54c
cmp dword [ebp - 0x50], 4
jne 0x5b54c
mov eax, dword [ebp - 0x4c]
jmp 0x5b3c9
mov edx, 0x295a
cmp cx, dx
jae 0x5b4b7
cmp byte [ebp - 0x58], 1
jne 0x5b449
mov byte [ebp - 2], 1
cmp eax, 0x10ab
jl 0x5b54c
cmp eax, 0x10b2
jg 0x5b54c
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x5b54c
cmp eax, edi
jbe 0x5b54c
mov ecx, eax
sub ecx, edi
cmp ecx, dword [ebp - 8]
jae 0x5b54c
cmp byte [ebp - 2], 1
jne 0x5b54c
sub eax, edi
add eax, dword [ebp - 0xc]
push eax
push 0x2bc
call fcn.00049620
mov byte [ebp - 1], 1
cmp dword [ebp - 0x20], 0
pop edi
pop esi
pop ebx
je 0x5b4b0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
mov edx, 0x3ad7
cmp cx, dx
jae 0x5b50d
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5b54c
cmp byte [ebp - 2], 0
jne 0x5b4eb
cmp eax, 0x10cd
jne 0x5b54c
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x14]
add eax, ebx
cmp eax, ecx
jne 0x5b54c
mov byte [ebp - 2], 1
jmp 0x5b54c
cmp eax, 0x10ab
jl 0x5b54c
cmp eax, 0x10b2
jg 0x5b54c
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x5b54c
cmp eax, edi
jbe 0x5b54c
mov ecx, eax
sub ecx, edi
cmp ecx, dword [ebp - 8]
jmp 0x5b546
cmp byte [ebp - 2], 0
jne 0x5b526
cmp eax, 0x1286
jne 0x5b54c
cmp dword [ebp - 0x4c], 4
jne 0x5b54c
mov byte [ebp - 2], 1
jmp 0x5b54c
cmp eax, 0x10ab
jl 0x5b54c
cmp eax, 0x10b2
jg 0x5b54c
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x5b54c
cmp eax, edi
jbe 0x5b54c
mov edx, eax
sub edx, edi
cmp edx, dword [ebp - 8]
jb 0x5b489
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x100
jb 0x5b346
jmp 0x5b49d