joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400044bc
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov r8, rcx
and qword [rsp + 0x20], 0
lea rdi, [rsp + 0x28]
xor eax, eax
lea ecx, [rax + 0x30]
rep stosb byte [rdi], al
lea rdx, [rsp + 0x20]
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140004514
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004560
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004553
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140006cc0
jmp 0x140004553
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006400
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004578
Capabilities:
Find process by pid
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, r9
mov r14, r8
mov r13, rdx
mov rbx, rcx
and qword [rax - 0x60], 0
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rax - 0x48]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
jns 0x1400045dd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400045f8
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400045ff
mov al, 1
jmp 0x1400046d9
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.140006cc0
jmp 0x140004629
mov r15, cr3
mov qword [rsp + 0x48], r15
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax + 0x28]
mov cl, 2
call qword [sym.imp.ntoskrnl.exe_KfRaiseIrql]
mov r12b, al
mov byte [rsp + 0x30], al
mov rcx, cr0
btr rcx, 0x10
mov cr0, rcx
cli
mov cr3, rbx
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.140006cc0
jmp 0x14000467d
mov cr3, r15
mov rax, cr0
sti
bts rax, 0x10
mov cr0, rax
mov cl, r12b
call qword [sym.imp.ntoskrnl.exe_KeLowerIrql]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8b, 1
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_PsTerminateSystemThread]
test esi, esi
js 0x1400046d6
and qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov al, sil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400046f4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov ecx, ecx
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400047df
mov edx, 8
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
mov qword [rsp + 0x78], rax
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor ebx, ebx
mov dword [rsp + 0x60], ebx
movsxd rsi, ebx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x14000477e
mov edx, 0x1000
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov edx, 0xcc
mov r8d, 0x1000
mov rcx, rsi
call fcn.140006bc0
jmp 0x140004786
cmp ebx, 0x1000000
jg 0x14000478e
add ebx, 0x1000
jmp 0x140004736
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jne 0x1400047df
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x1400047e1
xor al, al
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400049c0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x88], rax
and dword [rsp + 0x40], 0
mov rdi, rdx
lea rdx, [rsp + 0x48]
mov rsi, r8
mov ebx, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140004a91
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rcx, [rsp + 0x50]
call fcn.140002e4c
test al, al
je 0x140004a86
mov rcx, qword [0x140a0a808]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140004a47
lea rdx, [0x1400072b0]
lea rcx, [rsp + 0x50]
call fcn.140002d40
mov qword [0x140a0a808], rax
mov rcx, qword [0x140a0a808]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004a86
mov rax, qword [0x140a0a808]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov r9, rsi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rdi
call qword [0x1400082a8]
mov ebx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006400
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x2fc4d3690
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4092
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d412a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d410e
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 0x2fc4d4102
cmp qword [rbp - 0x10], 0
je 0x2fc4d4102
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 0x2fc4d40c8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d412b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4230
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 0x2fc4d4258
mov eax, 0
jmp 0x2fc4d42a6
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 0x2fc4d4281
mov eax, 0
jmp 0x2fc4d42a6
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 0x2fc4d42a1
mov eax, 0
jmp 0x2fc4d42a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d42ac
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 0x2fc4d432a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4321
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 0x2fc4d4321
mov rax, qword [rbp - 8]
jmp 0x2fc4d433f
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 0x2fc4d42f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ea80
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000eb10
jmp 0x14000eaff
jae 0x14000ebd0
cmp r8, 0x201
jae 0x14000eb10
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000eb68
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000eb3f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400346a0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000eb91
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000ec38
mov r8d, r14d
cmp r15, r8
jne 0x14000eaf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000ec5b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000eaff
jmp 0x14000eb10
cmp rsi, r8
jb 0x14000ec75
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140012910
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000ec21
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140006e30
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000ec09
jmp 0x14000ec21
lea rcx, str.internal_error:_entered_unreachable_code_r
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140035360
jmp 0x14000ec8a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400357b0
ud2
Function at 0x140012840
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 rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14001287a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012891
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 0x1400128a0
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 0x1400128d4
cdqe
jmp 0x1400128e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400128eb
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400128fc
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 0x140013460
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 0x140013490
test ecx, ecx
jne 0x1400134e0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001349c
test ecx, ecx
jne 0x1400134e0
mov rcx, rdi
call fcn.140013340
movzx eax, al
test bpl, bpl
jne 0x1400134e7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400134d3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140013658]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400134d3.2
xor eax, eax
test bpl, bpl
je 0x1400134ac
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140013639
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001351a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140013599
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140013560
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001357b
inc rax
dec rdi
cmp rax, 1
jne 0x140013540
jmp 0x140013599
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001357b
cmp ebx, 0x5c
je 0x14001357b
inc rax
dec rdi
cmp rax, 1
jne 0x140013560
jmp 0x140013599
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140013647
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400135c3
mov al, 9
cmp rdx, 2
je 0x1400135c7
cmp rdx, 1
jne 0x1400135d7
cmp byte [r8], 0x2e
jne 0x1400135d7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400135d7
mov al, 0xa
jmp 0x1400135d7
cmp byte [r8], 0x2e
jne 0x1400135d7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400134d3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400134d3.2
mov ecx, 2
jmp case.0x1400134d3.2
lea r8, str.library_std_srcpath.rs
call fcn.140035730
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140035730
ud2
Function at 0x140015840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [0x14001cbe0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x1400158df
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rsp + 0x30], 0
je 0x1400158b0
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x1400158fa
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140015904
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140015907
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x140015920
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [0x14001cbe0]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400159be
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rsp + 0x30], 0
je 0x140015990
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x1400159e0
mov ecx, edi
call fcn.140022f50
cmp al, 0xb
jne 0x1400159d1
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400159ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.140022f50
cmp al, 0xb
je 0x1400159b6
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x1400159e6
mov edi, dword [rsp + 0x38]
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x140015aa0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx + 0x30]
mov rcx, rdi
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140015ac0
xor esi, esi
jmp 0x140015b0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 5
jne 0x140015b05
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140015ae5
cmp eax, 0x102
je 0x140015abc
jmp 0x140015aff
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140015abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400169f0
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.140033870
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 sub.VCRUNTIME140.dll_memset
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, [0x14001cbe0]
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 0x140016bde
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 0x140016ab7
cmp dword [rbp + 0xfec], 0
jne 0x140016bf3
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x140016bf3
cmp ebx, 0x1000
ja 0x140016c3e
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x140016c23
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 0x140016be6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x140016b60
cmp dword [rbp + 0xfec], 0
jne 0x140016bec
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x140016b00
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 0x140016ab7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140016bf3
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
mov qword [rbp + 0xfd0], rbx
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.140035830
jmp 0x140016c58
mov ecx, ebx
mov qword [rbp + 0xfd0], rcx
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.1400357b0
ud2
Function at 0x14001a7b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140039428]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001a7f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
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 0x14001a85a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001a891
test eax, eax
js 0x14001a86b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001a884
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, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140011d50
mov rcx, rax
call fcn.1400089c0
mov ecx, 7
int 0x29
ud2

Function at 0x14001a8f0
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 0x14001a945
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001a9e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14001a959
cmp eax, 0x2739
jne 0x14001a9aa
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 0x14001a9a4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14001a9bf
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14001a9e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14001a9e1
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