joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021c10
Capabilities:
Get common file path

Disassembly:
push rbp
push r14
mov rbp, rsp
sub rsp, 0x48
lea r14, [rbp + 0x10]
add r14, 0xfffffffffffffff8
lea r8, [0x140025bc0]
mov rcx, r14
lea rdx, [rbp + 0x18]
call fcn.140028eb0
lea r8, [0x140025bc0]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.140028eb0
call fcn.140021970
mov rcx, qword [rbp - 0x20]
mov rdx, rax
call fcn.14002a020
mov r8, rax
mov qword [rbp - 0x20], rax
mov rax, qword [0x140278ed0]
test rax, rax
jne 0x140021e26
mov r8, qword [r8]
lea rdx, str._s_luminati
mov rcx, qword [rbp + 0x18]
call fcn.14002a0d0
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021e0a
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call fcn.14002c7e0
test eax, eax
jne 0x140021e0a
lea r8, [0x140025bc0]
mov rcx, r14
lea rdx, [rbp - 0x28]
call fcn.140028eb0
lea r8, [0x140025bc0]
mov qword [rbp - 0x28], rax
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140028eb0
lea r8, [0x140025bc0]
mov qword [rbp + 0x30], rax
lea rdx, [rbp + 0x28]
mov rcx, r14
call fcn.140028eb0
call fcn.140021970
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.14002a020
mov rdx, qword [0x140278ec8]
mov qword [rbp + 0x28], rax
test rdx, rdx
jne 0x140021def
mov qword [rsp + 0x40], rbx
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rbp + 0x20], rdx
call fcn.14002a210
lea r9, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401a4dd0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140021de3
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
xor ecx, ecx
call fcn.140176734
mov rcx, rax
call fcn.140171010
mov rsi, rax
cmp eax, 0xffffffff
je 0x140021de3
mov edx, esi
mov rcx, rbx
call fcn.14002a250
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbx]
movsxd r8, esi
call fcn.140176734
mov rcx, rax
call fcn.140171010
cmp rax, 0xffffffffffffffff
je 0x140021de3
mov rcx, rbx
call fcn.14002cbb0
mov rcx, qword [rbp + 0x28]
call fcn.14002cbc0
mov rcx, r14
mov rbx, rax
call fcn.1400292d0
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140025b40
mov r8, qword [rbp + 0x30]
lea rdx, str._s_BrightData__s
mov rcx, qword [rbp - 0x28]
mov r9, qword [rax]
mov r8, qword [r8]
call fcn.14002a0d0
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
mov qword [0x140278ec8], rdx
mov qword [rax], 0
jmp 0x140021de5
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
lea rcx, [0x140278ed0]
call fcn.14002a020
mov rax, qword [0x140278ed0]
add rsp, 0x48
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
mov qword [0x140278ed0], rax
mov qword [rcx], 0
mov rax, qword [0x140278ed0]
add rsp, 0x48
pop r14
pop rbp
ret
Function at 0x140027640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x1400276a8
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x1400276a0
mov ecx, dword [r8 + 0x20]
jmp 0x1400276a8
test dl, dl
jns 0x1400276a8
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x1400277a8
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov ebx, dword [r14 + 0x68]
mov esi, dword [rdi - 0x1c]
dec rbx
mov eax, dword [rdi - 0x14]
or rsi, r12
not rbx
and rbx, rsi
test eax, eax
jne 0x14002772f
mov ecx, dword [rdi]
test cl, 0x40
je 0x140027727
mov eax, dword [r8 + 0x20]
jmp 0x14002772f
test cl, cl
jns 0x14002772f
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x14002776f
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x14002776f
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140027570
test eax, eax
je 0x1400277ce
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x14002778f
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x140027781
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x140027700
test r10, r10
je 0x140027827
bt edx, 0x19
jae 0x1400277d2
cmp r11, r9
jne 0x140027827
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
jmp 0x140027827
xor eax, eax
jmp 0x14002782a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140263018]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400277ce
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14002852c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14002855a
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x1400285b4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x1400285b4
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x1400285a6
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x1400285c8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14002863b
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14002863b
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14002863b
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140028630
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x140028648
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x14002861c
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x14002863d

Function at 0x140028b10
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x38
mov rdx, rcx
mov qword [rax - 0x18], 0
lea rcx, [rax - 0x18]
lea r8, [rax + 0x10]
call fcn.14002a100
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140028b76
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call fcn.14002abe0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x28]
call fcn.14002abb0
mov ecx, 2
call fcn.1401768a8
mov rcx, qword [rsp + 0x20]
mov rdx, rax
call fcn.14017d980
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140028b9c
call fcn.1401760ac
add rsp, 0x38
ret
Function at 0x14002bc30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov eax, 0x40
mov r12d, 0x2f80
xor edi, edi
mov ebx, r9d
cmp r9d, eax
mov r14, r8
mov r15, rdx
mov rsi, rcx
cmovle ebx, eax
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov rax, qword [r12]
test rax, rax
jne 0x14002bc87
call fcn.140176084
mov ebp, dword [rax]
mov edx, ebx
mov rcx, rsi
call fcn.14002a250
mov rcx, qword [rsi]
lea eax, [rbx + 1]
movsxd r8, eax
mov r9, r15
mov edx, 1
call fcn.140176bc0
test eax, eax
jle 0x14002bcf7
nop dword [rax]
add edi, eax
cmp eax, ebx
jle 0x14002bcf7
add ebx, ebx
lea eax, [rbx + rdi]
lea ecx, [rax + 1]
cmp eax, 0x40000000
jge 0x14002bcf2
movsxd rdx, ecx
mov rcx, qword [rsi]
call fcn.14017d3c4
lea ecx, [rbx + 1]
mov qword [rsi], rax
movsxd r8, ecx
mov r9, r15
movsxd rcx, edi
mov edx, 1
add rcx, rax
call fcn.140176bc0
test eax, eax
jg 0x14002bcb0
jmp 0x14002bcf7
mov ebp, 0x1b
mov rax, qword [rsi]
movsxd rcx, edi
mov byte [rcx + rax], 0
test r14, r14
je 0x14002bd09
mov dword [r14], edi
mov rax, qword [r12]
test rax, rax
jne 0x14002bd17
call fcn.140176084
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov dword [rax], ebp
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002bfb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r9
mov rcx, r9
mov ebx, r8d
mov rdi, rdx
call fcn.14002cbe0
mov rdx, rax
mov rcx, r15
call fcn.14002c460
mov r14, rax
test rax, rax
jne 0x14002bff3
or rax, 0xffffffffffffffff
jmp 0x14002c0cd
mov qword [rsp + 0x50], rsi
cmp ebx, 0xffffffff
jne 0x14002c00a
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002c001
movsxd r8, ebx
mov r9, r14
mov edx, 1
mov rcx, rdi
call fcn.14017e404
mov rsi, rax
cmp eax, ebx
je 0x14002c0ba
mov rcx, rbp
call fcn.14002c9b0
bt eax, 0xc
jb 0x14002c095
mov rcx, rbp
call fcn.14002c9b0
and eax, 0xf
cmp al, 6
ja 0x14002c0ba
mov rcx, rbp
call fcn.14002c9b0
and eax, 0xf
cmp al, 5
jbe 0x14002c095
mov rcx, rbp
call fcn.14002c9b0
test eax, 0x1300
jne 0x14002c095
mov rcx, rbp
call fcn.14002c9b0
mov edi, eax
mov rcx, rbp
and edi, 0xc10000
or rdi, 0x3e0000
call fcn.14002c9b0
shr rdi, 0x10
lea rcx, [0x14027e320]
and eax, 0xf
cmp dword [rcx + rdi*4], eax
jl 0x14002c0ba
mov rcx, rbp
call fcn.14002c9b0
or eax, 0x3e0000
mov dword [rsp + 0x20], esi
mov ecx, eax
lea rdx, str.failed_fwrite__s__sz__d__returned__d
mov r9d, ebx
mov r8, r15
call fcn.14002d1f0
mov rcx, r14
call fcn.14017e020
sub esi, ebx
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14002c180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rbx, rcx
mov r13d, 0x10000
mov ecx, r13d
mov rdi, rdx
call fcn.1401760b4
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r14, rax
or r12d, 0xffffffff
call fcn.140172510
test eax, eax
jne 0x14002c280
lea rdx, [0x1401a92b4]
mov qword [rsp + 0xa0], r15
mov rcx, rbx
call fcn.140171c90
mov r15, rax
test rax, rax
je 0x14002c278
lea rdx, [0x1401a944c]
mov qword [rsp + 0x90], rbp
mov rcx, rdi
call fcn.140171c90
mov rbp, rax
test rax, rax
je 0x14002c25b
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x98], rsi
test rbx, rbx
je 0x14002c250
cmp rbx, r13
mov esi, ebx
mov r9, r15
mov edx, 1
cmovg esi, r13d
mov rcx, r14
movsxd rdi, esi
mov r8, rdi
call fcn.140176bc0
cmp eax, esi
jne 0x14002c253
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14017e404
cmp eax, esi
jne 0x14002c253
sub rbx, rdi
jne 0x14002c211
xor r12d, r12d
mov rsi, qword [rsp + 0x98]
mov rcx, r15
call fcn.14017e020
test rbp, rbp
je 0x14002c270
mov rcx, rbp
call fcn.14017e020
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov rcx, r14
call fcn.1401760ac
mov eax, r12d
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret

Function at 0x14002c640
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x68]
sub rcx, 8
lea r8, [fcn.14002abb0]
lea rdx, [rsp + 0x70]
call fcn.140028eb0
mov qword [rsp + 0x70], rax
mov rax, qword [0x140278f68]
test rax, rax
jne 0x14002c7b2
lea rcx, str.TEMP
mov qword [rsp + 0x60], rbx
call fcn.140171180
test rax, rax
jne 0x14002c740
lea rcx, [0x1401a92f0]
call fcn.140171180
test rax, rax
jne 0x14002c740
mov rcx, qword [rsp + 0x70]
call fcn.14002ac30
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test eax, eax
je 0x14002c6f4
mov rcx, qword [rsp + 0x70]
mov edx, eax
call fcn.14002ac60
mov rdx, qword [rsp + 0x70]
mov ecx, ebx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140278f68]
mov rdx, qword [rdx]
call fcn.14002a200
jmp 0x14002c74f
lea rcx, [0x1401a92f8]
call fcn.140171180
test rax, rax
je 0x14002c7b7
movzx ecx, byte [rax]
lea rdx, [0x140231a40]
test byte [rdx + rcx*2], 4
je 0x14002c7b7
cmp byte [rax + 1], 0x3a
jne 0x14002c7b7
movsx r8d, cl
lea rdx, str._c:_Temp
lea rcx, [0x140278f68]
call fcn.14002a0d0
jmp 0x14002c74f
mov rdx, rax
lea rcx, [0x140278f68]
call fcn.14002a020
mov rcx, qword [0x140278f68]
lea rdx, [rsp + 0x20]
call fcn.140172510
test eax, eax
jne 0x14002c779
movzx eax, word [rsp + 0x26]
test eax, eax
je 0x14002c779
and eax, 0xf000
cmp eax, 0x4000
je 0x14002c7a6
mov r8, qword [0x140278f68]
lea rdx, str.creating_temp_directory__s
mov ecx, 0x3e0004
call fcn.14002d1f0
mov rcx, qword [0x140278f68]
mov edx, 0x1ff
call fcn.140171780
test eax, eax
jne 0x14002c7c9
mov rax, qword [0x140278f68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rdx, str.failed_to_get_temp_directory
mov ecx, 0x3e0000
call fcn.14002d6c0
int3
lea rdx, str.failed_to_create_temp_directory
mov ecx, 0x3e0000
call fcn.14002d6c0
int3
Function at 0x14002cbd0
Capabilities:
Write file on windows

Disassembly:
lea r9, str.wbEe
or r8d, 0xffffffff
jmp fcn.14002bfb0

Function at 0x14002dc50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x120
mov ecx, 2
movsxd rdi, r8d
mov rbp, rdx
call fcn.1401768a8
mov rcx, rdi
lea r15, [0x140000000]
sar rcx, 0x10
mov rbx, rax
movzx r14d, cl
lea rax, [rsp + 0x20]
mov ecx, edi
mov rsi, rdi
and ecx, 0xf
cmp dword [r15 + r14*4 + 0x27e320], ecx
jge 0x14002dcb3
test edi, 0x300
je 0x14002ddcc
cmp dword [0x14027e720], 0
je 0x14002dcdb
call fcn.14002e1e0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14016eaf0
movzx ecx, word [0x1401a94d0]
mov word [rax], cx
inc rax
lea rdx, [r14 + r14*2]
mov rcx, rax
mov rdx, qword [r15 + rdx*8 + 0x263db8]
call fcn.14016eaf0
movzx ecx, word [0x1401a94d0]
and esi, 0xf
mov word [rax], cx
lea rcx, [rax + 1]
mov rdx, qword [r15 + rsi*8 + 0x263040]
call fcn.14016eaf0
movzx ecx, word [0x1401a94cc]
lea r8, [rsp + 0x11f]
mov rdx, rbp
mov word [rax], cx
lea rsi, [rax + 2]
movzx ecx, byte [0x1401a94ce]
sub r8d, esi
mov byte [rax + 2], cl
mov rcx, rsi
call fcn.14016e850
lea rcx, [rsp + 0x11f]
mov r9, rbx
cmp rax, rcx
mov r8d, 1
lea rcx, [rsp + 0x20]
jae 0x14002dd6c
mov byte [rax], 0xa
sub rax, rcx
lea rcx, [rsp + 0x20]
lea rdx, [rax + 1]
call fcn.14017e404
jmp 0x14002dd96
lea rax, [rsp + 0x20]
sub rsi, rax
mov rdx, rsi
call fcn.14017e404
mov rdx, rbx
mov rcx, rbp
call fcn.14017d980
mov rdx, rbx
lea rcx, [0x1401a9158]
call fcn.14017d980
mov eax, dword [0x14026389c]
cmp eax, 0xffffffff
jne 0x14002ddb6
mov rcx, rbx
call fcn.1401710c0
mov ecx, eax
call fcn.140171720
mov dword [0x14026389c], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x14002ddcc
mov rcx, rbx
call fcn.14017e63c
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14002eb80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0
mov ebp, r8d
mov edi, edx
mov rsi, rcx
mov rbx, rcx
je 0x14002ebbf
cmp dword [rbx + 4], edi
jne 0x14002ebb6
mov edx, dword [rbx]
mov r8d, ebp
mov rcx, rsi
call fcn.14002eb80
add rbx, 0x30
cmp dword [rbx], 0
jne 0x14002eba4
mov edx, ebp
mov ecx, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140173410
Function at 0x14002f600
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx]
mov r14d, r8d
mov qword [rbp + 0x460], 0
mov esi, edx
test rcx, rcx
je 0x14002f648
call fcn.1401760ac
mov qword [rdi], 0
lea rdx, [rsp + 0x58]
lea rcx, str.SeDebugPrivilege
call fcn.140053900
test eax, eax
jne 0x14002f7ac
test esi, esi
jne 0x14002f66c
call fcn.140171710
mov esi, eax
mov ecx, esi
call fcn.140030c70
test eax, eax
jne 0x14002f798
xor edx, edx
lea ecx, [rax + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002f7ac
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14002f798
mov qword [rsp + 0x568], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
jne 0x14002f6d4
call fcn.140171710
cmp esi, eax
jne 0x14002f6d4
mov ebx, 1
jmp 0x14002f6d6
xor ebx, ebx
cmp dword [rsp + 0x44], esi
jne 0x14002f76b
mov r8d, dword [rsp + 0x40]
lea rdx, str.Thread__ld:_n
mov rcx, rdi
call fcn.140029d20
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
call fcn.140171060
mov qword [rbp + 0x460], rax
test rax, rax
jne 0x14002f72b
lea rdx, str.Failed_opening_the_thread:__m_n
mov rcx, rdi
call fcn.140029d20
jmp 0x14002f76b
test ebx, ebx
je 0x14002f7c3
lea rcx, [rsp + 0x70]
call qword [0x140279108]
mov r9, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov r8d, esi
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.14002f990
test ebx, ebx
jne 0x14002f76b
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
lea rcx, [rbp + 0x460]
mov ebx, eax
call fcn.140053680
test ebx, ebx
jne 0x14002f6b8
mov rbx, qword [rsp + 0x568]
lea rcx, [rsp + 0x58]
call fcn.140053960
lea rcx, [rsp + 0x30]
call fcn.140053680
mov rax, rdi
mov rsi, qword [rsp + 0x570]
add rsp, 0x540
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, eax
call fcn.140171010
cmp rax, 0xffffffffffffffff
jne 0x14002f7ea
lea rdx, str.Failed_to_suspend_the_thread:__m_n
mov rcx, rdi
call fcn.140029d20
jmp 0x14002f76b
mov rcx, qword [rbp + 0x460]
lea rdx, [rsp + 0x70]
mov dword [rbp - 0x60], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14002f73e
lea rdx, str.Failed_getting_thread_context:__m_n
mov rcx, rdi
call fcn.140029d20
jmp 0x14002f75e
Function at 0x140030460
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov ebx, ecx
xor edi, edi
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x438
mov r13d, edi
call fcn.140174ac0
mov edx, ebx
mov dword [rsp + 0x20], 0x438
lea ecx, [rdi + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x4b0], rax
mov rcx, rax
cmove rax, rdi
test rax, rax
je 0x14003068a
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x14003068a
lea rbx, [rsp + 0x498]
movabs rdi, 0x5851f42d4c957f2d
add rbx, 0xfffffffffffffff8
mov qword [rsp + 0x4b8], rbx
nop
lea rdx, [rsp + 0x250]
mov rcx, rbx
call fcn.140029300
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r15, qword [rax]
call fcn.140029300
mov rbp, qword [rsp + 0x38]
mov edx, 1
mov r12, qword [rax]
mov eax, dword [rsp + 0x40]
lea ecx, [rdx + 0x17]
mov dword [rsp + 0x4a8], eax
call fcn.1401760a4
mov rsi, qword [0x140279168]
mov r14, rax
mov rax, rdi
mov rcx, r15
mul rbp
mov rbx, rdx
mov rdi, rax
call fcn.14002b100
movsxd rcx, dword [rsi + 4]
sub rdi, rbx
mov r9, rax
mov rax, qword [rsi + 8]
xor r9, rdi
and rcx, r9
mov rbx, qword [rax + rcx*8]
test rbx, rbx
je 0x1400305b4
nop dword [rax + rax]
cmp r9, qword [rbx]
jne 0x1400305ab
cmp rbp, qword [rbx + 0x20]
jne 0x1400305ab
mov r8, qword [rbx + 0x38]
mov rax, r15
sub r8, r15
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400305a3
inc rax
test ecx, ecx
jne 0x140030590
test edx, edx
je 0x140030650
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140030570
mov edx, 1
lea ecx, [rdx + 0x57]
call fcn.1401760a4
mov rbx, rax
xor edi, edi
mov rdx, r12
mov qword [rax + 0x20], rbp
mov eax, dword [rsp + 0x4a8]
lea rcx, [rbx + 0x30]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x44], edi
call fcn.14002a020
lea rcx, [rbx + 0x38]
mov rdx, r15
call fcn.14002a020
mov rcx, qword [reloc.WS2_32.dll_accept]
xor edx, edx
mov qword [rbx + 0x18], rcx
lea rax, [rcx + 4]
mov rcx, rbx
mov qword [reloc.WS2_32.dll_accept], rax
call fcn.1400306d0
mov rcx, qword [0x140279168]
mov rdx, rbx
call fcn.1400300d0
mov rax, qword [0x140279168]
cmp dword [rax + 0x10], 0x3e8
jge 0x1400306b5
mov qword [r14 + 0x10], rbx
test r13, r13
je 0x140030654
mov rax, qword [r13 + 8]
mov qword [r14 + 8], rax
mov qword [r13 + 8], r14
mov rax, qword [r14 + 8]
mov qword [rax], r14
jmp 0x14003065b
xor edi, edi
jmp 0x140030632
mov qword [r14 + 8], r14
mov r13, r14
mov qword [r14], rdi
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x4b0]
call sub.KERNEL32.dll_Module32NextW
mov rbx, qword [rsp + 0x4b8]
movabs rdi, 0x5851f42d4c957f2d
test eax, eax
jne 0x1400304f0
lea rcx, [rsp + 0x4b0]
call fcn.140053680
mov rbx, qword [rsp + 0x4a0]
mov rax, r13
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.using_more_than_1000_module_entries
mov ecx, 0x36
call fcn.140028ae0
int3