Function at 0x5f99a0
Capabilities:
Resolve function by parsing pe exports
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x178], eax
mov dword [esp + 8], ecx
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x70]
mov dword [eax], 0xffffffff
mov esi, 0x4000
mov ebx, 0x14
push 0x4000
call fcn.0056682e
add esp, 4
jmp 0x5f9a12
mov esi, dword [esp + 0x70]
mov eax, 0x1000
add esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5f9a06
push eax
call fcn.005666bd
add esp, 4
push esi
call fcn.0056682e
add esp, 4
dec ebx
je 0x5f9a7c
lea ecx, [esp + 0x70]
push ecx
push esi
mov dword [esp + 0x14], eax
push eax
push 5
call fcn.005ee100
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x5f99ea
cmp edi, 0xc0000004
je 0x5f99ea
test edi, edi
js 0x5f9a78
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov ecx, dword [esp + 0xc]
mov ebx, ecx
mov edx, dword [esp + 8]
cmp dword [ebx + 0x44], edi
je 0x5f9aeb
mov eax, dword [ebx]
test eax, eax
je 0x5f9a65
add ebx, eax
jne 0x5f9a52
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5f9ac4
jmp 0x5f9dcd
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5f9ac4
lea ebx, [esp + 0xd0]
mov ecx, ebx
push edi
push 2
push 0x5f
push str.process_reader_win.cc
call fcn.005ee430
lea eax, [esp + 0xd8]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, ebx
call fcn.005ee460
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5f9ad5
push ecx
call fcn.005666bd
add esp, 4
mov ecx, dword [esp + 0x178]
xor ecx, ebp
call fcn.00568175
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x5f9ac8
cmp dword [ebx + 4], 0
je 0x5f9ac8
lea edi, [esp + 0x78]
lea ecx, [ebx + 0xd8]
lea eax, [edx + 0x68]
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x5f9c6d
mov dword [esp + 0xb8], 0
mov ecx, edi
push 0x2cc
call fcn.005543d0
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
push eax
call fcn.004e8810
add esp, 4
mov dword [esp + 0xbc], 0x20
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0xc0], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
xor eax, eax
push eax
push 0x1c
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
call fcn.005ee190
add esp, 0x14
test eax, eax
jns 0x5f9f29
mov edi, eax
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5f9bd0
mov dword [esp + 4], esi
lea esi, [esp + 0xd0]
mov ecx, esi
push edi
push 2
push 0x1ab
push str.process_reader_win.cc
call fcn.005ee430
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.005ee460
lea edi, [esp + 0x78]
push esi
call fcn.004eeef0
add esp, 4
jmp 0x5f9c2c
mov edi, eax
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5f9c28
lea esi, [esp + 0xd0]
mov ecx, esi
push edi
push 2
push 0x80
push str.process_reader_win.cc
call fcn.005ee430
push 0xc
push str.NtOpenThread
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
call fcn.005ee460
lea edi, [esp + 0x78]
cmp byte [esp + 0x8f], 0
mov esi, dword [esp + 0x1c]
jns 0x5f9c49
push dword [esp + 0x84]
call fcn.00564ea0
add esp, 4
mov dword [esp + 0xd0], edi
lea ecx, [esp + 0xd0]
call fcn.00553de0
inc esi
mov ecx, dword [esp + 0x10]
add ecx, 0x40
cmp esi, dword [ebx + 4]
jae 0x5f9ac4
mov dword [esp + 0x1c], esi
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
xor esi, esi
dec esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], esi
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
xor edx, edx
mov dword [esp + 0x70], edx
mov byte [esp + 0x74], 0
pxor xmm0, xmm0
movdqu xmmword [edi + 0x3c], xmm0
movdqu xmmword [edi + 0x30], xmm0
movdqu xmmword [edi + 0x20], xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov eax, dword [ecx + 4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0x18
lea eax, [esp + 0x54]
mov dword [eax + 0x10], edx
movdqu xmmword [eax], xmm0
mov dword [esp + 0x10], ecx
push ecx
lea eax, [esp + 0x54]
push eax
push 0x4a
lea eax, [esp + 0x3c]
push eax
call fcn.005ee070
add esp, 0x10
test eax, eax
js 0x5f9bdf
mov esi, dword [esp + 0x30]
test esi, esi
lea edi, [esp + 0x78]
je 0x5f9c2c
mov eax, dword [esp + 8]
mov dl, byte [eax + 0xf0]
mov eax, dword [esp + 0x90]
mov ecx, dword fs:[0x18]
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0x94]
je 0x5f9b0d
mov byte [esp + 4], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5f9e1f
push 2
call fcn.00563020
add esp, 4
test al, al
lea edi, [esp + 0x78]
je 0x5f9bd4
call fcn.004ed0f0
mov dword [esp + 4], esi
lea esi, [esp + 0xd0]
mov ecx, esi
push eax
push 2
push 0x9c
push str.process_reader_win.cc
call fcn.00592570
push 0xd
push 0x63b9a6
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.00592350
jmp 0x5f9bd4
lea ebx, [esp + 0xd0]
mov ecx, ebx
push 2
push 0x71
push str.process_reader_win.cc
call fcn.0040a9f0
lea eax, [esp + 0xd8]
push 8
push str.process
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, eax
push edi
call fcn.00430c70
push 0xa
push str._not_found
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, ebx
call fcn.00407a90
jmp 0x5f9ac4
mov edi, eax
mov al, byte [esp + 4]
test al, al
je 0x5f9eb5
test edi, edi
jne 0x5f9eb5
xor edi, edi
push 1
call fcn.00563020
add esp, 4
test al, al
je 0x5f9eba
mov dword [esp + 4], esi
lea esi, [esp + 0xd0]
mov ecx, esi
push 1
push 0xa1
push str.process_reader_win.cc
call fcn.0040a9f0
push 7
push str.Thread
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, eax
push dword [esp + 0x94]
push dword [esp + 0x94]
call fcn.00594bb0
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, eax
push 0
call fcn.00430c70
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.00407a90
jmp 0x5f9eba
movzx eax, al
sub edi, eax
mov dword [esp + 0xb8], edi
lea ecx, [esp + 0x70]
mov edx, esi
call fcn.005f95e0
test al, al
lea edi, [esp + 0x78]
je 0x5f9bd4
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x5f9b3a
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5f9bd4
call fcn.004ed0f0
mov dword [esp + 4], esi
lea esi, [esp + 0xd0]
mov ecx, esi
push eax
push 2
push 0xc0
push str.process_reader_win.cc
call fcn.00592570
push 0xc
push 0x63b9f1
jmp 0x5f9dad
mov dword [esp + 4], esi
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x3c], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], 0xf98
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
push esi
push edx
push 0x1c
push edx
push eax
call fcn.005fa5e0
test al, al
mov esi, dword [esp + 8]
je 0x5fa045
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
cmp esi, edi
jbe 0x5fa028
push 2
call fcn.00563020
add esp, 4
mov ecx, 0
test al, al
mov eax, 0
je 0x5fa033
mov dword [esp + 0x14], esi
lea ecx, [esp + 0xd0]
push 2
push 0x1cb
push str.process_reader_win.cc
call fcn.0040a9f0
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
xor esi, esi
mov ecx, eax
push esi
push edi
call fcn.00594bb0
push 3
push 0x627580
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, eax
push esi
push dword [esp + 0x18]
call fcn.00594bb0
lea ecx, [esp + 0xd0]
call fcn.00407a90
xor eax, eax
xor ecx, ecx
jmp 0x5fa033
sub edi, esi
mov ecx, 0
sbb ecx, ecx
mov eax, edi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov esi, dword [esp + 8]
mov eax, dword [0x65881c]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5fa1d2
mov ecx, dword [0x658818]
test ecx, ecx
je 0x5fa0fe
mov dword [esp + 0x2c], 0xffffffff
call dword [0x63e64c]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 8]
call ecx
test eax, eax
js 0x5fa13c
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5fa217
push edi
call fcn.005666c2
add esp, 4
push eax
push edi
lea eax, [esp + 0xd8]
push eax
call fcn.00530a10
add esp, 0xc
cmp byte [esp + 0x8f], 0
lea esi, [esp + 0x78]
jns 0x5fa0d9
push dword [esp + 0x84]
call fcn.00564ea0
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x14], eax
movq xmm0, qword [esp + 0xd0]
movq qword [esi + 0xc], xmm0
push edi
call fcn.004ef210
add esp, 4
mov esi, dword [esp + 8]
mov edi, dword [esi + 0xdc]
cmp edi, dword [esi + 0xe0]
jae 0x5fa11c
mov ecx, edi
lea edx, [esp + 0x70]
call fcn.005fa4b0
add edi, 0x58
jmp 0x5fa12d
lea ecx, [esi + 0xd8]
lea edx, [esp + 0x70]
call fcn.005fa3b0
mov edi, eax
mov dword [esi + 0xdc], edi
mov esi, dword [esp + 4]
jmp 0x5f9bd0
mov edi, eax
push 1
call fcn.00563020
add esp, 4
test al, al
je 0x5fa0fe
lea ecx, [esp + 0xd0]
push 1
push 0x1dc
push str.process_reader_win.cc
call fcn.0040a9f0
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0xe0]
push eax
call fcn.005320d0
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
lea esi, [esp + 0x24]
push esi
call fcn.00408280
add esp, 8
movsx eax, byte [esp + 0x2b]
mov ecx, esi
test eax, eax
jns 0x5fa1a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.005320d0
add esp, 0xc
cmp byte [esp + 0x2b], 0
jns 0x5fa1c1
push dword [esp + 0x20]
call fcn.00564ea0
add esp, 4
lea ecx, [esp + 0xd0]
call fcn.00407a90
jmp 0x5fa0fa
push 0x65881c
call fcn.00564ee8
add esp, 4
cmp dword [0x65881c], 0xffffffff
jne 0x5fa066
push 0
push str.::GetThreadDescription
push 0x62479e
call fcn.004eef90
add esp, 0xc
mov dword [0x658818], eax
push 0x65881c
call fcn.00564f37
add esp, 4
jmp 0x5fa066
int3