joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400996c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x1140
call fcn.1401c1440
sub rsp, rax
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x1130], rax
mov ebx, edx
mov rsi, rcx
test rcx, rcx
je 0x140099863
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
call fcn.1401c7b68
cmp rax, qword [rsi + 0x1020]
je 0x140099863
cmp ebx, 0x20
je 0x140099731
mov eax, 0x3c
cmp ebx, 0x40
lea r14d, [rax + 0xc]
cmovne r14d, eax
jmp 0x140099737
mov r14d, 0x40
mov r9, qword [rsi]
mov r15d, 1
mov edx, r15d
mov r8, r14
mov rcx, rdi
call fcn.1401cd104
cmp eax, r14d
jl 0x140099863
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 4]
mov dword [rdi], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 8]
mov dword [rdi + 4], eax
call qword [sym.imp.WS2_32.dll_ntohl]
movsxd rbx, dword [rdi + 4]
mov dword [rdi + 8], eax
mov rcx, qword [rsi]
call fcn.1401c7b68
add rax, rbx
mov qword [rdi - 8], rax
mov eax, 0xff8
sub eax, r14d
cmp ebx, eax
jg 0x140099863
mov r9, qword [rsi]
lea rcx, [r14 + rdi]
mov r8, rbx
mov edx, r15d
call fcn.1401cd104
cmp eax, dword [rdi + 4]
jne 0x140099863
mov ebx, dword [rdi + 8]
lea rcx, [rsp + 0x20]
call fcn.1400b3d90
test ebx, ebx
jle 0x14009980d
mov r14d, 0x1000
mov r9, qword [rsi]
lea rcx, [rsp + 0x130]
mov r8d, ebx
cmp ebx, r14d
mov rdx, r15
cmova r8d, r14d
call fcn.1401cd104
mov rbp, rax
test eax, eax
jle 0x14009980d
movsxd r8, ebp
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.1400b3e20
sub ebx, ebp
test ebx, ebx
jg 0x1400997ce
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x100]
call fcn.1400b3d70
cmp dword [rdi + 8], 0
jle 0x14009985e
lea rcx, [rdi + 0xc]
mov r8d, 0x30
lea rdx, [rsp + 0x100]
call fcn.1401c3360
test eax, eax
je 0x14009985e
movsxd rbx, dword [rdi + 4]
cmp ebx, 4
jbe 0x140099863
lea r8d, [rbx - 4]
xor ecx, ecx
lea rdx, [rdi + 0x3c]
call fcn.1400a90a0
cmp eax, dword [rbx + rdi + 0x38]
jne 0x140099863
mov rax, rdi
jmp 0x140099865
xor eax, eax
mov rcx, qword [rsp + 0x1130]
xor rcx, rsp
call fcn.1401c0ed0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140099d44
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov dword [rax - 0x20], 0x1000
or r9d, 0xffffffff
lea rdi, [0x1402c4c20]
test r8d, r8d
mov qword [rax - 0x28], rdi
mov r8, rsi
mov ecx, 0xfde9
jne 0x140099e7b
test edx, edx
je 0x140099da2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 5
jmp 0x140099dc3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140099e3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140099e3b
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov edx, 2
mov rcx, rbx
call fcn.1401d8900
cmp eax, 0xffffffff
je 0x140099e60
lea rdx, str.wbN
mov ecx, eax
call fcn.1401d90b8
test rax, rax
jne 0x140099e6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140099e69
xor edx, edx
mov rcx, rax
call fcn.1401d8900
cmp eax, 0xffffffff
je 0x140099e60
lea rdx, [0x1402975a8]
jmp 0x140099e54
Function at 0x14009af30
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
mov eax, 0x2070
call fcn.1401c1440
sub rsp, rax
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x14009b0da
mov rax, qword [rcx + 0x1030]
cmp qword [rcx + 0x1028], rax
jb 0x14009b0da
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14009b0da
or r12, 0xffffffffffffffff
lea r8, str..tmp
mov r9, r12
mov rdx, r12
call fcn.140096684
lea edi, [rbp + 1]
xor r8d, r8d
mov edx, edi
mov rcx, rax
mov rsi, rax
call fcn.140099d44
mov r14, rax
test rax, rax
jne 0x14009afd2
mov rcx, rsi
call fcn.1401ccb68
mov eax, edi
jmp 0x14009b0df
mov rcx, qword [rbx + 0x1010]
lea rax, [0x14009ad60]
and dword [rbx + 0x1050], ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [0x140095c34]
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x50], rax
call fcn.140096284
cmp dword [rbx + 0x1050], ebp
jne 0x14009b0ce
mov rcx, qword [rbx]
call fcn.1401c7fa4
mov rcx, r14
call fcn.1401c7fa4
lea rax, [rsp + 0x60]
mov r14d, 0x1000
mov dword [rsp + 0x28], r14d
mov r9d, r12d
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r8, qword [rbx + 8]
mov r9d, r12d
mov dword [rsp + 0x28], r14d
xor edx, edx
lea r14, [0x1402c4c20]
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea rcx, [rsp + 0x60]
cmove ebp, edi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 8]
xor r8d, r8d
xor edx, edx
call fcn.140099d44
mov qword [rbx], rax
test rax, rax
je 0x14009b0cc
mov rcx, rax
call fcn.1401c7b68
mov qword [rbx + 0x1020], rax
jmp 0x14009b0ce
mov ebp, edi
mov rcx, rsi
call fcn.1401ccb68
mov eax, ebp
jmp 0x14009b0df
mov eax, 1
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.1401c0ed0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14009ebcc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
mov r10, rcx
test edx, edx
je 0x14009ec01
movsx r8d, byte [r10]
mov eax, r9d
xor r8, rax
mov ecx, r9d
movzx eax, r8b
inc r10
shr ecx, 8
lea r8, [0x14025c210]
mov r9d, dword [r8 + rax*4]
xor r9d, ecx
sub edx, 1
jne 0x14009ebd7
not r9d
mov eax, r9d
ret

