joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002e7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002efa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002ef1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002ef1
mov rax, qword [rbp - 8]
jmp 0x140002f0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002ec4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180001208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180001208
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800011f5
nop
cmp rbx, rcx
jae 0x180001208
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1800011e0
cmp rbx, rcx
jae 0x180001208
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18000120a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180001220
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rcx, qword [0x180095940]
test rcx, rcx
jne 0x18000127e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800012a3
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180095940], rax
jmp 0x180001287
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x1800012a3
xor edx, edx
lea rcx, [0x180083080]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x18000130d
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x18000130b
dec eax
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x1800012e3
lea r8, [0x18008307c]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x18000130b
lea r8, [0x180083080]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x18000130b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18000130d
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180026140
add rsp, 0x240
pop rbx
ret
Function at 0x180004650
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x180083228]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.kernel32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfc0
lea rdx, str.NtClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfc0
lea rdx, str.NtCreateSection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfc0
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfc0
lea rdx, [0x180083280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
call fcn.18001bfc0
lea rdx, [0x180083290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001bfc0

Function at 0x180006970
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180006a43
cmp byte [rcx + 0x71], 0
je 0x180006a43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x180006a3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180006a04
sub eax, 1
je 0x180006a08
cmp eax, 2
jne 0x180006a3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180026140
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180006a36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180006a3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800069ec
xor al, al
jmp 0x1800069ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180026140
add rsp, 0x60
pop rbx
ret
Function at 0x180009080
Capabilities:
Extract resource via kernel32 functions

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 esi, edx
mov r14, rcx
xor edx, edx
lea rcx, [0x180094ed0]
call fcn.1800260a8
mov r15d, 1
mov rdi, rax
mov ebx, r15d
test rax, rax
je 0x180009113
mov ebp, esi
shr ebp, 4
lea eax, [rbp + 1]
movzx r12d, ax
nop
xor r9d, r9d
mov r8, r12
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1800090fb
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.180001190
test rax, rax
jne 0x180009134
mov edx, ebx
lea rcx, [0x180094ed0]
inc ebx
call fcn.1800260a8
mov rdi, rax
test rax, rax
jne 0x1800090d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
test rdi, rdi
je 0x180009113
inc bp
mov r8d, 6
movzx edx, bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18000922b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000922b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000922b
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and esi, 0xf
jbe 0x1800091b9
nop word [rax + rax]
cmp rbx, rcx
jae 0x18000922b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add esi, 0xffffffff
jne 0x1800091a0
cmp rbx, rcx
jae 0x18000922b
cmp word [rbx], 0
je 0x18000922b
mov rax, qword [r14]
mov edx, r15d
movzx edi, word [rbx]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1800091e3
mov edx, edi
mov rcx, r14
call fcn.180006ff0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s]
test eax, eax
je 0x18000920f
cmp eax, 0xc
je 0x18000924d
cmp eax, 0x16
je 0x180009237
cmp eax, 0x22
je 0x180009237
cmp eax, 0x50
jne 0x180009242
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x180009237
mov dword [rax - 0x10], edi
xor ecx, ecx
mov rax, qword [r14]
mov word [rax + rdi*2], cx
mov eax, r15d
jmp 0x180009115
xor ecx, ecx
mov r15d, ecx
mov eax, ecx
jmp 0x180009115
mov ecx, 0x80070057
call fcn.180001130
int3
mov ecx, 0x80004005
call fcn.180001130
int3
mov ecx, 0x8007000e
call fcn.180001130
int3
Function at 0x1800121d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
lea r8, [rcx + 9]
mov rdx, rcx
mov rax, rcx
jne 0x180012205
cmp rcx, r8
je 0x1800121fe
nop word [rax + rax]
movzx ecx, byte [rdx + 0xa]
xor byte [rax], cl
inc rax
cmp rax, r8
jne 0x1800121f0
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x180012210
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x50], 0
lea r8, [rcx + 0x50]
mov rdx, rcx
mov rax, rcx
jne 0x1800122b7
xor r10d, r10d
cmp rcx, r8
ja 0x180012290
lea r9, [rcx + 0x52]
movsx ecx, word [rcx + 0x52]
movd xmm1, ecx
lea rcx, [rax + 0x4e]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x18001224f
cmp rcx, r9
jae 0x180012290
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012250
cmp rax, r8
je 0x1800122b0
nop word [rax + rax]
movzx ecx, word [rdx + 0x52]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x1800122a0
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x1800122c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x58], 0
lea r8, [rcx + 0x58]
mov rdx, rcx
mov rax, rcx
jne 0x180012367
xor r10d, r10d
cmp rcx, r8
ja 0x180012340
lea r9, [rcx + 0x5a]
movsx ecx, word [rcx + 0x5a]
movd xmm1, ecx
lea rcx, [rax + 0x56]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x1800122ff
cmp rcx, r9
jae 0x180012340
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012300
cmp rax, r8
je 0x180012360
nop word [rax + rax]
movzx ecx, word [rdx + 0x5a]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x180012350
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x1800125e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x4a], 0
lea r8, [rcx + 0x4a]
mov rdx, rcx
mov rax, rcx
jne 0x180012687
xor r10d, r10d
cmp rcx, r8
ja 0x180012660
lea r9, [rcx + 0x4c]
movsx ecx, word [rcx + 0x4c]
movd xmm1, ecx
lea rcx, [rax + 0x48]
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
cmp rax, r9
ja 0x18001261f
cmp rcx, r9
jae 0x180012660
nop
movdqu xmm0, xmmword [rax]
add r10, 0x20
xorps xmm0, xmm1
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x20], xmm0
movdqu xmm0, xmmword [rax + 0x30]
xorps xmm0, xmm1
movdqu xmmword [rax + 0x30], xmm0
add rax, 0x40
cmp r10, 0x20
jne 0x180012620
cmp rax, r8
je 0x180012680
nop word [rax + rax]
movzx ecx, word [rdx + 0x4c]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x180012670
mov byte [r8], 1
mov rax, rdx
ret
Function at 0x180012690
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x3a], 0
lea r8, [rcx + 0x3a]
mov rdx, rcx
mov rax, rcx
jne 0x1800126c7
cmp rcx, r8
je 0x1800126c0
nop word [rax + rax]
movzx ecx, word [rdx + 0x3c]
xor word [rax], cx
add rax, 2
cmp rax, r8
jne 0x1800126b0
mov byte [r8], 1
mov rax, rdx
ret

Function at 0x18001aa90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18001aadf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180095a70]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001ab1d
cmp rsi, r14
jb 0x18001ab15
cmp rsi, r15
jae 0x18001ab15
cmp qword [rsi + 8], 0
jne 0x18001ace7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18001ab00
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18001abb2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18001aba9
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001aba9
cmp dword [rsp + 0x40], 0x10000
je 0x18001ac2b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18001aba9
sub rbx, rbp
cmp rbx, r14
jae 0x18001ab70
test rsi, rsi
jne 0x18001ac90
cmp rdi, r15
ja 0x18001accf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18001accf
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001accf
cmp dword [rsp + 0x40], 0x10000
je 0x18001ac61
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18001abe2
jmp 0x18001accf
test rbx, rbx
je 0x18001aba9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001ac90
cmp rbx, r14
jae 0x18001ab50
jmp 0x18001abb2
test rdi, rdi
je 0x18001accf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001ac90
cmp rdi, r15
jbe 0x18001abc0
jmp 0x18001accf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18001aca0
mov rax, qword [0x180095a70]
mov qword [rsi], rax
mov qword [0x180095a70], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180026140
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18001b700
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18001b84f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18001b846
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x18001b7fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18001b7fc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18001b7fc
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18001b7bd
mov rcx, qword [0x1800958d0]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18001b825
lea rbx, [rdi + 0xc]
jmp 0x18001b7f1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x18001b7f1
mov rcx, qword [0x1800958d0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18001b825
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_32
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001b763
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18001b841
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x18001b841
mov rcx, qword [0x1800958d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180026140
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18001b870
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.18001b700
test eax, eax
jne 0x18001b8b7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18001b92e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18001b916
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001b90a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18001b550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18001b8d0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18001b950
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180095a60]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001b9c3
mov eax, 0xa
jmp 0x18001ba56
test esi, esi
je 0x18001b9e5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18001ba08
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18001ba08
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18001ba01
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18001ba08
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180026140
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001ba80
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180095a6c]
mov ebx, edi
test ecx, ecx
je 0x18001bc33
mov rax, qword [0x180095a60]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18001bad0
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001bab0
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18001bc33
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.18001b700
test eax, eax
jne 0x18001bafe
mov eax, 9
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x70], r13
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x18001bb83
test r13d, r13d
je 0x18001bb83
mov qword [rsp + 0x38], r14
mov r14, r12
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18001bb6f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
mov edx, 0xffffffff
mov rcx, rbp
setne r8b
call fcn.18001b550
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
sub r15, 1
jne 0x18001bb31
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x180095a6c]
cmp ebx, r8d
jae 0x18001bbc8
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180095a60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18001bbc1
mov edx, esi
mov ecx, ebx
call fcn.18001b950
mov edi, eax
test eax, eax
jne 0x18001bbc8
mov r8d, dword [0x180095a6c]
inc ebx
cmp ebx, r8d
jb 0x18001bb90
test r12, r12
je 0x18001bc24
test r13d, r13d
je 0x18001bc12
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001bc08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x18001bbe0
mov rcx, qword [0x1800958d0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001bfc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800958c8], ebp
je 0x18001c017
cmp rbx, 0x20
jae 0x18001c000
xor ecx, ecx
jmp 0x18001c002
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800958c8], ebp
jne 0x18001bff6
cmp qword [0x1800958d0], r15
je 0x18001c111
test rdi, rdi
jne 0x18001c037
mov ecx, esi
call fcn.18001ba80
mov edi, eax
jmp 0x18001c116
mov ecx, dword [0x180095a6c]
mov ebx, r15d
test ecx, ecx
je 0x18001c05f
mov rdx, qword [0x180095a60]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18001c069
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001c050
mov edi, 4
jmp 0x18001c116
cmp ebx, 0xffffffff
je 0x18001c05f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18001c108
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18001b870
mov edi, eax
test eax, eax
jne 0x18001c116
mov edx, esi
mov ecx, ebx
call fcn.18001b950
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18001c116
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001c0f2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001c0e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18001c0c0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800958d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c116
neg esi
sbb edi, edi
add edi, 6
jmp 0x18001c116
mov edi, 2
xchg dword [0x1800958c8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret