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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
movdqa xmm0, xmmword [0x140008590]
mov rsi, rdx
movdqa xmm1, xmmword [0x140008660]
lea rdx, [rsp + 0x40]
movdqu xmmword [rsp + 0x40], xmm0
mov rbx, rcx
lea rcx, [rbp - 0x50]
movups xmm0, xmmword [r8]
mov dword [rsp + 0x60], 0x37e48569
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x64], 0x3a1e
movsd xmm1, qword [r8 + 0x10]
lea r8, [rbp - 0x70]
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
call fcn.14001dca0
mov r9d, 0x20019
lea rdx, [rsp + 0x66]
xor r8d, r8d
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x66], xmm0
movups xmm1, xmmword [rax + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x76], xmm1
mov ecx, dword [rax + 0x20]
mov dword [rbp - 0x7a], ecx
movzx ecx, word [rax + 0x24]
mov word [rbp - 0x76], cx
lea rcx, [rbp + 0x138]
movzx eax, byte [rax + 0x26]
mov byte [rbp - 0x74], al
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rcx
mov rcx, 0xffffffff80000001
call rax
test eax, eax
jne 0x14001edf4
mov rax, qword [rsi + 8]
lea r9, [rbp + 0x130]
mov rcx, qword [rbp + 0x138]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x240], rdi
xor edx, edx
mov qword [rsp + 0x1f8], r14
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov edi, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x130], 0x104
call rax
test eax, eax
jne 0x14001edda
mov qword [rsp + 0x208], r12
movabs r12, 0xb0a79fff4f586
mov qword [rsp + 0x200], r13
movabs r13, 0xffffffff000b0a79
mov qword [rsp + 0x1f0], r15
movabs r15, 0xfff4f586fff4f586
movzx edx, byte [rbp - 0x20]
mov eax, 0xffffffff
test dl, dl
je 0x14001ed6c
lea r8, [rbp - 0x20]
nop word [rax + rax]
movsx ecx, dl
lea r8, [r8 + 1]
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x180bde3
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x180bde3
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x180bde3
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x180bde3
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x180bde3
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x180bde3
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0x180bde3
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0x180bde3
xor eax, ecx
movzx ecx, byte [r8]
movzx edx, cl
test cl, cl
jne 0x14001ecd0
not eax
cmp eax, 0xfff4f586
jne 0x14001ed80
mov qword [rbx], r15
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r13
mov rax, qword [rsi + 8]
lea r9, [rbp + 0x130]
mov rcx, qword [rbp + 0x138]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x38], r14
inc edi
mov qword [rsp + 0x30], r14
mov edx, edi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x130], 0x104
call rax
test eax, eax
je 0x14001ecb5
mov r15, qword [rsp + 0x1f0]
mov r13, qword [rsp + 0x200]
mov r12, qword [rsp + 0x208]
mov rcx, qword [rbp + 0x138]
call qword [rsi + 0x10]
mov r14, qword [rsp + 0x1f8]
mov rdi, qword [rsp + 0x240]
mov rax, rbx
add rsp, 0x210
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000316c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400031b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400031b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400031b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400031b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400031b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400031b8
xor al, al
add rsp, 0x28
ret

Function at 0x140006ac8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006933
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006933
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006933
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006933
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006933
cmp dword [rcx + 0x84], 0xe
jbe 0x140006933
cmp dword [rcx + 0xf8], 0
je 0x140006933
mov ecx, ebx
call fcn.1400069e4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400067c0
nop
cmp dword [rbp + 0x20], 0
je 0x140006981
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000698c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400068c4
Function at 0x14001174c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400117d3
mov rsi, rbx
cmp word [rax], bp
je 0x140011792
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001177c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011778
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e380
mov rdi, rax
test rax, rax
je 0x1400117c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140006150
mov rbp, rdi
xor ecx, ecx
call fcn.14000d74c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015a98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015aae
mov al, 1
jmp 0x140015b0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015abf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015b0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011ef0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015b0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015b0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015b0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015b0e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140018780
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400187a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400187a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18004be30
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x1b
lea rdx, str.slow
lea rcx, [0x1800652d0]
call fcn.18000ac20
lea rcx, str.opengl32.dll
mov byte [0x180066220], 0
mov byte [0x180066040], 0
mov dword [0x180066224], 0x2d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.wglSwapBuffers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call fcn.18004a1e0
mov edx, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18004a6e0
Function at 0x140007a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov eax, 0xfffffffe
test rcx, rcx
je 0x140007a74
cmp qword [rcx + 0x30], 0
je 0x140007a74
cmp qword [rcx + 0x38], 0
je 0x140007a74
mov rsi, qword [rcx + 0x28]
test rsi, rsi
je 0x140007a74
cmp qword [rsi], rcx
je 0x140007a83
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, r8d
mov r8d, dword [rsi + 8]
lea r9d, [r8 - 0x39]
cmp r9d, 0x38
ja 0x140007afc
movabs r10, 0x100400400011001
bt r10, r9
jae 0x140007afc
test rdx, rdx
je 0x140007a74
mov ebp, dword [rsi + 0x2c]
cmp ebp, 2
je 0x140007a74
cmp ebp, 1
jne 0x140007b11
cmp r8d, 0x2a
jne 0x140007a74
cmp dword [rsi + 0xec], 0
jne 0x140007a74
mov eax, dword [rcx + 0x4c]
mov r14, rcx
mov ecx, eax
mov rbx, rdx
mov r8d, edi
call fcn.140006a80
mov rdx, rbx
mov rcx, r14
mov dword [r14 + 0x4c], eax
mov dword [rsi + 0x2c], 0
mov eax, dword [rsi + 0x94]
cmp eax, edi
jbe 0x140007b99
jmp 0x140007ba0
cmp r8d, 0x29a
je 0x140007aa4
cmp r8d, 0x2a
jne 0x140007a74
jmp 0x140007aa4
cmp dword [rsi + 0xec], 0
jne 0x140007a74
mov dword [rsi + 0x2c], 0
mov eax, dword [rsi + 0x94]
cmp eax, edi
ja 0x140007ba0
test ebp, ebp
jne 0x140007b99
mov rax, qword [rsi + 0xb8]
mov r8d, dword [rsi + 0xc4]
dec r8d
mov word [rax + r8*2], 0
mov rax, qword [rsi + 0xb8]
mov r8d, dword [rsi + 0xc4]
dec r8d
add r8, r8
mov rbx, rcx
mov rcx, rax
mov r14, rdx
xor edx, edx
call fcn.140269450
mov rdx, r14
mov rcx, rbx
mov dword [rsi + 0xe4], 0
mov dword [rsi + 0xd4], 0
mov dword [rsi + 0x1758], 0
mov eax, dword [rsi + 0x94]
sub edi, eax
add rdx, rdi
mov edi, eax
mov ebx, dword [rcx + 8]
mov r14, qword [rcx]
mov dword [rcx + 8], edi
mov r15, rcx
mov qword [rcx], rdx
mov rcx, rsi
call fcn.140007cd0
mov r12d, dword [rsi + 0xec]
cmp r12d, 3
jae 0x140007c3b
mov eax, dword [rsi + 0xe4]
add eax, r12d
mov dword [rsi + 0xe4], eax
mov dword [rsi + 0xd4], eax
mov dword [rsi + 0x1758], r12d
movabs rax, 0x200000000
mov qword [rsi + 0xec], rax
mov dword [rsi + 0xd8], 2
mov dword [rsi + 0xe0], 0
mov qword [r15], r14
mov dword [r15 + 8], ebx
mov dword [rsi + 0x2c], ebp
xor eax, eax
jmp 0x140007a74
mov dword [rsi + 0xe4], edi
mov dword [rsi + 0xec], 2
mov rcx, rsi
call fcn.140007cd0
mov r12d, dword [rsi + 0xec]
cmp r12d, 2
jbe 0x140007bc4
mov edi, dword [rsi + 0xe4]
add r12d, 0xfffffffe
jmp 0x140007cb7
mov eax, dword [rsi + 0xc0]
movzx ecx, byte [rsi + 0xd0]
shl eax, cl
movzx ecx, di
mov rdx, qword [rsi + 0xa0]
mov r8, qword [rsi + 0xb0]
movzx edx, byte [rcx + rdx + 2]
xor edx, eax
and edx, dword [rsi + 0xcc]
mov dword [rsi + 0xc0], edx
mov rax, qword [rsi + 0xb8]
movzx eax, word [rax + rdx*2]
mov edx, dword [rsi + 0x9c]
and edx, ecx
mov word [r8 + rdx*2], ax
mov rax, qword [rsi + 0xb8]
mov edx, dword [rsi + 0xc0]
mov word [rax + rdx*2], cx
inc edi
dec r12d
je 0x140007c16
cmp dword [0x1403aa928], 0
je 0x140007c50
mov rcx, rsi
mov edx, edi
call fcn.140009d90
jmp 0x140007cac
Function at 0x14000e6f0
Capabilities:
Create tcp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rsi, [rcx + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, 0x180
call fcn.140023a40
mov rbx, rax
lea r14, [rax + 0x58]
lea rcx, [rax + 0x48]
movaps xmm0, xmmword [0x1402a7b20]
movups xmmword [rax + 0x28], xmm0
mov r8d, 0x130
xor edx, edx
call fcn.140269450
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x20], rax
mov r10, qword [rdi + 0xd0]
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [rdi + 0xa0]
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
mov rdx, rax
mov r8, r14
xor r9d, r9d
call r10
test eax, eax
jne 0x14000e7b2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14000e7dc
inc dword [rdi + 0xe0]
mov dil, 1
mov rcx, rsi
call fcn.1400ef110
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140265fa0
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call fcn.14026f0e8
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000e7bb
Function at 0x14000e810
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdi, [rcx + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
test byte [rbx + 0x9c], 1
jne 0x14000e87c
mov rax, qword [rbx + 0xa0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000e8b8
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
dec dword [rbx + 0xe0]
mov rcx, rsi
call fcn.14026f0e8
mov rcx, rdi
call fcn.1400ef110
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140265fa0
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x58]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x90
mov r9d, 0x90
call qword [rbx + 0xd8]
mov ecx, 0x80
call fcn.140266220
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.140269610
mov ecx, 0xe8
call fcn.140266220
mov r15, rax
mov qword [rsp + 0x40], r12
mov rdx, qword [rsi + 0x20]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14000e9a0
mov byte [r15 + 0xd8], 1
lock inc qword [r15 + 8]
mov rcx, qword [r15 + 0x58]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [r15 + 0x60], rax
cmp qword [rbx + 0xe8], 0
je 0x14000e978
mov rax, qword [rbx + 0xf0]
mov qword [rax + 0xd0], r15
jmp 0x14000e97f
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
inc dword [rbx + 0xf8]
jmp 0x14000e886

Function at 0x14000fa10
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x14000fa25
mov rcx, rdx
call fcn.14026f0e8
mov rcx, qword [rsi + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rsi + 0x9c], 2
jne 0x14000fa69
lea rcx, [rsi + 0x10]
mov rax, qword [rsi + 0x10]
call qword [rax + 0x40]
test al, 1
je 0x14000fa69
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test byte [rsi + 0x9c], 4
jne 0x14000fa84
mov rax, qword [rsi + 0x10]
add rsi, 0x10
mov rcx, rsi
call qword [rax + 0x40]
test al, 2
jne 0x14000fa8a
add rsp, 0x30
pop rsi
ret
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov edx, 2
add rsp, 0x30
pop rsi
jmp fcn.1400e3000
Function at 0x1400133b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400133fe
movsxd rcx, eax
inc eax
lea rcx, [rcx*2 + 2]
mov esi, eax
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov ecx, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ef3f0
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140013410
Capabilities:
Set current directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400ec310
mov rsi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023a40
mov rdi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14026f0e8
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140013a40
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140265fa0
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x140013da0
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14001f500
test al, al
je 0x140013dc7
mov rcx, rdi
mov edx, esi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
sete al
jmp 0x140013dc9
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140013dd0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140013e91
mov rsi, rax
xor r14d, r14d
mov rbx, rax
jmp 0x140013e10
mov rcx, rbx
call fcn.14027a49c
lea rbx, [rbx + rax*2]
add rbx, 2
movzx eax, word [rbx]
cmp eax, 0x3d
je 0x140013e00
test eax, eax
je 0x140013e21
inc r14
jmp 0x140013e00
mov qword [rdi], r14
lea rcx, [r14*8]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
test r14, r14
jle 0x140013e86
xor r15d, r15d
mov rbx, rsi
jmp 0x140013e65
mov rcx, rbx
call fcn.14027a49c
lea rbx, [rbx + rax*2]
add rbx, 2
cmp r15, r14
jge 0x140013e86
cmp word [rbx], 0x3d
je 0x140013e50
mov rcx, rbx
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ef3f0
mov qword [rdi + r15*8], rax
inc r15
jmp 0x140013e50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013e93
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140015fc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov rsi, rcx
mov rax, qword [rcx + 8]
test rax, rax
je 0x140015fed
add qword [rsi + 0x40], rax
mov rdi, qword [rsi + 0x48]
sub rdi, rax
mov qword [rsi + 0x48], rdi
jmp 0x140015ff1
mov rdi, qword [rsi + 0x48]
lea r14, [rsi + 0x30]
mov byte [rsi + 0x50], 0
xorps xmm6, xmm6
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rax, qword [rsi + 0x28]
mov qword [rsi + 0x18], rax
test rdi, rdi
je 0x140016040
mov rbx, qword [rsi + 0x38]
mov edx, 0x4000
sub rdx, rdi
jmp 0x140016089
mov ecx, reloc.WS2_32.dll_recv
call fcn.140266220
mov rbx, rax
mov edi, 0x4000
mov ecx, 0x4000
call fcn.140265fc8
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov rax, qword [rsi + 0x38]
add rax, 8
cmp qword [rsi + 0x30], 0
cmove rax, r14
mov qword [rax], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x48], 0x4000
xor edx, edx
add rdx, qword [rbx]
mov byte [rsi + 0x50], 1
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rsi
mov r8d, edi
xor r9d, r9d
call r15
test eax, eax
je 0x1400160c2
mov rax, qword [rsi + 8]
mov rdi, qword [rsi + 0x48]
add qword [rsi + 0x40], rax
sub rdi, rax
mov qword [rsi + 0x48], rdi
mov byte [rsi + 0x50], 0
jmp 0x140016010
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
sete al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400160f0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [0x1403aa998]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [0x1403aa990]
test rax, rax
je 0x14001612d
nop word cs:[rax + rax]
cmp dword [rax], esi
je 0x140016152
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x140016120
mov rcx, rdi
call fcn.14009cff0
xor edi, edi
mov ecx, 1
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001615e
jmp 0x140016172
mov rsi, qword [rax + 8]
mov rcx, rdi
call fcn.14009cff0
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400165e0
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], 0
test r8d, r8d
je 0x1400166a4
mov ebx, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov rcx, rdi
mov edx, 0x40000001
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x140016730
xor eax, eax
cmp ebx, 1
lea r9, [rsp + 0x40]
cmovne r9, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000100
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
jmp 0x140016718
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0x400
mov rcx, rdi
mov edx, 0x40000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140016730
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x80000000
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
mov sil, 1
cmp rax, 0xffffffffffffffff
jne 0x140016746
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFile_failed__d_n
jmp 0x14001673d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed__d_n
mov edx, eax
call fcn.140001240
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140265fa0
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret