joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6aba90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov r12d, dword [rsp + 0xb0]
mov rbx, rax
mov rbp, rcx
mov edi, edx
mov r15, r9
test r9, r9
je 0x6abc11
test dl, 4
jne 0x6abbc0
xor esi, esi
lea r13, str.topology_synthetic.c
nop
cmp dword [r15], 0xd
je 0x6abafc
mov r8d, 0x530
mov rdx, r13
lea rcx, str.mchild__type__HWLOC_OBJ_NUMANODE
call qword [sym.imp.msvcrt.dll__assert]
test r12d, r12d
je 0x6abb1c
cmp rbx, 1
jle 0x6abb19
mov ecx, 0x20
add r14, 1
sub rbx, 1
mov word [r14 - 1], cx
add esi, 1
cmp rbx, 1
jle 0x6abb34
mov edx, 0x5b
add r14, 1
sub rbx, 1
mov word [r14 - 1], dx
mov qword [rsp + 0x28], rbx
mov r9d, 0xffffffff
mov r8, r15
mov edx, edi
mov qword [rsp + 0x20], r14
mov rcx, rbp
add esi, 1
call fcn.006aa350
test eax, eax
js 0x6abc15
add esi, eax
cdqe
cmp rbx, rax
jg 0x6abb6f
test rbx, rbx
jle 0x6abb75
lea eax, [rbx - 1]
cdqe
add r14, rax
sub rbx, rax
cmp rbx, 1
jle 0x6abb8d
mov eax, 0x5d
add r14, 1
sub rbx, 1
mov word [r14 - 1], ax
mov r15, qword [r15 + 0x58]
add esi, 1
mov r12d, 1
test r15, r15
jne 0x6abae0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp r8d, 1
ja 0x6abc1c
cmp dword [r9], 0xd
jne 0x6abc1c
test r12d, r12d
je 0x6abbea
cmp rax, 1
jle 0x6abbea
mov r8d, 0x20
add r14, 1
sub rax, 1
mov word [r14 - 1], r8w
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8, r15
mov edx, edi
mov qword [rsp + 0x20], r14
mov rcx, rbp
call fcn.006aa350
test eax, eax
js 0x6abc15
lea esi, [rax + r12]
jmp 0x6abba3
xor esi, esi
jmp 0x6abba3
mov esi, 0xffffffff
jmp 0x6abba3
mov r9d, dword [rsp + 0xb8]
test r9d, r9d
jne 0x6abc3f
call qword [sym.imp.msvcrt.dll__errno]
mov esi, 0xffffffff
mov dword [rax], 0x16
jmp 0x6abba3
mov ecx, 2
call qword [fcn.00701940]
mov r8d, 0x5d
mov edx, 1
lea rcx, str.Cannot_export_to_synthetic_v1_if_multiple_memory_children_are_attached_to_the_same_location._n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x6abc29

Function at 0x6ac270
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00b58de0]
test eax, eax
je 0x6ac290
mov eax, dword [0x00b58ddc]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ac2d0
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00b58ddc], eax
mov dword [0x00b58de0], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6ac2a1
mov eax, dword [0x00b58ddc]
jmp 0x6ac2b7

Function at 0x6ac2f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00b58dd8]
test eax, eax
je 0x6ac310
mov eax, dword [0x00b58dd4]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6ac350
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00b58dd4], eax
mov dword [0x00b58dd8], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6ac321
mov eax, dword [0x00b58dd4]
jmp 0x6ac337
Function at 0x6adb90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00b58de8]
test eax, eax
je 0x6adbb0
mov eax, dword [0x00b58de4]
add rsp, 0x28
ret
lea rcx, str.HWLOC_XML_VERBOSE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6adbe0
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [0x00b58de4], eax
mov dword [0x00b58de8], 1
add rsp, 0x28
ret
mov eax, dword [0x00b58de4]
jmp 0x6adbcf
Function at 0x6b3e20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rdi, [0x00af0b16]
mov rbx, rcx
mov ecx, 2
mov r13, rdx
mov qword [rsp + 0xb0], r8
mov rsi, rbx
lea rdx, [0x00af0b18]
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
lea rax, str._dev_stdin
cmove rbx, rax
mov rcx, rbx
call sub.msvcrt.dll_fopen
mov r14, rax
test rax, rax
je 0x6b3f7c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.006f6350
test eax, eax
je 0x6b3f35
mov ecx, 0x1001
mov edi, 0x1000
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x6b3f6d
movabs r15, 0x7fffffffffffffff
mov rbp, rdi
xor ebx, ebx
jmp 0x6b3ee7
lea r12, [rbp + rbp]
mov rcx, rsi
lea rdx, [r12 + 1]
call sub.msvcrt.dll_realloc
test rax, rax
je 0x6b3f65
mov rdi, rbp
mov rsi, rax
mov rbp, r12
and rdi, r15
lea rcx, [rsi + rbx]
mov r9, r14
mov r8, rdi
mov edx, 1
call sub.msvcrt.dll_fread
add rbx, rax
mov byte [rsi + rbx], 0
cmp rdi, rax
je 0x6b3ec0
mov rcx, r14
add rbx, 1
call sub.msvcrt.dll_fclose
mov rax, qword [rsp + 0xb0]
mov qword [r13], rsi
mov qword [rax], rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x26]
mov ecx, 0x1001
mov edi, 0x1000
and ax, 0xf000
cmp ax, 0x8000
jne 0x6b3e9b
mov eax, dword [rsp + 0x34]
lea edi, [rax + 1]
movsxd rdi, edi
lea rcx, [rdi + 1]
jmp 0x6b3e9b
mov rcx, rsi
call fcn.00701710
mov rcx, r14
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x6b3f24
mov eax, 0xffffffff
jmp 0x6b3f24

