joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080e88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140080ef0
call fcn.1400773a0
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140080ef0
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140080f12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140080898
mov esi, eax
test rdi, rdi
je 0x140080f10
test rbx, rbx
je 0x140080f10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140081c5c
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 rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x140081c9b
cmp dword [rcx + 0xa8], 0
jne 0x140081c9b
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400773a0
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140081c00
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008a20c
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
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14008a235
mov rdi, qword [rdx + 0x10]
jmp 0x14008a286
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14008a256
call fcn.1400864c0
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14008a270
call fcn.1400864c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14008a286
call fcn.1400864c0
call fcn.1400773a0
cmp qword [rax + 0x68], 0
je 0x14008a2a0
mov rdx, rdi
mov rcx, rbp
call fcn.1400889cc
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14008a028
mov rcx, qword [rbp + 0xb8]
mov rsi, rax
test rcx, rcx
je 0x14008a2c7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xb8], 0
test rsi, rsi
je 0x14008a2d6
mov rdi, rsi
mov qword [rbp + 0xb8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140093a5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x140093ace
call fcn.1400773a0
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140093ace
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140093b1b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x140093afb
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x140093afb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x140093b19
mov rcx, qword [rbp + 0x98]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1400ad5d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400bd128
nop
cmp dword [0x1402a8b88], 1
je 0x1400ad57c
mov dword [0x1402a8b84], 1
mov byte [0x1402a8b80], r12b
test ebx, ebx
jne 0x1400ad568
mov rcx, qword [0x1404b51b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ad555
mov rcx, qword [0x1404b51a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400ad4f4
call fcn.1400b22a0
cmp qword [rdi], rax
jne 0x1400ad4f4
jmp 0x1400ad4da
cmp rdi, rsi
jb 0x1400ad555
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400b22a0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1404b51b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1404b51a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400ad533
cmp r13, rax
je 0x1400ad553
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400ad4da
lea rdx, [0x1401fea00]
lea rcx, [0x1401fe9e8]
call fcn.1400ad324
lea rdx, [0x1401fea10]
lea rcx, [0x1401fea08]
call fcn.1400ad324
nop
test r12d, r12d
je 0x1400ad58b
mov ecx, 8
call fcn.1400bd028
test r12d, r12d
jne 0x1400ad5b6
mov dword [0x1402a8b88], 1
lea ecx, [r12 + 8]
call fcn.1400bd028
mov ecx, r15d
call fcn.1400ad2b8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ad444

Function at 0x1400ad5dc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400ad444
Function at 0x1400b279b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1402a15c0]
jne 0x1400a806a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400a8066
repz ret
ror rcx, 0x10
jmp 0x1400b26f4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1402a91b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1402a92a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400b2779
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1402a91b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400b279b
mov rax, qword [rsp + 0x88]
mov qword [0x1402a92a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1402a9248], rax
mov rax, qword [0x1402a92a8]
mov qword [0x1402a9120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1402a9230], rax
mov dword [0x1402a9110], 0xc0000409
mov dword [0x1402a9114], 1
mov rax, qword [0x1402a15c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1402a15c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1402a91a8], eax
mov ecx, 1
call fcn.1400bc0cc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14020ae20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1402a91a8], 0
jne 0x1400b2822
mov ecx, 1
call fcn.1400bc0cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400c3a7c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400b22a0
xor ebx, ebx
mov rdi, rax
cmp qword [0x1402a9a30], rbx
jne 0x1400c3b82
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400c3c57
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c3c57
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14020b2c0]
mov rcx, rsi
mov qword [0x1402a9a30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14020b2a8]
mov rcx, rsi
mov qword [0x1402a9a38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1402a9a40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1402a9a50], rax
test rax, rax
je 0x1400c3b79
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1402a9a48], rax
jmp 0x1400c3b89
mov rax, qword [0x1402a9a48]
jmp 0x1400c3b90
mov rax, qword [0x1402a9a48]
mov r11, qword [0x1402a9a50]
cmp rax, rdi
je 0x1400c3bf8
cmp r11, rdi
je 0x1400c3bf8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1402a9a50]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400c3bf8
test rax, rax
je 0x1400c3bf8
call rsi
test rax, rax
je 0x1400c3bf2
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400c3bf2
test byte [rsp + 0x38], 1
jne 0x1400c3bf8
bts ebp, 0x15
jmp 0x1400c3c36
mov rcx, qword [0x1402a9a38]
cmp rcx, rdi
je 0x1400c3c36
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c3c36
call rax
mov rbx, rax
test rax, rax
je 0x1400c3c36
mov rcx, qword [0x1402a9a40]
cmp rcx, rdi
je 0x1400c3c36
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c3c36
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1402a9a30]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c3c57
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400c3c59
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400d39c0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x57e90], 0
jne 0x1400d39e1
mov eax, 1
jmp 0x1400d3ae3
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x57e90], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x20], 0
jmp 0x1400d3a0d
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3a98
jge 0x1400d3a32
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rax + rcx + 0x57e98], 0
jmp 0x1400d3a02
mov dword [rsp + 0x20], 0
jmp 0x1400d3a47
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x57e94]
cmp dword [rsp + 0x20], eax
jge 0x1400d3aba
movsxd rax, dword [rsp + 0x20]
mov edx, 0x7d0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400d3a92
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd r11, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov qword [rax + r11*8], 0
jmp 0x1400d3a3c
mov rcx, qword [rsp + 0x40]
add rcx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x40]
add rcx, 0x1d4e8
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400d4040
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x1e0], 0
lea rdx, [rsp + 0x40]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x57e90], 0
je 0x1400d4093
mov eax, 1
jmp 0x1400d421b
mov rax, qword [rsp + 0x200]
mov dword [rax + 0x57e90], 1
mov dword [rsp + 0x1e0], 0
jmp 0x1400d40c3
mov eax, dword [rsp + 0x1e0]
add eax, 1
mov dword [rsp + 0x1e0], eax
cmp dword [rsp + 0x1e0], 0x3a98
jge 0x1400d40f1
movsxd rcx, dword [rsp + 0x1e0]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0x200]
mov dword [rax + rcx + 0x57e98], 0
jmp 0x1400d40b2
mov rcx, qword [rsp + 0x200]
add rcx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [rsp + 0x200]
add rcx, 0x1d4e8
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov r11, qword [rsp + 0x200]
mov dword [r11 + 0x57e94], 0xa
mov dword [rsp + 0x1e0], 0
jmp 0x1400d414c
mov eax, dword [rsp + 0x1e0]
add eax, 1
mov dword [rsp + 0x1e0], eax
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 0x57e94]
cmp dword [rsp + 0x1e0], eax
jge 0x1400d4216
mov dword [rsp + 0x1e4], 0
movsxd rdx, dword [rsp + 0x1e0]
imul rdx, rdx, 0x10
mov rcx, qword [rsp + 0x200]
mov rax, qword [rsp + 0x200]
mov qword [rcx + rdx + 0x1d510], rax
movsxd rdx, dword [rsp + 0x1e0]
imul rdx, rdx, 0x10
mov rcx, qword [rsp + 0x200]
mov eax, dword [rsp + 0x1e0]
mov dword [rcx + rdx + 0x1d518], eax
movsxd rcx, dword [rsp + 0x1e0]
imul rcx, rcx, 0x10
mov rax, qword [rsp + 0x200]
lea r9, [rax + rcx + 0x1d510]
lea rax, [rsp + 0x1e4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400d3cd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
movsxd rcx, dword [rsp + 0x1e0]
mov rax, qword [rsp + 0x200]
mov qword [rax + rcx*8], r11
jmp 0x1400d413b
mov eax, 1
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x1f8
ret
Function at 0x1400d56c0
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400d56ed
xor al, al
jmp 0x1400d57a3
mov r8d, reloc.OLEAUT32.dll_SafeArrayLock
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400d5742
mov r8d, 4
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400d5742
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400d57a3
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400d577e
cmp dword [rsp + 0x34], 2
jne 0x1400d577a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d577c
jmp 0x1400d577e
jmp 0x1400d5752
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x34], 4
jne 0x1400d57a1
mov al, 1
jmp 0x1400d57a3
xor al, al
add rsp, 0x58
ret
Function at 0x1400d73c0
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x1400d7428
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1400d7428
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + rax*8]
mov eax, dword [rsp + 0x40]
cmp dword [rcx], eax
jne 0x1400d741b
mov eax, 1
jmp 0x1400d742a
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1400d73dd
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400d7440
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x50
mov dword [rsp + 0x40], 0
lea rdi, [rsp + 0x44]
xor eax, eax
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400d7480
xor eax, eax
jmp 0x1400d750e
lea r8, [rsp + 0x38]
lea rdx, [0x140212c98]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400d74a7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d750e
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400d74fe
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d750e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x1400d7520
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x478
mov eax, dword [rsp + 0x488]
mov dword [rsp + 0x240], eax
mov dword [rsp + 0x244], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x460], 0
jmp 0x1400d7570
mov eax, dword [rsp + 0x460]
add eax, 1
mov dword [rsp + 0x460], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x460], eax
jae 0x1400d7597
mov ecx, dword [rsp + 0x460]
mov rax, qword [rsp + 0x480]
cmp qword [rsp + rcx*8 + 0x38], rax
jne 0x1400d7595
jmp 0x1400d7597
jmp 0x1400d755f
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x460], eax
jne 0x1400d75ca
cmp dword [rsp + 0x30], 0x40
jae 0x1400d75ca
mov ecx, dword [rsp + 0x460]
mov rax, qword [rsp + 0x480]
mov qword [rsp + rcx*8 + 0x38], rax
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
xor eax, eax
test eax, eax
jne 0x1400d7552
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x464], 0
jmp 0x1400d75f9
mov eax, dword [rsp + 0x464]
add eax, 1
mov dword [rsp + 0x464], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x464], eax
jae 0x1400d7626
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x480]
cmp qword [rsp + rcx*8 + 0x258], rax
jne 0x1400d7624
jmp 0x1400d7626
jmp 0x1400d75e8
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x464], eax
jne 0x1400d7668
cmp dword [rsp + 0x250], 0x40
jae 0x1400d7668
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x480]
mov qword [rsp + rcx*8 + 0x258], rax
mov eax, dword [rsp + 0x250]
add eax, 1
mov dword [rsp + 0x250], eax
xor eax, eax
test eax, eax
jne 0x1400d75db
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x250]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400d76a4
xor eax, eax
jmp 0x1400d76e6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400d76c1
mov eax, 1
jmp 0x1400d76e6
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x480]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400d76e1
mov eax, 0xffffffff
jmp 0x1400d76e6
mov eax, 0xffffffff
add rsp, 0x478
ret
Function at 0x1400d7d30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x220], 0
jne 0x1400d7d51
mov eax, 1
jmp 0x1400d7e73
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x220], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400d7da8
mov edx, 2
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x40]
mov qword [r11 + 0x208], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x218], 0
je 0x1400d7e20
mov edx, 0x7d0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400d7ded
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x218], 0
je 0x1400d7e1e
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x40]
mov qword [r11 + 0x218], 0
jmp 0x1400d7e6e
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0x96
jge 0x1400d7e6e
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1403ace90]
call fcn.14001d040
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1400d7e56
jmp 0x1400d7e6e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x1400d7e28
mov eax, 1
add rsp, 0x38
ret