joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f56e0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0xd0
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor eax, eax
mov r12, r8
mov dword [rsp + 0x54], eax
mov rdi, rdx
mov qword [r11 - 0x64], rax
xor ebx, ebx
mov dword [r11 - 0x5c], eax
call qword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov rcx, qword [rdi]
mov rsi, rax
test rcx, rcx
jne 0x1400f572e
mov ecx, ebx
jmp 0x1400f573b
mov edx, 0x1fff
call fcn.140130584
mov rcx, rax
cmp word [rsi], 0x22
lea rax, [rcx + 2]
mov rdx, qword [rdi + 8]
cmovne rax, rcx
lea rcx, [rsi + rax*2]
call fcn.140109b50
mov r14, rax
test rax, rax
jne 0x1400f5775
lea rdx, str.Unable_to_parse_command_line._n
lea ecx, [rax + 3]
call fcn.1400495d0
mov eax, 0x708
jmp 0x1400f592c
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x100], rbp
mov qword [rsp + 0x118], r15
test rcx, rcx
jne 0x1400f5793
mov rax, rbx
jmp 0x1400f579d
mov edx, 0x1fff
call fcn.140130584
mov edx, 0x1fff
lea r15, [r14 + rax*2]
mov rcx, rsi
call fcn.140130584
mov rcx, qword [rdi + 8]
lea rsi, [rax + 1]
test rcx, rcx
jne 0x1400f57c0
mov rax, rbx
jmp 0x1400f57ca
mov edx, 0x1fff
call fcn.140130584
mov edx, 0x1fff
lea rcx, str.server__i
sub rsi, rax
call fcn.140130584
lea r14, [rax + 2]
add r14, rsi
lea rbp, [r14 + r14]
mov rcx, rbp
call fcn.140115d38
mov rsi, rax
test rax, rax
je 0x1400f5906
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140107f60
mov r8, rbp
xor edx, edx
mov rcx, rsi
call fcn.140107f60
mov r8, qword [rdi]
mov eax, 0x22
mov rdx, r14
mov word [rsi], ax
mov rcx, rsi
call fcn.14014e6ac
lea r8, [0x14023acac]
mov rdx, r14
mov rcx, rsi
call fcn.14014e6ac
lea r8, [0x14023acb0]
mov rdx, r14
mov rcx, rsi
call fcn.14014e6ac
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.14014e6ac
mov qword [rsp + 0x48], r12
lea rax, [0x140234f60]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rdx, rsi
mov dword [rsp + 0x28], 0x8000000
xor ecx, ecx
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x88], ebx
mov qword [rsp + 0x8c], 1
mov qword [rsp + 0x58], rbx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
mov ecx, 0x3eb
cmove ebx, ecx
mov rcx, rsi
call fcn.140115d24
mov eax, ebx
jmp 0x1400f591c
lea rdx, str.Unable_to_allocate_memory._n
mov ecx, 3
call fcn.1400495d0
mov eax, 0x708
mov rbp, qword [rsp + 0x100]
mov r15, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106650
add rsp, 0xd0
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f6a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400f6a57
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x1400f6a57
call fcn.1400f8520
test eax, eax
je 0x1400f6a57
cmp qword [rbx + 0x270], 0
je 0x1400f6a57
mov rcx, qword [rbx + 0x28]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400f86a0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f8530
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x1400f8563
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
jmp 0x1400f85ec
test rdx, rdx
jne 0x1400f8575
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
jmp 0x1400f85ec
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x1400f8596
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x1400f85ec
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x228]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x230], rdi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
test eax, eax
jne 0x1400f85e7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x1400f85e5
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
jmp 0x1400f85e7
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140106650
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x1400f86a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp dword [rcx + 0x210], edi
jne 0x1400f86d3
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
jmp 0x1400f875c
test rdx, rdx
jne 0x1400f86e5
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
jmp 0x1400f875c
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x208]
cmp dword [rbx + 0x218], edi
jne 0x1400f8706
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x1400f875c
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + 0x250]
mov qword [rsi], rdi
mov qword [rsp + 0x20], rsi
mov qword [rbx + 0x258], rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, eax
test eax, eax
jne 0x1400f8757
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x1400f8755
mov rcx, qword [rbx + 0x208]
lea r9d, [rdi + 1]
lea r8, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
jmp 0x1400f8757
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140106650
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x1400f8970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1400f89bf
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400f89bf
bt eax, 0xa
jae 0x1400f89bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400f89af
test al, 0x10
je 0x1400f89af
mov rcx, rdi
call fcn.1401338c4
jmp 0x1400f89b7
mov rcx, rdi
call fcn.14011868c
test eax, eax
jne 0x1400f8a44
mov ecx, 0x18
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x1400f8a44
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
test rdi, rdi
je 0x1400f8a0d
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rbx
lea rdx, [fcn.1400f8970]
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleExA]
test eax, eax
jne 0x1400f8a2d
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400f9980
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x230
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x14028d6d8]
mov rdi, rcx
add eax, 0xfffffffd
cmp eax, 1
jbe 0x1400f9b80
xorps xmm0, xmm0
mov qword [r11 + 0x10], rbx
xor eax, eax
mov qword [r11 + 0x18], rsi
movups xmmword [rsp + 0x80], xmm0
xor ebx, ebx
mov qword [r11 - 0x1a8], rax
xor edx, edx
mov dword [rsp + 0x104], eax
mov r8d, 0x104
lea rcx, [r11 - 0x128]
mov esi, ebx
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
movups xmmword [rsp + 0xe4], xmm0
movups xmmword [rsp + 0xf4], xmm0
call fcn.140107f60
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov edx, 0x104
lea r8d, [rbx + 6]
lea rcx, [rsp + 0x110]
call fcn.140049e50
mov r9, qword [rdi + 8]
lea r8, [rsp + 0x110]
lea rdx, str.__S_s_
lea rcx, [rsp + 0x68]
call fcn.1400ee2e0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
cmp qword [rsp + 0x54], rbx
je 0x1400f9b6c
mov rdx, qword [rsp + 0x54]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov qword [rdi + 0x10], rbx
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
mov qword [rdi + 0x18], rbx
mov dword [rsp + 0xa0], 0x68
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
test eax, eax
jne 0x1400f9b45
cmp dword [0x14027edf0], 2
jl 0x1400f9adf
test dword [0x14027ee3c], 0x10000
je 0x1400f9adf
lea ebx, [rax + 1]
mov edx, 2
mov ecx, 0x10000
call fcn.1400e8cc0
mov edi, eax
test ebx, ebx
jne 0x1400f9af8
test eax, eax
je 0x1400f9b62
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x40], eax
mov r9d, 2
lea rax, str.Unable_to_start_capture_program._Error___d
mov r8d, 0x10000
mov qword [rsp + 0x38], rax
mov edx, edi
lea rax, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_rsrc_app.c
mov dword [rsp + 0x30], 0x1c7
mov qword [rsp + 0x28], rax
mov ecx, ebx
lea rax, str.rsrc_app_start_app_in_current_session
mov qword [rsp + 0x20], rax
call fcn.1400bfc30
jmp 0x1400f9b62
mov rax, qword [rsp + 0x80]
mov esi, 1
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x54]
call fcn.140115d24
mov rbx, qword [rsp + 0x248]
mov eax, esi
mov rsi, qword [rsp + 0x250]
jmp 0x1400f9b85
call fcn.1400f9ba0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140106650
add rsp, 0x230
pop rdi
ret
Function at 0x1400fa250
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400fa292
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, qword [rbx + 0x10]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400fa292
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov dword [rbx + 0x20], 0xffffffff
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1400fb530
Capabilities:
Start service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400fb56b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
add rsp, 0x20
pop rbx
jmp fcn.1400495d0
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400fb5a8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400495d0
jmp 0x1400fb604
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_StartServiceW]
test eax, eax
jne 0x1400fb5e3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x420
je 0x1400fb5e3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_start_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400495d0
jmp 0x1400fb5fb
lea r8, [0x14023b940]
mov ecx, 3
lea rdx, str._S_started._n
call fcn.1400495d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]

Function at 0x1400fb620
Capabilities:
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400fb678
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_get_handle_to_the_SCM._Status___d_n
lea ecx, [rbx + 3]
call fcn.1400495d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140106650
add rsp, 0x50
pop rbx
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x60], rdi
lea rdx, str.esifsvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400fb6b5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8d, eax
lea rdx, str.Error:_Unable_to_open_service_handle._Status___d_n
lea ecx, [rdi + 3]
call fcn.1400495d0
jmp 0x1400fb714
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x1400fb6f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x1400fb6f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, str.Error:_Unable_to_stop_the_service._Status___d_n
mov ecx, 3
mov r8d, eax
call fcn.1400495d0
lea r8, [0x14023b940]
mov ecx, 3
lea rdx, str._S_stopped_n
call fcn.1400495d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140106650
add rsp, 0x50
pop rbx
ret
Function at 0x14014ebc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14014e9af
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14014e9af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014e9af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014e9af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014e9af
cmp dword [rcx + 0x84], 0xe
jbe 0x14014e9af
cmp dword [rcx + 0xf8], 0
je 0x14014e9af
mov ecx, ebx
call fcn.14014eae0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14014e734
cmp dword [rbp + 0x20], 0
je 0x14014e9fc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14014ea04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14014e948

Function at 0x140157c24
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x140157c44
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140117cb8
or eax, 0xffffffff
jmp 0x140157c46
xor eax, eax
add rsp, 0x28
ret

Function at 0x14015be38
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x14015be58
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140117cb8
or eax, 0xffffffff
jmp 0x14015be5a
xor eax, eax
add rsp, 0x28
ret
Function at 0x180002130
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x18005bd00]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
call fcn.180004010
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.180002330
mov rdx, rax
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x18000218a
mov rdx, qword [rax]
movabs rax, 0xcbf29ce484222325
test r8, r8
je 0x1800021c3
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx + rbx]
inc rbx
xor rax, rcx
imul rax, r9
cmp rbx, r8
jb 0x1800021b0
mov rbx, rax
shr rbx, 0x20
xor rbx, rax
cmp qword [rsp + 0x58], 0x10
jb 0x1800021df
mov rcx, qword [rsp + 0x40]
call fcn.180023b60
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180026460
add rsp, 0x70
pop rbx
ret
Function at 0x1800095c0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18005bd00]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800096c9
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800096c0
cmp dword [rsp + 0x20], 0x10
jb 0x1800096a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800096a2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800096a2
mov r8, qword [rbx]
test r8, r8
jne 0x180009663
mov rcx, qword [0x180180aa0]
xor edx, edx
mov r8d, 0x200
mov dword [rbx + 8], pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800096c0
jmp 0x180009692
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180009692
mov rcx, qword [0x180180aa0]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800096c0
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180009612
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180026460
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800096f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov ebp, r8d
mov r14d, edx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov rdi, rcx
call fcn.1800095c0
cmp qword [rdi], rbx
je 0x180009778
cmp dword [rdi + 0xc], ebx
jbe 0x180009778
mov qword [rsp + 0x30], rsi
nop dword [rax + rax]
mov rax, qword [rdi]
mov ecx, ebx
xor edx, edx
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000976c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180009400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180009730
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180009810
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, 0x20
mov eax, ecx
mov esi, edx
mov ebp, 5
imul rbx, rax, 0x38
add rbx, qword [0x180182300]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x180009849
sub rdi, rbp
mov ebp, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000986e
mov eax, 0xa
jmp 0x1800098fd
test esi, esi
je 0x180009890
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 0x1800098b3
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800098b3
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800098ac
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800098b3
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180009920
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18018230c]
mov ebx, edi
test ecx, ecx
je 0x180009ac2
mov rax, qword [0x180182300]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180009970
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180009950
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x180009ac2
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.1800095c0
mov r12, qword [rsp + 0x20]
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x180009a0f
test r13d, r13d
je 0x180009a0f
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r14, r12
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 0x1800099fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
setne r8b
or edx, 0xffffffff
mov rcx, rbp
call fcn.180009400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
dec r15
jne 0x1800099c0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x18018230c]
cmp ebx, r8d
jae 0x180009a58
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180182300]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180009a51
mov edx, esi
mov ecx, ebx
call fcn.180009810
mov edi, eax
test eax, eax
jne 0x180009a58
mov r8d, dword [0x18018230c]
inc ebx
cmp ebx, r8d
jb 0x180009a20
test r12, r12
je 0x180009ab3
test r13d, r13d
je 0x180009aa1
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 0x180009a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
dec rbp
jne 0x180009a70
mov rcx, qword [0x180180aa0]
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