joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400da120
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x220], 0
jne 0x1400da141
mov eax, 1
jmp 0x1400da263
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x220], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400da198
mov edx, 2
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x40]
mov qword [r11 + 0x208], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x218], 0
je 0x1400da210
mov edx, 0x7d0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400da1dd
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x218], 0
je 0x1400da20e
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x218]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0x40]
mov qword [r11 + 0x218], 0
jmp 0x1400da25e
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0x96
jge 0x1400da25e
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1403c8f00]
call fcn.14001c840
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x1400da246
jmp 0x1400da25e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x1400da218
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400da4b0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [rsp + 0x70], 8
jne 0x1400da5f3
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x1400da4ec
xor eax, eax
jmp 0x1400da6d0
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x220], 0
je 0x1400da5e9
cmp dword [0x1403c6578], 0
jle 0x1400da548
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsp + 0x28]
mov eax, dword [0x1403c6578]
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x1400da548
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400da6d0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400da270
test eax, eax
jne 0x1400da55d
jmp 0x1400da4fe
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x60]
add rdx, rax
movsxd rax, dword [rsp + 0x24]
sub rdx, rax
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x2c], eax
jne 0x1400da5a2
jmp 0x1400da5e9
cmp dword [rsp + 0x2c], 0
jne 0x1400da5bc
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
xor eax, eax
jmp 0x1400da6d0
cmp dword [rsp + 0x2c], 0
jge 0x1400da5d6
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400da6d0
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x24]
sub eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x1400da4fe
mov eax, 1
jmp 0x1400da6d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x220], 0
je 0x1400da6ce
cmp dword [0x1403c6578], 0
jle 0x1400da647
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsp + 0x20]
mov eax, dword [0x1403c6578]
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x1400da647
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400da6d0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400da270
test eax, eax
jne 0x1400da65c
jmp 0x1400da5fd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400da69e
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
xor eax, eax
jmp 0x1400da6d0
cmp dword [rsp + 0x30], 0
jge 0x1400da6b5
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400da6d0
movsxd rcx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
mov eax, 1
jmp 0x1400da6d0
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400dad90
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1080
call fcn.1401e9500
sub rsp, rax
mov qword [rsp + 0x1068], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x1078], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x10a8]
mov rdx, qword [rsp + 0x10a0]
mov rcx, qword [rsp + 0x1098]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400dae03
xor eax, eax
jmp 0x1400dafe0
movsxd rax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x10a8]
je 0x1400dae19
xor eax, eax
jmp 0x1400dafe0
cmp dword [0x1403c657c], 0
je 0x1400dafdb
cmp qword [rsp + 0x10a8], 0
jbe 0x1400dafdb
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x1098]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400dae63
mov eax, 1
jmp 0x1400dafe0
movzx eax, byte [rsp + 0x44]
cmp eax, 0x7f
jne 0x1400dae77
mov eax, 1
jmp 0x1400dafe0
movzx eax, byte [0x14022582e]
mov byte [rsp + 0x50], al
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
lea rcx, [0x1403c8908]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x1060]
call fcn.1400dad10
mov qword [rsp + 0x1070], rax
mov r8, qword [rsp + 0x1070]
mov r8, qword [r8]
lea rdx, str._slog.dat
lea rcx, [rsp + 0x50]
call fcn.1400ae644
lea rcx, [rsp + 0x1060]
call fcn.140007060
mov eax, dword [0x1404d0ab8]
and eax, 1
test eax, eax
jne 0x1400daf12
mov eax, dword [0x1404d0ab8]
or eax, 1
mov dword [0x1404d0ab8], eax
lea rcx, [0x1404d0a80]
call fcn.14000f000
lea rcx, [0x140213340]
call fcn.1400aa47c
nop
lea rcx, [0x1404d0a80]
call fcn.14000f140
lea rdx, [0x140229944]
lea rcx, [rsp + 0x50]
call fcn.1400b1148
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400daf52
lea rdx, [0x140229948]
lea rcx, [rsp + 0x50]
call fcn.1400b1148
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400dafcf
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400af6d0
mov rcx, qword [rsp + 0x28]
call fcn.1400af944
cmp eax, 0x40000
jle 0x1400daf9d
mov rcx, qword [rsp + 0x28]
call fcn.1400ab86c
lea rdx, [0x14022994c]
lea rcx, [rsp + 0x50]
call fcn.1400b1148
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400dafcf
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rdx, qword [rsp + 0x10a8]
mov rcx, qword [rsp + 0x10a0]
call fcn.1400ade24
mov rcx, qword [rsp + 0x28]
call fcn.1400ab86c
lea rcx, [0x1404d0a80]
call fcn.14000f110
mov eax, 1
mov rcx, qword [rsp + 0x1078]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x1080
pop rdi
ret
Function at 0x1400dd7e0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov dword [rsp + 0x50], 0
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 0x1400dd92d
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1400dd92d
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400dd91d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
lea rcx, str.192.0.0.0
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
cmp ebx, eax
jb 0x1400dd91d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
lea rcx, str.223.255.255.255
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
cmp ebx, eax
ja 0x1400dd91d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000f540
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14000f5d0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.140002050
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x40]
call fcn.140002dd0
mov rax, qword [rsp + 0x90]
jmp 0x1400dd9d4
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1400dd813
cmp qword [rsp + 0x28], 0
je 0x1400dd9ad
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400dd9ad
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14000f540
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.14000f5d0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.140002050
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x48]
call fcn.140002dd0
mov rax, qword [rsp + 0x90]
jmp 0x1400dd9d4
lea rdx, [0x14022acf4]
mov rcx, qword [rsp + 0x90]
call fcn.140002050
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x90]
add rsp, 0x80
pop rbx
ret
Function at 0x1400e3c20
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x220], 0
je 0x1400e3c73
mov eax, 1
jmp 0x1400e3ecc
cmp dword [rsp + 0xd8], 0
jne 0x1400e3d02
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x220], 1
lea rcx, [rsp + 0x50]
call fcn.14004f560
mov r11, qword [rsp + 0xd0]
mov qword [rsp + 0x70], r11
lea rdx, [rsp + 0x50]
lea rcx, [0x1403c8f00]
call fcn.1400d60f0
cmp eax, 0xffffffff
jne 0x1400e3ce1
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x50]
call fcn.14004f5c0
mov eax, dword [rsp + 0x84]
jmp 0x1400e3ecc
mov dword [rsp + 0x88], 1
lea rcx, [rsp + 0x50]
call fcn.14004f5c0
mov eax, dword [rsp + 0x88]
jmp 0x1400e3ecc
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r11, rax
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x208], r11
cmp dword [rsp + 0xe8], 0
je 0x1400e3d6c
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [rsp + 0x40], ax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x90]
call fcn.140002d40
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140002df0
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x90]
call fcn.140002dd0
movzx ecx, word [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400e3e4a
mov edx, 2
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0xd0]
mov qword [r11 + 0x208], 0xffffffffffffffff
xor eax, eax
jmp 0x1400e3ecc
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x220], 1
mov rcx, qword [rsp + 0xd0]
mov eax, dword [rsp + 0xd8]
mov dword [rcx + 0x210], eax
mov rcx, qword [rsp + 0xd0]
add rcx, 8
mov rdx, qword [rsp + 0xe0]
call fcn.1400aac40
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd0]
lea r8, [0x14004f5e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r11, rax
mov rax, qword [rsp + 0xd0]
mov qword [rax + 0x218], r11
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0xc8
ret
Function at 0x1400e3ef0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov edx, 5
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_listen]
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x220], 0
je 0x1400e417a
mov rdx, qword [rsp + 0x100]
mov rdx, qword [rdx + 0x208]
mov rcx, qword [rsp + 0x100]
call fcn.1400da270
test eax, eax
je 0x1400e4175
mov dword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x1400e3f9b
jmp 0x1400e417a
lea rcx, [rsp + 0x78]
call fcn.14004f560
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.1400aa500
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rdx
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x80], 0xffffffffffffffff
je 0x1400e413a
mov dword [rsp + 0xe0], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xe0]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xc4], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xc4]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xb0], 0
lea rdi, [rsp + 0xb4]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0xdc], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0xc8], 0
lea rdi, [rsp + 0xcc]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0xa8], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0xd8], 0
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0xb8], 0x1388
mov dword [rsp + 0xb4], 0x1388
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xdc]
lea r8, [rsp + 0xb0]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0xc0], eax
lea rdx, [rsp + 0x78]
lea rcx, [0x1403c8f00]
call fcn.1400d60f0
cmp eax, 0xffffffff
jne 0x1400e416b
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rsp + 0x78]
call fcn.14004f5c0
jmp 0x1400e3f29
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400e41ce
mov edx, 2
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, qword [rsp + 0x100]
mov qword [rdx + 0x208], 0xffffffffffffffff
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0xf0
pop rdi
ret
Function at 0x1400e5980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r9, qword [rsp + 0x40]
mov r9, qword [r9 + 8]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1400ade24
mov qword [rsp + 0x20], rax
add rsp, 0x38
ret

Function at 0x1400eafc0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jne 0x1400eafff
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.14002e560
mov rax, qword [rsp + 0x70]
jmp 0x1400eb15a
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call fcn.1400e5a40
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400eb04d
mov rcx, qword [rsp + 0x80]
call fcn.1400ab86c
xor r8d, r8d
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.14002e560
mov rax, qword [rsp + 0x70]
jmp 0x1400eb15a
mov qword [rsp + 0x30], 2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
call qword [0x1402c0c08]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400eb09f
mov rcx, qword [rsp + 0x80]
call fcn.1400ab86c
xor r8d, r8d
mov edx, 3
mov rcx, qword [rsp + 0x70]
call fcn.14002e560
mov rax, qword [rsp + 0x70]
jmp 0x1400eb15a
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1400ae1e4
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400ab86c
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
je 0x1400eb0fd
mov rcx, qword [rsp + 0x50]
call qword [0x1402c0c10]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x70]
call fcn.14002e560
mov rax, qword [rsp + 0x70]
jmp 0x1400eb15a
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x90]
call fcn.1400e8d40
mov dword [rsp + 0x40], eax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.1400e8350
mov r9, rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.1400eae30
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400ec1a0
Capabilities:
Check os version

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x48], 2
jne 0x1400ec1d4
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0
jmp 0x1400ec20d
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 5
jg 0x1400ec201
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0x27
jmp 0x1400ec20d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0x127
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x48]
mov dword [rcx + 0x1c], eax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
mov dword [rcx + 0x24], eax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x58]
mov dword [rcx + 0x30], eax
cmp dword [rsp + 0x48], 4
je 0x1400ec23f
cmp dword [rsp + 0x48], 1
jne 0x1400ec24d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2c], 0
jmp 0x1400ec26a
mov rcx, qword [rsp + 0x40]
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [rcx + 0x2c], eax
mov eax, dword [reloc.WS2_32.dll_accept]
add eax, 1
mov dword [reloc.WS2_32.dll_accept], eax
mov rdx, qword [rsp + 0x40]
add rdx, 0x18
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400ec2a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
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
je 0x1400ec397
mov rdx, qword [rsp + 0x70]
add rdx, 0x440
mov r8d, 0xf01ff
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400ec37a
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400ec34c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ec33d
cmp dword [rsp + 0x3c], 3
jne 0x1400ec339
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ec33b
jmp 0x1400ec33d
jmp 0x1400ec311
cmp dword [rsp + 0x3c], 1
je 0x1400ec34c
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400ec365
mov dword [rsp + 0x58], 1
jmp 0x1400ec36d
mov dword [rsp + 0x5c], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ec382
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x30], 1
jmp 0x1400ec39f
mov dword [rsp + 0x30], 0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x1400ec3c0
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x20e8
call fcn.1401e9500
sub rsp, rax
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x20d0], rax
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x2090], rax
cmp qword [rsp + 0x2090], 0
je 0x1400ec50e
mov rdx, qword [rsp + 0x20f0]
add rdx, 0x440
mov r8d, 0xf01ff
mov rcx, qword [rsp + 0x2090]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x2098], rax
cmp qword [rsp + 0x2098], 0
je 0x1400ec4e8
lea r8, [rsp + 0x20a8]
mov edx, 1
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400ec4ae
lea rdx, [rsp + 0x20a8]
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ec499
cmp dword [rsp + 0x20ac], 3
jne 0x1400ec495
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ec497
jmp 0x1400ec499
jmp 0x1400ec464
cmp dword [rsp + 0x20ac], 1
je 0x1400ec4ae
mov dword [rsp + 0x20a0], 0
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400ec4cd
mov dword [rsp + 0x20c8], 1
jmp 0x1400ec4d8
mov dword [rsp + 0x20cc], 0
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ec4f3
mov dword [rsp + 0x20a0], 1
mov rcx, qword [rsp + 0x2090]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x20a0], 1
jmp 0x1400ec519
mov dword [rsp + 0x20a0], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x2080], rax
cmp qword [rsp + 0x2080], 0
jne 0x1400ec543
xor eax, eax
jmp 0x1400ec64f
mov r8d, 0x7d0
lea rdx, [rsp + 0x1080]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400ec564
xor eax, eax
jmp 0x1400ec64f
lea r9, [0x14022cc50]
lea r8, [rsp + 0x1080]
lea rdx, str.__s___s
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8, qword [rsp + 0x20f0]
add r8, 0x40
mov rdx, qword [rsp + 0x20f0]
add rdx, 0x440
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, 0xf01ff
mov rcx, qword [rsp + 0x2080]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x2088], rax
cmp qword [rsp + 0x2088], 0
jne 0x1400ec62e
mov rcx, qword [rsp + 0x2080]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400ec64f
mov rcx, qword [rsp + 0x2088]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x2080]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x20d0]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x20e8
ret