joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800159a4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
xor r12d, r12d
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x180015a7a
test rdx, rdx
je 0x180015a7a
lea rdx, [rbp - 0x10]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x180015a6e
movzx eax, word [rbp - 0x10]
test ax, ax
je 0x180015a6e
mov esi, r12d
lea r14, [rbp - 0xe]
mov word [rbp + 0x410], ax
lea rdx, [rsp + 0x20]
movzx eax, word [r14]
lea rcx, [rbp + 0x410]
mov r8d, 0x64
mov word [rbp + 0x412], ax
mov word [rbp + 0x414], r12w
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x180015a7a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
lea rdx, [rsp + 0x20]
mov r8, r15
mov rcx, rdi
call qword [sym.imp.ntdll.dll_wcsncmp]
test eax, eax
je 0x180015a98
movzx eax, word [rbp + rsi*2 - 8]
add rsi, 4
add r14, 8
test ax, ax
jne 0x180015a03
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [rbp + 0x410]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rdi + r15*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x180015a7c

Function at 0x180015abc
Capabilities:
Acquire debug privileges
Enumerate process modules
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x820
mov rdi, rdx
mov ebx, ecx
mov edx, 1
lea rcx, str.SeDebugPrivilege
call fcn.180015448
mov edx, 1
lea rcx, str.SeTcbPrivilege
call fcn.180015448
and qword [rsp + 0x848], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x800
call sub.ntdll.dll_memset
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180015b90
and dword [rsp + 0x840], 0
lea r9, [rsp + 0x840]
mov r8d, 8
lea rdx, [rsp + 0x848]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x180015b75
lea rdx, [0x18005be70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x180015b82
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1800159a4
test rbx, rbx
je 0x180015b90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x830]
xor eax, eax
add rsp, 0x820
pop rdi
ret
Function at 0x180015d84
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x18]
mov rsi, rcx
mov rdi, rdx
lea ecx, [rbx + 5]
test rdx, rdx
jne 0x180015db8
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov eax, dword [rsp + 0x40]
jmp 0x180015de8
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x180015de6
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x180015dd8
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180015de3
cmp dword [rdi], ebx
je 0x180015de6
mov eax, dword [rdi]
add rdi, rax
jmp 0x180015dc2
mov ebx, dword [rdi + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180015df8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180015e2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180015e80
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180015e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180015e75
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180015e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180015e6c
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180015e90
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov rbp, rcx
xor edx, edx
mov dword [rax + 0x18], ebx
xor ecx, ecx
mov dword [rax + 0x10], ebx
lea r8d, [rbx + 5]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x180015f8c
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rbx
lea r9d, [rbx + 3]
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 0x30]
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov r14d, dword [rsp + 0x90]
add r14d, 0x38
mov ecx, r14d
mov r15d, r14d
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180015f8c
mov r8d, r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_memset]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rbx
lea r9d, [rbx + 3]
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 0x30]
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov rcx, rsi
test eax, eax
jne 0x180015fa2
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, ebx
cmp dword [rsp + 0x88], ebx
jbe 0x180015fe5
mov eax, esi
mov rdx, rbp
imul r14, rax, 0x38
mov rcx, qword [r14 + rdi]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180015fd7
inc esi
cmp esi, dword [rsp + 0x88]
jb 0x180015fb3
jmp 0x180015fe5
mov ebx, dword [r14 + rdi + 0x2c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x180015f8e

Function at 0x180015fec
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180016019
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001606d
lea rdx, [rbx + 0x670]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x18001604c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18001606d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x180016011
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180016078
Capabilities:
Delete file
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x978]
sub rsp, 0xa70
mov rdi, rcx
lea rbx, [rcx + 0x864]
mov r14d, 0x208
lea rcx, [rsp + 0x20]
mov r8d, r14d
xor edx, edx
call sub.ntdll.dll_memset
lea rsi, str._s_s
mov r8, rbx
mov rdx, rsi
lea r9, [rdi + 0x92c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x760]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rdi + 0x990]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x760]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x550]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rdi + 0x9f4]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x550]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x130]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, str.install.cfg
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rcx, [rbp + 0x340]
xor edx, edx
call sub.ntdll.dll_memset
lea r9, str.temp.key
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x340]
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 2
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rdi + 0xa80], 0
je 0x18001621a
mov edx, ebx
lea rcx, [rbp + 0x550]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x550]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, ebx
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x760]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, [rsp + 0xa70]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18001623c
Capabilities:
Delete service
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.ntdll.dll_memset
lea rdx, [rbx + 0x670]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x18005be98]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ntdll.dll_memset
mov edx, 0x64
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1800162bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.drivers_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbx + 0x670]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str..sys
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x180016311
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180016372
mov r8d, 0xf01ff
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x180016345
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x180016372
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18001635c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x18001635e
xor esi, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180016388
Capabilities:
Allocate or change rwx memory
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
xorps xmm0, xmm0
lea rcx, [0x18005b8f8]
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x18001655b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [r12 + 0x18]
mov rdx, rbx
mov rcx, rax
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
call sub.ntdll.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18001655b
lea rdx, str._ntdll.dll
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], r12
lea r13d, [r12 + 1]
mov r8d, r13d
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x18001655b
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x18001655b
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r12 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x18001655b
movsxd rbx, dword [rsi + 0x3c]
movzx edi, r12w
add rbx, rsi
cmp r12w, word [rbx + 6]
jae 0x18001655b
movzx ecx, word [rbx + 0x14]
add rcx, rbx
movzx eax, di
lea rdx, [rax + rax*4]
lea r14, [rcx + rdx*8]
lea rcx, [r14 + 0x18]
lea rdx, str..text
call qword [sym.imp.ntdll.dll_strcmp]
test eax, eax
jne 0x18001654d
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1a0]
mov edx, dword [r14 + 0x20]
lea r8d, [rax + 0x40]
add rcx, rsi
mov dword [rbp + 0x1a0], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [r14 + 0x24]
mov r8d, dword [r14 + 0x20]
lea rdx, [rax + r15]
lea rcx, [rax + rsi]
call qword [sym.imp.ntdll.dll_memcpy]
mov ecx, dword [r14 + 0x24]
lea r9, [rbp + 0x1a0]
mov edx, dword [r14 + 0x20]
add rcx, rsi
mov r8d, dword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add di, r13w
cmp di, word [rbx + 6]
jb 0x1800164ce
lea r11, [rsp + 0x270]
xor eax, eax
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180017400
Capabilities:
Allocate or change rwx memory

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 r15
sub rsp, 0x40
xor eax, eax
mov ebp, edx
mov r9d, 4
mov edi, r8d
mov r10d, r9d
mov ebx, ecx
shl r10d, cl
mov r8d, 0x1000
cmp ecx, 8
cmovle eax, r10d
xor ecx, ecx
movsxd rdx, eax
add rdx, 0x28
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x1800174f2
and dword [rax + 0x10], 0
mov r15d, 1
and dword [rax + 0x18], 0
and dword [rax + 0x1c], 0
and dword [rax + 0x20], 0
and dword [rax + 0x24], 0
movzx ecx, bx
mov word [rax + 0xe], cx
imul ecx, ebp
mov dword [rax], 0x28
mov dword [rax + 4], ebp
mov dword [rax + 8], edi
mov word [rax + 0xc], r15w
add ecx, 0x1f
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, edi
mov dword [rax + 0x14], ecx
cmp ebx, 0x10
jge 0x1800174f2
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, r15d
mov edx, r15d
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
and dword [rsp + 0x30], 0
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x18001b5a4
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
and qword [rbp - 0x11], 0
xorps xmm0, xmm0
and qword [rbp + 0xf], 0
mov esi, r8d
mov r8d, reloc.WS2_32.dll_recvfrom
mov dword [rbp + 0x67], 0x10400
mov rdi, rdx
mov rbx, rcx
movups xmmword [rbp + 0x17], xmm0
lea r14d, [r8 - 0xf]
mov edx, r14d
mov ecx, r14d
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18001b611
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001b75b
xor edx, edx
lea rcx, [rbp + 0x17]
lea r8d, [rdx + 0x30]
call qword [sym.imp.ntdll.dll_memset]
lea r9, [rbp - 0x11]
mov dword [rbp + 0x1b], r14d
lea r8, [rbp + 0x17]
mov dword [rbp + 0x1f], r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18001b651
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18001b75b
cmp qword [rbp - 0x11], 0
je 0x18001b646
movzx ecx, si
mov word [rbp + 7], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 9], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rbp - 0x11]
lea rdx, [rbp + 7]
mov rcx, qword [rax + 0x20]
mov eax, dword [rcx + 4]
mov rcx, qword [rbx]
mov dword [rbp + 0xb], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18001b606
mov rcx, qword [rbx]
lea r9, [rbp + 0x67]
mov esi, 0xffff
mov r14d, 4
mov edx, esi
mov dword [rsp + 0x20], r14d
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rbp + 0x67]
mov r8d, 0x1001
mov dword [rsp + 0x20], r14d
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea edi, [r14 - 3]
lea r9, [rbp - 0x19]
mov dword [rbp - 0x19], edi
lea r8d, [r14 + 4]
mov dword [rsp + 0x20], r14d
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
and qword [rsp + 0x40], 0
lea r9d, [r14 + 8]
and qword [rsp + 0x38], 0
lea r8, [rbp - 9]
mov rcx, qword [rbx]
mov eax, 0x2710
and dword [rbp - 0x15], 0
mov edx, 0x98000004
mov dword [rbp - 5], eax
mov dword [rbp - 1], eax
lea rax, [rbp - 0x15]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rbp - 9], edi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbx]
lea r9, [rbp + 0x7f]
lea r8d, [r14 + 0x7c]
mov dword [rbp + 0x7f], 0xa0001
mov edx, esi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001b774
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov esi, r8d
mov edx, 0x48
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18001b7a4
xor eax, eax
jmp 0x18001b7ef
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x48
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18001b7e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001b804
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
and dword [rbp + 0x20], 0
mov rbx, rdx
mov r14d, r8d
mov rdi, rcx
mov rcx, rbx
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.ntdll.dll_memset]
and dword [rbp - 0x2c], 0
lea rsi, [rdi + 8]
and dword [rsi], 0
xor r9d, r9d
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
xor r8d, r8d
mov qword [rbp - 0x28], rbx
xor ecx, ecx
mov dword [rbp - 0x30], 0x1000
lea edx, [r9 + 1]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
and qword [rsp + 0x30], 0
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi]
mov r9, rsi
mov qword [rbp - 8], rax
mov r8d, 1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x18001b8f2
xor r8d, r8d
lea rdx, [rbp - 8]
mov r9d, r14d
lea ecx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x18001b8ce
cmp eax, 0x102
jne 0x18001b8f2
jmp 0x18001b8ea
mov rcx, qword [rdi]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x18001b901
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001ce7c
Capabilities:
Enumerate gui resources

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 r14
sub rsp, 0x60
mov rsi, qword [rcx]
mov r14, rdx
mov rbx, rcx
call fcn.180003854
mov rcx, qword [rbx + 0x58]
mov rdx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_EnumWindows]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov rcx, rbp
mov dword [rsp + 0x54], 0x2072024
mov dword [rsp + 0x44], 0x12001
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call qword [rbp + 0x30]
and dword [rsp + 0x4c], 0
add eax, 8
and dword [rsp + 0x50], 0
mov dword [rsp + 0x48], eax
call fcn.180003854
mov rcx, rax
mov rdi, rax
call qword [rax + 0x18]
mov r8d, gethostname
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rdi + 0x28]
xor edx, edx
mov rcx, r14
call qword [r14 + gethostname]
mov r8d, 8
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rbp
call qword [rbp + 0x30]
xor edx, edx
mov rcx, rbp
mov ebx, eax
call qword [rbp + gethostname]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x30]
mov rcx, rdi
call fcn.18000397c
mov rcx, r14
call fcn.18000397c
mov rcx, rbp
call fcn.18000397c
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret