joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046de8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400e3bb0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140046e46
cmp word [rdx], r12w
jne 0x140046e46
or byte [rax + r8*8 + 0x38], cl
jmp 0x140046e4c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140046fa7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140046f82
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140046e85
mov rcx, r9
jmp 0x140046ea8
cmp r9, rdx
jae 0x140046ebf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140046e69
jmp 0x140046fa7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046f7c
cmp dword [rsp + 0x80], edi
je 0x140046f7c
mov rdx, r14
lea r11, [0x1400e3bb0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140046f55
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140046f28
mov word [rbx], r12w
jmp 0x140046fa3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140046f31
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140046fa3
cmp word [rsp + 0x70], r12w
jne 0x140046f62
cmp rbx, rsi
je 0x140046f22
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14004b384
cmp word [rsp + 0x70], r12w
je 0x140046fa7
mov word [rbx], r13w
jmp 0x140046fa3
lea r11, [0x1400e3bb0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140046f9f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140046fa7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400493f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140049426
call fcn.140032640
mov dword [rax], socket
call fcn.14002d708
jmp 0x140049545
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140049545
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140049545
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140049455
lock or dword [rcx + 0x14], 0x10
jmp 0x140049545
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140049469
call fcn.140049a0c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400493cc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140047294
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140049533
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400494fe
mov rcx, rsi
call fcn.1400493cc
cmp eax, edi
je 0x1400494e9
mov rcx, rsi
call fcn.1400493cc
cmp eax, 0xfffffffe
je 0x1400494e9
mov rcx, rsi
call fcn.1400493cc
movsxd rbx, eax
lea r14, [0x1400e3bb0]
mov rcx, rsi
sar rbx, 6
call fcn.1400493cc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400494f0
lea rdx, [0x1400dc4d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400494fe
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140049522
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140049522
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140049522
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140049548
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14004ca8c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004b384
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004b384
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004cbdc
cmp rax, 0xffffffffffffffff
je 0x14004cbdc
xor edi, edi
test rbp, rbp
jle 0x14004cb87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004b054
mov rbx, rax
test rax, rax
jne 0x14004cb14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004cb7d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400452f4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400481d8
cmp eax, 0xffffffff
je 0x14004cb5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004cb24
mov edx, r15d
mov ecx, r14d
call fcn.1400452f4
jmp 0x14004cb7d
cmp byte [rsi + 0x38], dil
je 0x14004cb74
cmp dword [rsi + 0x34], 5
jne 0x14004cb74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14004cb7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140049a78
jmp 0x14004cbf0
jns 0x14004cbf0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004b384
cmp rax, 0xffffffffffffffff
jne 0x14004cba8
cmp byte [rsi + 0x30], dil
je 0x14004cbf0
mov edi, dword [rsi + 0x2c]
jmp 0x14004cbf0
mov ecx, r14d
call fcn.14004c97c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004cbf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14004cbf0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004cbe9
mov eax, dword [rsi + 0x2c]
jmp 0x14004cbee
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004b384
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400511f8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140051228
xor eax, eax
jmp 0x1400512eb
mov rbp, rbx
cmp word [rax], si
je 0x14005124d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140051234
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140051230
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004de34
movsxd r14, eax
test eax, eax
jne 0x14005128b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140051221
mov rcx, r14
call fcn.140049ab4
mov rdi, rax
test rax, rax
jne 0x1400512a4
xor ecx, ecx
call fcn.140049a78
jmp 0x140051280
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004de34
test eax, eax
jne 0x1400512d5
mov rcx, rdi
call fcn.140049a78
jmp 0x1400512df
xor ecx, ecx
call fcn.140049a78
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140051308
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005138f
mov rsi, rbx
cmp word [rax], bp
je 0x14005134e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140051338
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140051334
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140049ab4
mov rdi, rax
test rax, rax
je 0x14005137c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140028de0
mov rbp, rdi
xor ecx, ecx
call fcn.140049a78
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140054948
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140054968
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400325b4
or eax, 0xffffffff
jmp 0x14005496a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140057210
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140033b08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005729a
cmp byte [rbp - 0x21], r15b
je 0x140057295
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400572d0
call fcn.14004b748
test eax, eax
jne 0x1400572bc
cmp byte [rbp - 0x21], r15b
je 0x1400572b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400572d0
cmp byte [rbp - 0x21], r15b
je 0x1400572cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140033cb0
test eax, eax
jne 0x140057370
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140033b08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005730f
cmp byte [rbp - 0x21], r15b
je 0x140057344
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140057344
call fcn.14004b748
test eax, eax
jne 0x140057330
cmp byte [rbp - 0x21], r15b
je 0x140057329
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140057344
cmp byte [rbp - 0x21], r15b
je 0x140057341
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140033cb0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140057370
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140057373
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140057381
mov rcx, rdi
call fcn.140049a78
cmp byte [rbp + 0x3f], r15b
je 0x140057390
mov rcx, qword [rbp + 0x27]
call fcn.140049a78
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140059b8c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400dc020]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rcx], 0
lea rax, [rbp - 0x28]
and qword [rcx + 0x10], 0
mov rbx, rcx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
or rdi, 0xffffffffffffffff
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x17], 0x29616c
mov word [rbp - 0x24], 0x495f
mov word [rbp - 0x1f], 0x2063
mov word [rbp - 0x27], 0x4953
mov word [rbp - 0x22], 0x656e
mov dword [rbp - 0x1c], 0x697a6f4d
mov byte [rbp - 0x25], 0x53
mov byte [rbp - 0x20], reloc.WS2_32.dll_WSACleanup
mov byte [rbp - 0x1d], 0x28
mov byte [rbp - 0x28], 0x4e
mov byte [rbp - 0x18], WSAGetLastError
mov byte [rcx], 0
inc rdi
cmp byte [rax + rdi], 0
jne 0x140059c09
cmp rdi, 0xf
ja 0x140059c2e
mov r8, rdi
mov qword [rcx + 0x10], rdi
lea rdx, [rbp - 0x28]
call fcn.140028de0
mov byte [rbx + rdi], 0
jmp 0x140059c3a
lea r9, [rbp - 0x28]
mov rdx, rdi
call fcn.140021a48
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140026bb0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x140065270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400652ac
xor eax, eax
jmp 0x140065448
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea rdx, [0x1400dd62c]
mov rcx, qword [rsp + 0x70]
call fcn.140035d90
test rax, rax
je 0x140065318
cmp qword [rsp + 0x30], 0
je 0x1400652f9
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x140065309
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
jmp 0x140065443
cmp qword [rsp + 0x30], 0
je 0x140065352
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140065352
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x140065443
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140065443
mov rcx, qword [rsp + 0x70]
call fcn.140035aa0
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
add rax, qword [rsp + 0x58]
mov rcx, rax
call qword [fcn.140033aa0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140065438
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140065438
mov rcx, qword [rsp + 0x28]
call fcn.140035aa0
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, [0x1400dd614]
mov rcx, rax
call fcn.140035c00
mov rcx, qword [rsp + 0x28]
call fcn.140035aa0
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140035c00
cmp qword [rsp + 0x30], 0
je 0x14006541e
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x14006542e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call qword [fcn.1400337c0]
mov rax, qword [rsp + 0x38]
add rsp, 0x68
ret
Function at 0x140065454
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400dc020]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x14006550c
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 + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400654b2
mov eax, 2
jmp 0x1400655b2
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 0x1400654fc
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 0x14006550c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400655b2
call fcn.1400875bc
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140065525
mov eax, dword [rsp + 0x34]
jmp 0x1400655b2
lea rcx, str.iphlpapi.dll
call fcn.140065270
mov qword [0x1400e44a8], rax
cmp qword [0x1400e44a8], 0
je 0x14006556f
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400e44a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14006556f
mov rax, qword [rsp + 0x40]
mov qword [0x1400e4350], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140087678
movzx eax, al
test eax, eax
je 0x14006559c
mov byte [0x1400e4680], 1
jmp 0x1400655a3
mov byte [0x1400e4680], 0
lea rcx, [0x1400e4678]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140026bb0
add rsp, 0x208
ret
Function at 0x14006e3d8
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
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 + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14006e481
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x14006e435
mov dword [rsp + 0x24], 1
jmp 0x14006e43d
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x14006e44e
mov dword [rsp + 0x28], 0
jmp 0x14006e456
mov dword [rsp + 0x28], 1
mov al, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14006e47a
mov eax, 0x51
jmp 0x14006e490
mov eax, 0x38
jmp 0x14006e490
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x14006ec04
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1f0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x238]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x408]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14006edd3
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x14006efe0]
cmp qword [rcx + rax*8 + 0x218], rdx
jne 0x14006edd3
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14006ecb6
cmp qword [rsp + 0x30], 0
je 0x14006edd3
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140099fec
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14006edd3
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14006edd3
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14006ed66
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6e4]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.140033aa0]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14006ed3e
mov eax, 0x1b
jmp 0x14006edd5
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14006edc6
xor eax, eax
test eax, eax
jne 0x14006ed71
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x14006edc4
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x14006edd3
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x14006ee6c
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x1400dc020]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x14006ee98
xor eax, eax
test eax, eax
jne 0x14006ee9e
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8 + 0x1f0]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.14006ec04
test eax, eax
je 0x14006ef07
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x14006efbf
xor r9d, r9d
mov r8d, dword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14006efba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x14006ef6f
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x14006efba
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.1400a399c
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.14006f3b4
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd34], ecx
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x37
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140026bb0
add rsp, 0x158
ret