joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001a20
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000193b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001920
mov rcx, rbx
call fcn.140002340
mov rdi, rax
test rax, rax
je 0x140001a42
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002480
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019d0
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001880
nop dword [rax]
xor esi, esi
jmp 0x140001948
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001880
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001880
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000200c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002003
test rsi, rsi
je 0x140002003
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002340
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002360
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002368
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002360
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002360
add rax, 0x28
cmp rax, r9
jne 0x1400023a0
xor eax, eax
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000249f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x1400144b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015800
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015820
xor al, al
jmp 0x1400158a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015833
xor al, al
jmp 0x1400158a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001585d
xor al, al
jmp 0x1400158a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015871
xor al, al
jmp 0x1400158a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015883
xor al, al
jmp 0x1400158a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001589f
xor al, al
jmp 0x1400158a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov edi, 1
mov esi, edi
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov edi, 1
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x1400015f4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], edi
lea r15, [0x140010c08]
lea rbx, [0x140010bf0]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rbx], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140010b98]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017cb
mov dword [0x1400153e4], edi
mov ebx, 0x1f
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x140001691
lea rdx, [0x140010be8]
lea rcx, [0x140010bb0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c80
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b98]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017cb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177c
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177c
sub ax, di
cmp ax, bx
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000702c
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001765
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x14000177a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017cb
cmp ax, 0x22
jne 0x140001790
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140136000
add rsp, 0x28
jmp 0x140001570
Function at 0x140008040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x1400080c0
cmp r10, rax
jb 0x140008134
cmp r10, rdx
ja 0x140008141
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x1400080c2
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x1400080a0
jmp 0x140008123
ja 0x1400080ca
mov rax, r10
cmp r11, r8
jne 0x140008072
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop dword [rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x140008100
mov r15, rbx
sub ecx, edx
jns 0x14000811a
jmp 0x140008125
cmp rbx, r14
je 0x14000814b
and edx, 0x7f
shl edx, 8
movzx ebp, byte [r15 + 1]
add r15, 2
or edx, ebp
sub ecx, edx
js 0x140008125
xor al, 1
cmp r15, r14
jne 0x1400080e0
jmp 0x140008125
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rax
mov rdx, r10
call fcn.14003ffd0
ud2
mov rcx, r10
call fcn.14003ff10
ud2
lea rcx, [0x14004dc23]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003ff20
ud2
Function at 0x14000e443
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
lea rcx, [rdx + 0x80]
mov rdx, qword [rdx + 0x98]
call fcn.14000e35c
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 8]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14000e513
test eax, eax
je 0x14000e52c
cmp eax, 0x90317
je 0x14000e5a1
cmp eax, 0x90321
jne 0x14000e5a9
mov dword [rdi + 0xe0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xe4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14000e3ad
and qword [rdi + 0x58], 0
mov byte [rsi + 1], bl
jmp 0x14000e5b7
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x58], rax
mov byte [rsi + 1], 0
jmp 0x14000e5a5
mov rcx, qword [rsp + 0x38]
mov r8, qword [rdi + 0x80]
mov r9, qword [rdi + 0x90]
sub rcx, r8
mov edx, dword [rsp + 0x30]
add rdx, rcx
lea rbx, [rdi + 0x60]
and qword [rdi + 0x70], 0
call fcn.14000e5c1
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.14001fede
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14000e3ad
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0x58], rax
mov byte [rsi + 1], 0
jmp 0x14000e5b7
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14000e5b7
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140017192
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rcx, qword [rdx + 0x10]
lea rax, [rsp + 0x50]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rdx]
movaps xmmword [rax], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov rdx, rax
call fcn.14001729c
cmp qword [rdi], 0
mov rax, qword [rdi + 8]
jne 0x140017288
mov rcx, qword [rsi]
test rax, rax
je 0x14001723f
mov rax, qword [rsp + 0x40]
mov edx, 0x3e8
mul rdx
mov edi, 0xffffffff
jo 0x140017241
mov r8, rax
mov esi, dword [rsp + 0x48]
mov r9d, 0xf4240
mov eax, esi
xor edx, edx
div r9d
add r8, rax
jb 0x140017241
mov eax, esi
xor edx, edx
div r9d
mov rax, r8
inc rax
sete r9b
test edx, edx
setne dl
cmove rax, r8
mov edi, 0xffffffff
cmp rax, rdi
mov edi, 0xffffffff
cmovae eax, edi
test dl, r9b
jne 0x140017241
mov edi, eax
test eax, eax
jne 0x140017241
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x140017279
xor edi, edi
lea r9, [rsp + 0x30]
mov dword [r9], edi
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14001726b
xor eax, eax
jmp 0x140017279
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
call fcn.14000d2fb
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14001d650
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jae 0x14001d65e
jmp fcn.1400093d0
jmp fcn.140004b50
Function at 0x140025b70
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [rbp - 0x60]
mov r8d, 0xe
mov rcx, rdi
call fcn.140025f10
cmp qword [rbp - 0x60], 0
je 0x140025be4
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3b8], rax
lea rcx, [rbp + 0x3b8]
call fcn.1400221b0
mov qword [rsi], 0
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f0], rax
test rax, rax
je 0x140025bc9
mov qword [rbp + 0x3e8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x3f8], rax
xor ebx, ebx
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call fcn.140033a40
mov qword [rbp + 0x3d0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d8], xmm0
mov esi, 0x200
mov r13d, 2
cmp rsi, 0x201
jae 0x140025c62
jmp 0x140025cb0
mov rsi, r8
jae 0x140025d15
cmp rsi, 0x201
jb 0x140025cb0
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3d8]
sub rax, rbx
cmp rax, r8
jae 0x140025c8d
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call fcn.140041000
mov r13, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e0], rsi
mov rbx, rsi
mov r15, r13
mov r14, rsi
mov r12, r13
jmp 0x140025cbd
lea r12, [rbp - 0x60]
mov r15, r12
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3f0]
mov rdx, r12
mov r8d, esi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x140025ce8
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140025d47
mov r8d, edi
cmp rsi, r8
jne 0x140025c50
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140025de2
add rsi, rsi
cmp rsi, 0x201
jae 0x140025c62
jmp 0x140025cb0
cmp r14, r8
jb 0x140025dfc
lea rcx, [rbp + 0x3b8]
mov rdx, r15
call fcn.140024960
mov rsi, qword [rbp + 0x3b8]
movups xmm0, xmmword [rbp + 0x3c0]
movaps xmmword [rbp + 0x3a0], xmm0
mov dil, 1
jmp 0x140025d59
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
xor edi, edi
mov rax, qword [rbp + 0x3d8]
test rax, rax
je 0x140025d7c
test r13, r13
je 0x140025d7c
add rax, rax
je 0x140025d7c
mov edx, 2
mov rcx, r13
call fcn.140032080
test dil, dil
je 0x140025d98
mov rax, qword [rbp + 0x3e8]
mov qword [rax], rsi
movaps xmm0, xmmword [rbp + 0x3a0]
movups xmmword [rax + 8], xmm0
jmp 0x140025db3
mov qword [rbp - 0x60], rsi
mov rax, qword [rbp + 0x3e8]
mov qword [rax], 0
lea rcx, [rbp - 0x60]
call fcn.1400221b0
mov rax, qword [rbp + 0x3f8]
test rax, rax
je 0x140025bd0
add rax, rax
je 0x140025bd0
mov edx, 2
mov rcx, qword [rbp + 0x3f0]
call fcn.140032080
jmp 0x140025bd0
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len_
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14003ff20
jmp 0x140025e07
mov rcx, r8
mov rdx, r14
call fcn.14003ff10
ud2
Function at 0x14002d410
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test edx, edx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002d45e
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002d4d2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14002d472
cmp eax, 0x2739
jne 0x14002d4bf
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002d4b9
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x14002d4d9
mov qword [rsi + 8], rdi
jmp 0x14002d455
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
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
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x14002d520
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp qword [rdx], 0
je 0x14002d5a2
mov r8, rdx
mov eax, 0x3e8
mul qword [rdx + 8]
mov r10d, 0xffffffff
jo 0x14002d5a5
mov r8d, dword [r8 + 0x10]
mov r9d, r8d
imul rdx, r9, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14002d5a5
imul rdx, r9, 0x431bde83
shr rdx, 0x32
imul edx, edx, 0xf4240
mov r9, rax
inc r9
sete r11b
cmp r8d, edx
setne dl
cmove r9, rax
mov eax, 0xffffffff
cmp r9, rax
mov r10d, 0xffffffff
cmovae r9d, r10d
test dl, r11b
jne 0x14002d5a5
mov r10d, r9d
test r9d, r9d
jne 0x14002d5a5
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14002d5df
xor r10d, r10d
mov dword [rsp + 0x34], r10d
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 0x14002d5d1
xor eax, eax
jmp 0x14002d5df
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14002d960
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 r8d, r9d
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14002d99a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002d9b1
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
add rsp, 0x20
pop rsi
ret
Function at 0x14002d9c0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x140031860
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
test rcx, rcx
je 0x140031891
mov rax, qword [rcx]
movups xmm0, xmmword [rcx + 8]
mov qword [rcx], 0
cmp rax, 1
je 0x1400318b8
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x1400318e6
movaps xmm0, xmmword [rbp - 0x20]
mov eax, dword [0x14005dd38]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x18], 1
movups xmmword [rax + 0x20], xmm0
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140026b90]
mov qword [rbp - 0x28], rax
lea rax, [0x14004f790]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003fec0
ud2

Function at 0x140031980
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], r8
mov ecx, 0x10
mov edx, 8
call fcn.140031ff0
mov rsi, rax
test rax, rax
je 0x140031a58
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140031ae0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140031a4a
mov rcx, qword [rsi]
mov qword [rbp - 0x10], rsi
mov rax, qword [rsi + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x20], rax
call qword [rax]
mov rax, qword [rbp - 0x20]
cmp qword [rax + 8], 0
je 0x140031a27
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.140032080
mov edx, 8
mov rcx, qword [rbp - 0x10]
call fcn.140032080
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.14003fda0
ud2

Function at 0x140036a2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140036858
Function at 0x1400038ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003936
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003936
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003936
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003936
cmp dword [rcx + 0x84], 0xe
jbe 0x140003936
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003938
xor al, al
add rsp, 0x28
ret

Function at 0x140001970
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x38]
call fcn.140001220
cmp qword [rsp + 0x50], 0x10
lea rdi, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
cmovae rdi, qword [rsp + 0x38]
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x1400019b3
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140001a61
mov qword [rsp + 0x30], 0
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400019e3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov rdx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001a20
lea rcx, str.Write_Memory_False__n
call fcn.140001910
jmp 0x140001a61
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rsi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001a61
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140001aa1
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a9c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001ef8
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001ad0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret