joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18014cac0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.18014bf80
call fcn.18014be10
mov rbx, rax
test rax, rax
je 0x18014cc5d
mov qword [rsp + 0x2b0], r12
lea rcx, [rsp + 0x42]
xor r12d, r12d
xor edx, edx
mov r8d, 0x22e
mov word [rsp + 0x40], r12w
call fcn.1800f8660
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x18014cb30
test rsi, rsi
je 0x18014cb59
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdx, rsi
call fcn.1800fac00
call fcn.1800f62e0
mov edx, 0x40000003
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
test ebp, ebp
jne 0x18014cb8f
mov dword [rsp + 0x28], 0x8000
lea r9d, [rbp + 1]
xor r8d, r8d
mov dword [rsp + 0x20], 0x8000
jmp 0x18014cbab
mov dword [rsp + 0x28], 0x1000
mov r9d, 0xff
mov r8d, 6
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18014cbc4
mov qword [rdi + 8], r12
jmp 0x18014cc53
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
mov dword [rdi + 0x28], ebp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
cmp qword [rdi + 0x10], r12
je 0x18014cc4b
test rax, rax
je 0x18014cc4b
xor eax, eax
lea rdx, [rdi + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18014cc3d
cmp eax, 0x3e5
je 0x18014cc3d
cmp eax, 0x217
jne 0x18014cc53
mov dword [rdi + 0x20], 1
mov eax, 1
jmp 0x18014cc55
mov rcx, rdi
call fcn.18014bf80
xor eax, eax
mov r12, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x18014d4b0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [rcx], 0
mov rbx, rcx
jne 0x18014d4eb
lea rdx, [rsp + 0x20]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
test eax, eax
sete dl
mov dword [rbx], edx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x1d0
pop rbx
ret
Function at 0x18014d550
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x18014d5d4
mov ecx, 0x28
call fcn.1800f87f4
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18014d59e
mov rcx, rax
call fcn.18014d510
mov rbx, rax
jmp 0x18014d5a0
xor ebx, ebx
test rbx, rbx
je 0x18014d5d4
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x18014d5d8
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor eax, eax
jmp 0x18014d607
mov qword [rbx + 0x10], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18014d620
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov edi, r8d
mov rbx, rcx
jne 0x18014d64d
xor eax, eax
jmp 0x18014d702
lea eax, [r8 + 0x20000000]
cmp eax, 0xfffffff
ja 0x18014d668
mov dword [rcx + 0x1c], 1
mov dword [rcx + 0x20], r8d
xor edi, edi
mov eax, 2
movzx ecx, dx
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, edi
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x18014d646
cmp dword [rbx + 0x1c], 0
je 0x18014d6fd
mov ecx, dword [rbx + 0x20]
xor eax, eax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x31], eax
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x30], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
xor edx, edx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], eax
lea r8d, [rdx + 0xc]
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x18014d646
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18014d720
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [0x18023c9d8]
mov ebx, edx
call fcn.18014d4b0
cmp qword [rdi + 0x10], 0xffffffffffffffff
je 0x18014d74b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
dec ebx
je 0x18014d7bd
dec ebx
jne 0x18014d7d7
mov edx, 2
xor r8d, r8d
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x18014d7d7
xor edx, edx
lea rcx, [rsp + 0x68]
lea r9d, [rbx + 4]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0x9800000c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x18014d7e4
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x10]
mov edx, 6
lea r9, [rsp + 0x68]
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x50
pop rdi
ret

Function at 0x18014d840
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov rdi, rcx
mov ecx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov eax, 2
mov word [rsp + 0x20], ax
movzx ebx, r8w
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18014d8d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
je 0x18014d96a
cmp dword [rcx + 0x1c], 0
je 0x18014d940
mov ecx, dword [rcx + 0x20]
xor eax, eax
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
xor edx, edx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea r8d, [rdx + 0xd]
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18014d940
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x10]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ecx, ecx
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rbx + 0x18], rcx
mov dword [rbx + 0x20], ecx
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x18014da30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x10]
mov rdi, r8
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x18014da73
xor eax, eax
jmp 0x18014da92
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi], ax
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x18014daf0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r9d
mov r9, r8
mov r8d, edx
mov edx, dword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x18014db40
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0xa0], 0xff
movzx r12d, r9w
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x18014db9e
cmp dword [rcx + 0x18], 0
lea r9, [rcx + 0x18]
jne 0x18014db9e
mov rcx, qword [rcx + 0x10]
mov edx, 0xffff
mov r8d, 0x20
mov dword [r9], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
movzx ecx, r12w
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [rsp + 0xa0]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x18014dc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x58
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13, qword [rsp + 0xb0]
mov r12, r9
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
test eax, eax
je 0x18014dcaa
jns 0x18014dc84
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x18014dcaa
test ebx, ebx
jle 0x18014dc40
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x3a]
mov dword [r12], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r13], ax
mov eax, ebx
jmp 0x18014dcac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18014dcd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x18014dcf0
mov dword [rsp + 0x48], 1
jmp 0x18014dcfd
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x18014dd39
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x18014dd67
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18014dd2c
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x18014dcd0

Function at 0x18014dde0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x18014dcf0
mov dword [rsp + 0x48], 1
jmp 0x18014dcfd
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x18014dd39
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x18014dd67
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18014dd2c
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x18014dcd0

Function at 0x18014ddf0
Capabilities:
Set socket configuration

Disassembly:
mov r8d, 0x1006
mov dword [rcx + 0xc], edx
jmp 0x18014dcd0
Function at 0x18014de30
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18023ca3c]
test ecx, ecx
jne 0x18014dfa7
mov eax, dword [0x18023ca38]
cmp eax, 3
ja 0x18014dfa7
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x18023ca38], eax
call fcn.180127760
test eax, eax
je 0x18014de76
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18014de83
lea rcx, [0x1801d6af8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18014de95
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.SHGetSpecialFolderLocation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHGetSpecialFolderPathW
mov rcx, rbx
mov qword [0x18023c9e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHGetKnownFolderPath
mov rcx, rbx
mov qword [0x18023c9e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHGetFolderLocation
mov rcx, rbx
mov qword [0x18023c9f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHFormatDrive
mov rcx, rbx
mov qword [0x18023c9f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 2
mov rcx, rbx
mov qword [0x18023ca00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 4
mov rcx, rbx
mov qword [0x18023ca08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHCreateDirectoryExW
mov rcx, rbx
mov qword [0x18023ca10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PathRemoveFileSpecW
mov rcx, rbx
mov qword [0x18023ca18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHFileOperationA
mov rcx, rbx
mov qword [0x18023ca20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1801d6a20]
mov rcx, rbx
mov qword [0x18023ca28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x18023ca3c], 1
mov qword [0x18023ca30], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18014f160
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
call fcn.18014dfb0
cmp qword [0x18023cba0], 0
mov rdx, rbx
mov rcx, rdi
je 0x18014f1ab
mov eax, dword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
call qword [0x18023cba8]
jmp 0x18014f1b1
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18014f320
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18023ce34]
test ecx, ecx
jne 0x18014f43f
mov eax, dword [0x18023ce30]
cmp eax, 3
ja 0x18014f43f
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x18023ce30], eax
call fcn.180127760
test eax, eax
je 0x18014f366
lea rcx, str.shlwapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18014f373
lea rcx, [0x1801d7400]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18014f385
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.AssocQueryStringA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AssocQueryStringW
mov rcx, rbx
mov qword [0x18023cdf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AssocQueryStringByKeyA
mov rcx, rbx
mov qword [0x18023ce00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AssocQueryStringByKeyW
mov rcx, rbx
mov qword [0x18023ce08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.StrRetToBufW
mov rcx, rbx
mov qword [0x18023ce10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ParseURLW
mov rcx, rbx
mov qword [0x18023ce18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PathCreateFromUrlW
mov rcx, rbx
mov qword [0x18023ce20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x18023ce34], 1
mov qword [0x18023ce28], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18014f450
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18023ce8c]
test ecx, ecx
jne 0x18014f5b4
mov eax, dword [0x18023ce88]
cmp eax, 3
ja 0x18014f5b4
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x18023ce88], eax
call fcn.180127760
test eax, eax
je 0x18014f496
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18014f4a3
lea rcx, [0x1801d7520]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18014f4b5
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumProcessModules
mov rcx, rbx
mov qword [0x18023ce38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessMemoryInfo
mov rcx, rbx
mov qword [0x18023ce40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
mov qword [0x18023ce48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
mov qword [0x18023ce50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleInformation
mov rcx, rbx
mov qword [0x18023ce58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameA
mov rcx, rbx
mov qword [0x18023ce60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameW
mov rcx, rbx
mov qword [0x18023ce68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameA
mov rcx, rbx
mov qword [0x18023ce70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameW
mov rcx, rbx
mov qword [0x18023ce78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x18023ce80], rax
mov dword [0x18023ce8c], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18014f5c0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18023cecc]
test ecx, ecx
jne 0x18014f6df
mov eax, dword [0x18023cec8]
cmp eax, 3
ja 0x18014f6df
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x18023cec8], eax
call fcn.180127760
test eax, eax
je 0x18014f606
lea rcx, str.Userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18014f613
lea rcx, [0x1801d7610]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18014f625
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.CreateEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
mov qword [0x18023ce90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserA
mov rcx, rbx
mov qword [0x18023ce98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserW
mov rcx, rbx
mov qword [0x18023cea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileA
mov rcx, rbx
mov qword [0x18023cea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileW
mov rcx, rbx
mov qword [0x18023ceb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnloadUserProfile
mov rcx, rbx
mov qword [0x18023ceb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x18023cecc], 1
mov qword [0x18023cec0], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180151250
Capabilities:
Delete service

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, rcx
call fcn.1801276e0
test eax, eax
je 0x180151274
mov dword [0x18023cf20], 0x32
xor eax, eax
add rsp, 0x50
pop rdi
ret
test rdi, rdi
jne 0x18015128b
mov dword [0x18023cf20], 0x57
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov r9d, 0xf01ff
mov r8d, 0xf003f
mov rdx, rdi
mov dword [0x18023cf20], ebx
call fcn.180150f30
lea rcx, [rsp + 0x20]
call fcn.180150fd0
test rax, rax
je 0x1801512e7
lea rcx, [rsp + 0x20]
call fcn.180150fd0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x180151305
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023cf20], eax
jmp 0x1801512ed
mov eax, dword [0x18023cf20]
test eax, eax
jne 0x180151305
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x1801512ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023cf20], eax
lea rcx, [rsp + 0x20]
call fcn.180151030
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret