joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bbd30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400bbd75
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400bbd75
lea rcx, [rsp + 0x20]
call qword [case.0x1400a66b7.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400bd9c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400bda1c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400bda2c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c1410
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400c1490
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c1654
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c1634
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c14ed
lea ebp, [rax + 0xe]
jmp 0x1400c14f9
cmp eax, 0x17
jne 0x1400c15a1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c15a1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c15a1
cmp rax, rbp
jb 0x1400c15a1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c15dc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c15cb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c158e
call qword [case.0x1400a66b7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c15b0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c159e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c14e0
jmp 0x1400c15e2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400c15e2
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400c15e2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c15f7
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400c162f
test rbx, rbx
je 0x1400c162a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400c1601
mov rbx, r13
jmp 0x1400c1643
test rbx, rbx
jne 0x1400c1643
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c3620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400c366a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c365a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c36b4
cmp qword [rbx + 0x10], 0
jne 0x1400c369f
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400e0774]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c369f
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c36d8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c36cf
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400c58e0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400c591a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400c5918
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c7c60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c7ca2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c7ce5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c7d41
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400c7d00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c7d83
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ed6c2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ed6c3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c7d50
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140004040
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000408a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000408a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000408a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000408a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000408a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000408c
xor al, al
add rsp, 0x28
ret
Function at 0x100009db0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x10002d840]
cmp ax, 0xcb
je 0x100009eec
cmp ax, 0xcc
je 0x100009eec
nop
mov rax, qword [0x1000399d0]
test rax, rax
je 0x100009ded
mov ecx, dword [0x1000397c0]
call rax
mov rbx, rax
jmp 0x100009df4
lea rbx, [0x1000397c8]
cmp word [0x1000397b0], 0
jle 0x100009e1c
lea rcx, [0x100039780]
call fcn.10000a0d0
mov rcx, rbx
call fcn.100009870
mov rcx, rbx
call fcn.100009900
nop
mov rsi, qword [rbx]
jmp 0x100009e49
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x100009e42
mov rdx, rsi
mov rcx, rbx
call fcn.100008af0
jmp 0x100009e46
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x100009e28
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x1000397b0], 0
jle 0x100009eec
lea rdx, [0x100039690]
mov rcx, rbx
call fcn.100008c70
mov rsi, rax
test rax, rax
je 0x100009eb8
mov rax, qword [0x100039730]
mov qword [rsi + 0x18], rax
cmp qword [0x100039730], 0
je 0x100009ea8
mov rax, qword [0x100039730]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x100039730], rax
nop
sub word [0x1000397b0], 1
cmp word [0x1000397b0], 0
sete bl
lea rcx, [0x100039780]
call fcn.10000a0f0
test bl, bl
je 0x100009eec
lea rcx, [0x100039780]
call fcn.10000a0b0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x10000c550
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x1000393a0], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.10000c730
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x1000393a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.100001d80
call sub.kernel32.dll_GetCommandLineA
mov qword [0x10002d8b0], rax
mov r14, rax
jmp 0x10000c6d7
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x10000c5d8
cmp byte [r14], 0
je 0x10000c6e1
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x10000c640
mov al, byte [r14]
cmp al, 1
jb 0x10000c638
sub al, 0x20
jbe 0x10000c614
sub al, 2
je 0x10000c620
jmp 0x10000c638
test dil, dil
je 0x10000c646
add ebx, 1
jmp 0x10000c63c
cmp byte [r14 + 1], 0x22
je 0x10000c630
test dil, dil
sete dil
jmp 0x10000c63c
add r14, 1
jmp 0x10000c63c
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x10000c600
test esi, esi
je 0x10000c6d4
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.10000c730
xor dil, dil
mov r14, r12
mov rdx, qword [0x1000393a0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x10000c6c8
mov al, byte [r14]
cmp al, 1
jb 0x10000c6b8
sub al, 0x20
jbe 0x10000c68c
sub al, 2
je 0x10000c6a0
jmp 0x10000c6b8
test dil, dil
je 0x10000c6ce
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x10000c6c4
cmp byte [r14 + 1], 0x22
je 0x10000c6b0
test dil, dil
sete dil
jmp 0x10000c6c4
add r14, 1
jmp 0x10000c6c4
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x10000c678
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x10000c5dc
mov dword [0x100039390], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x1000393a0]
call fcn.100009b90
mov rax, qword [0x1000393a0]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret

Function at 0x100011ca0
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x100011d21
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.100006780
cmp ebx, 1
jle 0x100011d10
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.1000063e0
jmp 0x100011d2c
mov rcx, rsi
mov rdx, r13
call fcn.100004920
nop
mov rcx, rbp
call fcn.100011c80
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100011f10
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x10003a2b0]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.100004920
mov eax, ebx
lea rdx, [0x10003a2f0]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x100011f30
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x100011fe4
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.100005440
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.10000df60
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x100011fe4
lea rcx, [0x100011db0]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x100011e60]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.100011ef0
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret

Function at 0x100012680
Capabilities:
Check os version

Disassembly:
lea rsp, [rsp - 0xb8]
mov qword [0x10003a330], 0
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rsp + 0x30]
mov dword [0x10003a170], eax
mov eax, dword [rsp + 0x24]
mov dword [0x10003a180], eax
mov eax, dword [rsp + 0x28]
mov dword [0x10003a190], eax
mov eax, dword [rsp + 0x2c]
mov dword [0x10003a1a0], eax
lea rdx, [0x10003a1b1]
lea rcx, [rsp + 0x34]
mov r8d, pe_nt_image_headers64
call fcn.100001d80
lea rcx, [rsp + 0x34]
call fcn.100002760
mov byte [0x10003a1b0], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x10003a340], rax
test rax, rax
je 0x100012728
mov rcx, qword [0x10003a340]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x10003a330], rax
nop
cmp dword [0x10003a180], 6
jae 0x10001273c
mov dword [0x10002e030], 0
nop
cmp dword [0x10003a180], 6
jb 0x100012758
cmp dword [0x10003a190], 1
jb 0x100012758
mov dword [0x10002e040], 2
nop
lea rsp, [rsp + 0xb8]
ret

Function at 0x140006bb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400080a0]
test rax, rax
je 0x140006c02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006c02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006c02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006c02
cmp dword [rcx + 0x84], 0xe
jbe 0x140006c02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006c04
xor al, al
add rsp, 0x28
ret
Function at 0x140010b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x188
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov eax, dword [0x140018034]
cmp eax, 0xffffffff
jne 0x140010c74
mov qword [rsp + 0x180], rbx
lea rcx, [rsp + 0x64]
xor ebx, ebx
mov qword [rsp + 0x50], 0x11c
xor edx, edx
mov dword [0x140018034], ebx
mov r8d, 0x100
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rsp + 0x164], bx
mov r8b, 3
mov dword [rsp + 0x166], eax
lea edx, [rbx + 2]
mov word [rsp + 0x16a], ax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x23]
mov qword [rsp + 0x54], 6
mov r8, rax
mov word [rsp + 0x164], bx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140010c66
lea rax, [rsp + 0x38]
mov dword [0x140018034], 1
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c66
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableLUA
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010c5b
cmp dword [rsp + 0x30], ebx
setne bl
mov dword [0x140018034], ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x140018034]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140013630
add rsp, 0x188
ret

Function at 0x140010c90
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, r8
mov rbx, rdx
test rdx, rdx
je 0x140010cc0
cmp word [rdx], 0
jne 0x140010cde
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rbx, [rsp + 0x90]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, str.runas
mov dword [rsp + 0x20], 0x70
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0x540
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140010d3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010d5f
mov rcx, qword [rsp + 0x88]
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140013630
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
Function at 0x1400115c0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
test edx, edx
jne 0x140011630
call fcn.140010b10
test eax, eax
je 0x140011630
lea r8, str._s__t
xor edx, edx
call fcn.140010c90
test eax, eax
je 0x140011618
mov edx, eax
mov ecx, 0x803
call fcn.140010d80
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013630
add rsp, 0x50
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013630
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x68], rbp
xor edx, edx
mov qword [rsp + 0x70], rsi
xor ecx, ecx
mov r8d, 0x2000b
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x14001173d
lea r8d, [rsi + 0x34]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14001172c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400116d4
mov qword [rsp + 0x78], rdi
mov edi, dword [rsp + 0x24]
cmp edi, 3
jne 0x1400116ca
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1400116a8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov edi, esi
cmovne edi, dword [rsp + 0x24]
cmp edi, 3
je 0x1400116ca
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, 1
mov rdi, qword [rsp + 0x78]
je 0x1400116e7
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140011712
mov rcx, rbx
mov esi, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011743
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011743
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140011743
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013630
add rsp, 0x50
pop rbx
ret
Function at 0x140011d10
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140018820]
lea r8, str.ZuluServerAgent
xor ecx, ecx
lea rdx, str.STATIC
mov qword [rsp + 0x58], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r8, [0x140011c90]
mov edx, 0xfffffffc
mov rcx, rax
mov qword [0x140018818], rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r8d, r8d
lea rcx, [0x1400118f0]
xor edx, edx
mov qword [0x140018810], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140011de2
nop dword [rax]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140011dc0
mov rcx, qword [0x140018810]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140018810]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x98
ret

Function at 0x140012490
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbp, rcx
cmp rdx, 0xffffffffffffffff
je 0x140012515
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rbx, eax
test eax, eax
js 0x140012515
jne 0x1400124c8
mov al, 1
jmp 0x140012517
mov rax, 0xffffffffffffffff
mov ecx, ebx
add ecx, 1
cmovb rcx, rax
lea edx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
test rax, rax
je 0x140012515
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140013300
cmp eax, ebx
je 0x14001252c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r9d, ebx
mov byte [rbx + rsi], 0
mov r8, rsi
mov rcx, rbp
call fcn.1400129c0
mov rcx, rsi
movzx ebx, al
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test bl, bl
je 0x140012560
lea r9, [rbp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileTime]
movzx eax, bl
jmp 0x140012517

Function at 0x140013300
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, 0xffffffff
cmovne ecx, dword [rsp + 0x30]
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013630
add rsp, 0x48
ret