joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180108d7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180108db6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180108dbb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180108e04
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180142bc0]
cmp byte [rcx + rax], 0
je 0x180108e04
dec r8
sub rdx, 1
jne 0x180108dea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140001b18
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x18
call fcn.180041950
sub rsp, rax
mov rax, qword [0x1800c9050]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r11, rcx
mov r9d, edx
test edx, edx
jne 0x180009c5d
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.180040d80
add rsp, 0x18
ret
mov rcx, qword [r8]
xor edx, edx
mov qword [rsp], rcx
movzx eax, byte [rsp + 1]
movzx r8d, cl
xor r8d, 0x811c9dc5
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 2]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 4]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 6]
imul r8d, r8d, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul r8d, r8d, 0x1000193
xor r8d, eax
imul r8d, r8d, 0x1000193
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x180009d05
cmp qword [rax + 8], rcx
je 0x180009d05
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x180009cf4
test r10, r10
je 0x180009d0d
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.180040d80
add rsp, 0x18
ret

Function at 0x18000b9a0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.180041950
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18000b9e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180041950
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18000ba00
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.180041950
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret
Function at 0x18000daa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x20
call fcn.180041950
sub rsp, rax
xor ebx, ebx
mov rsi, rcx
mov ebp, ebx
test rcx, rcx
je 0x18000db87
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000db8a
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x18000db34
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18000db87
add r8, r8
mov rdx, rsi
sub r8, rsi
add r8, rbp
nop word [rax + rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8 + rdx], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
dec rcx
cmp rax, rcx
jb 0x18000db60
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x18000dd30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.180041950
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000dd9b
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18000dd90
cmp edi, eax
jb 0x18000dd90
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180010230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x30
call fcn.180041950
sub rsp, rax
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x180010432
mov rcx, rdi
call fcn.18000dc60
test eax, eax
jne 0x180010432
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.18000ffb0
mov rbp, rax
test rax, rax
je 0x18001035d
mov qword [rsp + 0x50], r12
call fcn.18000dd30
mov r12, rax
test rax, rax
je 0x18001034a
mov rcx, rbp
call fcn.18000dc60
test eax, eax
je 0x180010333
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call fcn.1800506a0
test eax, eax
je 0x180010306
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x1800102d0
jmp 0x180010316
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.18000fc60
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x180010341
mov rcx, rbp
call fcn.18000dcd0
test eax, eax
je 0x180010341
mov rsi, rbp
xor ebp, ebp
jmp 0x180010341
mov rdx, rbp
mov rcx, r12
call fcn.18000fc60
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x1800103fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x180010407
mov rcx, rdi
call fcn.18000eeb0
mov rbx, rax
test rax, rax
je 0x180010407
mov ecx, 0x37e4
call fcn.18000eaa0
test eax, eax
je 0x18001039c
lea rcx, [0x18009cb20]
call fcn.18000f990
jmp 0x1800103a1
call fcn.18000dd30
mov rdi, rax
test rax, rax
je 0x1800103f5
mov rdx, rbx
mov rcx, rax
call fcn.18000fc60
mov rsi, rax
test rax, rax
je 0x1800103ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800103ce
test al, 0x50
je 0x1800103ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800103e1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x180010407
xor ecx, ecx
jmp 0x180010414
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001041a
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180011190
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1800c9050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor eax, eax
mov dword [rsp + 0x20], 0x6a09e667
mov rbx, rcx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea r8, [r8*8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov qword [rsp + 0x3c], 0x5be0cd19
call fcn.180011250
mov r9b, 1
lea rcx, [rsp + 0x20]
mov r8b, 0x81
mov rdx, rbx
call fcn.180010f40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180040d80
add rsp, 0xb0
pop rbx
ret

Function at 0x18002f140
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
jle 0x18002f21d
push rbx
sub rsp, 0x40
movsxd rbx, ecx
cmp ebx, 0x64
jle 0x18002f1aa
imul rcx, rbx, 0xfffffffffffffff6
xor r8d, r8d
mov qword [rsp + 0x58], rcx
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
xor r9d, r9d
lea rdx, [rsp + 0x58]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x68]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x18009289c]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x60]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x68]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jl 0x18002f1d0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x18004b3e8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x18004b2bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004b2bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004b2bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004b2bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004b2bf
cmp dword [rcx + 0x84], 0xe
jbe 0x18004b2bf
cmp dword [rcx + 0xf8], 0
je 0x18004b2bf
mov ecx, ebx
call fcn.18004b360
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.18004b150
cmp dword [rbp + 0x20], 0
je 0x18004b30c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18004b314
int3
xor r8d, r8d
xor edx, edx
jmp 0x18004b258

Function at 0x180066194
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800661a7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18006680c
lea rdx, [0x1800c6ff8]
lea rcx, [rsp + 0x20]
call fcn.1800466b8
int3

Function at 0x180070d78
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800dc780]
xor edx, edx
jmp fcn.180066194

Function at 0x18007177c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800dc780]
jmp fcn.180066194
Function at 0x1400073e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x1400073f5
mov r8d, r8d
add rsp, 0x28
jmp fcn.140006b00
test r8d, r8d
jne 0x1400073ff
call fcn.140006a90
xor eax, eax
add rsp, 0x28
ret
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.140269430
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.140269430
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.140265f80
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.14026f0c8
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.14026f0c8
mov rcx, rdi
call fcn.1400ef110
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140265f80
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.140266200
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.1402695f0
mov ecx, 0xe8
call fcn.140266200
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.14026f0c8
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.14026f0c8
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.140265f80
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.14027a47c
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.14027a47c
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