joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800029c0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x1800357b8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
mov r9d, 1
call fcn.1800068f0
cmp rax, 0xffffffffffffffff
je 0x180002aad
mov r9, rax
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180004650
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18000a530
nop
cmp qword [rsp + 0x40], 8
jb 0x180002a35
mov rcx, qword [rsp + 0x28]
call fcn.18000ec80
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
cmp qword [rbx + 0x18], 8
jb 0x180002a65
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x180002a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_change_file_extension._Error_code:
call fcn.18000a5d0
mov rcx, rax
mov edx, ebx
call fcn.180004480
mov rcx, rax
call fcn.18000a940
nop
cmp qword [rsp + 0x60], 8
jb 0x180002ac1
mov rcx, qword [rsp + 0x48]
call fcn.18000ec80
jmp 0x180002ac1
lea rdx, str.File_extension_not_found_in_the_provided_file_path.
call fcn.18000a5d0
mov rcx, rax
call fcn.18000a940
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18000cec0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1800032b0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800357b8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rbx, rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180027fb8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x180003467
mov qword [rbp + 0x88], 7
xor edi, edi
mov qword [rbp + 0x80], rdi
mov word [rbp + 0x70], di
mov rdx, qword [rsp + 0x30]
cmp word [rdx], di
jne 0x18000332d
mov r8d, edi
jmp 0x18000333b
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x180003331
lea rcx, [rbp + 0x70]
call fcn.180008b00
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Readme.txt
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.18000a9d0
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180005390
nop
cmp qword [rbp - 0x28], 0
je 0x1800033c8
cmp qword [rbx + 0x18], 0x10
jb 0x180003385
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18000aac0
lea rcx, [rsp + 0x48]
call fcn.180007130
test rax, rax
jne 0x1800033c8
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x40]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1800033bf
or edx, 4
xor r8d, r8d
call fcn.180002710
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.180005500
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.18000c2ac
nop
cmp qword [rbp + 0x68], 8
jb 0x180003444
mov rcx, qword [rbp + 0x50]
call fcn.18000ec80
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rdi
mov word [rbp + 0x50], di
cmp qword [rbp + 0x88], 8
jb 0x180003467
mov rcx, qword [rbp + 0x70]
call fcn.18000ec80
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18000cec0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400038b0
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov r12d, ecx
test rdx, rdx
je 0x1400039e0
mov rcx, qword [0x140064544]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [0x140062388]
mov dword [rdi + 0x44], eax
mov eax, dword [0x1400645d8]
mov dword [rdi + 0x80], r12d
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x78], rax
test bpl, cl
je 0x1400039d1
test rsi, rsi
je 0x14000398a
mov rcx, qword [0x140064544]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x140003984
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x70], rbx
je 0x1400039c7
lea rax, [rsp + 0x68]
lea r8, [0x1400039fc]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400039bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400039c3
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x1400039dd
mov rcx, rdi
call fcn.14000335c
jmp 0x1400039e0
mov rcx, rdi
mov qword [rdi + 0x70], r14
call fcn.1400033f8
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140003c10
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140003b24]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14000f96c
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1400645e8], rax
call fcn.14000f7ec
xor ebx, ebx
cmp word [0x1400645e0], bx
mov qword [0x140065040], rax
jne 0x140003d33
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1400645e0], di
test eax, eax
je 0x140003c81
mov word [0x1400645e0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140064610], rax
test rax, rax
je 0x140003d33
lea rdx, [0x140052b30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140064610]
lea rdx, [0x140052b40]
mov qword [0x1400645f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140064610]
lea rdx, str.getnameinfo
mov qword [0x1400645f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140064610]
lea rdx, str.WSAStringToAddressA
mov qword [0x140064600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400645f0], rbx
mov qword [0x140064608], rax
je 0x140003d33
cmp qword [0x1400645f8], rbx
je 0x140003d33
cmp qword [0x140064600], rbx
je 0x140003d33
mov ecx, dword [0x1400645e4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400645e4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140005934
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140065100]
call fcn.14000f8a0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400059b4
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140005979
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400059b4
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400107e0
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.1400108e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007870
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
xor ebp, ebp
mov rdi, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
lea eax, [rbx + 9]
test rsi, rsi
je 0x140007932
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140007a73
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140007a73
mov rcx, qword [0x140065160]
lea rdx, [rsi - 1]
call fcn.14000f8a0
mov ebp, 1
cmp dword [rax + 0x20], 0
mov rbx, rax
jle 0x140007a73
mov rax, qword [rax + 8]
movsxd r8, dword [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r10d, [rbp + 8]
cmp word [rcx + rax + 2], r10w
jne 0x140007923
mov r9d, 0xfa01
cmp word [rcx + rax + 4], r9w
je 0x140007a6c
inc rdx
add rcx, 6
cmp rdx, r8
jl 0x140007909
mov eax, r10d
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x140007a05
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140007a05
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140007a05
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140007a05
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140007a05
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140007a05
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400079d1
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x1400079f0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140007a7d
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140007a7d
test r14, r14
je 0x140007a47
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140007a3a
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140007a3a
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140007a47
mov edx, 1
mov rcx, r14
call fcn.140007a94
test rdi, rdi
je 0x140007a61
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140007a7d
test rbx, rbx
je 0x140007a7d
mov rax, qword [rbx + 0x10]
jmp 0x140007a7f
xor ebp, ebp
jmp 0x14000792f
mov eax, 9
jmp 0x140007932
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e1d0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140065500], eax
add rsp, 0x28
ret

