joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab370
Capabilities:
Query environment variable

Disassembly:
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14, r8
mov r15, rdx
test rcx, rcx
je 0x1400ab571
test rdx, rdx
je 0x1400ab571
test r8, r8
je 0x1400ab571
cmp qword [r8], 0
je 0x1400ab571
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
call fcn.1400a9aa0
test eax, eax
jne 0x1400ab576
mov qword [rsp + 0x4a8], rbx
xor ecx, ecx
mov qword [rsp + 0x470], rbp
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x468], rsi
mov qword [rsp + 0x460], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp rdi, 0x200
jb 0x1400ab465
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x1400ab432
mov rcx, rbx
call fcn.1400a7f70
inc edi
mov esi, edi
lea rcx, [rdi + rdi]
call fcn.1400a8170
mov rbx, rax
test rax, rax
je 0x1400ab48a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp rdi, rsi
jae 0x1400ab420
mov rcx, rbp
call fcn.1400a7f70
test rdi, rdi
jne 0x1400ab4a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400ab4a5
mov ecx, eax
call fcn.1400b5700
mov edi, eax
jmp 0x1400ab53b
mov edi, 0xfffff027
test rbp, rbp
je 0x1400ab53b
mov rcx, rbp
call fcn.1400a7f70
jmp 0x1400ab53b
xor edi, edi
mov r8, rbx
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
lea r9d, [rdi - 1]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400ab4e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
mov edi, eax
jmp 0x1400ab53b
mov rcx, qword [r14]
mov eax, eax
cmp rax, rcx
jbe 0x1400ab4f7
mov qword [r14], rax
mov edi, 0xfffff024
jmp 0x1400ab53b
mov qword [rsp + 0x38], rdi
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rdi
mov r8, rbx
mov dword [rsp + 0x28], ecx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400ab535
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
mov edi, eax
jmp 0x1400ab53b
lea ecx, [rax - 1]
mov qword [r14], rcx
mov rsi, qword [rsp + 0x468]
lea rax, [rsp + 0x50]
mov rbp, qword [rsp + 0x470]
cmp rbx, rax
je 0x1400ab55d
mov rcx, rbx
call fcn.1400a7f70
mov rbx, qword [rsp + 0x4a8]
mov eax, edi
mov rdi, qword [rsp + 0x460]
jmp 0x1400ab576
mov eax, 0xfffff019
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x478
pop r15
pop r14
ret
Function at 0x1400ab790
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rsi + 3]
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400ab804
cmp dword [rsp + 0x28], edi
je 0x1400ab800
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400ab7e7
jmp 0x1400ab804
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400cb6d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400ab9f0
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x1400aba8f
test rdx, rdx
je 0x1400aba8f
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
call fcn.1400a9aa0
test eax, eax
jne 0x1400aba94
lea r8, [rsp + 0x40]
mov rcx, rbx
lea edx, [rax - 1]
call fcn.1400a9aa0
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x1400aba46
call fcn.1400a7f70
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call fcn.1400a7f70
mov rcx, qword [rsp + 0x40]
call fcn.1400a7f70
test edi, edi
mov rdi, qword [rsp + 0x38]
jne 0x1400aba87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x20
pop rbx
jmp fcn.1400b5700
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 0xfffff019
add rsp, 0x20
pop rbx
ret
Function at 0x1400abb90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400abd16
test rdx, rdx
je 0x1400abd16
cmp qword [rdx], 0
je 0x1400abd16
xor edx, edx
mov qword [rsp + 0x58], rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test eax, eax
jne 0x1400abbed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.1400b5700
inc rsi
mov qword [rsp + 0x50], rbx
lea rcx, [rsi + rsi]
call fcn.1400a8170
mov rbx, rax
test rax, rax
jne 0x1400abc10
mov eax, 0xfffff027
jmp 0x1400abca4
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
jne 0x1400abc39
mov rcx, rbx
call fcn.1400a7f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400abca4
mov qword [rsp + 0x60], r14
xor r14d, r14d
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x1400abc5c
cmp rax, 3
jne 0x1400abc56
cmp word [rbx + 2], 0x3a
je 0x1400abc5c
mov word [rbx + rax*2 - 2], r14w
mov qword [rsp + 0x38], r14
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400abcb9
mov rcx, rbx
call fcn.1400a7f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov esi, eax
mov rax, qword [rdi]
cmp rsi, rax
jbe 0x1400abcd5
mov rcx, rbx
call fcn.1400a7f70
mov eax, 0xfffff024
mov qword [rdi], rsi
jmp 0x1400abc9f
mov qword [rsp + 0x38], r14
mov r9d, 0xffffffff
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rbx
mov esi, eax
call fcn.1400a7f70
test esi, esi
je 0x1400abc92
lea ecx, [rsi - 1]
xor eax, eax
mov qword [rdi], rcx
jmp 0x1400abc9f
mov rbp, qword [rsp + 0x68]
mov eax, 0xfffff019
add rsp, 0x40
pop rdi
ret
Function at 0x1400ac090
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
jne 0x1400ac0a9
mov eax, 0xfffff019
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rbp
mov r8, rbx
xor ebp, ebp
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], rbp
lea r9d, [rbp - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test eax, eax
je 0x1400ac124
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.1400a8170
mov rdi, rax
test rax, rax
jne 0x1400ac0f9
mov eax, 0xfffff027
jmp 0x1400ac16a
mov dword [rsp + 0x28], esi
mov r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400ac13a
mov rcx, rdi
call fcn.1400a7f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
mov rdi, rbp
test eax, eax
je 0x1400ac140
jmp 0x1400ac16a
cdqe
mov word [rdi + rax*2], bp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.1400a7f70
test ebx, ebx
jne 0x1400ac168
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400ac16a
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret

Function at 0x1400ac1f0
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rbp, rcx
mov edi, ebx
call fcn.1400b45a0
lea r9d, [rbx - 1]
mov dword [rsp + 0x28], ebx
mov r8, rbp
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
test eax, eax
jne 0x1400ac241
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400ac2cb
mov rcx, rsi
add rcx, rcx
call fcn.1400a8170
mov rdi, rax
test rax, rax
je 0x1400ac2ee
mov dword [rsp + 0x28], esi
mov r9d, 0xffffffff
mov r8, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400ac234
cmp eax, 0x2000
jle 0x1400ac289
mov word [rdi + 0x3ffe], bx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
je 0x1400ac234
lea rcx, [0x140137360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140137358]
call fcn.1400a7f70
mov rcx, rbp
call fcn.1400a8320
lea rcx, [0x140137360]
mov qword [0x140137358], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call fcn.1400a7f70
mov ecx, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.1400b5700
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b5650
int3
Function at 0x1400ad7f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x1400ad830
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400afae0
test eax, eax
je 0x1400ad858
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400ad9e0
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call fcn.1400e7c40
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ad8a3
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ad9bd
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1400ad8ee
xorps xmm0, xmm0
lea r8, [rsp + 0xb8]
mov r9d, 1
lea r12, [rsp + 0x30]
mov rdx, rbx
mov rcx, r15
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ad8f1
mov r13d, 1
jmp 0x1400ad8f1
mov r12, rbx
mov esi, ebx
cmp rbp, 0xffffffffffffffff
je 0x1400ad90a
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x1400ad94d
cmp ebx, dword [rdi + 0x170]
jb 0x1400ad8f3
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x1400ad971
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x1400ad9b4
test esi, esi
jne 0x1400ad9b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400ad991
mov eax, 0x3ec
jmp 0x1400ad99b
cmp eax, 0x26
je 0x1400ad9b4
cmp eax, 0x6d
je 0x1400ad9b4
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ad9bd
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ad9e0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400ada42
mov dword [rcx + 0x14c], 0x3ec
mov ecx, 0x3ec
call fcn.1400b5700
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1400ada76
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400ada87
mov rcx, qword [rdx + 0x18]
mov r12, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r12
jge 0x1400adc25
mov r8d, r13d
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1400adabf
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x1400adab0
sub r12, rcx
cmp r8, r12
cmovl r12, r8
test r12, r12
je 0x1400adc25
lea rbx, [r12 + rcx]
mov r8d, dword [0x1401373b8]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r12
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400adb4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rsi, r13
mov r15d, r13d
cmp r15d, dword [rdi + 0x170]
jae 0x1400adbdb
cmp rsi, r12
jae 0x1400adbdb
mov ecx, r15d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov r14d, dword [rcx]
mov rax, r12
sub rax, rsi
cmp r14, rax
cmovae r14, rax
mov dword [rsp + 0x30], r13d
add rdx, rsi
add rdx, qword [rsp + 0x50]
mov r8, r14
mov rcx, qword [rcx + 8]
call fcn.1400cc610
nop
add rsi, r14
inc r15d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400adb54
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400adb21
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400adc0e
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400af980
mov qword [rdi + 0x88], r12
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400aeb00
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rbx, qword [rcx + 0x150]
lea rax, [r11 + 0x20]
mov rsi, rcx
mov qword [r11 - 0x48], rax
mov rcx, rbx
lea r9, [r11 + 8]
lea r8, [r11 + 0x18]
lea rdx, [r11 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor ebp, ebp
test eax, eax
jne 0x1400aec17
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x150]
cmp edi, 0x10b
jne 0x1400aecbd
cmp rbx, rax
jne 0x1400aecc2
mov ecx, 0x20a
mov edi, 0x105
call fcn.1400a8170
mov rbx, rax
test rax, rax
je 0x1400aebbc
nop dword [rax + rax]
mov rcx, qword [rsi + 0x150]
lea r9, [rsp + 0x30]
mov r8, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1400aec8e
mov eax, eax
cmp rax, rdi
jbe 0x1400aebda
lea rdx, [rax + rax]
mov rcx, rbx
mov edi, eax
call fcn.1400a82a0
mov rbx, rax
test rax, rax
jne 0x1400aeb80
mov dword [rsi + 0x14c], select
mov qword [rsi + 0x88], 0xfffffffffffff027
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400aebe7
mov word [rax], bp
lea rax, [rsp + 0x88]
mov rcx, rbx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1400aeb40
cmp rbx, qword [rsi + 0x150]
je 0x1400aec28
mov rcx, rbx
call fcn.1400a7f70
mov ecx, 0x58
call fcn.1400a8170
mov rcx, rax
test rax, rax
je 0x1400aebbc
mov qword [rax], rbp
mov eax, dword [rsp + 0x78]
imul eax, dword [rsp + 0x80]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x88]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0x70]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x70]
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rbp
mov qword [rcx + 0x30], rbp
or dword [rsi + 0x148], 8
mov qword [rsi + 0x90], rcx
mov qword [rsi + 0x88], rbp
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.1400a7f70
mov ecx, 0x10b
mov dword [rsi + 0x14c], 0x10b
call fcn.1400b5700
movsxd rcx, eax
mov qword [rsi + 0x88], rcx
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp rbx, rax
je 0x1400aecca
mov rcx, rbx
call fcn.1400a7f70
mov ecx, edi
mov dword [rsi + 0x14c], edi
call fcn.1400b5700
movsxd rcx, eax
mov qword [rsi + 0x88], rcx
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400af320
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x1400af360
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x78], r14
call fcn.1400e7c40
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400af3ab
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400af4df
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400afae0
test eax, eax
je 0x1400af3d0
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call fcn.1400af500
jmp 0x1400af4df
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x70], r15
cmp rbp, 0xffffffffffffffff
je 0x1400af41b
xorps xmm0, xmm0
lea r8, [rsp + 0xb8]
mov r9d, 1
lea r12, [rsp + 0x30]
mov rdx, rbx
mov rcx, r14
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400af41e
mov r13d, 1
jmp 0x1400af41e
mov r12, rbx
mov esi, ebx
cmp rbp, 0xffffffffffffffff
je 0x1400af437
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r15d, eax
test eax, eax
je 0x1400af47a
cmp ebx, dword [rdi + 0x170]
jb 0x1400af420
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x1400af49e
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r15d, r15d
mov r15, qword [rsp + 0x70]
jne 0x1400af4d6
test esi, esi
jne 0x1400af4d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x3ec
cmp eax, 5
cmove eax, ecx
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.1400b5700
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400af4df
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x78]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400afca0
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, [0x140137390]
mov dword [0x1401373b8], eax
call fcn.1400c9b10
test eax, eax
jne 0x1400afcfd
lea rax, [0x1403bf3c8]
mov edx, 0x100
lea rcx, [0x1401373c0]
xor r8d, r8d
nop
mov qword [rax], rcx
add rcx, 0x2880
mov qword [rax - 8], r8
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x1400afce0
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.1400b5650
int3
Function at 0x1400b4a60
Capabilities:
Set socket configuration

Disassembly:
mov r8, rdx
mov edx, 0x1001
jmp 0x1400b4a60
sub rsp, 0x38
test rcx, rcx
je 0x1400b4aed
test r8, r8
je 0x1400b4aed
mov eax, dword [rcx + 0x10]
cmp eax, 0xc
jne 0x1400b4a83
mov rcx, qword [rcx + 0x110]
jmp 0x1400b4a8c
cmp eax, 0xf
jne 0x1400b4ae3
mov rcx, qword [rcx + 0x70]
cmp dword [r8], 0
mov r9, r8
mov r8d, edx
mov dword [rsp + 0x40], 4
mov edx, 0xffff
jne 0x1400b4ab7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
jmp 0x1400b4ac5
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400b4adc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
mov eax, 0xfffff02f
add rsp, 0x38
ret
mov eax, 0xfffff019
add rsp, 0x38
ret

Function at 0x1400b5ee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1400b5eed
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1400b5ef9
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400b5f1b
cmp eax, 0xc
je 0x1400b5f16
cmp eax, 0xe
je 0x1400b5f11
mov eax, 0xfffff02a
ret
jmp fcn.1400bfb10
jmp fcn.1400bb710
mov eax, 0xfffff008
ret

Function at 0x1400b5f30
Capabilities:
Send data
Send data on socket

Disassembly:
test r9, r9
jne 0x1400b5f70
mov eax, dword [rcx + 0x58]
test al, 1
je 0x1400b5f42
mov eax, 0xfffff00d
ret
bt eax, 0xf
jb 0x1400b5f4e
mov eax, 0xfffff031
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400b5f70
cmp eax, 0xc
je 0x1400b5f6b
cmp eax, 0xe
je 0x1400b5f66
mov eax, 0xfffff02a
ret
jmp fcn.1400bfb10
jmp fcn.1400bb710
mov eax, 0xfffff008
ret

Function at 0x1400b6540
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
test r9d, r9d
mov edx, 0x40040003
mov eax, 0x400c0003
cmovne edx, eax
mov rdi, r8
xor eax, eax
mov rsi, rcx
mov rcx, qword [rbx + 0x120]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b65b5
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1400b65ed
mov rax, qword [rdi + 0x70]
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x118], rax
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x140115920]
call fcn.1400b5650
int3