joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f120
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
cmp qword [rdx + 0x18], 0x10
jb 0x14001f15b
mov rdx, qword [rdx]
mov qword [rbp + 7], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], sil
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], sil
jne 0x14001f180
lea rcx, [rbp + 7]
call fcn.140001350
nop
cmp qword [rdi + 0x18], 0x10
jb 0x14001f19d
mov rdi, qword [rdi]
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], 0xf
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14001f1b0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140001350
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001f250
mov dword [rbp + 0x2f], r14d
mov dword [rbp + 0x33], 4
mov dword [rbp + 0x37], 4
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea rax, [rbp + 0x33]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x37]
lea rdx, [0x140062ce8]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
cmove esi, dword [rbp + 0x2f]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14001f287
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f282
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f2fa
call fcn.140027ffc
mov qword [rbp - 9], r14
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14001f2ce
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f2c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f2f4
call fcn.140027ffc
mov eax, esi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140027fa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14002e938
nop
call fcn.14002e938
nop
Function at 0x14001f300
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, r8d
mov rdi, rcx
cmp qword [rdx + 0x18], 0x10
jb 0x14001f331
mov rdx, qword [rdx]
xor r14d, r14d
mov qword [rbp - 9], r14
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], r14b
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], r14b
jne 0x14001f352
lea rcx, [rbp - 9]
call fcn.140001350
nop
cmp qword [rdi + 0x18], 0x10
jb 0x14001f36f
mov rdi, qword [rdi]
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 0xf
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14001f380
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x29]
call fcn.140001350
mov dword [rbp + 0x1f], esi
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0x20206
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001f40c
lea r8, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae r8, qword [rbp - 9]
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea rdx, [0x140062ce8]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14001f443
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f43e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f4aa
call fcn.140027ffc
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x14001f48a
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f485
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f4a4
call fcn.140027ffc
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140027fa0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14002e938
nop
call fcn.14002e938
nop
Function at 0x140021970
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebx, ebx
lea r9, [rsp + 0x48]
mov edi, eax
mov dword [rsp + 0x5c], ebx
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rbx
mov edx, edi
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x18]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1400219d5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400219d5
cmp dword [rcx], ebx
jne 0x1400219cf
mov eax, edi
jmp 0x140021a47
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor edx, edx
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x58]
xor ecx, ecx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test r8d, r8d
je 0x140021a39
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
movups xmm0, xmmword [rdx + rcx*8]
movsd xmm1, qword [rdx + rcx*8 + 0x10]
movsd qword [rsp + 0x40], xmm1
cmp dword [rsp + 0x40], 0
movups xmmword [rsp + 0x30], xmm0
je 0x140021a62
inc ebx
cmp ebx, r8d
jb 0x140021a10
mov rcx, rdx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140027fa0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov rcx, rdx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, dword [rsp + 0x30]
jmp 0x140021a47

Function at 0x140021bc0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x140021bf0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x140021c70
Capabilities:
Delete registry key
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140021d4b
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140014120
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov r8d, 0x10000
mov rcx, rbx
cmovae rdx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdx, qword [rsp + 0x48]
mov rdi, rax
cmp rdx, 0x10
jb 0x140021d14
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021d0f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021e34
call fcn.140027ffc
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rdi, rdi
je 0x140021d42
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 2
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x140021d50
lea rcx, [rsp + 0x30]
call fcn.14001f4b0
cmp qword [rax + 0x18], 0x10
jb 0x140021d75
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
mov r9d, 0xf023f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140021db9
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140062ce8]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140021df2
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ded
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021e2e
call fcn.140027ffc
mov ebx, 4
nop word [rax + rax]
mov ecx, 0x19
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x140021e00
call fcn.140021e40
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140027fa0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14002e938
int3
call fcn.14002e938
int3
Function at 0x140021e40
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
lea rbp, [rsp - 0x1620]
mov eax, 0x1720
call fcn.140028c80
sub rsp, rax
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x1610], rax
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x1000
call fcn.14002a960
mov r8d, 0x800
lea rdx, [rbp + 0x610]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x410
call fcn.14002a960
mov edx, 0x49
lea rcx, [rsp + 0x50]
call fcn.140014550
cmp qword [rax + 0x18], 8
jb 0x140021ebe
mov rax, qword [rax]
lea r9, [rbp + 0x610]
mov r8, rax
mov edx, 0x208
lea rcx, [rbp + 0x200]
call fcn.140021ab0
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140021f1b
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f16
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002203f
call fcn.140027ffc
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x200
call fcn.14002a960
mov edx, 0x4a
lea rcx, [rsp + 0x50]
call fcn.140014550
cmp qword [rax + 0x18], 8
jb 0x140021f45
mov rax, qword [rax]
mov r8d, 0x100
lea rdx, [rbp]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140021f9a
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f95
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022039
call fcn.140027ffc
xor ecx, ecx
lea rdx, [rbp + 0x200]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
movups xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x20], ecx
mov word [rbp - 0x30], cx
lea rcx, [rbp]
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x70], 0x68
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x34], 1
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1610]
xor rcx, rsp
call fcn.140027fa0
add rsp, 0x1720
pop rbp
ret
call fcn.14002e938
int3
call fcn.14002e938
int3
Function at 0x140023480
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x1a8], rax
xor r15d, r15d
mov edi, r15d
call fcn.140021970
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400234c4
xor eax, eax
jmp 0x1400236c3
mov edx, 0x1e
mov qword [rsp + 0x2d8], rsi
lea rcx, [rbp + 0x188]
call fcn.140014550
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140023677
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x14002366e
mov qword [rsp + 0x2d0], rbx
nop dword [rax]
lea rcx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140023530
cmp qword [rbp + 0x1a0], 8
lea r10, [rbp + 0x188]
mov r11, qword [rbp + 0x198]
lea rcx, [rsp + 0x6c]
cmovae r10, qword [rbp + 0x188]
mov r9, r11
cmp rax, r11
cmovb r9, rax
test r9, r9
je 0x1400235b4
movzx edx, word [r10]
movzx r8d, word [rsp + 0x6c]
cmp dx, r8w
jb 0x14002364f
lea rbx, [rsp + 0x6c]
sub r10, rbx
cmp dx, r8w
ja 0x14002364f
cmp r9, 1
je 0x1400235b4
movzx edx, word [r10 + rcx + 2]
add rcx, 2
dec r9
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x14002358c
jmp 0x14002364f
cmp r11, rax
jb 0x14002364f
ja 0x14002364f
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14002364f
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140023646
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x180]
mov r9d, 4
mov dword [rbp + 0x180], 4
lea r8, [rbp + 0x184]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002363b
cmp dword [rbp + 0x184], r14d
cmove edi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140023520
mov rbx, qword [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x1a0]
mov rsi, qword [rsp + 0x2d8]
cmp rdx, 8
jb 0x1400236c1
mov rcx, qword [rbp + 0x188]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400236bc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400236e7
call fcn.140027ffc
mov eax, edi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rsp
call fcn.140027fa0
mov rdi, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop r15
pop r14
pop rbp
ret
call fcn.14002e938
int3
Function at 0x140025a40
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140025c36
mov edx, 9
lea rcx, [rsp + 0x30]
call fcn.140014120
cmp qword [rax + 0x18], 0x10
jb 0x140025aa1
mov rax, qword [rax]
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdx, qword [rsp + 0x48]
mov rdi, rax
cmp rdx, 0x10
jb 0x140025af3
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025aee
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025c5d
call fcn.140027ffc
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
test rdi, rdi
je 0x140025c2d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140025c24
lea rax, [rsp + 0x50]
mov r9d, 0x24
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140025c24
cmp dword [rsp + 0x5c], 2
mov qword [rsp + 0xa0], rbx
mov ebx, dword [rsp + 0x6c]
jne 0x140025bff
mov qword [rsp + 0xa8], r14
mov r14d, 0x2710
nop word [rax + rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x70]
shr edx, 3
cmp edx, 0x3e8
jae 0x140025b9b
mov edx, 0x3e8
jmp 0x140025ba2
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov r9d, 0x24
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140025bf7
cmp dword [rsp + 0x6c], ebx
jbe 0x140025be2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [rsp + 0x6c]
mov esi, eax
jmp 0x140025bf0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x70]
ja 0x140025bf7
cmp dword [rsp + 0x5c], 2
je 0x140025b80
mov r14, qword [rsp + 0xa8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x5c], 4
mov rbx, qword [rsp + 0xa0]
jne 0x140025c36
mov al, 1
jmp 0x140025c38
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140027fa0
lea r11, [rsp + 0x90]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002e938
int3