Function at 0x140010234
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400102cd
lea rsi, [0x140052b88]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
add rbp, rbp
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400102c7
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400102c7
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 0xd]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400102e8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, ecx
xor r14d, r14d
xor ecx, ecx
mov ebx, r14d
mov esi, r14d
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140010347
lea ecx, [r14 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x14001033f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
je 0x14001033f
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov rsi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14001034c
mov rdi, qword [rsp + 0x48]
mov edx, ebp
mov ecx, esi
call fcn.1400107e0
test rbx, rbx
je 0x140010379
lea ecx, [rsi + 1]
mov rdx, rbx
movsxd r8, ecx
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x14001037d
mov word [rax], r14w
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001a860
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x14001a96d
mov rdx, rcx
lea r8, [rsp + 0x50]
mov ecx, 2
call fcn.140036d50
test eax, eax
jne 0x14001a96d
lea r8, [rsp + 0x20]
lea ecx, [rax + 0x17]
mov rdx, rbx
call fcn.140036d50
test eax, eax
jne 0x14001a96d
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 0x14001a8c2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140036c80
test rax, rax
je 0x14001a907
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call fcn.140036c80
mov rsi, rax
test rax, rax
je 0x14001a907
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 0x14001a954
mov rsi, rbx
neg rsi
movzx ecx, byte [rbx]
call fcn.140028890
lea rbx, [rbx + 1]
imul rdi, rdi, 0x21
movsx rcx, al
lea rax, [rsi + rbx]
xor rdi, rcx
cmp rax, rbp
jb 0x14001a934
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 0x14001d6d0
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 0x14001d6fa
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, [0x140053e70]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.msvcrt.dll_strpbrk]
test rax, rax
je 0x14001d75e
mov rcx, rbx
test r14, r14
je 0x14001d748
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 0x14001d796
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d796
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 0x14001d859
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14001d7c0
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001d84b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001d84b
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14001d7f0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x14001d804
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 0x14001d820
mov rcx, rdi
test r14, r14
je 0x14001d842
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14001d848
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140003060]
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 0x14001da20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x268
test cl, 2
je 0x14001da6a
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001da5d
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x14001da57
shr ax, 8
cmp al, 2
je 0x14001da6a
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add rsp, 0x268
ret
call fcn.14003a9e0
test eax, eax
jne 0x14001db71
lea rcx, str.iphlpapi.dll
call fcn.14001d6d0
mov qword [0x140064d18], rax
test rax, rax
je 0x14001dab4
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140064d10]
test rax, rax
cmovne rcx, rax
mov qword [0x140064d10], 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 0x14001db68
lea rcx, [0x140065640]
mov byte [0x140065660], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add rsp, 0x268
ret
mov byte [0x140065660], 0
xor eax, eax
add rsp, 0x268
ret

Function at 0x14001de90
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 0x14001deee
mov dl, 1
call fcn.14001f5b0
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.14001f5b0
mov eax, ebx
jmp 0x14001df32
cmp ebx, 2
ja 0x14001df30
mov r9, qword [rdi + 0x668]
lea rdx, [0x140053f10]
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 0x14001df50
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 0x14001df81
cmp qword [rcx + 0x678], 0
je 0x14001e09d
mov r8, rdx
lea r9, [rsp + 0x170]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov qword [rsp + 0x148], rbx
call fcn.140032290
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14001dfb0
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14001dff9
cmp byte [rdi + 0x150f], 0
jne 0x14001dff9
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 0x14001dfe0
mov byte [rdi + 0x150f], 1
cmp byte [rdi + 0xe99], 0
je 0x14001e095
cmp qword [rdi + 0x718], 0
mov word [rsp + rbx + 0x30], 0xa
je 0x14001e05c
mov dl, 1
mov rcx, rdi
call fcn.14001f5b0
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.14001f5b0
mov rbx, qword [rsp + 0x148]
add rsp, 0x150
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x140053f10]
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 0x14001e0b0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14001e1ff
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 0x14001e1f7
mov r8, rdx
lea r9, [rax + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [rax - 0x10], rbx
call fcn.140032290
or rbx, 0xffffffffffffffff
movsxd rcx, eax
cmp rcx, 0x801
jb 0x14001e156
mov rcx, qword [rsp + 0x868]
mov rax, rbx
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14001e115
cmp byte [rax + rcx - 1], 0xa
jne 0x14001e13d
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14001e151
lea r8, [0x140053f30]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140032110
lea rax, [rsp + 0x30]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14001e160
cmp qword [rdi + 0x718], 0
je 0x14001e1b7
mov dl, 1
mov rcx, rdi
call fcn.14001f5b0
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.14001f5b0
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret
mov r9, qword [rdi + 0x668]
mov edx, 2
lea rcx, [0x140053f10]
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