joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400079bf
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
je 0x1400079eb
mov rcx, qword [0x14000a040]
cmp rcx, 0xffffffffffffffff
je 0x1400079db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000a040], 0xffffffffffffffff
jmp 0x140007a87
cmp dword [0x14006c420], 0
je 0x140007a87
cmp word [0x140074440], 0
mov rax, qword [0x14000a040]
je 0x140007a7d
inc rax
je 0x140007a45
lea rbx, [0x14006b420]
lea rdx, [0x14000c356]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000a040]
mov rdx, rbx
lea r8d, [rax + rax]
add rsp, 0x20
pop rbx
jmp fcn.140007529
lea rcx, [0x140074440]
mov r8d, 4
mov edx, 0x40000000
call fcn.14000743b
mov qword [0x14000a040], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140007a87
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [0x14000a040], 0xffffffffffffffff
jne 0x140007a0e
add rsp, 0x20
pop rbx
ret

Function at 0x140007d42
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x140074ea0]
mov rdx, rcx
mov rcx, rsi
call fcn.140007861
mov rcx, rsi
call fcn.1400072ac
mov rbx, rax
test rax, rax
jne 0x140007d6f
xor eax, eax
jmp 0x140007ddc
mov rcx, rax
call fcn.1400078ea
mov rax, qword [0x14000d0d0]
test byte [rax], 0x80
je 0x140007d91
mov ax, word [rbx]
test ax, ax
je 0x140007d6b
cmp ax, 0x5c
je 0x140007d6b
sub rbx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_lstrlenW]
sar rbx, 1
mov rcx, rsi
call rdi
mov rcx, rsi
cdqe
cmp rax, rbx
jle 0x140007dc6
call fcn.140007d13
test rax, rax
je 0x140007dbc
test byte [rax], 0x10
je 0x140007d6b
mov rcx, rsi
call fcn.140007245
jmp 0x140007d9e
call fcn.14000787c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140007de4
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov r12d, edx
mov rbx, rcx
mov edi, edx
call fcn.140007d42
and r12d, 4
mov r13d, eax
test edi, 8
je 0x140007e2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [0x14000d0b0]
cmp eax, 1
adc dword [rdx + 8], 0
jmp 0x140008063
mov r14d, edi
and r14d, 1
je 0x140007e57
test eax, eax
jne 0x140007e4b
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x140008047
test edi, 2
je 0x140007fdd
lea rbp, [0x140078ea0]
mov rdx, rbx
mov rcx, rbp
call fcn.140007861
test r14d, r14d
je 0x140007e7f
lea rdx, str..
mov rcx, rbp
call sub.KERNEL32.dll_lstrcatW
jmp 0x140007e87
mov rcx, rbx
call fcn.140007245
cmp word [rbx], 0
jne 0x140007e97
cmp word [0x140078ea0], 0x5c
jne 0x140007ea6
lea rdx, [0x14000c340]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
movsxd rsi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
add rsi, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
add rsi, rbx
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140007fc5
lea rax, [rsp + 0x5c]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x5c], 0x2e
jne 0x140007f14
mov ax, word [rsp + 0x5e]
test ax, ax
je 0x140007fa9
cmp ax, 0x2e
jne 0x140007f14
cmp word [rsp + 0x60], 0
je 0x140007fa9
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140007861
test byte [rsp + 0x30], 0x10
je 0x140007f3c
mov eax, edi
not eax
test al, 3
jne 0x140007fa9
mov edx, edi
mov rcx, rbx
call fcn.140007de4
jmp 0x140007fa9
mov rdx, rbx
lea rcx, str.Delete:_DeleteFile___s__
call fcn.140007cad
mov edx, r12d
mov rcx, rbx
call fcn.1400073e3
mov rdx, rbx
test eax, eax
jne 0x140007f9f
test r12d, r12d
je 0x140007f87
lea rcx, str.Delete:_DeleteFile_on_Reboot___s__
call fcn.140007cad
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006a94
xor edx, edx
mov rcx, rbx
call fcn.1400075f4
jmp 0x140007fa9
lea rcx, str.Delete:_DeleteFile_failed___s__
call fcn.140007cad
mov rax, qword [0x14000d0b0]
inc dword [rax + 8]
jmp 0x140007fa9
mov ecx, 0xfffffff2
call fcn.140006a94
mov rdx, qword [rsp + 0x20]
mov rcx, rbp
call r15
test eax, eax
jne 0x140007eec
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x140008063
mov word [rsi - 2], 0
test r13d, r13d
je 0x140007e3c
mov rcx, rbx
call fcn.140007d13
test rax, rax
je 0x140008063
mov rcx, rbx
call fcn.14000787c
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory___s__
call fcn.140007cad
mov edx, r12d
mov rcx, rbx
or edx, 1
call fcn.1400073e3
mov rdx, rbx
test eax, eax
jne 0x140008058
test r12d, r12d
je 0x140008040
lea rcx, str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.140007cad
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006a94
xor edx, edx
mov rcx, rbx
call fcn.1400075f4
jmp 0x140008063
lea rcx, str.RMDir:_RemoveDirectory_failed___s__
call fcn.140007cad
mov rax, qword [0x14000d0b0]
inc dword [rax + 8]
jmp 0x140008063
mov ecx, 0xffffffe5
call fcn.140006a94
nop
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008077
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov edx, 0x104
lea rbx, [rsp + 0x24]
mov qword [rsp + 0x270], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9, qword [rsp + 0x270]
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x1400080bb
cmp word [rsp + rdx*2 + 0x24], 0x5c
sete dl
movzx edx, dl
jmp 0x1400080c2
xor eax, eax
mov edx, 1
mov eax, eax
add rdx, rdx
add rax, rax
lea rcx, [rbx + rax]
lea rax, [0x14000c340]
lea r8, [rax + rdx]
lea rdx, str._s_S.dll
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0x260
pop rbx
ret
Function at 0x14002934c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140f6a9bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6a9c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6a9ef
pop rbp
sub rbp, 0x33
sub rbp, 0xf6a9bc
sub rsp, 0x20
jmp 0x140f6aa0e
mov rax, 0xf6a9bc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8e584efb
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6aa2d
jmp 0x140f6aa44
mov bl, 0x72
adc dh, byte [rax + 0x72]
invalid
Function at 0x406fdd
Capabilities:
Get file size

Disassembly:
call fcn.00401018
mov rax, rsp
shr rax, 4
jae 0x406fed
push 0
sub rsp, 0x80
lea rdx, [rsp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [reloc.KERNEL32.DLL_GetFileSizeEx]
mov rax, qword [rsp + 0x18]
call fcn.00401030
ret 8
Function at 0x140071e00
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
test rcx, rcx
jne 0x140071e10
xor al, al
add rsp, 0x38
ret
mov r8, rcx
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [0x14011f620]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta al
add rsp, 0x38
ret
Function at 0x140078a00
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, r8
mov ebx, edx
mov qword [rsp + 0x48], r8
call qword [sym.imp.AdWebServices.dll_public:_static_class_Autodesk::WebServices::WebServicesManager____ptr64___cdecl_Autodesk::WebServices::WebServicesManager::GetInstance_void_]
mov rcx, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, ebx
call qword [sym.imp.AdWebServices.dll_public:_int___cdecl_Autodesk::WebServices::WebServicesManager::GetUrl_enum_Autodesk::WebServices::WebServicesUrlCode__wchar_t____ptr64__int_const___ptr64]
mov rax, qword [rdi]
cmp dword [rax + 4], 0
je 0x140078acb
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14001ba10
nop
lea r8, [0x140115fb8]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14001b800
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001b7b0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core_Ad_5.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core_Ad_5.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400b3b40
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core_Ad_5.dll_public:_void___cdecl_QString::destructor_void____ptr64]
call qword [sym.imp.AdWebServices.dll_public:_static_class_Autodesk::WebServices::WebServicesManager____ptr64___cdecl_Autodesk::WebServices::WebServicesManager::GetInstance_void_]
mov rcx, rax
lea r9, [0x1400ae2c0]
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.AdWebServices.dll_public:_wchar_t____ptr64___cdecl_Autodesk::WebServices::WebServicesManager::SignUrlForBrowser_wchar_t_const____ptr64__bool__int____cdecl___char_const____ptr64__int__char____ptr64__int__void____ptr64_____ptr64]
mov rbx, rax
lea r8, [rsp + 0x60]
test rax, rax
cmovne r8, rax
test r8, r8
jne 0x140078b02
xor sil, sil
jmp 0x140078b2d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [0x14011f620]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta sil
mov rcx, rbx
call fcn.1400cb664
nop
mov rcx, rdi
call qword [sym.imp.Qt5Core_Ad_5.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, sil
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400853a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400853f0
xor eax, eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
call fcn.1400cdd90
lea rdx, [0x140121d58]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140085410
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x40
pop rbx
ret

Function at 0x1400867c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1401ae800], eax
inc eax
cmp eax, 1
jne 0x14008680d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1401ae804], eax
test dil, dil
je 0x140086846
xor eax, eax
lock xadd dword [0x1401ae804], eax
test eax, eax
je 0x140086846
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x20], eax
call fcn.1400cdd90
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140085410
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400ca980
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x140095990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rbp
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x140095a29
mov dword [rsp + 0x40], 0x2746
jmp 0x140095a39
cmp ecx, 0x4d2
jne 0x140095a4c
mov dword [rsp + 0x40], 0x274d
call fcn.1400cdd90
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x140095a55
or eax, 0xffffffff
jmp 0x140095a70
mov dword [rsp + 0x40], ebp
call fcn.1400cdd90
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140095a90
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140095ad9
mov dword [rsp + 0x30], 0x2719
call fcn.1400cdd90
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x140095b6d
mov qword [rsp + 0x298], rbp
xor ebp, ebp
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x270], rsi
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x140095b45
jle 0x140095b5b
mov dword [rsp + 0x30], ebp
call fcn.1400cdd90
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x278
pop rdi
pop rbx
ret
Function at 0x140095cd0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1401ae85c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140095cfd
mov r8, qword [rax + 8]
jmp 0x140095d00
xor r8d, r8d
cmp rdi, 0xff
ja 0x140095d24
test r8, r8
je 0x140095d24
cmp qword [r8], 0
jne 0x140095d24
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1400cad54

Function at 0x140095d40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [0x1401ae85c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x140095d99
mov rax, qword [rax + 8]
test rax, rax
je 0x140095d99
mov rcx, qword [rax]
test rcx, rcx
je 0x140095d99
mov qword [rax], rdi
movzx eax, byte [rcx]
cmp rax, rbx
jb 0x140095d94
mov byte [rcx + rbx], al
mov rax, rcx
add rsp, 0x28
pop rdi
pop rbx
ret
call fcn.1400cad54
lea rcx, [rbx + 1]
call fcn.1400cac48
cmp rbx, 0xff
ja 0x140095dae
movzx edi, bl
mov byte [rax + rbx], dil
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140097ca0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140097ce9
mov dword [rsp + 0x30], 0x2719
call fcn.1400cdd90
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x140097d7c
mov qword [rsp + 0x298], rbp
xor ebp, ebp
mov qword [rsp + 0x58], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x270], rsi
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.1400cdd90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x140097d54
jle 0x140097d6a
mov dword [rsp + 0x30], ebp
call fcn.1400cdd90
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x278
pop rdi
pop rbx
ret
Function at 0x140097eb0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x58
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140097ef5
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x140097efc
mov ecx, 0xdf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x140097f9c
mov rdx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x80], rbp
xor r8d, r8d
mov qword [rsp + 0x88], rdi
mov rcx, rsi
mov qword [rsp + 0x50], r14
cmp rbx, rdx
jle 0x140097fb0
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140097fca
sub rbx, qword [rsp + 0x38]
je 0x140097f85
mov ebp, 0x200
xor r14d, r14d
nop word [rax + rax]
cmp rbx, rbp
mov qword [rsp + 0x20], r14
mov rdi, rbx
lea r9, [rsp + 0x30]
cmova rdi, rbp
lea rdx, [0x1401aea00]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
cmp rax, rdi
jne 0x140097fca
sub rbx, rdi
jne 0x140097f50
mov al, 1
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ca980
add rsp, 0x58
pop rsi
pop rbx
ret
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140097fca
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140097f85
xor al, al
jmp 0x140097f87
Function at 0x140098410
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401a3008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rdi, rcx
xor r12d, r12d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140018f70
nop
lea rcx, [rbp - 0x40]
call fcn.1400a2f90
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rbx, qword [rbp - 0x40]
lea rcx, [rbp]
call fcn.140086650
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rbx, [0x14010a080]
lea r15, str.___._____:__n_r_b
lea esi, [r12 + 1]
test eax, eax
jne 0x1400984fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rcx, rbx
nop dword [rax]
cmp eax, dword [rcx]
je 0x1400984d1
add rcx, 8
cmp rcx, r15
jne 0x1400984c0
mov eax, esi
jmp 0x1400984d4
mov eax, dword [rcx + 4]
mov dword [rsp + 0x24], eax
cmp eax, 9
je 0x1400984fe
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call fcn.1400a2f90
mov r8, rsi
lea rdx, [0x14011464c]
mov rcx, rdi
call fcn.140019320
cmp qword [0x1401ae818], 0
jne 0x140098531
mov eax, dword [0x1401ae80c]
test eax, eax
jne 0x140098531
call fcn.1400a3610
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, qword [0x1401ae818]
mov rcx, rdi
call fcn.140019430
cmp qword [rdi + 0x18], 0x10
jb 0x140098553
mov r14, qword [rdi]
jmp 0x140098556
mov r14, rdi
lea rcx, [rbp + 0x50]
call fcn.140086650
lea rdx, [rbp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400985ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
nop word [rax + rax]
cmp eax, dword [rbx]
je 0x14009858f
add rbx, 8
cmp rbx, r15
jne 0x140098580
jmp 0x140098592
mov esi, dword [rbx + 4]
mov dword [rsp + 0x2c], esi
cmp esi, 9
je 0x1400985ba
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x80]
call fcn.1400a46a0
lea rdx, [0x14017fc10]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140018f70
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140019170
nop
mov r8, qword [rbp - 0x30]
inc r8
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140019c90
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.140098180
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.140018f70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x40]
call fcn.140018f70
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400ca980
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret