joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400037c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400036d4]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400047a0
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140056dd8], rax
call fcn.140004658
xor ebx, ebx
cmp word [0x140056dd0], bx
mov qword [0x1400574a0], rax
jne 0x1400038e3
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140056dd0], di
test eax, eax
je 0x140003831
mov word [0x140056dd0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140056e00], rax
test rax, rax
je 0x1400038e3
lea rdx, [0x140047118]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140056e00]
lea rdx, [0x140047128]
mov qword [0x140056de0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140056e00]
lea rdx, str.getnameinfo
mov qword [0x140056de8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140056e00]
lea rdx, str.WSAStringToAddressA
mov qword [0x140056df0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140056de0], rbx
mov qword [0x140056df8], rax
je 0x1400038e3
cmp qword [0x140056de8], rbx
je 0x1400038e3
cmp qword [0x140056df0], rbx
je 0x1400038e3
mov ecx, dword [0x140056dd4]
test rax, rax
cmovne ecx, edi
mov dword [0x140056dd4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x140003b80
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140003b93
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x140003b95
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003b9c
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140003c26
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140003c12
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140003c12
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140003c12
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140003be4
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140003c28
xor eax, eax
add rsp, 0x230
pop rbx
ret
Function at 0x140003c50
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140003db2
cmp word [rcx], di
je 0x140003db2
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140003cef
cmp word [rsp + 0x22], 0x3a
jne 0x140003cef
cmp edx, 2
jne 0x140003cd6
lea rdx, [0x14004715c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140003db2
jmp 0x140003d8a
cmp word [rcx], 0x5c
je 0x140003cfb
cmp word [rcx], 0x2f
jne 0x140003d04
mov word [rcx], di
sub rcx, 2
jmp 0x140003cef
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140003d4b
test byte [rbp + 0x130], 0x10
je 0x140003d30
mov rbx, 0xfffffffffffffffe
jmp 0x140003d43
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140003db2
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140003d60
cmp ax, cx
je 0x140003d76
cmp cx, 0x2f
jne 0x140003d6b
cmp ax, cx
je 0x140003d76
cmp cx, 0x2e
jne 0x140003db2
cmp ax, cx
jne 0x140003db2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003d93
test al, 0x10
je 0x140003db2
mov rbx, 0xfffffffffffffffe
jmp 0x140003db2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140003e60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140003ea4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x140004470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x1400044e8
test r8d, r8d
je 0x1400044e8
mov rdx, rcx
mov rcx, qword [0x1400574c0]
call fcn.1400046d4
test rax, rax
je 0x1400044e4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400044d1
mov rcx, rax
call fcn.140004500
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140004500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14000463e
cmp dword [rcx + 0x1c], 1
jne 0x140004553
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x1400045df
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x1400045c7
dec edx
je 0x1400045ae
cmp edx, 2
je 0x140004597
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140003e60
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x140004619
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005078
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x140005084
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [reloc.WS2_32.dll_accept], 0
mov edi, edx
mov rbx, rcx
jne 0x1400050a2
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [reloc.WS2_32.dll_bind], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140057500], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140057520], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140057520]
lea rdx, [0x140057540]
mov qword [0x140057560], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x140005060]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x140005114
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x140057580]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400575c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140005084
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x140005084
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [reloc.WS2_32.dll_accept], 0
mov edi, edx
mov rbx, rcx
jne 0x1400050a2
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [reloc.WS2_32.dll_bind], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140057500], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140057520], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140057520]
lea rdx, [0x140057540]
mov qword [0x140057560], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x140005060]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x140005114
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x140057580]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400575c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400051e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x14000525b
mov rcx, qword [0x140056d44]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000525b
mov rcx, rax
test rbx, rbx
je 0x14000524c
mov rdx, rbx
call sub.msvcrt.dll_wcscpy
lea rdx, [0x140047194]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
jmp 0x140005258
lea rdx, [0x140047194]
call sub.msvcrt.dll_wcscpy
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1400052e5
mov eax, dword [reloc.WS2_32.dll_bind]
cmp eax, 2
je 0x1400052b0
cmp eax, 0x18
je 0x1400052a6
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400052e5
mov rcx, rbx
call fcn.1400416e0
jmp 0x1400052b8
mov rcx, rbx
call fcn.1400417c0
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.1400416d0
test rdi, rdi
je 0x1400052fc
mov rcx, qword [0x140056d44]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f230
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x14000f33d
mov rdx, rcx
lea r8, [rsp + 0x50]
mov ecx, 2
call fcn.14002b970
test eax, eax
jne 0x14000f33d
lea r8, [rsp + 0x20]
lea ecx, [rax + 0x17]
mov rdx, rbx
call fcn.14002b970
test eax, eax
jne 0x14000f33d
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
xor r14d, r14d
or rdi, 0xffffffffffffffff
mov esi, r14d
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14000f292
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14002b8a0
test rax, rax
je 0x14000f2d7
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call fcn.14002b8a0
mov rsi, rax
test rax, rax
je 0x14000f2d7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rax, [rdi + rbx]
mov edi, 0x1505
mov rbp, rax
sub rbp, rbx
cmp rbx, rax
cmova rbp, r14
mov r14, qword [rsp + 0x30]
test rbp, rbp
je 0x14000f324
mov rsi, rbx
neg rsi
movzx ecx, byte [rbx]
call fcn.14001d4b0
lea rbx, [rbx + 1]
imul rdi, rdi, 0x21
movsx rcx, al
lea rax, [rsi + rbx]
xor rdi, rcx
cmp rax, rbp
jb 0x14000f304
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x1400122f0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14001231a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140047ed0]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.msvcrt.dll_strpbrk]
test rax, rax
je 0x14001237e
mov rcx, rbx
test r14, r14
je 0x140012368
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400123b6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400123b6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140012479
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400123e0
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001246b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001246b
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140012410
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x140012424
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140012440
mov rcx, rdi
test r14, r14
je 0x140012462
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140012468
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14000204e]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140012640
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x268
test cl, 2
je 0x14001268a
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001267d
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x140012677
shr ax, 8
cmp al, 2
je 0x14001268a
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add rsp, 0x268
ret
call fcn.14002f600
test eax, eax
jne 0x140012791
lea rcx, str.iphlpapi.dll
call fcn.1400122f0
mov qword [0x140056f78], rax
test rax, rax
je 0x1400126d4
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140056f70]
test rax, rax
cmovne rcx, rax
mov qword [0x140056f70], rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x20], 0x9c
mov qword [rsp + 0x24], 6
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x20]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140012788
lea rcx, [0x140057640]
mov byte [0x140057660], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add rsp, 0x268
ret
mov byte [0x140057660], 0
xor eax, eax
add rsp, 0x268
ret

Function at 0x140012ab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140012b0e
mov dl, 1
call fcn.1400141d0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400141d0
mov eax, ebx
jmp 0x140012b52
cmp ebx, 2
ja 0x140012b50
mov r9, qword [rdi + 0x668]
lea rdx, [0x140047f70]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140012b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x150
cmp byte [rcx + 0xe99], 0
mov rdi, rcx
jne 0x140012ba1
cmp qword [rcx + 0x678], 0
je 0x140012cbd
mov r8, rdx
lea r9, [rsp + 0x170]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov qword [rsp + 0x148], rbx
call fcn.140026eb0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140012bd0
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140012c19
cmp byte [rdi + 0x150f], 0
jne 0x140012c19
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
mov byte [rcx - 1], al
test al, al
jne 0x140012c00
mov byte [rdi + 0x150f], 1
cmp byte [rdi + 0xe99], 0
je 0x140012cb5
cmp qword [rdi + 0x718], 0
mov word [rsp + rbx + 0x30], 0xa
je 0x140012c7c
mov dl, 1
mov rcx, rdi
call fcn.1400141d0
mov rax, qword [rdi + 0x670]
lea r9, [rbx + 1]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400141d0
mov rbx, qword [rsp + 0x148]
add rsp, 0x150
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x140047f70]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
mov r8d, 1
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x148]
add rsp, 0x150
pop rdi
ret

Function at 0x140012cd0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140012e1f
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x850
cmp byte [rcx + 0xe99], 0
mov rdi, rcx
je 0x140012e17
mov r8, rdx
lea r9, [rax + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [rax - 0x10], rbx
call fcn.140026eb0
or rbx, 0xffffffffffffffff
movsxd rcx, eax
cmp rcx, 0x801
jb 0x140012d76
mov rcx, qword [rsp + 0x868]
mov rax, rbx
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140012d35
cmp byte [rax + rcx - 1], 0xa
jne 0x140012d5d
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x140012d71
lea r8, [0x140047f90]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140026d30
lea rax, [rsp + 0x30]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140012d80
cmp qword [rdi + 0x718], 0
je 0x140012dd7
mov dl, 1
mov rcx, rdi
call fcn.1400141d0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400141d0
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x140047f70]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret
Function at 0x140012eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140012eeb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0xa0
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x258]
mov r14, rcx
call fcn.140013650
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0xd0]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x1400130b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140013083
mov dword [rsi], 0x51
xor eax, eax
jmp 0x1400130b9
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140030440
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140012b70
mov rcx, qword [r14]
mov dword [rcx + 0x1128], ebx
mov dword [rsi], gethostname
mov rax, rdi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x430]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14001372c
lea rax, [0x140012f30]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x14001372c
cmp qword [rbx], 0
je 0x1400136b6
test rdi, rdi
je 0x14001372c
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.14001cb60
cmp eax, 0xffffffff
je 0x14001372c
test al, 1
je 0x14001372c
cmp qword [rbx], 0
jne 0x14001370b
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb68]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.msvcrt.dll_malloc]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14001370b
mov qword [rbx + 8], rcx
jmp 0x14001372c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14001372c
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret