joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800134c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
cmp dword [0x18009caf4], 9
movsxd rsi, r9d
mov rbp, r8
mov r15d, edx
mov rbx, rcx
jl 0x1800134f3
lea rcx, str.ConnectToServer
call fcn.1800169b0
lea rdi, [rbx + 0x18]
test rdi, rdi
jne 0x180013505
or rax, 0xffffffffffffffff
jmp 0x1800135ed
test rbp, rbp
je 0x1800134fc
test esi, esi
je 0x1800134fc
movzx ecx, byte [rdi]
test cl, cl
je 0x1800134fc
mov eax, dword [rsp + 0x70]
movsx ecx, cl
mov qword [rsp + 0x50], r12
mov dword [rbx + 0x218], eax
mov qword [rsp + 0x58], r14
call fcn.18002b998
mov r12d, 2
mov rcx, rdi
test eax, eax
je 0x180013558
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov word [rbx + 8], r12w
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbx + 0xc], eax
jmp 0x18001359c
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
jne 0x180013574
mov qword [rsp + 0x20], rdi
lea r9, str.Error:_gethostbyname_failed:__s.
jmp 0x1800135d0
xor eax, eax
lea rcx, [rbx + 0xc]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov rdx, qword [r14 + 0x18]
mov rdx, qword [rdx]
movsx r8, word [r14 + 0x12]
call fcn.180028110
movzx eax, word [r14 + 0x10]
mov word [rbx + 8], ax
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
xor r8d, r8d
mov edx, r12d
mov ecx, r12d
mov word [rbx + 0xa], ax
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
jne 0x1800135e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.socket_failed_to_create_datagram_socket:__d_n
mov dword [rsp + 0x20], eax
mov rdx, rsi
or r8, 0xffffffffffffffff
mov rcx, rbp
call fcn.180029e64
or rax, 0xffffffffffffffff
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret

Function at 0x180013610
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1800136cb
test r9, r9
je 0x1800136cb
cmp dword [rsp + 0x60], 0
je 0x1800136cb
test rcx, rcx
je 0x1800136cb
cmp qword [rcx], 0xffffffffffffffff
je 0x1800136cb
mov qword [rsp + 0x40], rbp
lea rbp, [rcx + 8]
nop dword [rax]
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x28], SafeArrayUnaccessData
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1800136aa
movsxd rcx, eax
sub ebx, eax
add rdi, rcx
test ebx, ebx
jg 0x180013660
mov eax, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp dword [0x18009caf4], 9
jl 0x1800136c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.error_sending_to_server._WSA_ERROR:__d
mov edx, eax
call fcn.1800169b0
xor eax, eax
jmp 0x180013695
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1800136f0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x50], si
call fcn.1800292e0
mov qword [rsp + 0x38], rsi
test rbx, rbx
je 0x180013800
lea r9, str.SYSTEMCurrentControlSetServicesEventLog_s
lea rcx, [rsp + 0x50]
or r8, 0xffffffffffffffff
mov edx, 0x400
mov qword [rsp + 0x20], rbx
call fcn.18002b4a4
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x2001b
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180013807
cmp dword [0x18009caf4], 1
jl 0x1800137a0
lea rcx, str.Cannot_determine_if_log__S_exists___checking_Microsoft_Windows_subscriptions
mov rdx, rbx
call fcn.1800169b0
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionWINEVTChannels_s
lea rcx, [rsp + 0x50]
or r8, 0xffffffffffffffff
mov edx, 0x400
mov qword [rsp + 0x20], rbx
call fcn.18002b4a4
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x2001b
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180013807
cmp dword [0x18009caf4], 1
jl 0x180013800
lea rcx, str.Cannot_determine_if_log__S_exists___openkey_failed
mov rdx, rbx
call fcn.1800169b0
xor eax, eax
jmp 0x1800138de
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x18006c900]
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x18001385d
cmp dword [0x18009caf4], 1
jl 0x180013879
lea rcx, str.Cannot_check_log_retention_settings___queryvalueex_failed_for_log__S
mov rdx, rbx
call fcn.1800169b0
cmp dword [0x18009caf4], 1
jl 0x180013879
mov edx, dword [rsp + 0x30]
lea rcx, str.Log_retention_settings_are_set_to__d_for_log__S
mov r8, rbx
call fcn.1800169b0
test edi, edi
jne 0x1800138ce
cmp dword [rsp + 0x30], esi
je 0x1800138ce
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9d, [rdi + 4]
lea rdx, str.Retention
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1800138ce
cmp dword [0x18009caf4], 1
jl 0x1800138ce
lea rcx, str.Cannot_set_log_retention_settings___regsetvalueex_failed_for_log__S
mov rdx, rbx
call fcn.1800169b0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800292b0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180013910
Capabilities:
Get hostname
Resolve dns

Disassembly:
test rcx, rcx
je 0x180013a39
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
movsxd rsi, edx
mov rbx, rcx
mov edx, esi
call qword [sym.imp.WS2_32.dll_gethostname]
mov rcx, rbx
test eax, eax
je 0x180013955
lea r8, str.localhost.unknown
mov rdx, rsi
or r9, 0xffffffffffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.18002a5b4
mov qword [rsp + 0x30], rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x180013a2a
cmp qword [rax + 8], 0
je 0x1800139d5
mov rcx, qword [rdi + 8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1800139d5
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x180013983
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x180013990
cmp rax, rcx
jbe 0x1800139ce
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1800139a2
mov rcx, rbx
call fcn.18002a3c0
test eax, eax
jne 0x1800139ce
mov r8, qword [rdi + 8]
mov rdx, rsi
or r9, 0xffffffffffffffff
mov r8, qword [r8]
mov rcx, rbx
call fcn.18002a5b4
add qword [rdi + 8], 8
jne 0x180013973
mov rdx, qword [rdi]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1800139e0
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1800139f0
cmp rax, rcx
jbe 0x180013a2a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x180013a02
mov rcx, rbx
call fcn.18002a3c0
test eax, eax
jne 0x180013a2a
mov r8, qword [rdi]
mov rdx, rsi
or r9, 0xffffffffffffffff
mov rcx, rbx
call fcn.18002a5b4
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x180015e80
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x8d0]
sub rsp, 0x9d0
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x8c0], rax
lea rcx, [rbp + 0xc1]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0xc0], 0
call fcn.1800292e0
lea rdx, [0x18006cb00]
lea rcx, [0x18006cb0c]
xor r8d, r8d
call fcn.18001abe0
test eax, eax
je 0x180015f17
lea rdx, [rbp + 0xc0]
lea rcx, str._SystemRoot__system32LogFiles
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x180015f1e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rbp - 0x80], 0x10
jne 0x180015f31
xor eax, eax
jmp 0x180016023
lea rcx, [rbp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180015f17
lea rdx, [rbp + 0xc0]
lea rcx, str._SystemRoot__system32LogFilesSnare
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x180015f78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rbp - 0x80], 0x10
jne 0x180015f8b
xor eax, eax
jmp 0x180016023
lea rcx, [rbp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180015f17
lea rcx, [rsp + 0x40]
call fcn.18002c388
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.18002c07c
mov edx, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
mov eax, dword [rsp + 0x5c]
inc edx
add ecx, 0x76c
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
lea rax, str._SystemRoot__system32LogFilesSnare_
lea rcx, [rbp + 0x4c0]
lea r9, str._s_04d_02d_02d.log
or r8, 0xffffffffffffffff
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x4c0]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r8, [0x18006c39c]
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x48]
call fcn.180029b28
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x8c0]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x9d0
pop rbp
ret
Function at 0x180016f60
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rdx
mov r12, rcx
xor r13d, r13d
mov edi, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
lea rcx, [0x18009c790]
call qword [0x18009c9a8]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800170e5
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, rax
call qword [0x18009c9c8]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800170d6
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 4]
mov rcx, rax
call qword [0x18009c998]
mov r14, rax
test rax, rax
je 0x1800170d6
movsxd rcx, dword [rax + 0x3c]
lea r8, [rax + 0x108]
add r8, rcx
movzx edx, word [rcx + rax + 6]
dec edx
movsxd rcx, edx
lea rdx, [rcx + rcx*4]
lea rbx, [r8 + rdx*8]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
mov ecx, eax
mov dword [r15], ecx
call fcn.180029908
mov rbp, rax
mov r8d, dword [r15]
mov ecx, dword [rbx + 0x14]
mov edx, dword [rbx + 0x10]
add rcx, r14
add rdx, rcx
mov rcx, rax
call fcn.180028110
lea rdx, str.YTNSYAssYnBVOkJs0ZjjXBRHlTeSOBVmT7sOADHmT7vYARurr
lea rcx, [rsp + 0x48]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x180017095
mov rax, qword [rax]
mov r8, rax
mov edx, dword [r15]
mov rcx, rbp
call fcn.180005da0
nop
cmp qword [rsp + 0x60], 0x10
jb 0x1800170b6
mov rcx, qword [rsp + 0x48]
call fcn.180027f2c
mov qword [rsp + 0x60], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rsp + 0x58], r13
mov byte [rsp + 0x48], 0
mov qword [r12], rbp
mov rcx, r14
call qword [0x18009c9c0]
mov rcx, rsi
call qword [0x18009c9b8]
cmp rdi, 0xffffffffffffffff
je 0x1800170ee
mov rcx, rdi
call qword [0x18009c9b8]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800191a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor ebp, ebp
mov rdi, rcx
lea rcx, [rsp + 0x61]
lea r8d, [rbp + 0x63]
xor edx, edx
mov byte [rsp + 0x60], bpl
call fcn.1800292e0
lea rax, [rsp + 0x50]
lea rdx, [0x18006f8f8]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001924f
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREIntersect_AllianceAuditServiceConfig_
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x18001924f
lea eax, [rbp + 2]
jmp 0x1800193bb
mov qword [rsp + 0xf8], rbx
or rbx, 0xffffffffffffffff
lea r8, [rdi + 3]
lea rcx, [rsp + 0x60]
lea edx, [rbx + 0x65]
mov r9, rbx
mov qword [rsp + 0x100], rsi
call fcn.18002a5b4
lea rax, [rsp + 0x60]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], bpl
jne 0x180019280
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, str.Clientname
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, ebp
test eax, eax
lea rax, [rdi + 0x468]
mov esi, 4
cmovne ebx, esi
cmp dword [rax], 1
jbe 0x1800192d0
mov dword [rax], 1
mov rcx, qword [rsp + 0x50]
lea rdx, str.Audit
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1800192f8
add ebx, 8
lea rax, [rdi + 0x46c]
cmp dword [rax], 1
jbe 0x18001930a
mov dword [rax], 1
mov rcx, qword [rsp + 0x50]
lea rdx, [0x18006f988]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180019332
add ebx, 0x10
lea rax, [rdi + 0x470]
cmp dword [rax], 1
jbe 0x180019340
mov dword [rax], ebp
mov rcx, qword [rsp + 0x50]
lea rdx, str.FileExport
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180019368
add ebx, 0x10
lea rax, [rdi + 0x474]
cmp dword [rax], 1
jbe 0x180019376
mov dword [rax], ebp
mov rcx, qword [rsp + 0x50]
lea rdx, str.CritAudit
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rsi, qword [rsp + 0x100]
test eax, eax
je 0x1800193a6
add ebx, 0x20
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800292b0
mov rbp, qword [rsp + 0x108]
add rsp, 0xe0
pop rdi
ret
Function at 0x1800193f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rsi, rcx
lea rcx, [rsp + 0x61]
xor ebp, ebp
xor edx, edx
mov r8d, 0x7ff
mov byte [rsp + 0x60], bpl
call fcn.1800292e0
lea rax, [rsp + 0x50]
lea rdx, [0x18006f9b8]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1800194a6
lea rax, [rsp + 0x58]
lea rdx, str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1800194a6
lea eax, [rbp + 1]
jmp 0x180019615
mov qword [rsp + 0x888], rbx
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov r8, rsi
mov edx, 0x800
mov r9, rbx
call fcn.18002a5b4
lea rax, [rsp + 0x60]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], bpl
jne 0x1800194d0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov edi, 1
lea rdx, str.Destination
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov ecx, ebp
lea rdx, [rsi + 0x80c]
mov ebx, ebp
cmovne ebx, edi
cmp dword [rdx], edi
setb cl
cmp dword [rdx], 0xffff
seta bpl
or ecx, ebp
je 0x18001952d
mov dword [rdx], 0x1811
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rdx
lea rdx, str.DestPort
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18001955b
inc ebx
lea rax, [rsi + 0x808]
cmp dword [rax], edi
jbe 0x180019568
mov dword [rax], edi
mov rcx, qword [rsp + 0x50]
lea rdx, [0x18006f96c]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180019596
inc ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsi + 0x800]
lea rdx, str.SyslogDest
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1800195cb
inc ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsi + 0x804]
lea rdx, str.SyslogDynamicCritic
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x180019600
inc ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x888]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1800292b0
lea r11, [rsp + 0x870]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18001a200
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, word [0x18006ed48]
movsd xmm0, qword [str.Objective]
mov dword [rsp + 0x20], ecx
mov word [rsp + 0x40], ax
xor eax, eax
xor ebx, ebx
movsd qword [rsp + 0x38], xmm0
lea r9, [0x18006ed58]
lea rcx, [rsp + 0x38]
lea edx, [rbx + 0x14]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
call fcn.180029e64
lea rax, [rsp + 0x30]
lea rdx, [0x18006ed68]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001a29a
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, 2
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x60
pop rbx
ret

Function at 0x18001a3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18001a3c0
xor eax, eax
add rsp, 0x28
ret
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001a3c4
cmp rax, 3
jb 0x18001a3b9
movzx edx, byte [rcx]
lea eax, [rdx - 0x61]
cmp al, 0x19
jbe 0x18001a3e5
sub dl, 0x41
cmp dl, 0x19
ja 0x18001a3b9
cmp byte [rcx + 1], 0x3a
jne 0x18001a3b9
cmp byte [rcx + 2], 0x5c
jne 0x18001a3b9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18001a3b9
test al, 0x10
mov eax, 0
setne al
inc eax
add rsp, 0x28
ret
Function at 0x18001a420
Capabilities:
Enumerate files on windows
Enumerate files recursively
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rdx
mov rbx, rcx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18001a450
cmp rax, 0xc
jbe 0x18001a4b2
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001a463
lea rdx, [rcx - 0xc]
lea rcx, [0x18006f0b8]
add rdx, rax
call fcn.18002a2a8
test eax, eax
jne 0x18001a4b2
lea rdx, [rsp + 0x280]
lea rcx, [0x18006f0c8]
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rsp + 0x280]
mov rcx, rbx
call fcn.18002a2a8
test eax, eax
je 0x18001a4c3
mov r8, rdi
mov edx, 0xa08
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x18001a668
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test byte [rsp + 0x30], 0x10
je 0x18001a668
lea r9, str._s
lea rcx, [rsp + 0x170]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x3b0], rsi
mov qword [rsp + 0x20], rbx
call fcn.180029e64
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001a657
nop dword [rax]
lea rax, [rsp + 0x5c]
lea r9, [0x18006f07c]
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x28], rax
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.180029e64
test byte [rsp + 0x30], 0x10
je 0x18001a5c0
cmp byte [rsp + 0x5c], 0x2e
je 0x18001a641
lea rcx, [rsp + 0x5c]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001a587
cmp rax, 1
je 0x18001a5ab
cmp byte [rsp + 0x5d], 0x2e
je 0x18001a641
cmp rax, 2
jne 0x18001a641
lea rcx, [rsp + 0x170]
mov rdx, rdi
call fcn.18001a420
jmp 0x18001a641
lea rcx, [rsp + 0x170]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18001a5d0
cmp rax, 0xc
jbe 0x18001a62b
lea rdx, [rsp + rax + 0x164]
lea rcx, str.msaudite.dll
call fcn.18002a2a8
test eax, eax
jne 0x18001a62b
lea rdx, [rsp + 0x280]
lea rcx, str._SystemRoot__system32msaudite.dll
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x170]
call fcn.18002a2a8
test eax, eax
je 0x18001a641
lea rcx, [rsp + 0x170]
mov r8, rdi
mov edx, 0xa08
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18001a540
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x390
pop rdi
ret