Function at 0x14003eee4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003ecd4
Function at 0x140048f8c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140049013
mov rsi, rbx
cmp word [rax], bp
je 0x140048fd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140048fbc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140048fb8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043dbc
mov rdi, rax
test rax, rax
je 0x140049000
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a290
mov rbp, rdi
xor ecx, ecx
call fcn.140042d5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006150
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140154040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
xor edi, edi
mov rbp, qword [rdx + 0x10]
lea rcx, [rbp + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rsi
call fcn.1400107f0
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1400061b1
mov rdx, qword [rsi]
lea r9, [rbp - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
test r9, r9
je 0x14000627f
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400061d2
mov rax, qword [rbx]
movzx eax, byte [rax + rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rdx], al
cmp qword [rbx + 0x18], 0xf
jbe 0x1400061f1
mov rax, qword [rbx]
lea r8, [rdi + rax]
jmp 0x1400061f8
lea r8, [rbx + rdi]
mov rax, rbx
movzx ecx, byte [rax + rdi + 1]
shr rcx, 4
movsx rax, byte [r8]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rdx + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140006227
mov rax, qword [rbx]
lea r8, [rax + 1]
jmp 0x14000622e
lea r8, [rbx + 1]
mov rax, rbx
add r8, rdi
movzx ecx, byte [rax + rdi + 2]
shr rcx, 6
movsx rax, byte [r8]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rdx + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000625d
mov rax, qword [rbx]
movsx rax, byte [rax + rdi + 2]
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rdx + 3], al
add rdx, 4
add rdi, 3
cmp rdi, r9
jb 0x1400061c5
cmp rdi, rbp
jae 0x140006330
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140006295
mov rax, qword [rbx]
movzx eax, byte [rax + rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rdx], al
lea rax, [rbp - 1]
cmp rdi, rax
jne 0x1400062d5
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400062ba
mov rax, qword [rbx]
movsx rax, byte [rax + rdi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rdx + 1], al
mov al, 0x3d
add rdx, 2
jmp 0x14000632a
cmp qword [rbx + 0x18], 0xf
jbe 0x1400062e5
mov rax, qword [rbx]
lea r8, [rdi + rax]
jmp 0x1400062ec
lea r8, [rdi + rbx]
mov rax, rbx
movzx ecx, byte [rax + rdi + 1]
shr rcx, 4
movsx rax, byte [r8]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rdx + 1], al
add rdx, 2
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000631c
mov rax, qword [rbx]
movsx rcx, byte [rax + rdi + 1]
and ecx, 0xf
movzx eax, byte [r10 + rcx*4]
mov byte [rdx], al
mov byte [rdx + 1], 0x3d
mov rcx, rbx
call fcn.140003c70
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140099c70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e090
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rdi, rcx
movzx ebp, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rbp, rax
movabs rcx, 0x100000001b3
imul rbp, rcx
movzx eax, byte [r8 + 1]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [r8 + 2]
xor rbp, rax
imul rbp, rcx
movzx eax, byte [r8 + 3]
xor rbp, rax
imul rbp, rcx
mov rdx, rbp
and rdx, qword [rdi + 0x30]
add rdx, rdx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
lea r12, [rdi + 8]
mov rsi, qword [r12]
cmp rax, rsi
je 0x14001e142
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [r8]
cmp ecx, dword [rax + 0x10]
je 0x14001e125
cmp rax, rdx
je 0x14001e13f
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14001e117
mov qword [r14], rax
mov byte [r14 + 8], 0
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rsi, rax
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rdi + 0x10], rax
jne 0x14001e160
lea rcx, [0x1400a2c20]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.140099c90
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rbx + 0x10], rax
mov rdx, qword [rdi + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x14001e19b
cvtsi2ss xmm0, rdx
jmp 0x14001e1b3
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [rdi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14001e1c6
cvtsi2ss xmm1, rcx
jmp 0x14001e1db
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rdi]
jbe 0x14001e231
mov rcx, rdi
call fcn.14001e440
mov rdx, rax
mov rcx, rdi
call fcn.14001e290
mov rdx, qword [rdi + 0x30]
and rdx, rbp
add rdx, rdx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rsi, qword [r12]
cmp rax, rsi
je 0x14001e231
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rbx + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x14001e22e
nop
cmp rax, rdx
je 0x14001e265
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14001e220
mov rsi, qword [rax]
mov rdx, qword [rsi + 8]
inc qword [rdi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdx
mov qword [rdx], rbx
mov qword [rsi + 8], rbx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x30]
and rax, rbp
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [r12]
jne 0x14001e26a
mov qword [rcx + rax*8], rbx
jmp 0x14001e27c
mov rsi, rax
jmp 0x14001e231
cmp r8, rsi
jne 0x14001e275
mov qword [rcx + rax*8], rbx
jmp 0x14001e281
cmp qword [rcx + rax*8 + 8], rdx
jne 0x14001e281
mov qword [rcx + rax*8 + 8], rbx
mov qword [r14], rbx
mov byte [r14 + 8], 1
jmp 0x14001e12d