joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad99b
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rsi, rcx
mov byte [rbp + 0x67], dl
xorps xmm0, xmm0
movaps xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x20], 4
mov dword [rbp + 0x28], 0x400010
movabs rax, 0x8000000000000000
cmp qword [rcx + 0x18], rax
je 0x1400ad9fe
mov ecx, dword [rsi + 0x28]
mov dword [rbp + 8], ecx
mov rcx, qword [rsi + 0x20]
mov qword [rbp + 0x10], rcx
cmp qword [rsi + 0x30], rax
je 0x1400ada2c
mov rax, qword [rsi + 0x38]
mov rdx, qword [rsi + 0x40]
add rdx, rax
lea rcx, [rbp + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
lea rax, [rbp + 0x67]
mov qword [rcx + 0x10], rax
xor edx, edx
call fcn.1400adb8c
mov dword [rbp + 0x18], eax
mov rdx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
lea r8, [rdx + rax*8]
lea rsi, [rbp - 0x38]
mov rcx, rsi
call fcn.1400acca0
mov eax, dword [rsi + 0x10]
lea rcx, [rbp - 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsi + 8]
cmp byte [rbp + 0x67], 1
mov qword [rcx + 8], rax
push 2
pop r8
sbb r8d, 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
test eax, eax
je 0x1400adaa3
shl rsi, 0x20
or rsi, 2
push 1
pop rdi
jmp 0x1400adae0
movaps xmm0, xmmword [rbp + 0x30]
push 1
pop rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
movups xmmword [rbp + 0x50], xmm0
mov al, byte [0x140588be1]
push 0x20
pop rcx
push 8
pop rdx
call fcn.14001cd50
test rax, rax
je 0x1400adafa
mov rsi, rax
movups xmm0, xmmword [rbp + 0x40]
movups xmm1, xmmword [rbp + 0x50]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor edi, edi
lea rcx, [rbp - 0x38]
call fcn.140028a4c
mov rax, rdi
mov rdx, rsi
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
push 8
pop rcx
push 0x20
pop rdx
call fcn.14016bf60
ud2
Function at 0x1400c27d8
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x1400c27fe
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x1400c27e8
mov qword [rcx], rax
ret

Function at 0x1400f5272
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.140100268
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x14010c481
jmp 0x140138690
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401386c8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400f72d5
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14010ac88
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x14010b059

Function at 0x1400f72da
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14010ac9f
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x14010b059

Function at 0x1400f72e1
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14010ac72
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x14010b059

Function at 0x14010386e
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140103875
test al, 1
je 0x140103894
test al, 2
jne 0x1401038ac
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1404e6318]
mov edx, 0x23
call fcn.14016c250
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1404e6358]
mov edx, 0x25
call fcn.14016c250
int3

Function at 0x14010a8a4
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsi + 0x20]
add rsp, 0x50
pop rsi
ret

Function at 0x14010ac53
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
jmp 0x14010af35
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x24]
mov dword [r8], eax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14010af58
xor eax, eax
jmp 0x14010af5d
call fcn.140062bd2
nop
add rsp, 0x28
ret

Function at 0x14010ac5b
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x14010b059
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14010b07f
xor eax, eax
jmp 0x14010b084
call fcn.140062bd2
nop
add rsp, 0x38
ret
Function at 0x14010af10
Capabilities:
Connect socket

Disassembly:
mov rcx, qword [rcx]
jmp 0x14010af10
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14010af2e
add rsp, 0x28
jmp fcn.140062bd2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14010af35
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
jmp 0x14010af35
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x24]
mov dword [r8], eax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14010af58
xor eax, eax
jmp 0x14010af5d
call fcn.140062bd2
nop
add rsp, 0x28
ret

Function at 0x14010b059
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x14010b059
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14010b07f
xor eax, eax
jmp 0x14010b084
call fcn.140062bd2
nop
add rsp, 0x38
ret

Function at 0x140129263
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r8d, dword [rcx]
mov eax, dword [rcx + 8]
mov r9d, r8d
shr r9d, 8
xor r8b, dl
movzx edx, r8b
lea r8, [0x140520280]
xor r9d, dword [r8 + rdx*4]
mov dword [rcx], r9d
mov edx, 0xff
and r9d, edx
add r9d, dword [rcx + 4]
imul r9d, r9d, 0x8088405
inc r9d
mov dword [rcx + 4], r9d
shr r9d, 0x18
mov r10d, eax
shr r10d, 8
and eax, edx
xor eax, r9d
xor r10d, dword [r8 + rax*4]
mov dword [rcx + 8], r10d
ret
Function at 0x14012cf97
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x140522830]
mov ebx, 0xff
lea rsi, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.4.2_src_baseline.rs
cmp r9, 0x40
jb 0x14012d0c7
mov r14d, 4
sub r14, 1
jb 0x14012cfbc
cmp r9, 0xf
jbe 0x14012d0f4
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.14012cf4c
mov r9, rdx
mov ecx, ebp
jmp 0x14012cfcc
xor edx, edx
cmp r9, rdx
je 0x14012d0e5
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x14012d0c9
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.4.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r9
call fcn.14016c310
int3
Function at 0x1401349b0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140134a50
jmp 0x140134a3f
jae 0x140134b0f
cmp r8, 0x201
jae 0x140134a50
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140134aa7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140134a7f
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14016abd0
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140134ad0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140134b89
mov r8d, r13d
cmp r12, r8
jne 0x140134a30
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140134bbd
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140134a3f
jmp 0x140134a50
cmp r14, r8
jb 0x140134bd7
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.1401388b0
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x140134b72
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.14001cd60
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x140134b5d
jmp 0x140134b72
lea rcx, [0x1405271a0]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14016c250
jmp 0x140134bec
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14016c6d0
ud2
Function at 0x140135560
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140135570
mov rcx, rdx
mov rdx, r8
jmp fcn.140135580
mov rcx, rdx
mov rdx, r8
jmp fcn.140140e40

Function at 0x140138690
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.140100268
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x14010c481
jmp 0x140138690
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401386c8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1401386e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140138715
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x14013870d
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x140138782
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1401387ef
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rsp + 0x3c]
cmove rdx, rax
mov rax, rcx
add rsp, 0x40
pop rsi
ret
Function at 0x14013c950
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140166180
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1401436f0]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x140139b81.287
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14013cb40
test r15, r15
je 0x14013cb0c
cmp r15, 0x1000
ja 0x14013cb62
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x14013cae0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14013ca70
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x14013cb00
add r12, rax
cmp r12, r15
je 0x14013cad0
jbe 0x14013ca20
jmp 0x14013cb4e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14013c9ce
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.14012ec30
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.14012ec30
jmp 0x14013cb0c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14016c6e0
jmp 0x14013cb76
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14016c6d0
ud2
Function at 0x140140e40
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14014a4e0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140140ea5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14014bde0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x140140eb0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x140140edc
test rdi, rdi
je 0x140140f08
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001cd60
xor eax, eax
jmp 0x140140ea8
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140140ea8
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001cd60
jmp 0x140140ea5
xor eax, eax
jmp 0x140140ea8

Function at 0x140140f10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call fcn.14014b300
mov rcx, rax
add rsp, 0x28
jmp 0x140140f10
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14014a4e0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140140f75
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14014bde0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x140140f80
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x140140faa
test rdi, rdi
je 0x140140fd6
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001cd60
xor eax, eax
jmp 0x140140f78
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140140f78
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001cd60
jmp 0x140140f75
xor eax, eax
jmp 0x140140f78
Function at 0x1401419a0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140529528]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401419d8
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140141a3a
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140141a45
xor edx, edx
jmp 0x140141a55
cmp eax, 0x103
je 0x140141a80
test eax, eax
js 0x140141a60
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140529590]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140137cb0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.14012f2f0
mov ecx, 7
int 0x29
ud2

Function at 0x140141af0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x140529528]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140141b28
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140141b91
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140141bc5
test eax, eax
js 0x140141ba5
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140529590]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.140137cb0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.14012f2f0
mov ecx, 7
int 0x29
ud2
Function at 0x140141c30
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140141d06
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140141c8e
mov esi, eax
cmp eax, 0x2726
jne 0x140141cf9
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140141cf1
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140141d06
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x140141d06
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140142850
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]