Function at 0x1400a84f8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rcx
mov rbx, r9
movsx ecx, byte [rcx + 1]
sub ecx, 1
je 0x1400a85d7
cmp ecx, 1
jne 0x1400a85fe
xor edi, edi
mov dword [rsp + 0x20], 0x2112a442
test r8, r8
je 0x1400a8552
movsd xmm0, qword [r8]
mov eax, dword [r8 + 8]
movsd qword [rsp + 0x24], xmm0
mov dword [rsp + 0x2c], eax
jmp 0x1400a856d
xor eax, eax
mov qword [rsp + 0x24], rax
mov dword [rsp + 0x2c], eax
call fcn.1401ccb48
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401cc7b8
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov r14, rbp
mov dword [rbx + 0x18], eax
sub r14, rbx
mov eax, reloc.WS2_32.dll_socket
mov word [rbx], ax
lea esi, [rax - 7]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
cmp eax, esi
jne 0x1400a85bb
lea rdx, [rsp + 0x20]
sub rdx, rbx
lea rcx, [rbx + 8]
mov al, byte [rdx + rcx - 8]
xor al, byte [r14 + rcx - 4]
mov byte [rcx], al
inc rcx
sub rsi, 1
jne 0x1400a85a5
jmp 0x1400a85fe
lea rcx, [rbx + 0x17]
mov al, byte [r14 + rcx - 4]
xor al, byte [rsp + rdi + 0x20]
inc rdi
mov byte [rcx], al
dec rcx
cmp rdi, rsi
jl 0x1400a85bf
jmp 0x1400a85fe
mov ecx, dword [rbp + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 2
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, 0x2112a442
mov word [rbx], cx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 4], eax
movzx ecx, word [rbp + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x2112
xor cx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c0ed0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a8634
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rdi, r8
movzx ecx, word [rcx + 2]
mov r14, rdx
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
xor ebx, ebx
mov eax, 0x2112
mov byte [r14], bl
xor cx, ax
cmp word [rsi], 2
setne al
inc al
mov byte [r14 + 1], al
call qword [sym.imp.WS2_32.dll_htons]
mov word [r14 + 2], ax
cmp word [rsi], 2
je 0x1400a8774
cmp word [rsi], 0x17
jne 0x1400a8793
mov dword [rsp + 0x20], 0x2112a442
test rdi, rdi
je 0x1400a86bf
movsd xmm0, qword [rdi]
mov eax, dword [rdi + 8]
movsd qword [rsp + 0x24], xmm0
mov dword [rsp + 0x2c], eax
jmp 0x1400a86da
xor eax, eax
mov qword [rsp + 0x24], rax
mov dword [rsp + 0x2c], eax
call fcn.1401ccb48
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401cc7b8
mov edi, reloc.WS2_32.dll_recv
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
cmp eax, edi
jne 0x1400a8708
lea rdx, [rsp + 0x20]
sub rdx, rsi
lea rcx, [rsi + 8]
mov al, byte [rdx + rcx - 8]
xor byte [rcx], al
inc rcx
sub rdi, 1
jne 0x1400a86f7
jmp 0x1400a873c
lea rdx, [rsi + 0x17]
mov rcx, rbx
mov r8, rdx
mov al, byte [rsp + rcx + 0x20]
xor al, byte [r8]
dec r8
mov byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, rdi
jl 0x1400a8712
mov rcx, rbx
mov al, byte [rsp + rcx + 0x30]
inc rcx
mov byte [rdx], al
dec rdx
cmp rcx, rdi
jl 0x1400a872b
add rsi, 8
lea rax, [r14 + 4]
test rax, rax
je 0x1400a875d
test rsi, rsi
je 0x1400a8757
movups xmm0, xmmword [rsi]
movdqu xmmword [rax], xmm0
jmp 0x1400a876d
xorps xmm0, xmm0
movups xmmword [rax], xmm0
call fcn.1401ccb48
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401cc7b8
mov ebx, reloc.WS2_32.dll_sendto
jmp 0x1400a8793
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
xor eax, 0x2112a442
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [r14 + 4], eax
mov ebx, 8
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400a90a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r10d, r10d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
je 0x1400a912e
lea rsi, [0x14025ba10]
not r9d
cmp r8d, 8
jb 0x1400a9103
mov ebx, r8d
shr rbx, 3
mov edi, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
sub rdi, 1
jne 0x1400a90d9
add r8d, 0xfffffff8
sub rbx, 1
jne 0x1400a90d4
test r8d, r8d
je 0x1400a9128
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x1400a9108
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x1400a9144
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r10d, r10d
mov rbx, rdx
mov r9d, ecx
test rdx, rdx
je 0x1400a91d8
lea rsi, [0x14025ba10]
not r9d
cmp r8d, 8
jb 0x1400a91aa
mov r11d, r8d
shr r11, 3
mov edi, 8
movzx ecx, byte [rbx]
mov eax, r9d
xor rcx, rax
inc rbx
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4 + 0x400]
xor r9d, eax
sub rdi, 1
jne 0x1400a917d
add r8d, 0xfffffff8
sub r11, 1
jne 0x1400a9178
test r8d, r8d
je 0x1400a91d2
movzx ecx, byte [rbx]
mov eax, r9d
xor rcx, rax
inc rbx
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4 + 0x400]
xor r9d, eax
add r8d, 0xffffffff
jne 0x1400a91af
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x1400ab3b0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp - 8]
and qword [rbp - 8], rbx
lea r9, [0x14029daa8]
and qword [rbp - 0x10], rbx
lea rcx, [0x14029da88]
and qword [rbp + 0x48], rbx
mov rdi, rdx
and qword [rbp + 0x30], rbx
lea r15d, [rbx + 1]
and qword [rbp + 0x40], rbx
mov r8d, r15d
xor edx, edx
mov qword [rsp + 0x20], rax
xor esi, esi
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400ab4f3
mov rcx, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x1400ab4f3
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp + 0x48]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x1400ab4f3
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test eax, eax
js 0x1400ab4f3
lea rax, [rbp + 0x30]
mov r8d, r15d
lea r9, [0x14029dac8]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x14029da98]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400ab4f3
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x1400ab4f3
mov rcx, qword [rbp + 0x30]
mov rdx, rax
mov r8, qword [rcx]
call qword [r8 + 0x50]
test eax, eax
js 0x1400ab4dc
lea rcx, [0x14029da38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1400ab4dc
mov rcx, qword [rbp + 0x30]
mov rdx, rbx
mov r8, qword [rcx]
call qword [r8 + 0x40]
test eax, eax
js 0x1400ab4dc
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
cmovns esi, r15d
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x1400ab4f3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1400ab502
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400ab511
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400ab520
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400ab52f
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400ab53e
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov eax, esi
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400abcb0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x1400abd3e
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c0ed0
add rsp, 0x80
pop rbp
ret

Function at 0x1400abd54
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x380
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov edi, edx
mov rbx, rcx
lea rdx, [rsp + 0xa0]
xor ecx, ecx
mov r8d, 0x168
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400abe1c
xor edx, edx
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
call fcn.1401c31c0
and qword [rsp + 0x38], 0
lea rcx, str.open
test edi, edi
mov dword [rsp + 0x28], 0x1000
lea rax, str.runas
mov dword [rsp + 0x60], 1
cmovne rax, rcx
lea rdi, [0x1402c4c20]
mov qword [rsp + 0x40], rax
or r9d, 0xffffffff
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rdi
mov r8, rbx
mov qword [rsp + 0x48], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x1400abe1e
xor eax, eax
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x380
pop rdi
ret
Function at 0x1400ac030
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea edi, [rbx + 0x14]
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x1400ac0ca
mov r8d, edi
lea rdx, str.Mesh_Agent
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x1400ac0c1
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ac0b8
cmp dword [rsp + 0x24], 1
jne 0x1400ac0b3
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 1
jne 0x1400ac0b8
mov ebx, eax
jmp 0x1400ac0b8
mov ebx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400ac0ec
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402bff08]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea edi, [rbx + 0x24]
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x1400ac18f
mov r8d, edi
lea rdx, str.Mesh_Agent
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x1400ac186
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400ac17d
cmp dword [rsp + 0x24], 1
je 0x1400ac17d
lea r8, [rsp + 0x20]
mov rcx, rdi
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400ac17d
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c0ed0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400d2dd0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1400d2df7
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1400d2de0
movzx eax, r9b
ret

Function at 0x1400d4870
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, 0x30
call fcn.1401c1440
sub rsp, rax
mov r10, r9
mov r11, r8
mov rbx, rcx
test r9, r9
jne 0x1400d48ab
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea ecx, [rax - 0x23]
lea r8d, [rdx - 4]
call fcn.1400c0bd0
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1400d48be
mov dword [rdx], r8d
cmp r10, 1
jne 0x1400d48e3
test rbx, rbx
je 0x1400d48d8
movzx eax, byte [r11]
test r8d, r8d
je 0x1400d48d6
not al
inc al
mov byte [rcx], al
mov eax, 1
add rsp, 0x30
pop rbx
ret
movzx eax, byte [r11]
xor ecx, ecx
test al, al
jne 0x1400d48f4
mov ecx, 1
jmp 0x1400d492c
cmp al, 0xff
jne 0x1400d4960
xor edx, edx
mov ecx, 1
cmp rcx, r10
jae 0x1400d491f
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r11]
inc rcx
or edx, eax
cmp rcx, r10
jb 0x1400d4910
xor eax, eax
test edx, edx
setne al
mov ecx, eax
test eax, eax
je 0x1400d4960
movzx eax, byte [r11 + 1]
and eax, 0x80
cmp r8d, eax
jne 0x1400d4960
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xe2
lea ecx, [r9 + 0xd]
lea r8d, [rdx - 5]
call fcn.1400c0bd0
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, ecx
sub r10, rax
test rbx, rbx
je 0x1400d49c5
neg r8d
mov qword [rsp + 0x40], rdi
lea r9, [rax + r11]
sbb dil, dil
add r9, r10
movzx edi, dil
mov edx, edi
and edx, 1
test r10, r10
je 0x1400d49c0
mov r8, r9
sub r8, rax
sub r8, r11
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
movzx ecx, dil
xor ecx, eax
add edx, ecx
mov byte [r8 + rbx], dl
shr edx, 8
test r8, r8
jne 0x1400d49a0
mov rdi, qword [rsp + 0x40]
mov rax, r10
add rsp, 0x30
pop rbx
ret
Function at 0x1400f35e0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400f37a9
push rbx
push rbp
push rsi
push rdi
push r13
mov eax, 0x20
call fcn.1401c1440
sub rsp, rax
mov rbp, qword [rsp + 0x70]
mov rbx, r8
mov qword [rsp + 0x50], r12
mov r13, r9
mov r12, qword [rsp + 0x78]
mov rdi, rdx
mov rsi, rcx
mov r10, rbp
cmp rbx, 0x10
jb 0x1400f3678
mov rbp, rbx
shr rbp, 4
imul rax, rbp, 0xfffffffffffffff0
add rbx, rax
nop
sub r10, rsi
mov r8, rdi
sub r8, rsi
mov rcx, rsi
mov edx, 2
mov rax, qword [r10 + rcx]
xor rax, qword [rcx]
mov qword [r8 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1400f3641
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
add rsi, 0x10
add rdi, 0x10
sub rbp, 1
jne 0x1400f3630
mov rbp, qword [rsp + 0x70]
test rbx, rbx
je 0x1400f3792
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
nop dword [rax + rax]
mov r8, r10
mov r9, rdi
mov r11d, 1
mov r14d, 2
sub r8, rsi
sub r9, rsi
sub r11, rsi
sub r14, rsi
xor eax, eax
mov r15d, 3
sub r15, rsi
nop dword [rax]
cmp rax, rbx
jae 0x1400f3734
lea rdx, [rax + rsi]
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
lea rcx, [r11 + rdx]
cmp rcx, rbx
jae 0x1400f3731
movzx ecx, byte [rsi + rax + 1]
xor cl, byte [rax + r10 + 1]
mov byte [rdi + rax + 1], cl
lea rcx, [r14 + rdx]
cmp rcx, rbx
jae 0x1400f372b
movzx ecx, byte [rsi + rax + 2]
xor cl, byte [rax + r10 + 2]
mov byte [rdi + rax + 2], cl
lea rcx, [r15 + rdx]
cmp rcx, rbx
jae 0x1400f3725
movzx ecx, byte [rsi + rax + 3]
xor cl, byte [rax + r10 + 3]
mov byte [rdi + rax + 3], cl
add rax, 4
cmp rax, 0x10
jb 0x1400f36c0
jmp 0x1400f3761
add rax, 3
jmp 0x1400f3734
add rax, 2
jmp 0x1400f3734
inc rax
cmp rax, 0x10
jae 0x1400f3761
sub r10, rdi
lea rcx, [rax + rdi]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rax
nop dword [rax]
movzx eax, byte [r10 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400f3750
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call r12
mov r10, rdi
cmp rbx, 0x10
jbe 0x1400f3788
add rsi, 0x10
add rdi, 0x10
sub rbx, 0x10
jne 0x1400f3690
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
movups xmm0, xmmword [r10]
mov r12, qword [rsp + 0x50]
movups xmmword [rbp], xmm0
add rsp, 0x20
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret