joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015bc
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov dword [rbp - 0x18], 4
cmp dword [rbp + 0x10], 0
jne 0x1400015de
mov ecx, 0
call sub.msvcrt.dll_exit
mov eax, dword [rbp + 0x10]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000160c
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, 0x23f2c
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000164a
mov ecx, 0
call sub.msvcrt.dll_exit
lea rdx, [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x23f2c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
je 0x1400016fd
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0x23f2c
lea r8, section..data
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x1400016b1
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x1400019d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400027f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400027f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a0a4]
mov rbx, rcx
test esi, esi
jle 0x140001b70
mov rax, qword [0x14002a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a70
mov rcx, rbx
call fcn.140002490
mov rdi, rax
test rax, rax
je 0x140001b92
mov rax, qword [0x14002a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400025d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b20
add dword [0x14002a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14002a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400019d0
nop dword [rax]
xor esi, esi
jmp 0x140001a98
mov rax, qword [0x14002a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400019d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400019d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002100
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a0e0]
test rbx, rbx
je 0x14000215c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002153
test rsi, rsi
je 0x140002153
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002138
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140027390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000250d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002504
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024b0
add rax, 0x28
cmp rax, r9
jne 0x1400024f0
xor eax, eax
ret

Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140027390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000252f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002538
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000252f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140027390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800331d0
Capabilities:
Check os version
Get common file path

Disassembly:
push rbx
mov eax, 0x1170
call fcn.180170370
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 7
mov word [rdx], ax
mov dword [rsp + 0x28], 1
lea ecx, [rax + 1]
call fcn.18011e4e4
mov qword [rsp + 0x20], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.18013d3d0
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180033267
cmp dword [rsp + 0x44], 6
setae cl
mov rax, qword [rsp + 0x20]
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call fcn.180084280
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x160]
call fcn.18013d3d0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1800332cb
lea rax, [rsp + 0x160]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800332b0
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.180003960
lea rcx, [rsp + 0x20]
call fcn.180084590
nop
lea rcx, [rsp + 0x20]
call fcn.1800839e0
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.18011e4c0
add rsp, 0x1170
pop rbx
ret
Function at 0x180049770
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x69], rdx
xor r13d, r13d
mov dword [rbp - 0x79], r13d
mov dword [rbp - 0x59], 0x6c0047
mov dword [rbp - 0x55], 0x62006f
mov dword [rbp - 0x51], 0x6c0061
mov dword [rbp - 0x4d], 0x52005c
mov dword [rbp - 0x49], 0x410043
mov dword [rbp - 0x45], 0x370056
mov dword [rbp - 0x41], 0x340045
mov dword [rbp - 0x3d], 0x440037
mov dword [rbp - 0x39], 0x390041
mov dword [rbp - 0x35], 0x2d0033
mov dword [rbp - 0x31], 0x460041
mov dword [rbp - 0x2d], 0x310034
mov dword [rbp - 0x29], 0x34002d
mov dword [rbp - 0x25], 0x350034
mov dword [rbp - 0x21], 0x2d0030
mov dword [rbp - 0x1d], 0x300039
mov dword [rbp - 0x19], 0x440043
mov dword [rbp - 0x15], 0x33002d
mov dword [rbp - 0x11], 0x430031
mov dword [rbp - 0xd], 0x380037
mov dword [rbp - 9], 0x320031
mov dword [rbp - 5], 0x320035
mov dword [rbp - 1], 0x370038
mov dword [rbp + 3], 0x5f0044
mov dword [rbp + 7], 0x540052
mov dword [rbp + 0xb], 0x520050
mov dword [rbp + 0xf], 0x54004f
mov dword [rbp + 0x13], 0x430045
mov dword [rbp + 0x17], 0x5f0054
mov dword [rbp + 0x1b], 0x55004d
mov dword [rbp + 0x1f], 0x450054
mov dword [rbp + 0x23], 0x58
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 7
mov word [rdx], r13w
lea rax, [rbp - 0x59]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r13w
jne 0x1800498b2
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.180003960
nop
mov dword [rbp - 0x79], 1
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18011e4c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18004a670
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x28]
call fcn.180049770
nop
cmp qword [rax + 0x18], 8
jb 0x18004a699
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18004a6e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004a6e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004a728
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x38], xmm0
xor eax, eax
mov word [rsp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete dil
test rbx, rbx
je 0x18004a719
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.180146ad4
int3

Function at 0x18004aa30
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor bpl, bpl
mov eax, dword [0x180214408]
test al, 1
jne 0x18004aaa5
or eax, 1
mov dword [0x180214408], eax
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [0x180214470], xmm0
mov word [0x180214460], bx
lea r8d, [rbx + 0x2f]
lea rdx, str.GlobalRCAVD277DCA8_31E4_4750_8F68_057A8C0F2C93
lea rcx, [0x180214460]
call fcn.180003960
lea rcx, [0x180186560]
call fcn.18011e8ec
nop
lea rdx, [0x180214460]
lea rcx, [rsp + 0x30]
call fcn.180027f70
mov esi, 1
mov dword [rsp + 0x20], esi
cmp qword [rax + 0x18], 8
jb 0x18004aac9
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov ecx, esi
and ecx, 0xfffffffe
mov dword [rsp + 0x20], ecx
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18004ab20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ab1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ab6b
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bpl
cmp eax, 0xb7
cmove ebx, esi
test rdi, rdi
je 0x18004ab53
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180146ad4
int3
Function at 0x180053180
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rdx
mov qword [rax - 0x18], rdx
xor ebp, ebp
mov dword [rax - 0x48], ebp
mov eax, dword [0x1802144a0]
lea rsi, [0x180214480]
test al, 1
jne 0x1800531fa
or eax, 1
mov dword [0x1802144a0], eax
mov qword [0x180214490], rbp
mov qword [0x180214498], 7
mov word [0x180214480], bp
xor r8d, r8d
lea rdx, [0x18019e818]
mov rcx, rsi
call fcn.180003960
lea rcx, [0x180186890]
call fcn.18011e8ec
nop
mov rcx, rsi
call fcn.180086a50
test al, al
je 0x180053216
mov rdx, rsi
mov rcx, rbx
call fcn.180027f70
jmp 0x1800533bb
lea rcx, [rsp + 0x28]
call fcn.18002f250
mov rdi, rax
cmp rsi, rax
je 0x180053254
mov rcx, rsi
call fcn.1800038e0
movups xmm0, xmmword [rdi]
movups xmmword [0x180214480], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180214490], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x180053296
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180053291
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800533e2
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, rsi
cmp qword [0x180214490], 0
je 0x1800533b3
lea r8, [0x18020dd30]
lea rcx, [rsp + 0x28]
call fcn.180082d30
mov rdi, rax
cmp rsi, rax
je 0x1800532ff
mov rcx, rsi
call fcn.1800038e0
movups xmm0, xmmword [rdi]
movups xmmword [0x180214480], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180214490], xmm1
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180053341
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005333c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800533dc
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov edx, 0x10
mov rcx, rsi
call fcn.1800828f0
mov rcx, rsi
call fcn.180086a50
test al, al
jne 0x180053375
mov rcx, rsi
call fcn.180086ef0
mov rcx, rsi
cmp qword [0x180214498], 8
cmovae rcx, qword [0x180214480]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x1800533b0
and eax, 0xfffffffd
mov rcx, rsi
cmp qword [0x180214498], 8
cmovae rcx, qword [0x180214480]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, rsi
mov rcx, rbx
call fcn.180027f70
mov dword [rsp + 0x20], 1
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180146ad4
int3
call fcn.180146ad4
int3
Function at 0x180057a10
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x24], r14d
mov qword [rsp + 0x58], r14
mov edi, 1
mov ecx, edi
call fcn.18011e4e4
mov rbx, rax
mov qword [rsp + 0x58], rax
mov byte [rax], r14b
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x7c]
call fcn.18013d3d0
mov dword [rbp - 0x80], 0x11c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180057aa7
cmp dword [rbp - 0x7c], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.1800849a0
test al, al
je 0x180057bc5
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x180057bc5
lea rdx, [rsp + 0x60]
call fcn.180084a30
nop
cmp qword [rsp + 0x70], 0
jne 0x180057ae6
xor bl, bl
jmp 0x180057b71
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180093b60
mov dword [rsp + 0x20], edi
mov rdx, rax
mov rcx, rsi
call fcn.180057c10
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180057b5c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057b57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c01
call fcn.18011e904
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov bl, 1
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x180057baf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057baa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057bfb
call fcn.18011e904
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
jmp 0x180057bc7
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.1800839e0
movzx eax, bl
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.18011e4c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180146ad4
nop
call fcn.180146ad4
int3
Function at 0x1800586a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x38], r8d
cmp qword [rcx + 0x18], 0
je 0x180058883
test r8d, r8d
je 0x180058883
mov edx, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180058883
lea r15, [rsi + 0xb0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r14, [rsi + 0x88]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x180058746
cmp eax, 0x3e5
jne 0x18005877d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
mov rdx, rbp
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
jne 0x180058873
cmp eax, 0x3e5
je 0x180058873
mov edx, 2
lea rcx, [0x180213e70]
call fcn.1800b6b50
mov esi, eax
xor bl, bl
test eax, eax
je 0x180058875
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x50], xmm1
xor ebx, ebx
mov word [rsp + 0x40], bx
mov r8d, edi
lea rdx, str.send_data_failed__err:__d
lea rcx, [rsp + 0x40]
call fcn.1800b7080
mov dword [rsp + 0x28], 0x96
lea rax, str.RC::RCNamePipeClient::SendData
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea r8, [rsp + 0x40]
lea edx, [rbx + 2]
lea rcx, [0x180213e70]
call fcn.1800b6ba0
cmp esi, 1
jbe 0x180058812
lea rdx, [rsp + 0x40]
lea rcx, [0x180213e70]
call fcn.1800b6f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180058850
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005884b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800588a6
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bx
xor bl, bl
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
jmp 0x180058885
mov bl, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
jmp 0x180058885
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18011e4c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.180146ad4
int3
Function at 0x1800591b0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r10, qword [rcx + 0x18]
test r10, r10
jne 0x1800591eb
xor al, al
jmp 0x180059343
xor ebp, ebp
mov dword [rcx + 0xdc], ebp
lea rax, [rcx + 0x60]
lea rdx, [rcx + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rbp + 4]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
setne dil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x180059230
cmp eax, 0x3e5
sete dil
test dil, dil
jne 0x18005933f
cmp qword [0x180213e70], rbp
je 0x18005933f
lea rcx, [0x180213e70]
call fcn.1800b5f10
mov rax, qword [0x180213e70]
cmp byte [rax + 0x78], bpl
je 0x18005933f
cmp dword [rax + 0x80], 2
jb 0x18005933f
movzx ebx, byte [rax + 0x84]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm1
mov word [rsp + 0x38], bp
mov r8d, esi
lea rdx, str.request_read_size_failed___d
lea rcx, [rsp + 0x38]
call fcn.1800b7080
mov dword [rsp + 0x28], 0x149
lea rax, str.RC::RCNamePipeClient::RequestReadSize
mov qword [rsp + 0x20], rax
lea r9, str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
lea r8, [rsp + 0x38]
mov edx, 2
lea rcx, [0x180213e70]
call fcn.1800b6ba0
test bl, bl
je 0x1800592ee
lea rdx, [rsp + 0x38]
lea rcx, [0x180213e70]
call fcn.1800b6f40
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18005932c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180059327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180059366
call fcn.18011e904
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011e4c0
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
call fcn.180146ad4
int3