joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002ac0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180002c6e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180026a08]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180026a18]
lea rdx, [rdi + rdi]
call fcn.180002680
mov rax, qword [0x180026a08]
lea r9, [rdi - 1]
mov qword [0x180026a30], r9
mov qword [0x180026a38], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180002c63
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180026a18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180002baf
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180002c24
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180002bec
mov r10, qword [rdx]
cmp r10, rax
je 0x180002be6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180002c24
cmp r9, rdx
je 0x180002c00
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180002c38
cmp r9, rdx
jne 0x180002bf1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180002c5e
mov r9, qword [0x180026a30]
jmp 0x180002b60
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180002c24
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.180007ee4
int3
Function at 0x180011f24
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180011f54
xor eax, eax
jmp 0x180012017
mov rbp, rbx
cmp word [rax], si
je 0x180011f79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180011f60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180011f5c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180011e44
movsxd r14, eax
test eax, eax
jne 0x180011fb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180011f4d
mov rcx, r14
call fcn.18001024c
mov rdi, rax
test rax, rax
jne 0x180011fd0
xor ecx, ecx
call fcn.18001047c
jmp 0x180011fac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180011e44
test eax, eax
jne 0x180012001
mov rcx, rdi
call fcn.18001047c
jmp 0x18001200b
xor ecx, ecx
call fcn.18001047c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180017660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180017688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180017688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x42c6a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0x18
mov edx, dword [rcx + 4]
lea r8, str.cw
mov ecx, dword [rcx + 0xc]
mov eax, edx
movzx r9d, dl
shr eax, 0x18
movzx r11d, byte [r8 + r9]
movzx r10d, byte [r8 + rax]
mov eax, edx
movzx edx, dh
shr eax, 0x10
movzx r9d, al
movzx eax, byte [r8 + rdx]
movzx edx, cl
shl r10d, 0x18
or r10d, r11d
movzx r11d, byte [r8 + r9]
mov r9d, ecx
shr r9d, 0x18
shl eax, 8
shl r11d, 0x10
or r10d, r11d
movzx r11d, byte [r8 + r9]
mov r9d, ecx
or r10d, eax
movzx eax, byte [r8 + rdx]
shr r9d, 0x10
movzx edx, r9b
movzx ecx, ch
mov r9d, r10d
ror r9d, 8
shl r11d, 0x18
mov dword [rsp + 4], r9d
or r11d, eax
movzx eax, byte [r8 + rdx]
movzx r8d, byte [r8 + rcx]
movd xmm3, dword [rsp + 4]
shl eax, 0x10
shl r8d, 8
or r11d, eax
or r11d, r8d
mov edx, r11d
mov dword [rsp + 0xc], r11d
ror edx, 8
movd xmm1, dword [rsp + 0xc]
mov dword [rsp + 8], edx
movd xmm2, dword [rsp + 8]
mov dword [rsp + 8], r10d
movd xmm0, dword [rsp + 8]
punpckldq xmm1, xmm2
punpckldq xmm0, xmm3
punpcklqdq xmm0, xmm1
add rsp, 0x18
ret
Function at 0x440ba0
Capabilities:
Check for software breakpoints

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdx, [0x00440850]
mov rbx, rcx
lea rcx, [0x004cb720]
call fcn.00457c00
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
mov qword [rbx + 0x38], rax
je 0x440d95
mov rcx, rbx
mov qword [rbx + 0x40], 0
lea rbp, [rbx + 0xc8]
call fcn.00458750
lea rax, [rbx + 0xb8]
mov dword [rbx + 8], 0
mov qword [rbx + 0x48], 0
mov qword [rbx + 0x50], 0
mov qword [rbx + 0x58], 0
mov rcx, rbp
mov qword [rbx + 0xb8], rax
mov qword [rbx + 0xc0], rax
lea rax, [rbx + 0x10]
mov qword [rbx + 0x68], 0
mov qword [rbx + 0x60], 0
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rbx + 0x20]
mov qword [rbx + 0x70], 0
mov qword [rbx + 0x78], 0
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
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.00457dd0
test eax, eax
mov esi, eax
je 0x440cf0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov qword [rbx + 0x38], 0xffffffffffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, [rbx + 0xf0]
lea r8, [0x00463fc0]
mov rcx, rbx
call fcn.00440630
test eax, eax
mov esi, eax
jne 0x440dc0
mov eax, dword [rbx + 0x148]
test al, 0x20
je 0x440d43
mov edx, eax
and edx, 0xffffffdf
test al, 1
mov dword [rbx + 0x148], edx
jne 0x440e34
and eax, 0x40
mov ecx, eax
mov eax, edx
test ecx, ecx
je 0x440d43
mov rdx, qword [rbx + 0xf8]
sub dword [rdx + 8], 1
or al, 0x80
lea rcx, [0x004cb6e0]
mov dword [rbx + 0x148], eax
call sub.KERNEL32.dll_EnterCriticalSection
mov edi, dword [0x004cb70c]
cmp edi, dword [0x004cb708]
je 0x440dd0
mov rax, qword [0x004cb710]
movsxd rdx, edi
lea rcx, [0x004cb6e0]
add edi, 1
mov qword [rax + rdx*8], rbx
mov dword [0x004cb70c], edi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00441a00
lea rcx, [0x004cb6e0]
mov esi, 0xe
call sub.KERNEL32.dll_LeaveCriticalSection
nop dword [rax]
mov rcx, rbp
call sub.KERNEL32.dll_DeleteCriticalSection
jmp 0x440cca
lea r12d, [rdi + 8]
mov rcx, qword [0x004cb710]
movsxd rdx, r12d
shl rdx, 3
call fcn.0043ec10
test rax, rax
je 0x440dac
mov ecx, dword [0x004cb708]
mov qword [0x004cb710], rax
cmp r12d, ecx
jle 0x440e22
add edi, 7
movsxd r8, ecx
sub edi, ecx
lea rdx, [rax + r8*8]
add rdi, r8
lea rcx, [rax + rdi*8 + 8]
mov qword [rdx], 0
add rdx, 8
cmp rdx, rcx
jne 0x440e12
mov dword [0x004cb708], r12d
mov edi, dword [0x004cb70c]
jmp 0x440d6c
mov eax, edx
jmp 0x440d43
Function at 0x442020
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
test rax, rax
mov rdi, rax
je 0x442079
lea rbx, [rax - 1]
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
je 0x4420d0
cmp ax, 0x2f
jne 0x442074
jmp 0x4420d0
sub rbx, 1
movzx eax, word [rsi + rbx*2]
cmp ax, 0x2f
je 0x4420d0
cmp ax, 0x5c
je 0x4420d0
test rbx, rbx
jne 0x442060
test rbp, rbp
je 0x4420ab
mov ecx, 0x20a
call fcn.0043ebc0
test rax, rax
mov qword [rbp], rax
je 0x442166
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44214e
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 0x442079
test rbp, rbp
je 0x44210b
lea r13, [rbx + rbx + 4]
mov rcx, r13
call fcn.0043ebc0
test rax, rax
mov qword [rbp], rax
je 0x442166
lea r8, [rbx + 1]
mov rcx, rax
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.0043ebc0
test rax, rax
mov qword [r12], rax
je 0x442166
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.0043ebd0
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x442141
lea rdx, [0x004b0ab0]
mov ecx, 0xe
call fcn.00441940
nop
nop dword [rax + rax]
Function at 0x4439b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x4439f4
mov qword [rsi + 0x88], 0xfffffffffffff00d
mov dword [rsi + 0x14c], 6
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rsi + 0x180]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x443b50
cmp rbp, 0xffffffffffffffff
jne 0x443ab0
mov dword [rsp + 0x38], 0
xor r13d, r13d
xor ebx, ebx
xor edi, edi
lea r15, [rsp + 0x44]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x443a3d
cmp dword [rsi + 0x170], ebx
jbe 0x443a87
cmp rbp, 0xffffffffffffffff
je 0x443a54
mov eax, edi
add rax, rbp
mov dword [rsp + 0x60], eax
sar rax, 0x20
mov dword [rsp + 0x64], eax
mov eax, ebx
mov r9, r15
mov rcx, r12
shl rax, 4
add rax, qword [rsi + 0x178]
add ebx, 1
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call r14
add edi, dword [rsp + 0x44]
test eax, eax
mov r11d, eax
mov r10d, edi
jne 0x443a35
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x443b20
or r11d, r10d
je 0x443b00
mov eax, r10d
mov qword [rsi + 0x88], rax
jmp 0x4439e3
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r9d, 1
lea r8, [rsp + 0x48]
mov rcx, rax
lea r13, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne al
movzx eax, al
mov dword [rsp + 0x38], eax
jmp 0x443a23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x443b72
mov qword [rsi + 0x88], 0
jmp 0x4439e3
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], r11d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x38]
jmp 0x443a93
mov dword [rsi + 0x14c], 6
mov ecx, 6
call fcn.00441a00
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4439e3
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.00441a00
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4439e3
Function at 0x443b90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x443bd4
mov qword [rsi + 0x88], 0xfffffffffffff00d
mov dword [rsi + 0x14c], 6
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rsi + 0x180]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x443d30
cmp rbp, 0xffffffffffffffff
jne 0x443c90
mov dword [rsp + 0x38], 0
xor r13d, r13d
xor ebx, ebx
xor edi, edi
lea r15, [rsp + 0x44]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x443c1d
cmp dword [rsi + 0x170], ebx
jbe 0x443c67
cmp rbp, 0xffffffffffffffff
je 0x443c34
mov eax, edi
add rax, rbp
mov dword [rsp + 0x60], eax
sar rax, 0x20
mov dword [rsp + 0x64], eax
mov eax, ebx
mov r9, r15
mov rcx, r12
shl rax, 4
add rax, qword [rsi + 0x178]
add ebx, 1
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call r14
add edi, dword [rsp + 0x44]
test eax, eax
mov r11d, eax
mov r10d, edi
jne 0x443c15
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x443d01
or r11d, r10d
je 0x443ce0
mov eax, r10d
mov qword [rsi + 0x88], rax
jmp 0x443bc3
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r9d, 1
lea r8, [rsp + 0x48]
mov rcx, rax
lea r13, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne al
movzx eax, al
mov dword [rsp + 0x38], eax
jmp 0x443c03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.00441a00
cdqe
mov qword [rsi + 0x88], rax
jmp 0x443bc3
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], r11d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x38]
jmp 0x443c73
mov dword [rsi + 0x14c], 6
mov ecx, 6
call fcn.00441a00
cdqe
mov qword [rsi + 0x88], rax
jmp 0x443bc3

Function at 0x443d60
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
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x88], rax
je 0x443d90
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x443fd0
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
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x88], rax
je 0x444000
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
Function at 0x444030
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, 0x58
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call sub.msvcrt.dll_wcslen
cmp rax, 5
ja 0x444080
mov qword [rbx + 0x88], 0xfffffffffffff019
mov dword [rbx + 0x14c], 0x57
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r13, qword [rbx + 0x150]
lea rdi, [rax + rax]
lea rdx, str.XXXXXX
mov r8d, 6
lea r12, [r13 + rdi - 0xc]
mov rcx, r12
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x444055
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4441f0
lea rax, [rsp + 0x48]
mov r14, qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea r15, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
mov ebp, 0x7fff
movabs rsi, 0x8421084210842109
mov qword [rsp + 0x38], rax
nop word cs:[rax + rax]
mov r8, qword [rsp + 0x38]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call r14
test eax, eax
je 0x444211
mov rcx, qword [rsp + 0x48]
lea r10, [r13 + rdi]
mov r8, r12
nop word [rax + rax]
mov rdx, rcx
add r8, 2
shr rdx, 1
mov rax, rdx
mul rsi
shr rdx, 4
mov rax, rdx
shl rax, 5
sub rax, rdx
add rax, rax
sub rcx, rax
cmp r10, r8
movzx eax, word [r15 + rcx*2]
mov rcx, rdx
mov word [r8 - 2], ax
jne 0x444130
mov qword [rsp + 0x48], rdx
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x444260
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
jne 0x44428f
sub ebp, 1
jne 0x444100
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4441c2
lea rdx, str.src_win_fs.c
lea rcx, str.released
mov r8d, 0x355
call fcn.00480c40
mov qword [rbx + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44406a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44406a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x44406a
lea rdx, str.src_win_fs.c
lea rcx, str.released
mov r8d, 0x355
call fcn.00480c40
jmp 0x44406a
mov rsi, qword [rbx + 0x98]
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rsi + rax - 6]
mov r8d, 6
mov rdx, r12
call sub.msvcrt.dll_wcstombs
mov qword [rbx + 0x88], 0
jmp 0x44422d
mov qword [rbx + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.00441a00
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44422d
Function at 0x44af90
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.0044aed0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret

Function at 0x44bef0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test byte [rdx + 0x59], 8
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
je 0x44c081
test r9d, r9d
mov rcx, qword [rbx + 0x70]
jne 0x44bfa5
cmp rcx, 0xffffffffffffffff
je 0x44bf37
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle__INVALID_HANDLE_VALUE
mov r8d, 0x323
call fcn.00480c40
xor r8d, r8d
mov rcx, qword [rsi + 0x120]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov r9d, 0xff
mov dword [rsp + 0x20], 0x10000
mov edx, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x70], rax
je 0x44c02e
mov rcx, rdi
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov rdx, rsi
call fcn.0044bcd0
test eax, eax
mov rcx, qword [rbx + 0x70]
jne 0x44c020
cmp rcx, 0xffffffffffffffff
je 0x44c0e0
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 0x44bff0
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x44bfdd
call rbp
cmp eax, 0x217
jne 0x44c0b0
mov qword [rbx + 0x40], 0
jmp 0x44c04f
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 0x44c0d0
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 0x44c102
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, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_pipe.c
lea rcx, [0x004b1178]
mov r8d, 0x320
mov dword [rsp + 0x4c], r9d
call fcn.00480c40
mov r9d, dword [rsp + 0x4c]
jmp 0x44bf0b
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x44c03f
nop dword [rax]
call rbp
cdqe
jmp 0x44c04b
lea rcx, str.req__pipeHandle___INVALID_HANDLE_VALUE
lea rdx, str.src_win_pipe.c
mov r8d, 0x33b
call fcn.00480c40
mov rcx, qword [rbx + 0x70]
jmp 0x44bfaf
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x44dc10
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [rsp + 0xc0]
lea rbp, str._pipeuv_p__lu
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rdx
mov rsi, r9
or edi, 0x40080000
mov rbx, rdx
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44dc7e
call r15
cmp eax, 0xe7
mov edx, eax
je 0x44dc7a
cmp eax, 5
jne 0x44dd28
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.0044db10
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r9d, 1
mov edx, edi
mov rcx, rsi
call r12
cmp rax, 0xffffffffffffffff
mov r10, rax
je 0x44dc65
mov rax, qword [rsp + 0xa0]
xor r9d, r9d
mov rcx, r10
mov qword [rsp + 0x40], r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
mov r10, qword [rsp + 0x40]
je 0x44dd40
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x40], r10
call fcn.0044c860
mov rax, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x40]
xor edx, edx
mov qword [rax + 0x118], r10
mov eax, edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x44dd28

Function at 0x44f0e0
Capabilities:
Write file on windows

Disassembly:
cmp dword [r8 + 0x110], 0
mov r10d, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov r11, qword [rsp + 0x38]
je 0x44f120
cmp r10d, 1
je 0x44f130
test r10d, r10d
jne 0x44f118
test rax, rax
je 0x44f118
cmp dword [rax + 0x10], 0xc
jne 0x44f118
test dword [rax + 0x58], 0x1200
jne 0x44f135
mov eax, 0x32
ret
mov eax, 0x2726
ret
test rax, rax
jne 0x44f109
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r10d
jmp fcn.0044cfa0