Function at 0x6b69c0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ebx, dword [0x00844e70]
mov eax, dword [rsp + 0x40]
cmp ebx, 1
jbe 0x6b6a06
mov rdx, qword [0x00b58e58]
mov eax, ebx
shl eax, 6
test rdx, rdx
je 0x6b6a06
lea ecx, [rbx - 1]
add ebx, 0x3ffffff
movzx ecx, cx
shl ebx, 6
call rdx
movzx eax, ax
add eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x6b9900
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
cmp rdx, 2
jbe 0x6b9a96
movzx r10d, byte [rcx]
movzx eax, byte [rcx + 1]
lea r11, [rcx + 3]
sub rdx, 3
movzx esi, byte [rcx + 2]
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov edi, r10d
mov ecx, eax
shl r10d, 4
shr cl, 4
and r10d, 0x30
shl eax, 2
add r10d, ecx
mov ecx, esi
and eax, 0x3c
shr dil, 2
shr cl, 6
and esi, 0x3f
add ecx, eax
mov eax, 4
cmp r9, 3
ja 0x6b99ac
jmp 0x6b9a80
movzx r10d, byte [r11]
add r11, 3
add rax, 4
sub rdx, 3
movzx ecx, byte [r11 - 2]
movzx esi, byte [r11 - 1]
mov edi, r10d
shl r10d, 4
mov ebp, ecx
and r10d, 0x30
shl ecx, 2
shr bpl, 4
and ecx, 0x3c
shr dil, 2
add r10d, ebp
mov ebp, esi
and esi, 0x3f
shr bpl, 6
add ecx, ebp
cmp r9, rax
jb 0x6b9a80
and r10d, 0x7f
and ecx, 0x7f
and edi, 0x3f
movzx r10d, byte [rbx + r10]
movzx edi, byte [rbx + rdi]
mov byte [r8 + rax - 3], r10b
movzx r10d, byte [rbx + rcx]
mov rcx, rsi
and ecx, 0x3f
mov byte [r8 + rax - 4], dil
movzx ecx, byte [rbx + rcx]
mov byte [r8 + rax - 2], r10b
mov byte [r8 + rax - 1], cl
cmp rdx, 2
ja 0x6b9960
test rdx, rdx
jne 0x6b9a04
cmp rax, r9
jae 0x6b9a80
mov byte [r8 + rax], 0
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx ecx, byte [r11]
cmp rdx, 2
jne 0x6b9a8a
movzx r10d, byte [r11 + 1]
mov ebx, r10d
shl r10d, 2
shr bl, 4
and r10d, 0x3c
mov r11d, ecx
shl ecx, 4
lea rsi, [rax + 4]
and ecx, 0x30
shr r11b, 2
add ecx, ebx
cmp rsi, r9
ja 0x6b9a80
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
and r11d, 0x3f
and ecx, 0x7f
movzx ecx, byte [rbx + rcx]
movzx r11d, byte [rbx + r11]
mov byte [r8 + rax + 1], cl
lea rcx, [r8 + rax + 2]
mov byte [r8 + rax], r11b
add rax, 3
cmp rdx, 1
je 0x6b9a91
movzx r10d, r10b
movzx edx, byte [rbx + r10]
mov byte [rcx], dl
mov byte [r8 + rax], 0x3d
mov rax, rsi
jmp 0x6b99f1
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r10d, r10d
xor ebx, ebx
jmp 0x6b9a21
mov byte [rcx], 0x3d
jmp 0x6b9a73
mov r11, rcx
xor eax, eax
jmp 0x6b99ec
Function at 0x6be180
Capabilities:
Check for software breakpoints

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdx, [0x006bdee0]
mov rbx, rcx
lea rcx, [0x00b590c0]
call fcn.006d78b0
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x6be3d0
mov qword [rbx + 0x40], 0
mov rcx, rbx
call fcn.006bdfd0
lea rax, [rbx + 0xb8]
mov dword [rbx + 0x20], 0
mov ecx, 0x10
mov qword [rbx + 0xb8], rax
mov qword [rbx + 0xc0], rax
lea rax, [rbx + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx + 8], 0
mov qword [rbx + 0x48], 0
mov qword [rbx + 0x50], 0
call fcn.006ba730
mov rsi, rax
mov qword [rbx + 0x58], rax
test rax, rax
je 0x6be3a5
mov qword [rax], 0
lea r12, [rbx + 0xc8]
mov dword [rax + 8], 0
mov rcx, r12
mov qword [rbx + 0x68], 0
mov qword [rbx + 0x60], 0
mov qword [rbx + 0x70], 0
mov qword [rbx + 0x78], 0
mov qword [rbx + 0x80], 0
mov qword [rbx + 0x88], 0
mov qword [rbx + 0x90], 0
mov qword [rbx + 0x98], 0
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0xa8], 0
mov qword [rbx + 0xb0], 0
mov dword [rbx + 0x30], 0
call fcn.006d7ac0
mov edi, eax
test eax, eax
je 0x6be300
mov rcx, rsi
call fcn.006ba750
mov qword [rbx + 0x58], 0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov qword [rbx + 0x38], 0xffffffffffffffff
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rbx + 0xf0]
lea r8, [0x006e42a0]
mov rcx, rbx
call fcn.006bdcc0
mov edi, eax
test eax, eax
jne 0x6be3c0
mov eax, dword [rbx + 0x148]
test al, 8
je 0x6be350
mov edx, eax
and edx, 0xfffffff7
mov dword [rbx + 0x148], edx
test al, 1
jne 0x6be455
and eax, 4
mov eax, edx
je 0x6be350
mov rdx, qword [rbx + 0xf8]
sub dword [rdx + 8], 1
nop
or eax, 0x10
lea rcx, [0x00b59080]
mov dword [rbx + 0x148], eax
call sub.KERNEL32.DLL_EnterCriticalSection
mov ebp, dword [0x00b590ac]
cmp ebp, dword [0x00b590a8]
je 0x6be3f0
mov rax, qword [0x00b590b0]
movsxd rdx, ebp
lea rcx, [0x00b59080]
add ebp, 1
mov qword [rax + rdx*8], rbx
mov dword [0x00b590ac], ebp
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, edi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 0xfffff027
jmp 0x6be2d7
lea rcx, [0x00b59080]
mov edi, 0xe
call sub.KERNEL32.DLL_LeaveCriticalSection
mov rcx, r12
call sub.KERNEL32.DLL_DeleteCriticalSection
jmp 0x6be2c7
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.006bf1f0
lea r13d, [rbp + 8]
mov rcx, qword [0x00b590b0]
movsxd rdx, r13d
shl rdx, 3
call fcn.006ba790
test rax, rax
je 0x6be3af
mov ecx, dword [0x00b590a8]
mov qword [0x00b590b0], rax
cmp r13d, ecx
jle 0x6be443
add ebp, 7
movsxd r8, ecx
sub ebp, ecx
lea rdx, [rax + r8*8]
lea rcx, [r8 + rbp + 1]
lea rcx, [rax + rcx*8]
mov qword [rdx], 0
add rdx, 8
cmp rcx, rdx
jne 0x6be433
mov dword [0x00b590a8], r13d
mov ebp, dword [0x00b590ac]
jmp 0x6be37a
mov eax, edx
jmp 0x6be350
Function at 0x6bf860
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbp, rdx
mov r12, r8
call sub.msvcrt.dll_wcslen
mov rdi, rax
test rax, rax
je 0x6bf8b9
lea rbx, [rax - 1]
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
je 0x6bf910
cmp ax, 0x2f
jne 0x6bf8b4
jmp 0x6bf910
sub rbx, 1
movzx eax, word [rsi + rbx*2]
cmp ax, 0x2f
je 0x6bf910
cmp ax, 0x5c
je 0x6bf910
test rbx, rbx
jne 0x6bf8a0
test rbp, rbp
je 0x6bf8eb
mov ecx, 0x20a
call fcn.006ba730
mov qword [rbp], rax
test rax, rax
je 0x6bf9a6
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x6bf98e
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
mov qword [r12], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbx, rbx
je 0x6bf8b9
test rbp, rbp
je 0x6bf94b
lea r13, [rbx + rbx + 4]
mov rcx, r13
call fcn.006ba730
mov qword [rbp], rax
test rax, rax
je 0x6bf9a6
mov rcx, rax
lea r8, [rbx + 1]
mov rdx, rsi
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rbp]
xor ecx, ecx
mov word [rax + r13 - 2], cx
sub rdi, rbx
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.006ba730
mov qword [r12], rax
test rax, rax
je 0x6bf9a6
lea rdx, [rsi + rbx*2 + 2]
lea r8, [rdi - 1]
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rax, qword [r12]
xor edx, edx
mov word [rax + rbp - 2], dx
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rbp]
call fcn.006ba750
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x6bf981
lea rdx, [0x00af2700]
mov ecx, 0xe
call fcn.006bf130
nop
nop dword [rax + rax]

Function at 0x6c0ab0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x00de2100]
mov dword [0x00b590e0], eax
call fcn.006d7ac0
test eax, eax
jne 0x6c0b10
lea rax, [0x00b5a100]
lea rdx, [0x00b59100]
lea rcx, [rax + 0x288000]
nop
mov qword [rdx + 8], rax
add rax, 0x2880
add rdx, 0x10
mov qword [rdx - 0x10], 0
cmp rax, rcx
jne 0x6c0af0
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.006bf130
nop
nop
Function at 0x6c2690
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wrmdir]
cdqe
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x6c26c0
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.006bf1f0
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x6c2910
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
cdqe
mov qword [rbx + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x6c2940
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov rax, 0xfffffffffffff019
mov dword [rbx + 0x14c], ecx
cmp ecx, 0x7b
jne 0x6c2970
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
call fcn.006bf1f0
cdqe
jmp 0x6c295a
Function at 0x6c2980
Capabilities:
Create directory
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rcx, qword [rcx + 0x150]
call sub.msvcrt.dll_wcslen
cmp rax, 5
ja 0x6c29d0
mov qword [rsi + 0x88], 0xfffffffffffff019
mov dword [rsi + 0x14c], 0x57
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r13, qword [rsi + 0x150]
lea rbp, [rax + rax]
mov r8d, 6
lea rdx, str.XXXXXX
lea r12, [r13 + rbp - 0xc]
mov rcx, r12
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x6c29a5
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x6c2bc4
mov edi, 0x7fff
lea r15, [rsp + 0x38]
lea r14, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
movabs rbx, 0x8421084210842109
nop word [rax + rax]
mov r8, r15
mov edx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x6c2b19
mov rcx, qword [rsp + 0x38]
lea r10, [r13 + rbp]
mov r8, r12
nop dword [rax + rax]
mov rdx, rcx
add r8, 2
shr rdx, 1
mov rax, rdx
mul rbx
shr rdx, 4
mov rax, rdx
shl rax, 5
sub rax, rdx
add rax, rax
sub rcx, rax
movzx eax, word [r14 + rcx*2]
mov rcx, rdx
mov word [r8 - 2], ax
cmp r10, r8
jne 0x6c2a70
mov qword [rsp + 0x38], rdx
mov rcx, qword [rsi + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x6c2b69
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
jne 0x6c2b98
sub edi, 1
jne 0x6c2a40
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x6c2be5
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.006bf1f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6c29ba
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
cdqe
mov qword [rsi + 0x88], rax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x6c29ba
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6c29ba
mov rbx, qword [rsi + 0x98]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8d, 6
mov rdx, r12
lea rcx, [rbx + rax - 6]
call sub.msvcrt.dll_wcstombs
mov qword [rsi + 0x88], 0
jmp 0x6c2b35
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.006bf1f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6c2b35
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6c29ba
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6c2aed
Function at 0x6c31a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x150]
mov rbx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x6c3201
mov qword [rbx + 0x88], 0xfffffffffffff02c
xor esi, esi
mov dword [rbx + 0x14c], 0x10b
mov rcx, rsi
call fcn.006ba750
xor ecx, ecx
call fcn.006ba750
mov qword [rbx + 0x90], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, 0x290
call fcn.006ba730
mov rsi, rax
test rax, rax
je 0x6c32a0
mov rcx, rdi
lea r13, [0x00af29a0]
call sub.msvcrt.dll_wcslen
mov rbp, rax
test rax, rax
jne 0x6c32c0
lea rcx, [rbp + rbp + 8]
call fcn.006ba730
mov r12, rax
test rax, rax
je 0x6c32a0
mov r9, rdi
mov r8, r13
lea rdx, [rbp + 3]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rdx, [rsi + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rcx, r12
mov qword [rsi + 0x30], rax
call fcn.006ba750
cmp qword [rsi + 0x30], 0xffffffffffffffff
je 0x6c32f0
mov dword [rsi + 0x288], 0
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rbx + 0x88], 0xfffffffffffff027
mov dword [rbx + 0x14c], 0xe
jmp 0x6c31da
movzx eax, word [rdi + rax*2 - 2]
cmp ax, 0x5c
je 0x6c32dc
lea r13, str._s
cmp ax, 0x2f
jne 0x6c3232
lea r13, [0x00af29a8]
jmp 0x6c3232
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rdi
cmp eax, 2
je 0x6c3277
call rdi
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x6c31da

Function at 0x6cae90
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rbx, rcx
mov qword [rcx + 0x48], 0
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.006cadd0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x6cc020
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
test byte [rdx + 0x58], 0x40
je 0x6cc120
mov rcx, qword [rbx + 0x70]
test r9d, r9d
jne 0x6cc0da
cmp rcx, 0xffffffffffffffff
je 0x6cc068
mov r8d, 0x33f
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle__INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
xor r8d, r8d
mov rcx, qword [rsi + 0x120]
mov qword [rsp + 0x38], 0
mov r9d, 0xff
mov dword [rsp + 0x30], 0
mov edx, 0x40040003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov r8, rax
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
je 0x6cc18e
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov r9d, 0xffffffff
mov rdx, rsi
call fcn.006cbdd0
mov rcx, qword [rbx + 0x70]
test eax, eax
jne 0x6cc180
cmp rcx, 0xffffffffffffffff
je 0x6cc1e0
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
je 0x6cc150
add dword [rsi + 0x78], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x88], r9d
mov r8d, 0x33c
lea rdx, str.src_win_pipe.c
lea rcx, [0x00af2e58]
call qword [sym.imp.msvcrt.dll__assert]
mov r9d, dword [rsp + 0x88]
jmp 0x6cc03b
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6cc112
call rbp
cmp eax, 0x217
jne 0x6cc203
mov qword [rbx + 0x40], 0
jmp 0x6cc1af
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rbp
test eax, eax
jle 0x6cc21b
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x6cc221
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.req__pipeHandle___INVALID_HANDLE_VALUE
mov r8d, 0x357
lea rdx, str.src_win_pipe.c
call qword [sym.imp.msvcrt.dll__assert]
mov rcx, qword [rbx + 0x70]
jmp 0x6cc0e4
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x6cc19f
call rbp
cdqe
jmp 0x6cc1ab
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x6cc112
Function at 0x6cc4c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rdx + 0x58]
mov rdi, rcx
mov rbx, rdx
test ah, 0x10
je 0x6cc660
test eax, 0x10000
jne 0x6cc612
cmp qword [rbx + 0x118], 0xffffffffffffffff
je 0x6cc63a
mov eax, dword [rbx + 0x58]
lea rsi, [rbx + 0x80]
test eax, 0x1000000
jne 0x6cc5d1
lea rdx, [rbx + 0xc0]
mov qword [rbx + 0xc0], 0
mov qword [rbx + 0xc8], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
test eax, 0x80000
je 0x6cc54e
mov rax, qword [rbx + 0xf0]
or rax, 1
mov qword [rbx + 0xd8], rax
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x118]
lea rdx, [0x00de2140]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x6cc682
test byte [rbx + 0x5a], 8
je 0x6cc5f6
cmp qword [rbx + 0xf0], 0
je 0x6cc700
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x6cc5f6
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov r9, rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x006cc960]
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x6cc5f6
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x6cc696
mov r8d, 0x10
mov rdx, rsi
mov qword [rbx + 0x238], 0
lea rcx, [0x006cc230]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
test eax, eax
je 0x6cc5c5
mov rcx, rbx
call fcn.006cc460
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8d, 0x45c
lea rdx, str.src_win_pipe.c
lea rcx, [0x00af2f70]
call qword [sym.imp.msvcrt.dll__assert]
cmp qword [rbx + 0x118], 0xffffffffffffffff
jne 0x6cc4f3
mov r8d, 0x45e
lea rdx, str.src_win_pipe.c
lea rcx, str.handle__handle___INVALID_HANDLE_VALUE
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6cc4f3
mov r8d, 0x45b
lea rdx, str.src_win_pipe.c
lea rcx, [0x00af2f48]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6cc4da
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6cc575
call rbp
test eax, eax
jle 0x6cc6f0
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x6cc734
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rsi
mov qword [rdi + 0x48], rsi
or dword [rbx + 0x58], 0x10000
add dword [rbx + 0x78], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rbp
cdqe
jmp 0x6cc6a8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0xf0], rax
test rax, rax
jne 0x6cc589
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, [0x00af2fc7]
mov ecx, eax
call fcn.006bf130
mov qword [rbx + 0xe8], rsi
mov qword [rdi + 0x48], rsi
jmp 0x6cc6d6