joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r10d, r10d
mov rdi, r8
mov ebx, edx
mov r11, rcx
lea r9, [rsp]
mov eax, r10d
mov byte [r9], al
inc eax
inc r9
cmp eax, 0x100
jl 0x180005c91
mov word [rsp + 0x100], r10w
xor r9b, r9b
lea rdx, [rsp]
movzx r8d, byte [rdx]
mov eax, r10d
and eax, 0x8000000f
jge 0x180005cc5
dec eax
or eax, 0xfffffff0
inc eax
movsxd rcx, eax
inc r10d
inc rdx
movzx eax, byte [rcx + rdi]
lea rcx, [rsp]
add al, r8b
add r9b, al
movzx eax, r9b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx - 1], al
mov byte [rcx], r8b
cmp r10d, 0x100
jl 0x180005cb0
test ebx, ebx
jle 0x180005d73
movzx edx, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
mov r9, rbx
nop dword [rax]
inc r8b
lea r11, [r11 + 1]
mov byte [rsp + 0x100], r8b
movzx eax, r8b
lea r8, [rsp]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x101], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
movzx ecx, byte [rsp + rdx]
add cl, byte [rsp + r8]
movzx eax, cl
movzx ecx, byte [rsp + rax]
xor byte [r11 - 1], cl
dec r9
jne 0x180005d10
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret
jmp 0x180005c60

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor r10d, r10d
mov rdi, r8
mov ebx, edx
mov r11, rcx
lea r9, [rsp]
mov eax, r10d
mov byte [r9], al
inc eax
inc r9
cmp eax, 0x100
jl 0x180005c91
mov word [rsp + 0x100], r10w
xor r9b, r9b
lea rdx, [rsp]
movzx r8d, byte [rdx]
mov eax, r10d
and eax, 0x8000000f
jge 0x180005cc5
dec eax
or eax, 0xfffffff0
inc eax
movsxd rcx, eax
inc r10d
inc rdx
movzx eax, byte [rcx + rdi]
lea rcx, [rsp]
add al, r8b
add r9b, al
movzx eax, r9b
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx - 1], al
mov byte [rcx], r8b
cmp r10d, 0x100
jl 0x180005cb0
test ebx, ebx
jle 0x180005d73
movzx edx, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
mov r9, rbx
nop dword [rax]
inc r8b
lea r11, [r11 + 1]
mov byte [rsp + 0x100], r8b
movzx eax, r8b
lea r8, [rsp]
add r8, rax
add dl, byte [r8]
mov byte [rsp + 0x101], dl
movzx ecx, byte [r8]
movzx eax, dl
lea rdx, [rsp]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r8], al
mov byte [rdx], cl
movzx edx, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
movzx ecx, byte [rsp + rdx]
add cl, byte [rsp + r8]
movzx eax, cl
movzx ecx, byte [rsp + rax]
xor byte [r11 - 1], cl
dec r9
jne 0x180005d10
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret
jmp 0x180005c60
Function at 0x180008970
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
inc r8
cmp byte [rcx + r8], al
jne 0x1800089b4
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180008b30
lea rcx, [rsp + 0x20]
call fcn.180008c00
lea rcx, [rsp + 0x78]
call fcn.1800088c0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0xa8
ret
Function at 0x18000a940
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, dword [rsp + 0x60]
xorps xmm0, xmm0
mov rsi, r9
mov rdi, rdx
cvtsi2sd xmm0, r8
cvtdq2pd xmm6, xmm6
test r8, r8
jns 0x18000a974
addsd xmm0, qword [0x18006bcf8]
mulsd xmm0, qword [0x18006bcd8]
mov qword [rsp + 0x40], rbx
call fcn.18002ae20
mulsd xmm0, qword [0x18006bce8]
comisd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x20]
jbe 0x18000a9ad
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbp
xor ebp, ebp
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov qword [rsp + 0x50], r14
inc rcx
cmp byte [rdi + rcx], bpl
jne 0x18000a9c0
inc rcx
call fcn.18002a67c
mov r14, rax
test rax, rax
jne 0x18000a9e1
mov byte [rsi], bpl
jmp 0x18000aaeb
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], bpl
jne 0x18000a9e4
inc rdx
mov r9, rbx
mov r8, rdi
mov rcx, rax
call fcn.18002a5b4
nop
inc rbx
cmp byte [r14 + rbx], bpl
jne 0x18000aa00
test ebx, ebx
jle 0x18000aae0
lea eax, [rbx - 1]
lea r10, [rsi + 1]
lea r9, [r14 + 2]
shr eax, 2
inc eax
mov ebx, eax
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rcx, [r9 - 2]
lea r8d, [rdx + 4]
nop word [rax + rax]
movzx eax, byte [rcx]
cmp al, 0x3d
jne 0x18000aa4b
inc edx
jmp 0x18000aa71
cmp al, 0x2b
jne 0x18000aa54
mov byte [rcx], 0x3e
jmp 0x18000aa71
cmp al, 0x2f
jne 0x18000aa5d
mov byte [rcx], 0x3f
jmp 0x18000aa71
cmp al, 0x39
jg 0x18000aa65
add al, 4
jmp 0x18000aa6f
cmp al, 0x5a
jg 0x18000aa6d
sub al, 0x41
jmp 0x18000aa6f
sub al, 0x47
mov byte [rcx], al
inc rcx
dec r8
jne 0x18000aa40
movzx ecx, byte [r9 - 1]
movzx eax, byte [r9 - 2]
inc ebp
sar cl, 4
shl al, 2
or cl, al
mov byte [r10 - 1], cl
cmp edx, 2
jge 0x18000aacb
movzx ecx, byte [r9]
movzx eax, byte [r9 - 1]
inc ebp
sar cl, 2
shl al, 4
or cl, al
mov byte [r10], cl
cmp edx, 1
jge 0x18000aac4
movzx eax, byte [r9]
shl al, 6
or al, byte [r9 + 1]
inc ebp
mov byte [r10 + 1], al
jmp 0x18000aacf
mov byte [r10 + 1], 0
jmp 0x18000aacf
mov byte [r10], 0
add r10, 3
add r9, 4
dec rbx
jne 0x18000aa30
mov rcx, r14
call fcn.180029620
movsxd rax, ebp
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18000ab10
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
movd xmm6, dword [rsp + 0x60]
xorps xmm0, xmm0
mov rbx, r8
mov rdi, r9
mov rsi, rdx
cvtsi2sd xmm0, rbx
cvtdq2pd xmm6, xmm6
test r8, r8
jns 0x18000ab4c
addsd xmm0, qword [0x18006bcf8]
divsd xmm0, qword [0x18006bce8]
call fcn.18002ae20
mulsd xmm0, qword [0x18006bcf0]
addsd xmm0, qword [0x18006bce0]
comisd xmm0, xmm6
jbe 0x18000ab78
or rax, 0xffffffffffffffff
jmp 0x18000ac15
xor r8d, r8d
test rbx, rbx
je 0x18000ac0e
lea rdx, [rsi + 2]
lea r9, [0x18006bc90]
nop
movzx eax, byte [rdx - 2]
shr rax, 2
movzx eax, byte [rax + r9]
mov byte [rdi], al
movzx eax, byte [rdx - 2]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [rdx - 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r9]
mov byte [rdi + 1], al
dec rbx
je 0x18000abe1
movzx eax, byte [rdx - 1]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rdx]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + r9]
jmp 0x18000abe3
mov al, 0x3d
mov byte [rdi + 2], al
dec rbx
je 0x18000abf8
movzx eax, byte [rdx]
and eax, 0x3f
movzx ecx, byte [rax + r9]
jmp 0x18000abfa
mov cl, 0x3d
mov byte [rdi + 3], cl
add rdi, 4
add rdx, 3
add r8, 4
dec rbx
jne 0x18000ab90
mov byte [rdi], 0
lea rax, [r8 + 1]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x18000ac30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2b8
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov r15, rdx
mov r14, r8
lea rcx, [rbp - 0x6f]
xor r12d, r12d
xor bl, bl
xor edx, edx
mov r8d, 0x1ff
mov qword [rsp + 0x70], r12
mov byte [rbp - 0x70], bl
call fcn.1800292e0
lea r9, str.SOFTWAREInterSect_AllianceAuditService_
lea rcx, [rbp - 0x70]
or r8, 0xffffffffffffffff
mov edx, 0x200
call fcn.180029e64
lea rcx, [rbp - 0x70]
or r9, 0xffffffffffffffff
mov r8, r15
mov edx, 0x200
call fcn.180029f1c
lea rax, [rsp + 0x70]
lea rdx, [rbp - 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000ae48
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x64]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x2e8], rdi
mov edi, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x18000ae40
mov ecx, dword [rsp + 0x78]
mov qword [rsp + 0x2d0], rsi
inc ecx
call fcn.180029908
mov ecx, dword [rsp + 0x68]
inc ecx
call fcn.180029908
mov ecx, dword [rsp + 0x64]
inc ecx
mov rsi, rax
call fcn.180029908
mov ecx, dword [rsp + 0x68]
lea rdx, str.__s__n
inc ecx
mov r8, r15
mov rbx, rax
mov dword [rsp + 0x6c], ecx
mov ecx, dword [rsp + 0x64]
inc ecx
mov dword [rsp + 0x60], ecx
mov rcx, r14
call fcn.18002a910
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x6c]
inc eax
mov r8, rsi
mov edx, edi
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x18000ae36
mov eax, dword [rsp + 0x7c]
cmp eax, 1
jne 0x18000ae15
mov eax, dword [rsp + 0x60]
lea rdx, str._s__s__n
mov r9, rbx
mov r8, rsi
mov rcx, r14
mov byte [rax + rbx], r12b
call fcn.18002a910
inc edi
jmp 0x18000ada0
cmp eax, 4
jne 0x18000ae2f
mov r9d, dword [rbx]
lea rdx, str._s_d_n
mov r8, rsi
mov rcx, r14
call fcn.18002a910
inc edi
jmp 0x18000ada0
mov rsi, qword [rsp + 0x2d0]
mov bl, 1
mov rdi, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x2a0]
mov r14, qword [rsp + 0x2a8]
mov r12, qword [rsp + 0x2b0]
test rcx, rcx
je 0x18000ae70
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x2b8
pop rbx
pop rbp
ret
Function at 0x18000b580
Capabilities:
Resolve function by hash

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rdi, rdx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x78]
call fcn.1800292e0
mov dword [rsp + 0x70], 0x68
xor ebx, ebx
mov qword [rsp + 0x50], rbx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov byte [rbp + 0x110], al
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x111]
call fcn.1800292e0
mov dword [rbp], 0x4d485343
mov word [rbp + 4], 0x5244
mov byte [rbp + 6], bl
xor edx, edx
mov r8d, 0xfd
lea rcx, [rbp + 7]
call fcn.1800292e0
lea rdx, str.024NPHJcdMLqN1GT53Yjdhj2mJGAxh0cd3oJDvLADBmi3sQ4xIOWQqYNnqJ2QMPVm27NNbPcdMG_m2Dcd3oJDvP2DvP2Drr
lea rcx, [rbp - 0x20]
call fcn.180001d30
nop
cmp qword [rax + 0x18], 0x10
jb 0x18000b638
mov rax, qword [rax]
lea rcx, [rbp]
mov qword [rsp + 0x20], rcx
mov r9, rdi
mov r8, rax
mov edx, 0xfa
lea rcx, [rbp + 0x110]
call fcn.180002ab0
nop
cmp qword [rbp - 8], 0x10
jb 0x18000b669
mov rcx, qword [rbp - 0x20]
call fcn.180027f2c
mov qword [rbp - 8], reloc.ACTIVEDS.dll_FreeADsMem
mov qword [rbp - 0x10], rbx
mov byte [rbp - 0x20], 0
mov edx, 0x16b3fe72
mov ecx, 0x6a4abc5b
call fcn.1800055a0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x110]
xor ecx, ecx
call rax
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800292b0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000c7d0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dword [0x18009caf4], 2
mov rdi, rcx
jl 0x18000c82d
lea rdx, str.Entering_CNTService::Initialize__
call fcn.18000cb60
cmp dword [0x18009caf4], 2
jl 0x18000c82d
mov r8, qword [rdi + 0x50]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 2
mov rcx, rdi
call fcn.18000cb60
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 2
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
xorps xmm0, xmm0
mov dword [rdi + 0x64], eax
mov qword [rdi + 0x6c], rbp
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbp
test ebx, ebx
jne 0x18000c906
cmp qword [rdi + 0x88], rbp
jne 0x18000c88e
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x18000c8c8
mov qword [rsp + 0x40], rbp
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
lea edx, [r8 + 1]
lea r9d, [r8 + 0x68]
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp dword [0x18009caf4], 2
jl 0x18000c8ea
mov r8, qword [rdi + 0x50]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 1
mov rcx, rdi
call fcn.18000cb60
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
jmp 0x18000c9b0
cmp qword [rdi + 0x88], rbp
jne 0x18000c922
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x88], rax
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x18000c95c
mov qword [rsp + 0x40], rbp
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
lea edx, [r8 + 4]
lea r9d, [r8 + 0x69]
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
cmp dword [0x18009caf4], 2
jl 0x18000c97e
mov r8, qword [rdi + 0x50]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 4
mov rcx, rdi
call fcn.18000cb60
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 4
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp dword [0x18009caf4], 2
jl 0x18000c9ab
lea rdx, str.Leaving_CNTService::Initialize__
mov rcx, rdi
call fcn.18000cb60
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800292b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000cb60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x20b0
call fcn.18002add0
sub rsp, rax
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x20a0], rax
mov rbx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x80]
lea r9, [0x18006b4d0]
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea rax, [rsp + 0x60]
lea r9, [0x18006b520]
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 8]
lea r9, str.__s__s___lu____s__s_:
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
lea rax, [0x18006b184]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0xa0]
mov edx, 0x2000
call fcn.180029e64
lea r8, [rsp + 0x20d0]
lea rcx, [rsp + 0xa0]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x18000cc60
mov r9, qword [rsp + 0x20c8]
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0xa0]
mov edx, 0x2000
add rcx, rax
or r8, 0xffffffffffffffff
sub rdx, rax
call fcn.18002abe4
lea rax, [rsp + 0xa0]
lea r9, [0x18006b02c]
lea rcx, [rsp + 0xa0]
or r8, 0xffffffffffffffff
mov edx, 0x2000
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rbx + 0x84], 0
je 0x18000cce7
lea rdx, [rsp + 0xa0]
lea rcx, [0x18006b0a4]
call fcn.18002aa50
mov rcx, qword [rsp + 0x20a0]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x20b0
pop rbx
ret
Function at 0x18000cd10
Capabilities:
Access the windows event log
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dword [0x18009caf4], 2
mov rbx, qword [0x18009ca10]
jl 0x18000cd48
lea rdx, str.Entering_CNTService::ServiceMain__
mov rcx, rbx
call fcn.18000cb60
lea rdx, [0x18000ce90]
lea rcx, [rbx + 8]
mov qword [rsp + 0x80], rdi
mov dword [rbx + 0x5c], 2
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x18000cde0
xor edi, edi
xorps xmm0, xmm0
mov qword [rsp + 0x60], rdi
movdqu xmmword [rsp + 0x50], xmm0
cmp qword [rbx + 0x88], rdi
jne 0x18000cd9d
lea rdx, [rbx + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rbx + 0x88], rax
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x18000ce65
mov qword [rsp + 0x40], rdi
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
lea edx, [r8 + 1]
lea r9d, [r8 + 0x67]
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
jmp 0x18000ce65
mov rcx, rbx
call fcn.18000c7d0
test eax, eax
je 0x18000ce05
mov rax, qword [rbx]
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x74], 1
mov dword [rbx + 0x64], edi
mov qword [rbx + 0x6c], rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x18009caf4], 2
jl 0x18000ce38
mov r8, qword [rbx + 0x50]
lea rdx, str.CNTService::SetStatus__lu___lu_
mov r9d, 1
mov rcx, rbx
call fcn.18000cb60
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x5c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp dword [0x18009caf4], 2
jl 0x18000ce65
lea rdx, str.Leaving_CNTService::ServiceMain__
mov rcx, rbx
call fcn.18000cb60
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rsi
ret
xor edx, edx
jmp 0x18000cd10
Function at 0x18000d540
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x5f0
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov eax, dword [rcx + 0x84]
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x202
mov dword [0x18009caf4], eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000d5ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.WSAStartup_failed:_WSA_ERROR:__d_r_n
lea rcx, [rsp + 0x1e0]
mov r9d, eax
mov edx, 0x400
call fcn.180029e88
cmp dword [0x18009caf4], 9
jl 0x18000d5ba
lea rcx, [rsp + 0x1e0]
call fcn.1800169b0
mov ecx, dword [reloc.ACTIVEDS.dll_ADsBuildVarArrayStr]
mov eax, 8
mov qword [rsp + 0x608], rdi
inc ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180029908
xor ebx, ebx
mov qword [rsi + 0x90], rax
mov eax, dword [reloc.ACTIVEDS.dll_ADsBuildVarArrayStr]
inc eax
je 0x18000d646
nop dword [rax + rax]
mov edx, 1
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
lea rdi, [rbx*8]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsi + 0x90]
mov qword [rdi + rcx], rax
mov rax, qword [rsi + 0x90]
cmp qword [rdi + rax], 0
je 0x18000d6e6
mov eax, dword [reloc.ACTIVEDS.dll_ADsBuildVarArrayStr]
inc ebx
inc eax
cmp ebx, eax
jb 0x18000d600
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x18009d1a0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x18009d1a8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r8, str.GlobalSnareAgentLock
lea rcx, [rsp + 0x20]
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [0x18009d1b0], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x18009d198], rax
test rax, rax
jne 0x18000d705
cmp dword [0x18009caf4], 9
jl 0x18000d701
lea rdx, str.I_cannot_create_the_Snare_Agent_Mutex_lock._This_probably_means_that_you_already_have_another_instance_of_the_Snare_Agent_running._nPlease_stop_the_other_incarnation_of_the_Snare_Agent__eg:_net_stop_snare__before_continuing.
mov rcx, rsi
call fcn.18000cb60
xor eax, eax
jmp 0x18000d754
cmp dword [0x18009caf4], 9
jl 0x18000d701
lea rdx, str.CreateEvent____d_failed
mov r8d, ebx
mov rcx, rsi
call fcn.18000cb60
xor eax, eax
jmp 0x18000d754
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xa8], rax
mov r8d, dword [0x18009caf4]
cmp r8d, 9
jl 0x18000d740
lea rdx, str.SNARE_Initialisation_complete
mov rcx, rsi
call fcn.18000cb60
mov r8d, dword [0x18009caf4]
lea rdx, str.SNAREDEBUG:__d
mov rcx, rsi
call fcn.18000cb60
mov eax, 1
mov rdi, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.1800292b0
mov rbx, qword [rsp + 0x610]
add rsp, 0x5f0
pop rsi
ret