Function at 0x100013ff0
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x768], rbx
mov rax, qword [0x1000291f0]
xor rax, rsp
mov qword [rbp + 0x610], rax
mov dword [rsp + 0x34], r9d
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov eax, dword [0x100038b20]
mov r10d, dword [rbp + 0x680]
test al, 1
jne 0x100014067
or eax, 1
mov dword [0x100038b20], eax
mov eax, r10d
shr eax, 1
mov dword [0x100038b24], eax
mov eax, dword [0x100038b20]
test al, 2
jne 0x10001407b
or eax, 2
mov dword [0x100038b20], eax
mov dword [0x100038b28], r10d
xor r10d, r10d
mov dword [rsp + 0x38], r10d
mov ebx, r10d
mov dword [rsp + 0x30], ebx
lea r14, [r8 + 0x2978]
mov qword [rsp + 0x50], r14
mov r12, qword [r14]
mov dword [rbp + 0x150], Ordinal_569
mov dword [rbp + reloc.sqllang.dll_Ordinal_304], 0x1c
xor edx, edx
mov eax, r9d
div dword [0x100038b24]
test eax, eax
je 0x1000145ca
mov rsi, qword [rcx]
mov r13, qword [rcx + 8]
test rsi, rsi
jne 0x1000140d5
test r13, r13
je 0x1000145ca
test edx, edx
jne 0x100014151
cmp qword [r14 + 8], rbx
jne 0x100014151
lea rbx, [rcx + 0xb0cc]
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], r10d
call qword [sym.imp.sqldk.dll_Ordinal_362]
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov r10d, 0
mov ecx, r10d
sete cl
mov rbx, qword [rsp + 0x70]
test ecx, ecx
jne 0x10001411e
mov rcx, rbx
call fcn.100014910
xor r10d, r10d
mov dword [rsp + 0x78], 1
mov rax, qword [r15 + 0x10]
test rax, rax
je 0x100014136
cmp qword [rax + 8], 0
jne 0x100014145
mov qword [r15 + 0x10], r14
mov rax, qword [rdi + 0x188]
mov qword [r14 + 8], rax
test rbx, rbx
je 0x10001414d
mov dword [rbx], r10d
mov ebx, dword [rsp + 0x30]
mov rax, qword [r14 + 8]
test rax, rax
je 0x1000145ca
cmp rax, qword [rdi + 0x188]
jne 0x1000145ca
mov edx, 1
mov rcx, r14
call qword [sym.imp.sqldk.dll_Ordinal_873]
cmp r12, 0xffffffffffffffff
jne 0x1000141bd
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1000145ca
mov qword [r14], rax
test rsi, rsi
je 0x1000141a7
mov qword [rsi + 0x30], 0
test r13, r13
je 0x1000141b4
mov qword [r13 + 0x30], 0
mov ebx, 1
mov dword [rsp + 0x30], ebx
test rsi, rsi
je 0x1000143a7
mov rax, qword [0x1000290c8]
movzx edi, byte [rax + 0x9e]
and edi, 1
lea rdx, [rbp + 0x150]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000143a7
xor r15d, r15d
mov r8d, dword [rbp + reloc.sqllang.dll_Ordinal_344]
xor edx, edx
mov ecx, Ordinal_1028
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x100014386
mov r8d, 0x50
lea rdx, [rbp + 0x390]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
test eax, eax
je 0x10001437d
lea r8, [rbp + reloc.sqlmin.dll_Ordinal_380]
test edi, edi
cmove r8, r15
mov dword [rbp + 0x3e0], r15d
xor eax, eax
mov qword [rbp + 0x3e0], rax
mov eax, dword [rbp + reloc.sqllang.dll_Ordinal_344]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rbp + 0x394]
mov dword [rbp + 0x5fc], eax
mov rax, qword [rbp + reloc.sqlmin.dll_Ordinal_928]
mov qword [rbp + 0x600], rax
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x608], rax
test r8, r8
je 0x1000142d3
mov edx, Ordinal_263
lea rax, [rbp + 0x3f4]
lea rcx, [rbp + 0x3f4]
sub r8, rcx
nop dword [rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x1000142c4
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1000142c4
mov word [rax], cx
add rax, 2
dec rdx
jne 0x1000142a0
jmp 0x1000142c9
test rdx, rdx
jne 0x1000142cd
sub rax, 2
mov word [rax], r15w
jmp 0x1000142db
mov word [rbp + 0x3f4], r15w
mov dword [rbp + 0x118], r15d
mov qword [rbp + 0x120], r15
cmp qword [rsi + 0x40], r15
je 0x100014366
xor edx, edx
mov r8d, Ordinal_170
lea rcx, [rbp + 0x80]
call sub.MSVCR100.dll_memset
mov r11, qword [sym.imp.sqldk.dll_Ordinal_742]
mov rax, qword [r11]
lea r9, [rbp + 0x90]
lea r8, [rbp + 0x98]
mov edx, 0x10
lea ecx, [rdx - 0xf]
call rax
movzx r11d, ax
mov dword [rbp + 0x118], r11d
mov ecx, dword [rbp + 0x90]
mov eax, ecx
shl eax, 0xf
not eax
add ecx, eax
mov eax, ecx
shr eax, 0xa
xor eax, ecx
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, ecx
shr eax, 0x10
xor ecx, eax
mov dword [rbp + 0x90], ecx
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0x3e0]
mov rcx, rsi
call qword [sym.imp.sqldk.dll_Ordinal_841]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x150]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000141f2
mov r15, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
test r13, r13
je 0x1000145ca
test ebx, ebx
jne 0x1000143c8
xor edx, edx
mov eax, dword [rsp + 0x34]
div dword [0x100038b28]
test edx, edx
jne 0x1000145ca
lea rdx, [rbp + reloc.sqllang.dll_Ordinal_304]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100014563
movsxd r15, ebx
mov rbx, qword [rsp + 0x40]
add rbx, 0x70c0
xor r14d, r14d
nop word [rax + rax]
mov rdi, r14
mov rsi, r14
mov r8d, dword [rbp + 0x138]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
je 0x10001444e
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x10001444e
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
test r15, r15
je 0x100014465
mov qword [rbx], rdi
mov qword [rbx + 0x2000], rsi
jmp 0x10001451f
mov dword [rbp - 0x80], r14d
xor eax, eax
mov qword [rbp - 0x80], rax
mov eax, dword [rbp + 0x13c]
mov dword [rbp - 0x70], eax
mov eax, dword [rbp + 0x138]
mov dword [rbp - 0x6c], eax
mov rax, qword [rbx + 0x2000]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rsi
mov rax, qword [rbx]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov dword [rbp + 0x68], r14d
mov qword [rbp + 0x70], r14
cmp qword [r13 + 0x40], r14
je 0x10001450e
xor edx, edx
mov r8d, Ordinal_170
lea rcx, [rbp - 0x30]
call sub.MSVCR100.dll_memset
mov r11, qword [sym.imp.sqldk.dll_Ordinal_742]
mov rax, qword [r11]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x18]
mov edx, 0x10
lea ecx, [rdx - 0xf]
call rax
movzx r11d, ax
mov dword [rbp + 0x68], r11d
mov ecx, dword [rbp - 0x20]
mov eax, ecx
shl eax, 0xf
not eax
add ecx, eax
mov eax, ecx
shr eax, 0xa
xor eax, ecx
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, ecx
shr eax, 0x10
xor ecx, eax
mov dword [rbp - 0x20], ecx
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.sqldk.dll_Ordinal_841]
mov edi, dword [rsp + 0x38]
inc edi
mov dword [rsp + 0x38], edi
add rbx, 8
lea rdx, [rbp + reloc.sqllang.dll_Ordinal_304]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x10001454d
cmp edi, 0x400
jb 0x1000143f7
mov edx, dword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov rcx, r15
call fcn.100014630
mov r14, qword [rsp + 0x50]
xor edx, edx
mov eax, dword [rsp + 0x34]
div dword [0x100038b28]
test edx, edx
jne 0x1000145ca
xor edx, edx
mov rcx, r14
call qword [sym.imp.sqldk.dll_Ordinal_691_1]
lea rbx, [r15 + 0xb0cc]
mov qword [rsp + 0x60], rbx
xor edi, edi
mov dword [rsp + 0x68], edi
call qword [sym.imp.sqldk.dll_Ordinal_362]
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov ecx, edi
sete cl
mov rbx, qword [rsp + 0x60]
test ecx, ecx
jne 0x1000145b4
mov rcx, rbx
call fcn.100014910
mov dword [rsp + 0x68], 1
mov qword [0x10002d850], rdi
test rbx, rbx
je 0x1000145ca
mov dword [rbx], edi
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.100002610
mov rbx, qword [rsp + 0x768]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret