joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051f90
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x248], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdx, str.Global_
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.14000f460
mov rdx, qword [rax + 0xa0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str._is_running
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r11, rax
mov rax, qword [rsp + 0x260]
mov qword [rax + 0x2a8], r11
mov rax, qword [rsp + 0x260]
cmp qword [rax + 0x2a8], 0
je 0x140052058
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140052058
mov rcx, qword [rsp + 0x260]
mov rcx, qword [rcx + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x260]
mov qword [r11 + 0x2a8], 0
mov rax, qword [rsp + 0x260]
cmp qword [rax + 0x2a8], 0
jne 0x140052077
mov dword [rsp + 0x240], 1
jmp 0x140052082
mov dword [rsp + 0x240], 0
mov eax, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x258
ret
Function at 0x14007a248
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14007a286
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14007a33a
call fcn.1400738dc
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14007a2a5
mov ecx, 0x80004005
call fcn.140001df0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1400b1998
test eax, eax
je 0x14007a30d
cmp eax, 0xc
je 0x14007a307
cmp eax, 0x16
je 0x14007a301
cmp eax, 0x22
je 0x14007a301
cmp eax, 0x50
je 0x14007a30d
call fcn.140073528
int3
call fcn.140073528
int3
call fcn.1400734e0
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14007a338
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14007b72c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140097b80
mov rsi, rax
test rax, rax
je 0x14007b7a8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14007b7a3
cmp dword [rbx], 0x40
jb 0x14007b7a3
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14007b7a3
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14007b7ac
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008266c
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 0x1400826d4
call fcn.140078b88
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 0x1400826d4
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400826f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14008207c
mov esi, eax
test rdi, rdi
je 0x1400826f4
test rbx, rbx
je 0x1400826f4
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 0x140083440
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 0x14008347f
cmp dword [rcx + 0xa8], 0
jne 0x14008347f
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140078b88
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.1400833e4
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 0x14008b9ec
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 0x14008ba15
mov rdi, qword [rdx + 0x10]
jmp 0x14008ba66
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 0x14008ba36
call fcn.140087c98
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14008ba50
call fcn.140087c98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14008ba66
call fcn.140087c98
call fcn.140078b88
cmp qword [rax + 0x68], 0
je 0x14008ba80
mov rdx, rdi
mov rcx, rbp
call fcn.14008a1ac
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14008b808
mov rcx, qword [rbp + 0xb8]
mov rsi, rax
test rcx, rcx
je 0x14008baa7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xb8], 0
test rsi, rsi
je 0x14008bab6
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 0x140095248
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 0x1400952ba
call fcn.140078b88
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 0x1400952ba
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140095307
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x1400952e7
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 0x1400952e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x140095305
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 0x1400aee38
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.1400be8f8
nop
cmp dword [0x1402c4c08], 1
je 0x1400aede4
mov dword [0x1402c4c04], 1
mov byte [0x1402c4c00], r12b
test ebx, ebx
jne 0x1400aedd0
mov rcx, qword [0x1404d1250]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400aedbd
mov rcx, qword [0x1404d1248]
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 0x1400aed5c
call fcn.1400b3a70
cmp qword [rdi], rax
jne 0x1400aed5c
jmp 0x1400aed42
cmp rdi, rsi
jb 0x1400aedbd
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400b3a70
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1404d1250]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1404d1248]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400aed9b
cmp r13, rax
je 0x1400aedbb
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 0x1400aed42
lea rdx, [0x1402159a8]
lea rcx, [0x140215990]
call fcn.1400aeb8c
lea rdx, [0x1402159b8]
lea rcx, [0x1402159b0]
call fcn.1400aeb8c
nop
test r12d, r12d
je 0x1400aedf3
mov ecx, 8
call fcn.1400be7f8
test r12d, r12d
jne 0x1400aee1e
mov dword [0x1402c4c08], 1
lea ecx, [r12 + 8]
call fcn.1400be7f8
mov ecx, r15d
call fcn.1400aeb20
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 0x1400aecac

Function at 0x1400aee44
Capabilities:
Terminate process

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

Disassembly:
cmp rcx, qword [0x1402bd5c0]
jne 0x1400a983a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400a9836
repz ret
ror rcx, 0x10
jmp 0x1400b3ec4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1402c5230]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1402c5328]
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 0x1400b3f49
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, [0x1402c5230]
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 0x1400b3f6b
mov rax, qword [rsp + 0x88]
mov qword [0x1402c5328], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1402c52c8], rax
mov rax, qword [0x1402c5328]
mov qword [0x1402c51a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1402c52b0], rax
mov dword [0x1402c5190], 0xc0000409
mov dword [0x1402c5194], 1
mov rax, qword [0x1402bd5c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1402bd5c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1402c5228], eax
mov ecx, 1
call fcn.1400bd89c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140221dc0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1402c5228], 0
jne 0x1400b3ff2
mov ecx, 1
call fcn.1400bd89c
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 0x1400c52ec
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.1400b3a70
xor ebx, ebx
mov rdi, rax
cmp qword [0x1402c5ab0], rbx
jne 0x1400c53f2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400c54c7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c54c7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140222260]
mov rcx, rsi
mov qword [0x1402c5ab0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140222248]
mov rcx, rsi
mov qword [0x1402c5ab8], 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 [0x1402c5ac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1402c5ad0], rax
test rax, rax
je 0x1400c53e9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1402c5ac8], rax
jmp 0x1400c53f9
mov rax, qword [0x1402c5ac8]
jmp 0x1400c5400
mov rax, qword [0x1402c5ac8]
mov r11, qword [0x1402c5ad0]
cmp rax, rdi
je 0x1400c5468
cmp r11, rdi
je 0x1400c5468
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1402c5ad0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400c5468
test rax, rax
je 0x1400c5468
call rsi
test rax, rax
je 0x1400c5462
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 0x1400c5462
test byte [rsp + 0x38], 1
jne 0x1400c5468
bts ebp, 0x15
jmp 0x1400c54a6
mov rcx, qword [0x1402c5ab8]
cmp rcx, rdi
je 0x1400c54a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c54a6
call rax
mov rbx, rax
test rax, rax
je 0x1400c54a6
mov rcx, qword [0x1402c5ac0]
cmp rcx, rdi
je 0x1400c54a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c54a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1402c5ab0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400c54c7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400c54c9
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 0x1400d5db0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x57e90], 0
jne 0x1400d5dd1
mov eax, 1
jmp 0x1400d5ed3
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x57e90], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x20], 0
jmp 0x1400d5dfd
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3a98
jge 0x1400d5e22
movsxd rcx, dword [rsp + 0x20]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rax + rcx + 0x57e98], 0
jmp 0x1400d5df2
mov dword [rsp + 0x20], 0
jmp 0x1400d5e37
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 0x1400d5eaa
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 0x1400d5e82
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 0x1400d5e2c
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 0x1400d6430
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rax, qword [0x1402bd5c0]
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 0x1400d6483
mov eax, 1
jmp 0x1400d660b
mov rax, qword [rsp + 0x200]
mov dword [rax + 0x57e90], 1
mov dword [rsp + 0x1e0], 0
jmp 0x1400d64b3
mov eax, dword [rsp + 0x1e0]
add eax, 1
mov dword [rsp + 0x1e0], eax
cmp dword [rsp + 0x1e0], 0x3a98
jge 0x1400d64e1
movsxd rcx, dword [rsp + 0x1e0]
imul rcx, rcx, 0x30
mov rax, qword [rsp + 0x200]
mov dword [rax + rcx + 0x57e98], 0
jmp 0x1400d64a2
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 0x1400d653c
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 0x1400d6606
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, [0x1400d60c0]
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 0x1400d652b
mov eax, 1
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x1f8
ret
Function at 0x1400d7ab0
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 0x1400d7add
xor al, al
jmp 0x1400d7b93
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 0x1400d7b32
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 0x1400d7b32
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400d7b93
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 0x1400d7b6e
cmp dword [rsp + 0x34], 2
jne 0x1400d7b6a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d7b6c
jmp 0x1400d7b6e
jmp 0x1400d7b42
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 0x1400d7b91
mov al, 1
jmp 0x1400d7b93
xor al, al
add rsp, 0x58
ret
Function at 0x1400d97b0
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 0x1400d9818
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1400d9818
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 0x1400d980b
mov eax, 1
jmp 0x1400d981a
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1400d97cd
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400d9830
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 0x1400d9870
xor eax, eax
jmp 0x1400d98fe
lea r8, [rsp + 0x38]
lea rdx, [0x140229c38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1400d9897
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d98fe
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 0x1400d98ee
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d98fe
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x1400d9910
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 0x1400d9960
mov eax, dword [rsp + 0x460]
add eax, 1
mov dword [rsp + 0x460], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x460], eax
jae 0x1400d9987
mov ecx, dword [rsp + 0x460]
mov rax, qword [rsp + 0x480]
cmp qword [rsp + rcx*8 + 0x38], rax
jne 0x1400d9985
jmp 0x1400d9987
jmp 0x1400d994f
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x460], eax
jne 0x1400d99ba
cmp dword [rsp + 0x30], 0x40
jae 0x1400d99ba
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 0x1400d9942
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x464], 0
jmp 0x1400d99e9
mov eax, dword [rsp + 0x464]
add eax, 1
mov dword [rsp + 0x464], eax
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x464], eax
jae 0x1400d9a16
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x480]
cmp qword [rsp + rcx*8 + 0x258], rax
jne 0x1400d9a14
jmp 0x1400d9a16
jmp 0x1400d99d8
mov eax, dword [rsp + 0x250]
cmp dword [rsp + 0x464], eax
jne 0x1400d9a58
cmp dword [rsp + 0x250], 0x40
jae 0x1400d9a58
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 0x1400d99cb
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 0x1400d9a94
xor eax, eax
jmp 0x1400d9ad6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x480]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400d9ab1
mov eax, 1
jmp 0x1400d9ad6
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x480]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400d9ad1
mov eax, 0xffffffff
jmp 0x1400d9ad6
mov eax, 0xffffffff
add rsp, 0x478
ret