joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140167cd0
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 0x140167d70
jmp 0x140167d5f
jae 0x140167e30
cmp r8, 0x201
jae 0x140167d70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140167dc8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140167d9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140198720
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 0x140167df1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140167e98
mov r8d, r14d
cmp r15, r8
jne 0x140167d50
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140167ec5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140167d5f
jmp 0x140167d70
cmp rsi, r8
jb 0x140167edf
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14016bba0
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 0x140167e81
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400151e0
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 0x140167e69
jmp 0x140167e81
lea rcx, str.internal_error:_entered_unreachable_code_rustc_bf8716f1cd6416266807706bcae0ecb2e51c9d4alibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1401999a0
jmp 0x140167ef4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140199ed0
ud2
Function at 0x14016b960
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.1400a01f5
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x1400ac351
jmp 0x14016b960
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
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 0x14016b998
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 0x14016b9b0
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 0x14016b9e7
cdqe
jmp 0x14016b9f6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14016b9fe
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14016ba0f
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 0x14016ba20
Capabilities:
Send data
Send 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_send]
cmp eax, 0xffffffff
je 0x14016ba5d
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14016ba74
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 0x14016ba80
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x14016bad5
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14016baec
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1401727a0
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 [0x14028c608]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1401727e4
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 0x14017284a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140172881
test eax, eax
js 0x14017285b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140172874
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, [0x14028c670]
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.14016af70
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140164890
mov ecx, 7
int 0x29
ud2

Function at 0x1401728f0
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, reloc.OLEAUT32.dll_SafeArrayUnaccessData
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 0x140172945
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401729e1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140172959
cmp eax, 0x2739
jne 0x1401729aa
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 0x1401729a4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1401729bf
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401729e1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401729e1
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 0x140174340
Capabilities:
Generate random numbers via winapi

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

Function at 0x140174390
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1401743d3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
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, [fcn.140169530]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1401998d0
ud2

Function at 0x140174a30
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1402a2401]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov edx, 8
call fcn.1400151d0
test rax, rax
je 0x140174b0f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140174bc0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140174b01
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140174ad8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400151e0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1400151e0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
add byte [rax], al
add byte [rdx + 0x10], bh
call fcn.140199600
ud2
Function at 0x140175f40
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 [0x1402a51e8]
cmp rax, 3
jne 0x140176036
cmp rbx, 0x17f
ja 0x140176048
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14018f8f0
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140183300
cmp qword [rsp + 0x28], 0
je 0x140175fc4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140176059
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 0x14017601e
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 0x140176059
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 0x140176059
call fcn.140198b20
cmp rbx, 0x17f
jbe 0x140175f7a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140198b90
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1401761b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140176260
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x140176270
cmp ecx, 0x17
jne 0x140176297
cmp eax, 0x1b
jbe 0x1401762b0
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14017629e
cmp eax, 0xf
jbe 0x1401762c8
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argumentx
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14028d260]
mov edx, 0x43
call fcn.1401999a0
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14028d200]
mov edx, 0x42
call fcn.1401999a0
int3
Function at 0x14018b3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14018b44a
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 0x14018b440
cmp r11, r10
ja 0x14018b4e1
cmp r10, rdx
ja 0x14018b4f3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14018b442
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14018b420
jmp 0x14018b4b7
ja 0x14018b44a
mov r11, r10
cmp rax, r8
jne 0x14018b3f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14018b4bb
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 0x14018b490
mov r8, r10
sub ecx, r9d
jns 0x14018b4ae
jmp 0x14018b4bd
cmp r10, rdx
je 0x14018b4c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14018b4bd
xor al, 1
cmp r8, rdx
jne 0x14018b470
jmp 0x14018b4bd
xor eax, eax
jmp 0x14018b4bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140290211]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1401999a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140199f50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140199ed0
int3
Function at 0x14018f5c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14018f60a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14018f60a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14018f60a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14018f60a
cmp dword [rcx + 0x84], 0xe
jbe 0x14018f60a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14018f60c
xor al, al
add rsp, 0x28
ret
Function at 0x140198b90
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.14017e280
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140198c29
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 0x140198c5b
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 0x140198c79
jmp 0x140198c8a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140198c8a
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400151e0
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 0x140198c8a
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400151e0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004c20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002950
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, qword [0x140004cf0]
mov r9d, 0x40
mov r8d, 0x1000
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
xor eax, eax
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
call qword [sym.imp.KERNEL32.dll_CreateTimerQueue]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov rdi, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
mov rsi, rax
xor eax, eax
mov dword [rsp + 0x20], 0x64
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
test eax, eax
je 0x1400029ea
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x48]
sub rax, qword [rbp]
je 0x1400029fb
call fcn.140002510
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x409a45
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [rbp - 4]
mov r9, qword [rbp + 0x10]
mov r8d, 4
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rax, 4
je 0x409a7d
mov eax, 1
jmp 0x409aa5
mov rax, qword [0x00527be0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x38]
lea rdx, [rbp - 4]
mov rcx, rdx
call rax
mov edx, eax
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x409aab
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, [rbp - 8]
mov r9, qword [rbp + 0x10]
mov r8d, 8
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rax, 8
je 0x409ae3
mov eax, 1
jmp 0x409b0d
mov rax, qword [0x00527be0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x20]
lea rdx, [rbp - 8]
mov rcx, rdx
call rax
mov rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x409bbc
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp qword [rbp + 0x20], rax
je 0x409bf9
mov eax, 1
jmp 0x409bfe
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x409c04
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [0x00527be0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x48]
mov ecx, dword [rbp + 0x18]
lea rdx, [rbp - 4]
call rax
lea rax, [rbp - 4]
mov r9, qword [rbp + 0x10]
mov r8d, 4
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
cmp rax, 4
je 0x409c56
mov eax, 1
jmp 0x409c5b
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x409c61
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [0x00527be0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x30]
lea rdx, [rbp - 8]
mov rcx, qword [rbp + 0x18]
call rax
lea rax, [rbp - 8]
mov r9, qword [rbp + 0x10]
mov r8d, 8
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
cmp rax, 8
je 0x409cb5
mov eax, 1
jmp 0x409cba
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x409d24
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [rbp - 1]
mov edx, dword [rbp + 0x18]
mov byte [rax], dl
lea rax, [rbp - 1]
mov r9, qword [rbp + 0x10]
mov r8d, 1
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x409d64
mov eax, 1
jmp 0x409d69
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x409d6f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
cmp qword [rbp + 0x20], rax
je 0x409dac
mov eax, 1
jmp 0x409db1
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x40c209
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 8], 0
jmp 0x40c37d
lea rax, [0x005421b8]
mov rax, qword [rax]
mov edx, dword [rbp - 8]
shl rdx, 5
add rax, rdx
mov qword [rbp - 0x10], rax
mov edx, 0
mov rcx, qword [rbp + 0x10]
call fcn.00409d24
test eax, eax
jne 0x40c2e4
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00409cc0
test eax, eax
jne 0x40c2e4
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00409cc0
test eax, eax
jne 0x40c2e4
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov edx, eax
mov rcx, qword [rbp + 0x10]
call fcn.00409c04
test eax, eax
jne 0x40c2e4
mov rax, qword [0x00527cf0]
mov eax, dword [rax]
mov edx, eax
mov rcx, qword [rbp + 0x10]
call fcn.00409c04
test eax, eax
jne 0x40c2e4
mov r8d, 0xf
lea rdx, str.seconds
mov rcx, qword [rbp + 0x10]
call fcn.00409d6f
test eax, eax
jne 0x40c2e4
mov r8d, 1
lea rdx, [0x004da630]
mov rcx, qword [rbp + 0x10]
call fcn.00409d6f
test eax, eax
je 0x40c2fa
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_perror
mov ecx, 1
call fcn.0040bb92
mov dword [rbp - 4], 0
jmp 0x40c36d
mov rax, qword [0x00527be0]
mov rax, qword [rax]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x60]
mov rdx, qword [rbp - 0x10]
mov rdx, qword [rdx + 0x18]
mov ecx, dword [rbp - 4]
shl rcx, 2
add rdx, rcx
mov edx, dword [rdx]
movsxd rcx, edx
lea rdx, [rbp - 0x12]
call rax
lea rax, [rbp - 0x12]
mov r9, qword [rbp + 0x10]
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.msvcrt.dll_fwrite
cmp rax, 1
je 0x40c369
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sub.msvcrt.dll_perror
mov ecx, 1
call fcn.0040bb92
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
cmp dword [rbp - 4], eax
jb 0x40c303
add dword [rbp - 8], 1
lea rax, [0x005421a8]
mov eax, dword [rax]
cmp dword [rbp - 8], eax
jb 0x40c225
nop
add rsp, 0x40
pop rbp
ret