joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b3b90
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 0x6b3d11
test dl, 4
jne 0x6b3cc0
xor esi, esi
lea r13, str.topology_synthetic.c
nop
cmp dword [r15], 0xd
je 0x6b3bfc
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 0x6b3c1c
cmp rbx, 1
jle 0x6b3c19
mov ecx, 0x20
add r14, 1
sub rbx, 1
mov word [r14 - 1], cx
add esi, 1
cmp rbx, 1
jle 0x6b3c34
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.006b2450
test eax, eax
js 0x6b3d15
add esi, eax
cdqe
cmp rbx, rax
jg 0x6b3c6f
test rbx, rbx
jle 0x6b3c75
lea eax, [rbx - 1]
cdqe
add r14, rax
sub rbx, rax
cmp rbx, 1
jle 0x6b3c8d
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 0x6b3be0
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 0x6b3d1c
cmp dword [r9], 0xd
jne 0x6b3d1c
test r12d, r12d
je 0x6b3cea
cmp rax, 1
jle 0x6b3cea
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.006b2450
test eax, eax
js 0x6b3d15
lea esi, [rax + r12]
jmp 0x6b3ca3
xor esi, esi
jmp 0x6b3ca3
mov esi, 0xffffffff
jmp 0x6b3ca3
mov r9d, dword [rsp + 0xb8]
test r9d, r9d
jne 0x6b3d3f
call qword [sym.imp.msvcrt.dll__errno]
mov esi, 0xffffffff
mov dword [rax], 0x16
jmp 0x6b3ca3
mov ecx, 2
call qword [fcn.00912130]
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 0x6b3d29

Function at 0x6b4370
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00e1cee0]
test eax, eax
je 0x6b4390
mov eax, dword [0x00e1cedc]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6b43d0
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00e1cedc], eax
mov dword [0x00e1cee0], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6b43a1
mov eax, dword [0x00e1cedc]
jmp 0x6b43b7

Function at 0x6b43f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00e1ced8]
test eax, eax
je 0x6b4410
mov eax, dword [0x00e1ced4]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6b4450
mov rcx, rax
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00e1ced4], eax
mov dword [0x00e1ced8], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x6b4421
mov eax, dword [0x00e1ced4]
jmp 0x6b4437
Function at 0x6b5c90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00e1cee8]
test eax, eax
je 0x6b5cb0
mov eax, dword [0x00e1cee4]
add rsp, 0x28
ret
lea rcx, str.HWLOC_XML_VERBOSE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6b5ce0
mov rcx, rax
call sub.msvcrt.dll_atoi
mov dword [0x00e1cee4], eax
mov dword [0x00e1cee8], 1
add rsp, 0x28
ret
mov eax, dword [0x00e1cee4]
jmp 0x6b5ccf
Function at 0x6bbf20
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, [0x00d0fc36]
mov rbx, rcx
mov ecx, 2
mov r13, rdx
mov qword [rsp + 0xb0], r8
mov rsi, rbx
lea rdx, [0x00d0fc38]
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 0x6bc07c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.00906ae0
test eax, eax
je 0x6bc035
mov ecx, 0x1001
mov edi, 0x1000
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x6bc06d
movabs r15, 0x7fffffffffffffff
mov rbp, rdi
xor ebx, ebx
jmp 0x6bbfe7
lea r12, [rbp + rbp]
mov rcx, rsi
lea rdx, [r12 + 1]
call sub.msvcrt.dll_realloc
test rax, rax
je 0x6bc065
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 0x6bbfc0
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 0x6bbf9b
mov eax, dword [rsp + 0x34]
lea edi, [rax + 1]
movsxd rdi, edi
lea rcx, [rdi + 1]
jmp 0x6bbf9b
mov rcx, rsi
call fcn.00911ec8
mov rcx, r14
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x6bc024
mov eax, 0xffffffff
jmp 0x6bc024

Function at 0x6beac0
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 [0x00a56790]
mov eax, dword [rsp + 0x40]
cmp ebx, 1
jbe 0x6beb06
mov rdx, qword [0x00e1cf58]
mov eax, ebx
shl eax, 6
test rdx, rdx
je 0x6beb06
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 0x6c1a00
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
cmp rdx, 2
jbe 0x6c1b96
movzx r10d, byte [rcx]
movzx eax, byte [rcx + 1]
lea r11, [rcx + 3]
sub rdx, 3
movzx esi, byte [rcx + 2]
lea rbx, [0x00d10880]
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 0x6c1aac
jmp 0x6c1b80
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 0x6c1b80
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 0x6c1a60
test rdx, rdx
jne 0x6c1b04
cmp rax, r9
jae 0x6c1b80
mov byte [r8 + rax], 0
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx ecx, byte [r11]
cmp rdx, 2
jne 0x6c1b8a
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 0x6c1b80
lea rbx, [0x00d10880]
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 0x6c1b91
movzx r10d, r10b
movzx edx, byte [rbx + r10]
mov byte [rcx], dl
mov byte [r8 + rax], 0x3d
mov rax, rsi
jmp 0x6c1af1
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r10d, r10d
xor ebx, ebx
jmp 0x6c1b21
mov byte [rcx], 0x3d
jmp 0x6c1b73
mov r11, rcx
xor eax, eax
jmp 0x6c1aec
Function at 0x6c6280
Capabilities:
Check for software breakpoints

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdx, [0x006c5fe0]
mov rbx, rcx
lea rcx, [0x00e1d1c0]
call fcn.006df9b0
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 0x6c64d0
mov qword [rbx + 0x40], 0
mov rcx, rbx
call fcn.006c60d0
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.006c2830
mov rsi, rax
mov qword [rbx + 0x58], rax
test rax, rax
je 0x6c64a5
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.006dfbc0
mov edi, eax
test eax, eax
je 0x6c6400
mov rcx, rsi
call fcn.006c2850
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, [0x006ec3a0]
mov rcx, rbx
call fcn.006c5dc0
mov edi, eax
test eax, eax
jne 0x6c64c0
mov eax, dword [rbx + 0x148]
test al, 8
je 0x6c6450
mov edx, eax
and edx, 0xfffffff7
mov dword [rbx + 0x148], edx
test al, 1
jne 0x6c6555
and eax, 4
mov eax, edx
je 0x6c6450
mov rdx, qword [rbx + 0xf8]
sub dword [rdx + 8], 1
nop
or eax, 0x10
lea rcx, [0x00e1d180]
mov dword [rbx + 0x148], eax
call sub.KERNEL32.DLL_EnterCriticalSection
mov ebp, dword [0x00e1d1ac]
cmp ebp, dword [0x00e1d1a8]
je 0x6c64f0
mov rax, qword [0x00e1d1b0]
movsxd rdx, ebp
lea rcx, [0x00e1d180]
add ebp, 1
mov qword [rax + rdx*8], rbx
mov dword [0x00e1d1ac], 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 0x6c63d7
lea rcx, [0x00e1d180]
mov edi, 0xe
call sub.KERNEL32.DLL_LeaveCriticalSection
mov rcx, r12
call sub.KERNEL32.DLL_DeleteCriticalSection
jmp 0x6c63c7
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.006c72f0
lea r13d, [rbp + 8]
mov rcx, qword [0x00e1d1b0]
movsxd rdx, r13d
shl rdx, 3
call fcn.006c2890
test rax, rax
je 0x6c64af
mov ecx, dword [0x00e1d1a8]
mov qword [0x00e1d1b0], rax
cmp r13d, ecx
jle 0x6c6543
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 0x6c6533
mov dword [0x00e1d1a8], r13d
mov ebp, dword [0x00e1d1ac]
jmp 0x6c647a
mov eax, edx
jmp 0x6c6450
Function at 0x6c7960
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 0x6c79b9
lea rbx, [rax - 1]
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
je 0x6c7a10
cmp ax, 0x2f
jne 0x6c79b4
jmp 0x6c7a10
sub rbx, 1
movzx eax, word [rsi + rbx*2]
cmp ax, 0x2f
je 0x6c7a10
cmp ax, 0x5c
je 0x6c7a10
test rbx, rbx
jne 0x6c79a0
test rbp, rbp
je 0x6c79eb
mov ecx, 0x20a
call fcn.006c2830
mov qword [rbp], rax
test rax, rax
je 0x6c7aa6
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x6c7a8e
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 0x6c79b9
test rbp, rbp
je 0x6c7a4b
lea r13, [rbx + rbx + 4]
mov rcx, r13
call fcn.006c2830
mov qword [rbp], rax
test rax, rax
je 0x6c7aa6
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.006c2830
mov qword [r12], rax
test rax, rax
je 0x6c7aa6
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.006c2850
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x6c7a81
lea rdx, [0x00d11820]
mov ecx, 0xe
call fcn.006c7230
nop
nop dword [rax + rax]

Function at 0x6c8bb0
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, [0x010a6200]
mov dword [0x00e1d1e0], eax
call fcn.006dfbc0
test eax, eax
jne 0x6c8c10
lea rax, [0x00e1e200]
lea rdx, [0x00e1d200]
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 0x6c8bf0
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.006c7230
nop
nop
Function at 0x6ca790
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 0x6ca7c0
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.006c72f0
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x6caa10
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 0x6caa40
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 0x6caa70
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
call fcn.006c72f0
cdqe
jmp 0x6caa5a
Function at 0x6caa80
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 0x6caad0
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 0x6caaa5
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 0x6cacc4
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 0x6cac19
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 0x6cab70
mov qword [rsp + 0x38], rdx
mov rcx, qword [rsi + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x6cac69
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
jne 0x6cac98
sub edi, 1
jne 0x6cab40
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x6cace5
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.006c72f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6caaba
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
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 0x6caaba
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6caaba
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 0x6cac35
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.006c72f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6cac35
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6caaba
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6cabed
Function at 0x6cb2a0
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 0x6cb301
mov qword [rbx + 0x88], 0xfffffffffffff02c
xor esi, esi
mov dword [rbx + 0x14c], 0x10b
mov rcx, rsi
call fcn.006c2850
xor ecx, ecx
call fcn.006c2850
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.006c2830
mov rsi, rax
test rax, rax
je 0x6cb3a0
mov rcx, rdi
lea r13, [0x00d11ac0]
call sub.msvcrt.dll_wcslen
mov rbp, rax
test rax, rax
jne 0x6cb3c0
lea rcx, [rbp + rbp + 8]
call fcn.006c2830
mov r12, rax
test rax, rax
je 0x6cb3a0
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.006c2850
cmp qword [rsi + 0x30], 0xffffffffffffffff
je 0x6cb3f0
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 0x6cb2da
movzx eax, word [rdi + rax*2 - 2]
cmp ax, 0x5c
je 0x6cb3dc
lea r13, [0x00d11ad0]
cmp ax, 0x2f
jne 0x6cb332
lea r13, [0x00d11ac8]
jmp 0x6cb332
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rdi
cmp eax, 2
je 0x6cb377
call rdi
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x6cb2da

Function at 0x6d2f90
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.006d2ed0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x6d4120
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 0x6d4220
mov rcx, qword [rbx + 0x70]
test r9d, r9d
jne 0x6d41da
cmp rcx, 0xffffffffffffffff
je 0x6d4168
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 0x6d428e
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov r9d, 0xffffffff
mov rdx, rsi
call fcn.006d3ed0
mov rcx, qword [rbx + 0x70]
test eax, eax
jne 0x6d4280
cmp rcx, 0xffffffffffffffff
je 0x6d42e0
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 0x6d4250
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, [0x00d11f78]
call qword [sym.imp.msvcrt.dll__assert]
mov r9d, dword [rsp + 0x88]
jmp 0x6d413b
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6d4212
call rbp
cmp eax, 0x217
jne 0x6d4303
mov qword [rbx + 0x40], 0
jmp 0x6d42af
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 0x6d431b
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 0x6d4321
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 0x6d41e4
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x6d429f
call rbp
cdqe
jmp 0x6d42ab
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x6d4212
Function at 0x6d45c0
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 0x6d4760
test eax, 0x10000
jne 0x6d4712
cmp qword [rbx + 0x118], 0xffffffffffffffff
je 0x6d473a
mov eax, dword [rbx + 0x58]
lea rsi, [rbx + 0x80]
test eax, 0x1000000
jne 0x6d46d1
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 0x6d464e
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, [0x010a6240]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x6d4782
test byte [rbx + 0x5a], 8
je 0x6d46f6
cmp qword [rbx + 0xf0], 0
je 0x6d4800
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x6d46f6
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov r9, rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x006d4a60]
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x6d46f6
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x6d4796
mov r8d, 0x10
mov rdx, rsi
mov qword [rbx + 0x238], 0
lea rcx, [0x006d4330]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
test eax, eax
je 0x6d46c5
mov rcx, rbx
call fcn.006d4560
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, [0x00d12090]
call qword [sym.imp.msvcrt.dll__assert]
cmp qword [rbx + 0x118], 0xffffffffffffffff
jne 0x6d45f3
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 0x6d45f3
mov r8d, 0x45b
lea rdx, str.src_win_pipe.c
lea rcx, [0x00d12068]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6d45da
mov rbp, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6d4675
call rbp
test eax, eax
jle 0x6d47f0
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 0x6d4834
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 0x6d47a8
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 0x6d4689
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rdx, [0x00d120e7]
mov ecx, eax
call fcn.006c7230
mov qword [rbx + 0xe8], rsi
mov qword [rdi + 0x48], rsi
jmp 0x6d47d6