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

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140044e72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140044eec
mov rdi, r14
mov rcx, rbx
call fcn.140030260
test rax, rax
jle 0x140044ec4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140305e90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140044edc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140044ee4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140044e86
sub r14, rdi
jmp 0x140044fcf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140044f03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140044f05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140044f37
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140305e90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140044fcc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140044f72
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140044fad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1402cfc14
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140044fcc
cmp rbp, rax
ja 0x140044f80
test rbp, rbp
je 0x140044fcc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1402cfc14
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140069260
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rdi, r8
mov rbx, rdx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp]
call fcn.140306610
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
mov dword [rbp - 0xc], eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x70], 0x68
cmp qword [rbx + 0x18], 7
jbe 0x1400692dc
mov rbx, qword [rbx]
mov r8, rbx
mov edx, 0x200
lea rcx, [rbp]
call fcn.1402c5e00
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400693bc
mov dword [rbp - 0x78], ebx
mov edx, 0xea60
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [rbx + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140069364
mov eax, dword [rbp - 0x78]
mov dword [rdi], eax
jmp 0x1400693a2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x1b
lea rdx, str.GetExitCodeProcess_failed:
lea rcx, [rsp + 0x50]
call fcn.140015370
nop
lea rcx, [rsp + 0x50]
call fcn.14005f630
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400693fc
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.CreateProcess_failed:
lea rcx, [rsp + 0x50]
call fcn.140015370
nop
lea rcx, [rsp + 0x50]
call fcn.14005f630
nop
lea rcx, [rsp + 0x50]
call fcn.140016400
xor al, al
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140071c90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x100
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, r8
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov rdi, qword [0x1404aba30]
mov qword [rsp + 0x60], rdi
lea rdx, str.MBUpdatrService::Start.
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
xor r8d, r8d
lea edx, [r14 + 2]
mov rcx, rdi
call fcn.140071c50
mov rdx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r14
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140071d40
lea rcx, [rsp + 0x68]
call fcn.140030be0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14009c1c0
nop
lea rcx, str.Starting_
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0xd8], reloc.WS2_32.dll_inet_addr
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], reloc.WS2_32.dll_inet_addr
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.1400099a0
nop
mov rcx, rax
call fcn.14005f4f0
nop
lea rcx, [rsp + 0xb0]
call fcn.140016400
nop
lea rcx, [rsp + 0x90]
call fcn.140016400
nop
lea rcx, [rsp + 0x68]
call fcn.1400166f0
mov rdx, qword [rsi]
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140071de0
lea rcx, [rdi + 8]
mov r8, rbx
call fcn.140030940
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rdi
lea r8, [0x140071fe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x2c], 4
mov dword [rdi + 0x34], r14d
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x3c], r14d
lea rdx, [rdi + 0x28]
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
nop
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14007fc80
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x10], rdi
jne 0x14007fd5b
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rdi
lea r8d, [rdi + 0x21]
lea rdx, str.Attempt_to_check_svc_without_name
lea rcx, [rbp - 0x39]
call fcn.140015370
nop
lea rcx, [rbp - 0x19]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14007fcf0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0xf
cmova rdx, qword [rbp - 0x39]
mov r8, qword [rbp - 0x29]
mov rcx, rax
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rbp - 0x19]
call fcn.140016400
nop
lea rcx, [rbp - 0x39]
call fcn.140016400
xor al, al
jmp 0x14007fea4
mov qword [rbp + 0x17], rdi
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000004
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x17], rax
test rax, rax
jne 0x14007fdb6
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
lea r8d, [rax + 0x16]
lea rdx, str.OpenSCManager_failed:
lea rcx, [rbp - 0x39]
call fcn.140015370
nop
lea rcx, [rbp - 0x39]
call fcn.14005f630
nop
lea rcx, [rbp - 0x39]
call fcn.140016400
xor bl, bl
jmp 0x14007fe98
mov qword [rbp + 0xf], rdi
cmp qword [rbx + 0x18], 7
jbe 0x14007fdc4
mov rbx, qword [rbx]
mov r8d, reloc.WS2_32.dll_sendto
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
test rax, rax
jne 0x14007fe1a
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
lea r8d, [rax + 0x14]
lea rdx, str.OpenService_failed:
lea rcx, [rbp - 0x39]
call fcn.140015370
nop
lea rcx, [rbp - 0x39]
call fcn.14005f630
nop
lea rcx, [rbp - 0x39]
call fcn.140016400
xor bl, bl
jmp 0x14007fe8e
mov dword [rbp + 7], edi
xor ecx, ecx
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
mov dword [rbp + 0x3f], ecx
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
mov r9d, 0x24
lea r8, [rbp + 0x1f]
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14007fe87
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
lea r8d, [rax + 0x1d]
lea rdx, str.QueryServiceStatusEx_failed:
lea rcx, [rbp - 0x39]
call fcn.140015370
nop
lea rcx, [rbp - 0x39]
call fcn.14005f630
nop
lea rcx, [rbp - 0x39]
call fcn.140016400
xor bl, bl
jmp 0x14007fe8e
cmp dword [rbp + 0x23], 1
setne bl
lea rcx, [rbp + 0xf]
call fcn.1400e25a0
nop
lea rcx, [rbp + 0x17]
call fcn.1400e25a0
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140098490
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.MBAMWsc.exe
lea rcx, [rbp - 0x31]
call fcn.140030be0
nop
lea r8, [rbp - 0x31]
mov rdx, rbx
lea rcx, [rbp + 0x2f]
call fcn.14009b580
nop
lea rcx, [rbp - 0x31]
call fcn.1400166f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, sendto
lea rdx, str.MBAMWsc_Legacy.exe
lea rcx, [rbp - 0x11]
call fcn.140030be0
nop
lea r8, [rbp - 0x11]
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.14009b580
nop
lea rcx, [rbp - 0x11]
call fcn.1400166f0
xor r8d, r8d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.1400b21a0
test al, al
je 0x14009867a
cmp dword [rbp - 0x39], 0
jne 0x14009867a
call fcn.14001dd40
mov rcx, rax
call fcn.1400aad70
lea rcx, [rbp + 0xf]
cmp eax, 0xc
jb 0x14009857a
xor r8d, r8d
xor edx, edx
call fcn.1400b3640
jmp 0x14009867a
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
cmp qword [rbp + 0x27], 7
cmova rcx, qword [rbp + 0xf]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009867a
lea rdx, str.Error:_Failed_to_move_file
lea rcx, [0x1404abb40]
call fcn.1400337c0
mov rbx, rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x31]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400985d8
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
lea rdx, str._to
mov rcx, rax
call fcn.1400337c0
mov rbx, rax
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140098611
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
lea rdx, str.._Error
mov rcx, rax
call fcn.1400337c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140032140
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
nop
lea rcx, [rbp - 0x11]
call fcn.140016400
nop
lea rcx, [rbp - 0x31]
call fcn.140016400
nop
lea rcx, [rbp + 0xf]
call fcn.1400166f0
nop
lea rcx, [rbp + 0x2f]
call fcn.1400166f0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1402b5c00
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret
Function at 0x1400aae80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13d, edx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140306610
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14043ca90]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
mov word [rsp + 0x40], di
mov word [rsp + 0x44], di
mov word [rsp + 0x4c], di
mov word [rsp + 0x48], di
movzx esi, di
movzx r15d, di
movzx r14d, di
mov edx, 0x100
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400aaf31
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rdi + 0x13]
lea rdx, str.C:WindowsSystem32
jmp 0x1400aaf4f
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400aaf40
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140030940
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.wintrust.dll
lea rcx, [rsp + 0x50]
call fcn.14002ac00
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400b2df0
test al, al
je 0x1400ab00c
lea eax, [r13 - 6]
mov ebx, 1
cmp eax, ebx
jbe 0x1400aafc2
cmp r13d, 5
jne 0x1400aafd6
mov r15d, 0x1773
mov r14d, 0x504b
jmp 0x1400aafd1
movzx edi, bx
mov r15d, 0x1db1
mov r14d, 0x5f3e
mov esi, 6
cmp word [rsp + 0x40], si
jne 0x1400aaff4
cmp word [rsp + 0x44], di
jne 0x1400aaff4
cmp word [rsp + 0x48], r15w
jne 0x1400aaff4
cmp word [rsp + 0x4c], r14w
je 0x1400ab003
mov eax, 0xff
cmovb ebx, eax
not bl
shr bl, 7
jmp 0x1400ab00e
xor bl, bl
not bl
shr bl, 7
jmp 0x1400ab00e
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.1400166f0
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ab130
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 0x40000002
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ab1a3
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1400ab1df
mov ecx, edi
inc edi
cmp ecx, 0x32
jae 0x1400ab1d9
lea ecx, [rax + 0x1a]
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x40000002
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400ab170
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400ab256
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400ab232
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x1400ab23f
cmp rsi, 0xffffffffffffffff
jne 0x1400ab1a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001d6f0
mov dword [rsp + 0x38], ebx
lea rcx, str.CreateToolhelp32Snapshot_call_failed_with_error___d_._Cannot_enumerate_processes_on_this_system_
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonProcessUtils.cpp
lea rcx, str.ProcessUtils
mov r9d, 0x9f
mov r10, qword [rax]
lea rdx, str.mb::common::system::ProcessUtils::EnumerateProcesses
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 4
call qword [r10 + 0x20]
mov eax, ebx
jmp 0x1400ab261
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.1400849f0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400ab1c2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ab290
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor ebx, ebx
lea rdi, [0x1404aca30]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.140138820
nop
xorps xmm0, xmm0
movups xmmword [0x1404aca58], xmm0
mov qword [0x1404aca68], rbx
mov qword [0x1404aca70], 7
mov word [0x1404aca58], bx
movups xmmword [0x1404aca78], xmm0
mov qword [0x1404aca88], rbx
mov qword [0x1404aca90], 7
mov word [0x1404aca78], bx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14005d9c0
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call fcn.140306610
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400ab36a
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14043ca90]
movdqu xmmword [rsp + 0x48], xmm1
mov word [rsp + 0x38], bx
jmp 0x1400ab380
mov r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.14002d9c0
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140045ec0
mov rdx, rax
lea rcx, [0x1404aca58]
call fcn.14002d920
lea rcx, [rsp + 0x60]
call fcn.1400166f0
nop
lea rcx, [rsp + 0x38]
call fcn.1400166f0
cmp qword [0x1404aca68], 2
jne 0x1400ab404
lea rdx, [0x1404aca58]
lea rcx, [rsp + 0x60]
call fcn.140030a90
lea rdx, [0x1404aca78]
mov rcx, rax
call fcn.1400b27b0
test al, al
je 0x1400ab404
mov r8d, 1
lea rdx, [0x14041f038]
lea rcx, [0x1404aca78]
call fcn.14002ac00
nop
lea rcx, [rsp + 0x30]
call fcn.14005d9a0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b5c00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400ad9f0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x60
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov rsi, rdx
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov dword [rsp + 0x54], r14d
jbe 0x1400ada20
mov rcx, qword [rcx]
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x54]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x98], rdi
lea r8d, [r9 + 6]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1400adb5c
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400adb5c
mov rbp, qword [rsi + 8]
mov edi, eax
mov rdx, qword [rsi]
mov rcx, rbp
sub rcx, rdx
mov byte [rsp + 0x50], r14b
cmp rax, rcx
jae 0x1400ada86
add rax, rdx
jmp 0x1400adaba
jbe 0x1400adabe
mov rax, qword [rsi + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x1400adaa6
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
call fcn.1400b0080
jmp 0x1400adabe
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.140306610
lea rax, [rdi + rbp]
mov qword [rsi + 8], rax
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400adacb
mov rcx, qword [rbx]
mov r9, qword [rsi]
lea rax, [rsp + 0x54]
mov edx, dword [rbx + 0x10]
mov r8d, 6
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400adb58
call fcn.14001d6f0
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400adb14
mov rbx, qword [rbx]
mov dword [rsp + 0x40], eax
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_failed_for__hs._Error__u
mov qword [rsp + 0x30], rax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
lea rax, str.Crypto
mov r9d, 0x3c6
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov dword [rsp + 0x20], 1
call rsi
jmp 0x1400adbc5
mov al, 1
jmp 0x1400adbc7
call fcn.14001d6f0
mov ebp, dword [rsp + 0x54]
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400adb7f
mov rbx, qword [rbx]
mov dword [rsp + 0x48], ebp
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov dword [rsp + 0x40], eax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_returned_invalid_size_for__hs._Error__u_Size__u
mov qword [rsp + 0x30], rax
mov r9d, 0x3bf
lea rax, str.Crypto
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call rsi
xor al, al
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402b5c00
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret
Function at 0x1400b1370
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1404953c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
lea edx, [r8 + 0x16]
lea rcx, [rsp + 0x40]
call fcn.1400f8570
nop
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x1400b1490
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b13fb
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b13fb
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b13fb
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x10]
call fcn.1400b0390
mov rbx, rax
lea rax, vtable.mb::common::system::ScopedAny_void____ptr64__int____cdecl___void____ptr64___int___cdecl_CloseHandle_void____ptr64___2__0__0_.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
lea rcx, [rbx + 1]
test rcx, 0xfffffffffffffffe
jne 0x1400b1500
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x1400b148b
mov rax, qword [rdi]
mov rbp, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsi + 0x18]
cmp qword [rdx + 0x18], 7
jbe 0x1400b1455
mov rdx, qword [rdx]
mov dword [rsp + 0x38], eax
lea rax, str.Failed_to_duplicate_required_token._Error:__u.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov r9d, 0x1be
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonTokenUtilities.cpp
lea rdx, str.mb::common::system::Impersonator::ImpersonateSystemIfNeeded
mov rcx, rdi
call rbp
xor dil, dil
jmp 0x1400b150e
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400b13be
cmp dword [rsp + 0x50], 1
sete bpl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b14f3
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b14f3
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b14f3
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x1400b13fb
mov al, 1
jmp 0x1400b1525
mov rdx, rbx
mov rcx, rsi
call fcn.1400b1170
movzx edi, al
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400b1521
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402b5c00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret