joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006474
Capabilities:
Check if file exists
Get common file path
Get file attributes

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
sub rsp, 0x20
and qword [rcx], 0
and dword [rcx + 8], 0
and dword [rcx + 0xc], 0
mov r12, rdx
mov edx, 3
mov rbx, rcx
call fcn.1400011b4
cmp dword [rbx + 0xc], 2
jg 0x1400064bc
mov edx, 2
mov rcx, rbx
call fcn.1400011b4
mov rdx, qword [rbx]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
and word [rcx], 0
and dword [rbx + 8], 0
test eax, eax
je 0x14000651f
lea edi, [rax + 1]
cmp edi, dword [rbx + 0xc]
jl 0x1400064eb
mov edx, edi
mov rcx, rbx
call fcn.1400011b4
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rcx, qword [rbx]
xor r11d, r11d
cmp word [rcx], r11w
je 0x140006513
mov rax, rcx
add rax, 2
add r11d, 1
cmp word [rax], 0
jne 0x140006505
movsxd rax, r11d
and word [rcx + rax*2], 0
mov dword [rbx + 8], r11d
movsxd rax, dword [rbx + 8]
xor edi, edi
lea esi, [rax + 0xf]
mov rbp, rax
cmp esi, dword [rbx + 0xc]
jl 0x14000653a
mov edx, esi
mov rcx, rbx
call fcn.1400011b4
mov rax, qword [rbx]
mov r8d, edi
mov rdx, r12
lea rcx, [rax + rbp*2]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rbx]
xor ecx, ecx
xor r11d, r11d
cmp word [rdx], cx
je 0x14000656f
mov rax, rdx
add rax, 2
add r11d, 1
add rcx, 1
cmp word [rax], 0
jne 0x14000655d
and word [rdx + rcx*2], 0
mov rcx, qword [rbx]
mov dword [rbx + 8], r11d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006591
add edi, 1
cmp edi, 0xfff
jl 0x14000652b
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret

Function at 0x1400065b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
cmp dword [0x14002b69c], edi
jle 0x14000665b
xor ebx, ebx
mov rax, qword [0x14002b6a0]
lea rcx, [rsp + 0x20]
mov rsi, qword [rbx + rax]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov edx, dword [rsi + 0x18]
call fcn.1400011b4
mov r11, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x20]
movzx eax, word [r11]
add r11, 2
mov word [rcx], ax
add rcx, 2
test ax, ax
jne 0x140006600
mov eax, dword [rsi + 0x18]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], eax
call fcn.140005fa8
mov r11, qword [0x14002b6a0]
mov rcx, qword [rbx + r11]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
add edi, 1
add rbx, 8
cmp edi, dword [0x14002b69c]
jl 0x1400065cf
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140007290
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x2c], 0
mov rdi, rcx
mov ebp, edx
mov esi, 3
lea rcx, [rsp + 0x20]
mov edx, esi
mov rbx, r8
call fcn.1400011b4
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x30]
mov edx, esi
call fcn.1400011b4
mov esi, 0x70
lea rcx, [rsp + 0x40]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x68], rbx
lea ebx, [rsi - 0x6f]
test bl, bpl
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], 0x740
mov dword [rsp + 0x70], ebx
je 0x14000732a
and dword [rsp + 0x70], 0
mov dword [rsp + 0x44], 0x8740
lea rax, str.runas
test bpl, 2
lea rdx, [rsp + 0x20]
cmove rax, qword [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x50], rax
call fcn.140006bd0
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400014a0
cmp dword [rsp + 0x28], 0
jne 0x140007372
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x20]
jmp 0x1400073c9
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400073bc
bt ebp, 0x10
jb 0x1400073ac
mov rcx, qword [rsp + 0xa8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400073be
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007834
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
cmp word [rcx + 2], 0x3a
jne 0x140007a5a
cmp word [rcx + 4], 0x5c
je 0x140007866
cmp word [rcx + 4], 0x2f
jne 0x140007a5a
movzx eax, word [rcx]
and word [rsp + 0x8e], 0
lea rcx, [rsp + 0x88]
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], 0x3a
mov word [rsp + 0x8c], 0x5c
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140007a57
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rsp + 0x50]
call fcn.140006474
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140007a4d
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x40]
mov edx, 3
call fcn.1400011b4
lea rdx, str.:Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.1400014a0
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.1400031a8
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14000150c
lea rdx, [0x140026000]
lea rcx, [rsp + 0x40]
call fcn.1400031a8
lea rdx, str.if_exist__
lea rcx, [rsp + 0x40]
call fcn.1400031a8
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14000150c
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.1400031a8
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.1400031a8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000150c
lea rdx, [0x140026000]
lea rcx, [rsp + 0x40]
call fcn.1400031a8
mov ebx, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 1
call fcn.14000371c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, qword [rax]
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140007a39
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x80], eax
jne 0x140007a39
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [rsp + 0x28], 0
mov r8, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x140007a43
mov rcx, qword [rsp + 0x50]
call fcn.140003fcc
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000cc74
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400025e0
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.14000a8d4
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.14000a8d4
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000b1a0]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000c7f4
mov rcx, rdi
mov ebx, eax
call fcn.14000b660
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x140017330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
add byte [rcx + 1], 4
mov rax, qword [rbx]
add word [rax + 2], 4
movzx eax, byte [rcx - 5]
cmp byte [rcx + 1], al
jbe 0x140017398
mov eax, dword [rcx]
lea rdx, [rcx - 6]
lea r8, [rsp + 0x30]
mov dword [r8], eax
movzx eax, word [rcx + 4]
mov word [r8 + 4], ax
mov eax, dword [rdx]
mov dword [rcx], eax
movzx eax, word [rdx + 4]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x30]
mov eax, dword [rcx]
mov dword [rdx], eax
movzx eax, word [rcx + 4]
mov word [rdx + 4], ax
mov qword [rbx + 0x10], rdx
cmp byte [rdx + 1], 0x7c
jbe 0x140017398
mov rcx, rbx
call fcn.1400170f0
mov rcx, qword [rbx + 0x10]
movzx edx, word [rcx + 4]
movzx eax, word [rcx + 2]
shl edx, 0x10
or rdx, rax
add rdx, qword [rbx + 0x40]
cmp dword [rbx + 0x18], 0
jne 0x1400173c7
cmp rdx, qword [rbx + 0x58]
jbe 0x1400173c7
mov qword [rbx + 8], rdx
mov qword [rbx], rdx
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140016c30

Function at 0x140018084
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x1400180b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400180b4
xor al, al
jmp 0x1400180c7
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400181dc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002bc50]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400181dc

Function at 0x140018210
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002bc50]
cmp r8d, eax
cmova r8d, eax
jmp 0x1400181dc

Function at 0x140018278
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14002bc50]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x1400182b8
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1400180d4
xor ebx, ebx
cmp al, bl
jne 0x1400182e4
xor al, al
jmp 0x1400182f9
cmp qword [rsp + 0x40], rdi
jne 0x1400182e0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140022940
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x14002e3c0]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
add edx, 1
shr eax, 1
and ecx, 1
add r8, 4
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x140022950
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x140022a41
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop
nop
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
sub r9, 1
mov dword [r8 - 4], eax
jne 0x140022a20
lea rax, [0x140022ca0]
mov qword [0x14002e368], rax
call fcn.140022a80
mov rcx, qword [0x14002e368]
lea rdx, [0x140022bb0]
test eax, eax
cmove rcx, rdx
mov qword [0x14002e368], rcx
add rsp, 0x28
ret
Function at 0x14002328c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400303c8], rdi
je 0x1400232e5
cmp rax, rdi
jne 0x1400232d8
mov esi, 1
jmp 0x1400232e5
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400232bf
mov eax, dword [0x1400303c0]
cmp eax, 1
jne 0x1400232fa
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002335f
mov eax, dword [0x1400303c0]
test eax, eax
jne 0x140023355
mov dword [0x1400303c0], 1
lea r12, [0x140024820]
lea rdi, [0x140024808]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140023347
test eax, eax
jne 0x140023347
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002333c
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x140023325
test eax, eax
je 0x14002335f
mov eax, 0xff
jmp 0x1400234a9
mov dword [0x14002e394], 1
mov eax, dword [0x1400303c0]
cmp eax, 1
jne 0x140023387
lea rdx, [0x140024800]
lea rcx, [0x140024720]
call sub.msvcrt.dll__initterm
mov dword [0x1400303c0], 2
test esi, esi
jne 0x140023394
xor eax, eax
xchg qword [0x1400303c8], rax
cmp qword [0x1400303d0], 0
je 0x1400233bd
lea rcx, [0x1400303d0]
call fcn.140023698
test eax, eax
je 0x1400233bd
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400303d0]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x140023448
cmp byte [rdi], 0
je 0x1400233de
test esi, esi
jne 0x140023448
cmp byte [rdi], 0
je 0x1400233f2
cmp byte [rdi], 0x20
ja 0x1400233f2
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400233de
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000a34c
mov dword [0x14002e390], eax
cmp dword [0x14002e374], 0
jne 0x140023431
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002e394], 0
jne 0x140023446
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002e390]
jmp 0x1400234a9
cmp byte [rdi], 0x22
jne 0x14002345a
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002346f
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x1400233d0
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.14002378c
add rsp, 0x28
jmp 0x14002328c
Function at 0x1400087e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14000884a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14000884a
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 1
call fcn.14001fd20
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
js 0x140008813
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140008870
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea edi, [rcx + 1]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], r8d
lea rdx, [rsp + 0x40]
mov ecx, edi
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140008912
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x140008912
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001fd20
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
js 0x1400088d0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140034f90
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140008940
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140008978
cmp ax, 0x17
jne 0x1400089ed
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400089ed
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400089d2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14001bff0
mov al, 1
jmp 0x1400089ef
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140034f90
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008a10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140008a65
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140008940
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140034f90
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140008a10
Function at 0x14000ded0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdx, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x20]
xor r9d, r9d
mov r8, qword [rcx + 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea ebx, [rdx + 1]
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x44], r8d
mov ecx, ebx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x14000df85
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14000dfcf
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001fd20
lea rax, [rsp + 0x40]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x14000df40
test rcx, rcx
je 0x14000dfcf
mov rbx, qword [rdi + 8]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.140008870
test rax, rax
je 0x14000dfcb
jns 0x14000dfad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x14000dfcf
mov r9d, 2
lea rdx, [rsp + 0x38]
mov r8d, 1
mov rcx, rbx
call fcn.1400087e0
test rax, rax
jle 0x14000dfcf
mov al, 1
jmp 0x14000dfd1
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140034f90
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x14000e130
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9, qword [rcx + 8]
mov rbp, r8
mov rax, qword [rcx + 0x20]
lea r8, [rsp + 0x50]
mov r10, qword [rcx + 0x28]
mov rsi, rdx
mov dword [rsp + 0x48], eax
mov rdi, rcx
lea ebx, [r9 + 1]
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], 1
mov ecx, ebx
mov dword [rsp + 0x4c], r10d
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x14000e1f5
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14000e29c
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001fd20
lea rax, [rsp + 0x48]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x14000e1b0
test rcx, rcx
je 0x14000e29c
mov rbx, qword [rdi + 8]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.140008870
test rax, rax
je 0x14000e23f
jns 0x14000e221
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x14000e29c
mov r9d, 2
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rcx, rbx
call fcn.1400087e0
test rax, rax
jle 0x14000e29c
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov rcx, rdi
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14000e297
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14000e297
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001fd20
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
js 0x14000e260
mov rax, rbx
jmp 0x14000e2a3
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140034f90
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000e2e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14004a0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140008a65
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140008940
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140034f90
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x140008a10