joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66c260
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, [0x0066c440]
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x66c300
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x66c2c6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.0066bf00
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x66c2b9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
Function at 0x671a40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0x28]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
mov rbx, qword [rcx + 0x20]
add qword [rcx], r8
mov r13, rcx
mov r12, rdx
mov r14, r8
test eax, eax
je 0x671aea
mov r15d, 8
lea rcx, [rcx + rax + 0x38]
sub r15d, eax
cmp r8, r15
jb 0x671bbc
mov r8, r15
sub r14, r15
add r12, r15
call sub.msvcrt.dll_memcpy
mov rcx, qword [r13 + 0x38]
mov edx, dword [r13 + 0x30]
xor rbx, rcx
test edx, edx
jle 0x671ae7
xor eax, eax
nop dword [rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp eax, edx
jne 0x671ab0
xor rdi, rcx
mov r9d, r14d
and r14, 0xfffffffffffffff8
lea r8, [r12 + r14]
and r9d, 7
cmp r12, r8
je 0x671b53
mov edx, dword [r13 + 0x30]
mov rcx, qword [r12]
xor rbx, rcx
test edx, edx
jle 0x671b47
xor eax, eax
nop
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp edx, eax
jne 0x671b10
add r12, 8
xor rdi, rcx
cmp r8, r12
jne 0x671b02
test r9d, r9d
jne 0x671ba1
mov qword [rsp + 0x28], rdi
movq xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rsi
mov dword [r13 + 0x28], r9d
movhps xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rbp
movups xmmword [r13 + 8], xmm0
movq xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rbx
movhps xmm0, qword [rsp + 0x28]
movups xmmword [r13 + 0x18], xmm0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r10, [r13 + 0x38]
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [r10 + rdx], cl
cmp eax, r9d
jb 0x671ba7
jmp 0x671b58
call sub.msvcrt.dll_memcpy
add dword [r13 + 0x28], r14d
jmp 0x671b90
Function at 0x6856a0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00900e00]
lea rsi, [0x00900e00]
mov r11d, 0x48
mov qword [rcx], rax
mov rax, qword [0x00901e40]
lea rdi, [rcx + 8]
mov rbp, rcx
and rdi, 0xfffffffffffffff8
mov r10, rbp
mov qword [rcx + 0x1040], rax
mov rax, rcx
sub rax, rdi
sub rsi, rax
add eax, 0x1048
shr eax, 3
cmp edx, 0x48
cmovle r11d, edx
mov ecx, eax
mov rax, r8
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x48]
movsxd r11, r11d
add r11, r8
lea rcx, [rax + 1]
movzx eax, byte [rax]
cmp r11, rcx
cmovbe rcx, r8
shl eax, 8
movzx edx, byte [rcx]
lea r9, [rcx + 1]
or edx, eax
cmp r11, r9
cmovbe r9, r8
mov eax, edx
shl eax, 8
movzx edx, byte [r9]
lea rcx, [r9 + 1]
or edx, eax
cmp r11, rcx
cmovbe rcx, r8
shl edx, 8
lea rax, [rcx + 1]
movzx ecx, byte [rcx]
or edx, ecx
cmp r11, rax
cmovbe rax, r8
xor dword [r10], edx
add r10, 4
cmp rdi, r10
jne 0x685705
mov qword [rsp + 0x28], 0
mov rbx, rbp
lea rsi, [rsp + 0x28]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.006848e0
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rbx, rdi
jne 0x685770
lea rdi, [rbp + 0x1048]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.006848e0
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rdi, rbx
jne 0x6857a0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x685920
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rsi, rdx
mov edx, dword [rdx + 8]
mov rbx, rcx
mov rdi, r8
cmp edx, eax
jge 0x685946
mov edx, eax
mov rax, rsi
mov rsi, r8
mov rdi, rax
mov rcx, rbx
call fcn.004fb020
test rax, rax
je 0x685aa3
mov eax, dword [rdi + 8]
test eax, eax
jle 0x685ae0
mov rcx, qword [rsi]
mov r8, qword [rbx]
lea edx, [rax - 1]
mov r9, qword [rdi]
lea r10, [rcx + 0x10]
lea r11, [r8 + 0x10]
cmp r8, r10
setae r10b
cmp rcx, r11
setae dil
or r10d, edi
cmp edx, 2
seta dil
test r10b, dil
je 0x685ab0
lea r10, [r9 + 0x10]
cmp r8, r10
setae dil
cmp r9, r11
setae r10b
or dil, r10b
je 0x685ab0
mov r10d, eax
xor edx, edx
shr r10d, 1
shl r10, 4
nop
movdqu xmm0, xmmword [rcx + rdx]
movdqu xmm1, xmmword [r9 + rdx]
pxor xmm0, xmm1
movups xmmword [r8 + rdx], xmm0
add rdx, 0x10
cmp rdx, r10
jne 0x6859c0
mov edx, eax
and edx, 0xfffffffe
cmp eax, edx
je 0x6859f2
mov rcx, qword [rcx + rdx*8]
xor rcx, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rcx
mov r11d, dword [rsi + 8]
cmp eax, r11d
jge 0x685a77
movsxd rdx, eax
mov r9, qword [rsi]
mov r8, qword [rbx]
lea r10, [rdx*8 + 0x10]
lea rcx, [r10 - 0x10]
lea rdi, [r9 + r10]
lea rsi, [r8 + rcx]
add rcx, r9
cmp rsi, rdi
setae dil
add r10, r8
cmp rcx, r10
setae r10b
or dil, r10b
je 0x685a90
lea r10d, [r11 - 1]
sub r10d, eax
cmp r10d, 3
jbe 0x685a90
mov edi, r11d
xor edx, edx
sub edi, eax
mov r10d, edi
shr r10d, 1
shl r10, 4
nop
movdqu xmm2, xmmword [rcx + rdx]
movups xmmword [rsi + rdx], xmm2
add rdx, 0x10
cmp rdx, r10
jne 0x685a50
mov edx, edi
and edx, 0xfffffffe
add eax, edx
cmp edi, edx
je 0x685a77
cdqe
mov rdx, qword [r9 + rax*8]
mov qword [r8 + rax*8], rdx
mov dword [rbx + 8], r11d
mov rcx, rbx
call fcn.004fb1a0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rax
add rdx, 1
cmp r11d, edx
jg 0x685a90
jmp 0x685a77
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov r11d, edx
xor edx, edx
jmp 0x685ac3
mov rdx, r10
mov r10, qword [rcx + rdx*8]
xor r10, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], r10
lea r10, [rdx + 1]
cmp rdx, r11
jne 0x685ac0
jmp 0x6859f2
xor eax, eax
jmp 0x6859f2
Function at 0x69ee60
Capabilities:
Check for software breakpoints

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rdx, [0x0069ebc0]
mov rbx, rcx
lea rcx, [0x009a3500]
call fcn.006b8590
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 0x69f0b0
mov qword [rbx + 0x40], 0
mov rcx, rbx
call fcn.0069ecb0
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.0069b410
mov rsi, rax
mov qword [rbx + 0x58], rax
test rax, rax
je 0x69f085
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.006b87a0
mov edi, eax
test eax, eax
je 0x69efe0
mov rcx, rsi
call fcn.0069b430
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, [0x006c4f80]
mov rcx, rbx
call fcn.0069e9a0
mov edi, eax
test eax, eax
jne 0x69f0a0
mov eax, dword [rbx + 0x148]
test al, 8
je 0x69f030
mov edx, eax
and edx, 0xfffffff7
mov dword [rbx + 0x148], edx
test al, 1
jne 0x69f135
and eax, 4
mov eax, edx
je 0x69f030
mov rdx, qword [rbx + 0xf8]
sub dword [rdx + 8], 1
nop
or eax, 0x10
lea rcx, [0x009a34c0]
mov dword [rbx + 0x148], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov ebp, dword [0x009a34ec]
cmp ebp, dword [0x009a34e8]
je 0x69f0d0
mov rax, qword [0x009a34f0]
movsxd rdx, ebp
lea rcx, [0x009a34c0]
add ebp, 1
mov qword [rax + rdx*8], rbx
mov dword [0x009a34ec], 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 0x69efb7
lea rcx, [0x009a34c0]
mov edi, 0xe
call sub.KERNEL32.dll_LeaveCriticalSection
mov rcx, r12
call sub.KERNEL32.dll_DeleteCriticalSection
jmp 0x69efa7
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.0069fed0
lea r13d, [rbp + 8]
mov rcx, qword [0x009a34f0]
movsxd rdx, r13d
shl rdx, 3
call fcn.0069b470
test rax, rax
je 0x69f08f
mov ecx, dword [0x009a34e8]
mov qword [0x009a34f0], rax
cmp r13d, ecx
jle 0x69f123
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 0x69f113
mov dword [0x009a34e8], r13d
mov ebp, dword [0x009a34ec]
jmp 0x69f05a
mov eax, edx
jmp 0x69f030
Function at 0x6a0540
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 0x6a0599
lea rbx, [rax - 1]
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
je 0x6a05f0
cmp ax, 0x2f
jne 0x6a0594
jmp 0x6a05f0
sub rbx, 1
movzx eax, word [rsi + rbx*2]
cmp ax, 0x2f
je 0x6a05f0
cmp ax, 0x5c
je 0x6a05f0
test rbx, rbx
jne 0x6a0580
test rbp, rbp
je 0x6a05cb
mov ecx, 0x20a
call fcn.0069b410
mov qword [rbp], rax
test rax, rax
je 0x6a0686
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x6a066e
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 0x6a0599
test rbp, rbp
je 0x6a062b
lea r13, [rbx + rbx + 4]
mov rcx, r13
call fcn.0069b410
mov qword [rbp], rax
test rax, rax
je 0x6a0686
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.0069b410
mov qword [r12], rax
test rax, rax
je 0x6a0686
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.0069b430
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x6a0661
lea rdx, [0x0090d4a0]
mov ecx, 0xe
call fcn.0069fe10
nop
nop dword [rax + rax]
Function at 0x6a1790
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, [0x00c2c540]
mov dword [0x009a3520], eax
call fcn.006b87a0
test eax, eax
jne 0x6a17f0
lea rax, [0x009a4540]
lea rdx, [0x009a3540]
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 0x6a17d0
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.0069fe10
nop
nop
Function at 0x6a3370
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 0x6a33a0
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.0069fed0
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x6a35f0
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 0x6a3620
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 0x6a3650
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
call fcn.0069fed0
cdqe
jmp 0x6a363a
Function at 0x6a3660
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 0x6a36b0
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 0x6a3685
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 0x6a38a4
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 0x6a37f9
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 0x6a3750
mov qword [rsp + 0x38], rdx
mov rcx, qword [rsi + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x6a3849
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
jne 0x6a3878
sub edi, 1
jne 0x6a3720
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x6a38c5
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.0069fed0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6a369a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
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 0x6a369a
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6a369a
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 0x6a3815
mov qword [rsi + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.0069fed0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6a3815
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6a369a
mov r8d, 0x4e4
lea rdx, str.src_win_fs.c
lea rcx, str.released
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6a37cd
Function at 0x6a3e80
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 0x6a3ee1
mov qword [rbx + 0x88], 0xfffffffffffff02c
xor esi, esi
mov dword [rbx + 0x14c], 0x10b
mov rcx, rsi
call fcn.0069b430
xor ecx, ecx
call fcn.0069b430
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.0069b410
mov rsi, rax
test rax, rax
je 0x6a3f80
mov rcx, rdi
lea r13, [0x0090d740]
call sub.msvcrt.dll_wcslen
mov rbp, rax
test rax, rax
jne 0x6a3fa0
lea rcx, [rbp + rbp + 8]
call fcn.0069b410
mov r12, rax
test rax, rax
je 0x6a3f80
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.0069b430
cmp qword [rsi + 0x30], 0xffffffffffffffff
je 0x6a3fd0
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 0x6a3eba
movzx eax, word [rdi + rax*2 - 2]
cmp ax, 0x5c
je 0x6a3fbc
lea r13, str._s
cmp ax, 0x2f
jne 0x6a3f12
lea r13, [0x0090d748]
jmp 0x6a3f12
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
cmp eax, 2
je 0x6a3f57
call rdi
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x6a3eba

Function at 0x6abb70
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.006abab0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret
Function at 0x6acd00
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 0x6ace00
mov rcx, qword [rbx + 0x70]
test r9d, r9d
jne 0x6acdba
cmp rcx, 0xffffffffffffffff
je 0x6acd48
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 0x6ace6e
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov r9d, 0xffffffff
mov rdx, rsi
call fcn.006acab0
mov rcx, qword [rbx + 0x70]
test eax, eax
jne 0x6ace60
cmp rcx, 0xffffffffffffffff
je 0x6acec0
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 0x6ace30
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, [0x0090dbf8]
call qword [sym.imp.msvcrt.dll__assert]
mov r9d, dword [rsp + 0x88]
jmp 0x6acd1b
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6acdf2
call rbp
cmp eax, 0x217
jne 0x6acee3
mov qword [rbx + 0x40], 0
jmp 0x6ace8f
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 0x6acefb
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 0x6acf01
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 0x6acdc4
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x6ace7f
call rbp
cdqe
jmp 0x6ace8b
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x6acdf2
Function at 0x6ad1a0
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 0x6ad340
test eax, 0x10000
jne 0x6ad2f2
cmp qword [rbx + 0x118], 0xffffffffffffffff
je 0x6ad31a
mov eax, dword [rbx + 0x58]
lea rsi, [rbx + 0x80]
test eax, 0x1000000
jne 0x6ad2b1
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 0x6ad22e
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, [0x00c2c580]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6ad362
test byte [rbx + 0x5a], 8
je 0x6ad2d6
cmp qword [rbx + 0xf0], 0
je 0x6ad3e0
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x6ad2d6
mov rdx, qword [rbx + 0xd8]
lea rcx, [rbx + 0xf8]
mov r9, rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x006ad640]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x6ad2d6
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6ad376
mov r8d, 0x10
mov rdx, rsi
mov qword [rbx + 0x238], 0
lea rcx, [0x006acf10]
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x6ad2a5
mov rcx, rbx
call fcn.006ad140
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, [0x0090dd10]
call qword [sym.imp.msvcrt.dll__assert]
cmp qword [rbx + 0x118], 0xffffffffffffffff
jne 0x6ad1d3
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 0x6ad1d3
mov r8d, 0x45b
lea rdx, str.src_win_pipe.c
lea rcx, [0x0090dce8]
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x58]
jmp 0x6ad1ba
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x6ad255
call rbp
test eax, eax
jle 0x6ad3d0
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 0x6ad414
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 0x6ad388
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 0x6ad269
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x0090dd67]
mov ecx, eax
call fcn.0069fe10
mov qword [rbx + 0xe8], rsi
mov qword [rdi + 0x48], rsi
jmp 0x6ad3b6