joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003010
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x1400030e8
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x1400030e8
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400030e3
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400030c0
cmp edx, 0x9bc5a608
je 0x140003213
test r8d, r8d
jne 0x1400030a0
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1400030fe
cmp qword [rax + 0x30], 0
jne 0x140003070
xor eax, eax
call rax
mov dword [rsp + 0x50], 0x100010
mov rbp, rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov rbx, rsi
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x1400031a8
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x1400031a8
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x1400031a3
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140003180
cmp edx, 0x85cca27e
je 0x14000322f
test r8d, r8d
jne 0x140003160
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
je 0x1400031be
cmp qword [rax + 0x30], 0
jne 0x140003130
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call rax
test eax, eax
je 0x14000324d
cmp qword [rsp + 0x68], 0
jne 0x140003207
cmp qword [rsp + 0x70], 0
jne 0x140003207
cmp qword [rsp + 0x78], 0
jne 0x140003207
cmp qword [rsp + 0x80], 0
jne 0x140003207
cmp qword [rsp + 0x88], 0
jne 0x140003207
cmp qword [rsp + 0x90], 0
je 0x14000324d
call fcn.1400019a0
mov eax, 1
jmp 0x14000324f
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x140003100
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1400031c0
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140003930
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003890
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 2]
and rax, 0xff
ret

Function at 0x1400038a7
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0xbc]
and rax, 0x70
ret

Function at 0x1400038dd
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
mov qword [rcx], rdx
mov qword [rcx + 8], rax
xor rax, rax
mov rax, 5
shr rax, 2
sub rax, rbx
cmp rax, rcx
rdtsc
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
ret

Function at 0x1400042a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400042f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400042f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400042f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400042f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400042f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400042f4
xor al, al
add rsp, 0x28
ret
Function at 0x140582058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405821df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140582089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058206f
add dl, dl
jne 0x140582096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405820f6
xor eax, eax
add dl, dl
jne 0x1405820a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405821ad
add dl, dl
jne 0x1405820b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405820c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405820d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405820dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405820ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058207e
mov eax, 1
add dl, dl
jne 0x140582106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140582113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405820fb
sub eax, ebx
mov ebx, 1
jne 0x14058214c
mov ecx, 1
add dl, dl
jne 0x14058212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140582123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140582168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140582175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058215d
cmp eax, 0x7d00
jae 0x14058219b
cmp eax, 0x500
jb 0x140582196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058207e
cmp eax, 0x7f
ja 0x14058219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405821d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14058207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141713058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417131df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141713089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14171306f
add dl, dl
jne 0x141713096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417130f6
xor eax, eax
add dl, dl
jne 0x1417130a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417131ad
add dl, dl
jne 0x1417130b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417130c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417130d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417130dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417130ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14171307e
mov eax, 1
add dl, dl
jne 0x141713106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141713113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417130fb
sub eax, ebx
mov ebx, 1
jne 0x14171314c
mov ecx, 1
add dl, dl
jne 0x14171312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14171313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141713123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14171307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141713168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141713175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14171315d
cmp eax, 0x7d00
jae 0x14171319b
cmp eax, 0x500
jb 0x141713196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14171307e
cmp eax, 0x7f
ja 0x14171319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14171307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417131d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14171307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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.140269440
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.140269440
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.140265f90
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.14026f0d8
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.14026f0d8
mov rcx, rdi
call fcn.1400ef110
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140265f90
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.140266210
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.140269600
mov ecx, 0xe8
call fcn.140266210
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.14026f0d8
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.14026f0d8
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.140265f90
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.14027a48c
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.14027a48c
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.140266210
mov rbx, rax
mov edi, 0x4000
mov ecx, 0x4000
call fcn.140265fb8
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.140265f90
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret