joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e23d0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1400e2442
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x1400e2408
add rdi, rbx
sub rsi, rbx
je 0x1400e2442
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1400e2400
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1400e2400
add ebp, 0x80000000
jmp 0x1400e2444
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400e9ef0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x1400e9f26
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400e9f36
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x1400ea370
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400ea3c5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400ea461
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400ea3d9
cmp eax, 0x2739
jne 0x1400ea42a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400ea424
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400ea43f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400ea461
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400ea461
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ebf30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400ebf47
mov rdx, rax
add rsp, 0x28
ret
call sub.KERNEL32.dll_GetLastError
ud2

Function at 0x1400ec720
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x200
mov rsi, rcx
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov word [rsp + 0x2e], bp
mov rax, qword [0x1401d9c18]
cmp rax, 3
jne 0x1400ec820
cmp rdi, 0x17f
ja 0x1400ec839
lea r14, [rsp + 0x80]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.14012ca80
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, r14
mov r8, rdi
call fcn.14010c780
cmp qword [rsp + 0x38], 0
je 0x1400ec7ae
lea rax, [0x1401c3238]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400ec84c
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400ec808
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1400ec84c
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
jmp 0x1400ec84c
lea rcx, [0x1401d9c18]
call fcn.140130380
cmp rdi, 0x17f
jbe 0x1400ec75e
lea r9, [rsp + 0x2e]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140130a50
mov rax, rsi
add rsp, 0x200
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ec860
Capabilities:
Connect socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400ec880
mov qword [rsi + 8], rbx
jmp 0x1400ec8b5
mov rax, qword [0x1401d9c18]
cmp rax, 3
jne 0x1400ec9be
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.1400ea370
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400ec8cf
mov qword [rsi + 8], rdi
mov qword [rsi], 1
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp word [rbx], 0
je 0x1400ec923
movups xmm0, xmmword [rbx + 4]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x2c], xmm1
movaps xmmword [rsp + 0x20], xmm0
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.140105f30
mov ebx, eax
rol bx, 8
mov rcx, r14
call fcn.14000fa30
movups xmm6, xmmword [rax]
mov rcx, r14
call fcn.1400ca530
mov ebp, eax
mov rcx, r14
call fcn.140105f40
mov r8d, 0x1c
mov cx, 0x17
jmp 0x1400ec95d
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov word [rsp + 0x24], cx
mov dword [rsp + 0x20], eax
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.140105f00
mov ebx, eax
rol bx, 8
mov rcx, r14
call fcn.14000fa30
mov ebp, dword [rax]
xorps xmm6, xmm6
mov r8d, 0x10
mov cx, 2
mov word [rsp + 0x20], cx
mov word [rsp + 0x22], bx
mov dword [rsp + 0x24], ebp
movups xmmword [rsp + 0x28], xmm6
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400ec997
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400ec8bc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400ec8bc
lea rcx, [0x1401d9c18]
call fcn.140130380
jmp 0x1400ec891
Function at 0x1400ece50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xf0
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x2c], 0x80
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x2c]
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400ecf44
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x1400ecf54
cmp ecx, 0x17
jne 0x1400ecf7d
cmp eax, 0x1c
jb 0x1400ecf99
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x30], xmm0
movzx r8d, word [rsp + 0x52]
rol r8w, 8
mov r9d, dword [rsp + 0x54]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x30]
call fcn.140105f10
movups xmm0, xmmword [rsp + 0xd0]
movups xmm1, xmmword [rsp + 0xdc]
movups xmmword [rsp + 0x32], xmm0
movups xmmword [rsp + 0x3e], xmm1
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x3e]
movups xmmword [rsi + 2], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400ecf8d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400ecf84
cmp eax, 0x10
jb 0x1400ecf99
mov ecx, dword [rsp + 0x54]
movzx edx, word [rsp + 0x52]
rol dx, 8
call fcn.140105ef0
mov word [rsi], 0
mov dword [rsi + 2], eax
shr rax, 0x20
mov word [rsi + 6], ax
jmp 0x1400ecf8d
lea rax, str.invalid_argumentP2
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xf0
pop rsi
ret
ud2
Function at 0x1400edc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400edc50
test ecx, ecx
jne 0x1400edca0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400edc5c
test ecx, ecx
jne 0x1400edca0
mov rcx, rdi
call fcn.1400edb10
movzx ecx, al
test bpl, bpl
jne 0x1400edca7
lea rdx, [rdi + 0x10]
xor eax, eax
cmp byte [rdi + 0x10], 6
cmove rdx, rax
je case.0x1400edc93.2
movzx r8d, byte [rdx]
mov eax, 6
lea r9, [0x1400eddfc]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rax, qword [rdx + 0x10]
add rax, 4
jmp case.0x1400edc93.2
xor ecx, ecx
test bpl, bpl
je 0x1400edc6c
xor eax, eax
add rcx, rax
movzx r10d, bl
lea r9, [rcx + r10]
mov rax, qword [rdi + 8]
cmp rax, r9
jb 0x1400eddf7
mov r11, qword [rdi]
lea rdx, [r11 + r9]
cmp rax, r9
jne 0x1400edcda
movzx r8d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400edd59
movzx r8d, byte [rdi + 0x10]
add rcx, r10
sub rcx, rax
inc rcx
lea rdi, [rax + r11]
dec rdi
xor r10d, r10d
cmp r8b, 3
jae 0x1400edd20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400edd3b
inc rcx
dec rdi
cmp rcx, 1
jne 0x1400edd00
jmp 0x1400edd59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400edd3b
cmp ebx, 0x5c
je 0x1400edd3b
inc rcx
dec rdi
cmp rcx, 1
jne 0x1400edd20
jmp 0x1400edd59
neg rcx
add r9, rcx
inc r9
cmp rax, r9
jb 0x1400eddf7
add r11, r9
mov r10d, 1
mov rdx, r11
sub rax, r9
je 0x1400edd82
mov cl, 9
cmp rax, 2
je 0x1400edd86
cmp rax, 1
jne 0x1400edd95
cmp byte [rdx], 0x2e
jne 0x1400edd95
xor ecx, ecx
cmp r8b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x1400edd95
mov cl, 0xa
jmp 0x1400edd95
cmp byte [rdx], 0x2e
jne 0x1400edd95
cmp byte [rdx + 1], 0x2e
sete cl
xor cl, 9
add r10, rax
mov qword [rsi], r10
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rax
mov byte [rsi + 0x18], cl
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 8
jmp case.0x1400edc93.2
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 2
jmp case.0x1400edc93.2
mov eax, 2
jmp case.0x1400edc93.2
ud2
Function at 0x1400efac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.14011e180
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov r15, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.14012d200
mov dword [rsp + 0x28], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x58], rax
lea r12, [0x1400f98c0]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400efc77
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
mov ebp, 0xffffffff
lea rbx, [rsp + 0x40]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rsp + 0x38], r15
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rsp + 0x28], 0
je 0x1400efb67
cmp dword [rsp + 0x2c], 0
jne 0x1400efc8a
mov edi, dword [rsp + 0x30]
test rdi, rdi
je 0x1400efc8a
cmp edi, 0x1000
ja 0x1400efcb7
xor r15d, r15d
nop word cs:[rax + rax]
mov r8, rdi
sub r8, r15
lea rdx, [rsp + r15]
add rdx, 0x60
cmp r8, rbp
cmovae r8, rbp
mov dword [rsp + 0x28], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, rbx
call r14
test eax, eax
je 0x1400efc7f
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rsp + 0x28], 0
je 0x1400efc00
cmp dword [rsp + 0x2c], 0
jne 0x1400efc85
mov eax, dword [rsp + 0x30]
add r15, rax
cmp r15, rdi
je 0x1400efc2e
jbe 0x1400efbb0
jmp 0x1400efcb7
mov dword [rsp + 0x28], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], r12
mov r15, qword [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400efb67
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400efc8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x38]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1400f05c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400f061e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400f061e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400f061e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x1400f061e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400f0663
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400f0650
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x1400f0670
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400f06ce
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400f06ce
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400f06ce
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x1400f06ce
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400f0713
mov dword [rsp + 0x34], r9d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400f0700
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f0757
cdqe
jmp 0x1400f0766
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400f076e
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400f077f
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1400f0790
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400f07c8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1400f07e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f0814
cdqe
jmp 0x1400f0823
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400f082b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400f083c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
sub rax, rdi
jb 0x1400f08c9
mov rsi, r8
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rsi]
add rdx, rdi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f08a9
cdqe
add rdi, rax
mov qword [rsi + 0x10], rdi
mov rax, qword [rsi + 0x18]
cmp rax, rdi
cmova rdi, rax
mov qword [rsi + 0x18], rdi
xor eax, eax
jmp 0x1400f08c2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400f08ba
xor eax, eax
jmp 0x1400f08c2
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, qword [rdx]
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400f09aa
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400f09c1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1400f0a22
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400f0a39
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x1400f0ac0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
mov rcx, qword [rcx]
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400f0aea
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x1400f0d10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400f0dbb
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x1400f0df2
test eax, eax
js 0x1400f0dcc
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400f0de5
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, str.uncategorized_errorother_errorout_of_memoryunexpected_end_of_fileunsupportedoperation_interruptedargument_list_too_longinvalid_filenametoo_many_linkscross_device_link_or_renamedeadlockexecutable_file_busyresource_busyfile_too_largefilesystem_quota_exceededseek_on_unseekable_fileno_storage_spacewrite_zerotimed_outinvalid_datainvalid_input_parameterstale_network_file_handlefilesystem_loop_or_indirection_limit__e.g._symlink_loop_read_only_filesystem_or_storage_mediumdirectory_not_emptyis_a_directorynot_a_directoryoperation_would_blockentity_already_existsbroken_pipenetwork_downaddress_not_availableaddress_in_usenot_connectedconnection_abortednetwork_unreachablehost_unreachableconnection_resetconnection_refusedpermission_deniedentity_not_found
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140102780]
mov qword [rsp + 0x70], rax
lea rax, [0x1401c3af0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.1400e8e00
mov rcx, rax
call fcn.140033710
mov ecx, 7
int 0x29
ud2
Function at 0x1400f1170
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0x10
mov edx, 8
call fcn.14000dd80
test rax, rax
je 0x1400f122b
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400f1240]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400f121e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400f11f6
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14000dd90
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14000dd90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.140130c60
ud2
Function at 0x1400f1d60
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.1400f9ea0
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400f1e74
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400f81e0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400f1e74
mov r8, qword [rsp + 0xd0]
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.1400f9ea0
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400f1e81
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400f81e0
mov r14, qword [rsp + 0x68]
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x1400f1e81
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400f1ef0]
lea r9, [rsp + 0x38]
mov rcx, rbx
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x1400f1e8e
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test r14, r14
jne 0x1400f1eac
jmp 0x1400f1ec0
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400f1ed9
mov qword [rsi + 8], r14
mov qword [rsi], 1
jmp 0x1400f1ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r14, r14
je 0x1400f1ec0
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.14000dd90
test rdi, rdi
je 0x1400f1ed9
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.14000dd90
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400f3100
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400f3138
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400f3150
nop
add rsp, 0x38
ret

Function at 0x1400f3150
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400f317f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call sub.KERNEL32.dll_GetLastError
ud2