joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d80c0
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 0x1400d8203
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x1400d80fc
xor eax, eax
jmp 0x1400d82e0
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 0x1400d81f9
cmp dword [0x1403aa4f8], 0
jle 0x1400d8158
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsp + 0x28]
mov eax, dword [0x1403aa4f8]
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x1400d8158
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400d82e0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400d7e80
test eax, eax
jne 0x1400d816d
jmp 0x1400d810e
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 0x1400d81b2
jmp 0x1400d81f9
cmp dword [rsp + 0x2c], 0
jne 0x1400d81cc
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
xor eax, eax
jmp 0x1400d82e0
cmp dword [rsp + 0x2c], 0
jge 0x1400d81e6
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400d82e0
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x24]
sub eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x1400d810e
mov eax, 1
jmp 0x1400d82e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x220], 0
je 0x1400d82de
cmp dword [0x1403aa4f8], 0
jle 0x1400d8257
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [rsp + 0x20]
mov eax, dword [0x1403aa4f8]
imul eax, eax, 0x3e8
cmp ecx, eax
jle 0x1400d8257
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400d82e0
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400d7e80
test eax, eax
jne 0x1400d826c
jmp 0x1400d820d
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 0x1400d82ae
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
xor eax, eax
jmp 0x1400d82e0
cmp dword [rsp + 0x30], 0
jge 0x1400d82c5
mov rax, qword [rsp + 0x68]
mov qword [rax], 0xffffffffffffffff
xor eax, eax
jmp 0x1400d82e0
movsxd rcx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov qword [rax], rcx
mov eax, 1
jmp 0x1400d82e0
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400d89a0
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.1401d4c90
sub rsp, rax
mov qword [rsp + 0x1068], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
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 0x1400d8a13
xor eax, eax
jmp 0x1400d8bf0
movsxd rax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x10a8]
je 0x1400d8a29
xor eax, eax
jmp 0x1400d8bf0
cmp dword [0x1403aa4fc], 0
je 0x1400d8beb
cmp qword [rsp + 0x10a8], 0
jbe 0x1400d8beb
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 0x1400d8a73
mov eax, 1
jmp 0x1400d8bf0
movzx eax, byte [rsp + 0x44]
cmp eax, 0x7f
jne 0x1400d8a87
mov eax, 1
jmp 0x1400d8bf0
movzx eax, byte [0x14020e88e]
mov byte [rsp + 0x50], al
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
lea rcx, [0x1403ac898]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0x1060]
call fcn.1400d8920
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.1400acc74
lea rcx, [rsp + 0x1060]
call fcn.140001490
mov eax, dword [0x1404b4a38]
and eax, 1
test eax, eax
jne 0x1400d8b22
mov eax, dword [0x1404b4a38]
or eax, 1
mov dword [0x1404b4a38], eax
lea rcx, [0x1404b4a00]
call fcn.1400100d0
lea rcx, [0x1401fc110]
call fcn.1400a8cac
nop
lea rcx, [0x1404b4a00]
call fcn.140010210
lea rdx, [0x1402129a4]
lea rcx, [rsp + 0x50]
call fcn.1400af97c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400d8b62
lea rdx, [0x1402129a8]
lea rcx, [rsp + 0x50]
call fcn.1400af97c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400d8bdf
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400ade70
mov rcx, qword [rsp + 0x28]
call fcn.1400ae0e4
cmp eax, 0x40000
jle 0x1400d8bad
mov rcx, qword [rsp + 0x28]
call fcn.1400aa000
lea rdx, [0x1402129ac]
lea rcx, [rsp + 0x50]
call fcn.1400af97c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400d8bdf
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rdx, qword [rsp + 0x10a8]
mov rcx, qword [rsp + 0x10a0]
call fcn.1400ac454
mov rcx, qword [rsp + 0x28]
call fcn.1400aa000
lea rcx, [0x1404b4a00]
call fcn.1400101e0
mov eax, 1
mov rcx, qword [rsp + 0x1078]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x1080
pop rdi
ret
Function at 0x1400db3f0
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 0x1400db53d
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1400db53d
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 0x1400db52d
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 0x1400db52d
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 0x1400db52d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140010530
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400105c0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.1400020d0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x40]
call fcn.140002e70
mov rax, qword [rsp + 0x90]
jmp 0x1400db5e4
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1400db423
cmp qword [rsp + 0x28], 0
je 0x1400db5bd
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 0x1400db5bd
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140010530
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400105c0
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.1400020d0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x48]
call fcn.140002e70
mov rax, qword [rsp + 0x90]
jmp 0x1400db5e4
lea rdx, [0x140213d54]
mov rcx, qword [rsp + 0x90]
call fcn.1400020d0
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 0x1400e3670
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 [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x220], 0
je 0x1400e36c3
mov eax, 1
jmp 0x1400e391c
cmp dword [rsp + 0xd8], 0
jne 0x1400e3752
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x220], 1
lea rcx, [rsp + 0x50]
call fcn.14004f0e0
mov r11, qword [rsp + 0xd0]
mov qword [rsp + 0x70], r11
lea rdx, [rsp + 0x50]
lea rcx, [0x1403ace90]
call fcn.1400d3d00
cmp eax, 0xffffffff
jne 0x1400e3731
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x50]
call fcn.14004f140
mov eax, dword [rsp + 0x84]
jmp 0x1400e391c
mov dword [rsp + 0x88], 1
lea rcx, [rsp + 0x50]
call fcn.14004f140
mov eax, dword [rsp + 0x88]
jmp 0x1400e391c
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 0x1400e37bc
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.140002de0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140002e90
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x90]
call fcn.140002e70
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 0x1400e389a
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 0x1400e391c
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.1400a9470
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd0]
lea r8, [0x14004f160]
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.1400a8050
add rsp, 0xc8
ret
Function at 0x1400e3940
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1402a15c0]
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 0x1400e3bca
mov rdx, qword [rsp + 0x100]
mov rdx, qword [rdx + 0x208]
mov rcx, qword [rsp + 0x100]
call fcn.1400d7e80
test eax, eax
je 0x1400e3bc5
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 0x1400e39eb
jmp 0x1400e3bca
lea rcx, [rsp + 0x78]
call fcn.14004f0e0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.1400a8d30
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 0x1400e3b8a
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, [0x1403ace90]
call fcn.1400d3d00
cmp eax, 0xffffffff
jne 0x1400e3bbb
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.14004f140
jmp 0x1400e3979
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x208], 0xffffffffffffffff
je 0x1400e3c1e
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.1400a8050
add rsp, 0xf0
pop rdi
ret
Function at 0x1400e53d0
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.1400ac454
mov qword [rsp + 0x20], rax
add rsp, 0x38
ret

Function at 0x1400eaa10
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 0x1400eaa4f
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.14002e140
mov rax, qword [rsp + 0x70]
jmp 0x1400eabaa
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call fcn.1400e5490
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400eaa9d
mov rcx, qword [rsp + 0x80]
call fcn.1400aa000
xor r8d, r8d
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.14002e140
mov rax, qword [rsp + 0x70]
jmp 0x1400eabaa
mov qword [rsp + 0x30], 2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
call qword [0x1402a4b68]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400eaaef
mov rcx, qword [rsp + 0x80]
call fcn.1400aa000
xor r8d, r8d
mov edx, 3
mov rcx, qword [rsp + 0x70]
call fcn.14002e140
mov rax, qword [rsp + 0x70]
jmp 0x1400eabaa
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.1400ac814
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400aa000
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
je 0x1400eab4d
mov rcx, qword [rsp + 0x50]
call qword [0x1402a4b70]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x70]
call fcn.14002e140
mov rax, qword [rsp + 0x70]
jmp 0x1400eabaa
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x90]
call fcn.1400e8790
mov dword [rsp + 0x40], eax
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.1400e7da0
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.1400ea880
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400ebbf0
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 0x1400ebc24
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0
jmp 0x1400ebc5d
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 0x1400ebc51
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0x27
jmp 0x1400ebc5d
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 0x1400ebc8f
cmp dword [rsp + 0x48], 1
jne 0x1400ebc9d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2c], 0
jmp 0x1400ebcba
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 0x1400ebcf0
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 0x1400ebde7
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 0x1400ebdca
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400ebd9c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ebd8d
cmp dword [rsp + 0x3c], 3
jne 0x1400ebd89
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ebd8b
jmp 0x1400ebd8d
jmp 0x1400ebd61
cmp dword [rsp + 0x3c], 1
je 0x1400ebd9c
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400ebdb5
mov dword [rsp + 0x58], 1
jmp 0x1400ebdbd
mov dword [rsp + 0x5c], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ebdd2
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x30], 1
jmp 0x1400ebdef
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 0x1400ebe10
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.1401d4c90
sub rsp, rax
mov rax, qword [0x1402a15c0]
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 0x1400ebf5e
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 0x1400ebf38
lea r8, [rsp + 0x20a8]
mov edx, 1
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400ebefe
lea rdx, [rsp + 0x20a8]
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ebee9
cmp dword [rsp + 0x20ac], 3
jne 0x1400ebee5
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ebee7
jmp 0x1400ebee9
jmp 0x1400ebeb4
cmp dword [rsp + 0x20ac], 1
je 0x1400ebefe
mov dword [rsp + 0x20a0], 0
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400ebf1d
mov dword [rsp + 0x20c8], 1
jmp 0x1400ebf28
mov dword [rsp + 0x20cc], 0
mov rcx, qword [rsp + 0x2098]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400ebf43
mov dword [rsp + 0x20a0], 1
mov rcx, qword [rsp + 0x2090]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsp + 0x20a0], 1
jmp 0x1400ebf69
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 0x1400ebf93
xor eax, eax
jmp 0x1400ec09f
mov r8d, 0x7d0
lea rdx, [rsp + 0x1080]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400ebfb4
xor eax, eax
jmp 0x1400ec09f
lea r9, [0x140215e00]
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 0x1400ec07e
mov rcx, qword [rsp + 0x2080]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400ec09f
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.1400a8050
add rsp, 0x20e8
ret