joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098898
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14018e3e0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x14018e415
mov dword [rsp + 0x34], 1
jmp 0x14018e41d
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x140098ded
Capabilities:
Move file

Disassembly:
jmp 0x14014c920
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.14009a882
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14014ca0b
cmp qword [rsp + 0x58], 0
je 0x14014c9de
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x14014c9c2
cmp qword [rsp + 0x60], 0
je 0x14014ca00
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x14014c9e4
jmp 0x14014cad0
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.14009a882
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.14009b03e
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x14014ca75
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x14014cac0
cmp qword [rsp + 0x58], 0
je 0x14014ca91
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x14014ca75
cmp qword [rsp + 0x60], 0
je 0x14014cab3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x14014ca97
mov eax, 1
jmp 0x14014cad2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14014c9a8
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x14009963a
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x14011b340
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x20]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
test eax, eax
jne 0x14011b386
xor eax, eax
test eax, eax
jne 0x14011b38c
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x188]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x180]
call fcn.14011b9b0
test eax, eax
je 0x14011b3f5
mov rax, qword [rsp + 0x1a0]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14011b4ad
xor r9d, r9d
mov r8d, dword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14011b4a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x2733
jne 0x14011b45d
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0x51
jmp 0x14011b4a8
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
call fcn.14009a2ec
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x180]
call fcn.14009b14c
mov rax, qword [rsp + 0x180]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xda4], ecx
mov rax, qword [rsp + 0x1a0]
mov dword [rax], gethostname
mov rax, qword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x170
pop rdi
ret

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

Disassembly:
jmp 0x14011b0c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14011b16b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x2733
jne 0x14011b11e
mov dword [rsp + 0x30], 1
jmp 0x14011b126
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x14011b137
mov dword [rsp + 0x34], 0
jmp 0x14011b13f
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x2c], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x14011b164
mov eax, 0x51
jmp 0x14011b17a
mov eax, gethostname
jmp 0x14011b17a
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140099973
Capabilities:
Terminate process

Disassembly:
jmp 0x1401c5920
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140099bdf
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140121660
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x14021ab88]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x140121737
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x1401216dd
mov eax, 2
jmp 0x1401217ef
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140121727
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140121737
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1401217ef
call fcn.14009ae18
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x140121759
mov eax, dword [rsp + 0x1f8]
jmp 0x1401217ef
lea rcx, str.iphlpapi.dll
call fcn.14009a81e
mov qword [0x14021b9d0], rax
cmp qword [0x14021b9d0], 0
je 0x1401217ac
lea rdx, str.if_nametoindex
mov rcx, qword [0x14021b9d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1401217ac
mov rax, qword [rsp + 0x200]
mov qword [0x14021b9c8], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14009a56c
movzx eax, al
test eax, eax
je 0x1401217d9
mov byte [0x14021c219], 1
jmp 0x1401217e0
mov byte [0x14021c219], 0
lea rcx, [0x14021c228]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400995fe
add rsp, 0x220
pop rdi
ret

Function at 0x140099cfc
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401c0c80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401c0cbd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14009acf1
add rsp, 0x58
ret
Function at 0x140099ee1
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401c6c60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401c6c80
xor al, al
jmp 0x1401c6d01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401c6c93
xor al, al
jmp 0x1401c6d01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1401c6cbd
xor al, al
jmp 0x1401c6d01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401c6cd1
xor al, al
jmp 0x1401c6d01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401c6ce3
xor al, al
jmp 0x1401c6d01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401c6cff
xor al, al
jmp 0x1401c6d01
mov al, 1
add rsp, 0x38
ret
Function at 0x140099fd6
Capabilities:
Create thread

Disassembly:
jmp 0x14014e0f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14014e14c
mov ecx, 0xffffffff
call fcn.1400998dd
cmp qword [rsp + 0x30], rax
jne 0x14014e150
xor eax, eax
jmp 0x14014e155
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14009a7bf
Capabilities:
Write file on windows

Disassembly:
jmp 0x14011b8a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xae5]
test eax, eax
je 0x14011b99b
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x14011b924
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14009a4b3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x270]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14009a4b3
jmp 0x14011b99b
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14011b943
cmp dword [rsp + 0x30], 1
je 0x14011b943
cmp dword [rsp + 0x30], 2
je 0x14011b943
jmp 0x14011b99b
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1401e1fd0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_fwrite]
add rsp, 0x40
pop rdi
ret
Function at 0x14009a81e
Capabilities:
Get common file path

Disassembly:
jmp 0x140121890
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1401218cd
xor eax, eax
jmp 0x140121a6a
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x14020bf54]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ucrtbased.dll_strpbrk]
test rax, rax
je 0x14012193a
cmp qword [rsp + 0x28], 0
je 0x14012191b
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x14012192b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x140121a65
cmp qword [rsp + 0x28], 0
je 0x140121974
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140121974
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x140121a65
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140121a65
mov rcx, qword [rsp + 0x70]
call fcn.140099469
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [fcn.140099ae0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140121a5a
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140121a5a
mov rcx, qword [rsp + 0x48]
call fcn.140099469
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x14020bf78]
mov rcx, rax
call fcn.140098ec9
mov rcx, qword [rsp + 0x48]
call fcn.140099469
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140098ec9
cmp qword [rsp + 0x28], 0
je 0x140121a40
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x140121a50
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [0x14020a040]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x14009a9bd
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14011dc00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_27
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x14021b9c0], 0
jne 0x14011dc81
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14009a56c
movzx eax, al
test eax, eax
je 0x14011dc77
mov dword [0x14021b9c0], 2
jmp 0x14011dc81
mov dword [0x14021b9c0], 1
cmp dword [0x14021b9c0], 2
jne 0x14011dc8c
jmp 0x14011dcea
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14011dcc4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x14011dcc4
jmp 0x14011dcea
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14009a508
add rsp, 0x90
pop rdi
ret

Function at 0x14009aa71
Capabilities:
Read file on windows

Disassembly:
jmp 0x140120f20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140098de8
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll__read]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14009ac65
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400d03e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14021ab88]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14022f077]
call fcn.14009ad23
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1400d0446
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400d044d
mov al, 1
jmp 0x1400d05bf
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.140098c8f
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.140098c8f
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14009a57b
movzx eax, al
test eax, eax
je 0x1400d04b2
xor al, al
jmp 0x1400d05bf
mov qword [rbp + 8], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x1400d0525
cmp dword [rbp + 0x1a0], 1
je 0x1400d0530
cmp dword [rbp + 0x1a0], 3
je 0x1400d05ae
jmp 0x1400d05bd
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400d0580
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400d0580
xor al, al
jmp 0x1400d05bf
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400d059b
mov dword [rbp + 0x194], 1
jmp 0x1400d05a5
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x1400d05bf
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400d05bf
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14009a508
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400995fe
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x14009acc9
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x140134b90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1378], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x813]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1380], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1169]
test eax, eax
je 0x140134c05
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1169]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x813]
cmp eax, ecx
jle 0x140134c1c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x813]
mov byte [rax + 0x1169], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1178], 0
je 0x140134c55
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x11f0]
test eax, eax
jne 0x140134c55
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x1a0
jne 0x140134c55
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x813]
cmp eax, 0xa
jne 0x140134c88
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.14009a8f0
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14009960d
jmp 0x140134cf3
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x813]
cmp eax, 0x14
je 0x140134cb2
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x8c], 1
jne 0x140134ccc
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x65
jne 0x140134ccc
xor eax, eax
test eax, eax
jne 0x140134cb2
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x7d0]
mov dword [rax], 2
jmp 0x140134cf3
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x813]
cmp eax, 0xb
jl 0x140134cf3
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x140134cf3
xor eax, eax
test eax, eax
jne 0x140134ced
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x64
jl 0x140134d16
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0xc8
jge 0x140134d16
mov dword [rsp + 0x28], 1
jmp 0x140134d1e
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x140134d2f
mov dword [rsp + 0x2c], 0
jmp 0x140134d37
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xdd], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x140134d85
cmp dword [rsp + 0x30], 0x130
je 0x140134d69
jmp 0x140134daa
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x568]
test eax, eax
je 0x140134d85
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x145c], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdd], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret