joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f520
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x004b4130]
cmp rax, 3
jne 0x46f647
cmp rbx, 0x17f
ja 0x46f659
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x46f599
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x46f5ac
inc rdx
cmp rcx, rdx
jne 0x46f580
mov rdx, r8
test rax, rax
jne 0x46f5b6
jmp 0x46f610
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00429730
test rax, rax
jne 0x46f5b6
jmp 0x46f610
mov eax, 1
test rax, rax
je 0x46f610
cmp rdx, rbx
jne 0x46f610
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46f624
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x46f637
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x46f63a
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.0046fbe0
cmp rbx, 0x17f
jbe 0x46f558
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x46fc40
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.00426080
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x46fc9a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x46fd22
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.00424380
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
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 sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46fcf7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x46fd0a
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x46fd22
mov edx, 1
mov rcx, rdi
call fcn.00424380
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x46fc40
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x004b4130]
cmp rax, 3
jne 0x46f647
cmp rbx, 0x17f
ja 0x46f659
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x46f599
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x46f5ac
inc rdx
cmp rcx, rdx
jne 0x46f580
mov rdx, r8
test rax, rax
jne 0x46f5b6
jmp 0x46f610
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00429730
test rax, rax
jne 0x46f5b6
jmp 0x46f610
mov eax, 1
test rax, rax
je 0x46f610
cmp rdx, rbx
jne 0x46f610
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46f624
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x46f637
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x46f63a
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.0046fbe0
cmp rbx, 0x17f
jbe 0x46f558
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x46fc40
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.00426080
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x46fc9a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x46fd22
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.00424380
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
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 sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46fcf7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x46fd0a
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x46fd22
mov edx, 1
mov rcx, rdi
call fcn.00424380
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x4769a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.00476870
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4769e4
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x476a37
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x476a2d
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x476a25
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x476a18
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.00424380
mov edx, 8
mov rcx, rdi
call fcn.00424380
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x476a2d
mov edx, 2
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.00424380
Function at 0x478270
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call fcn.004242f0
test rax, rax
je 0x47832b
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x004785f0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x47831e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x4782fd
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.00424380
mov edx, 8
mov rcx, rsi
call fcn.00424380
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.00425ea0
ud2
Function at 0x478890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1088
call fcn.0048db40
sub rsp, rax
movaps xmmword [rsp + 0x1070], xmm6
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rbx, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rbp, [0x004704c0]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x478a25
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x70]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x47892d
cmp dword [rsp + 0x34], 0
jne 0x478a2a
mov r15d, dword [rsp + 0x38]
test r15, r15
je 0x478a2a
cmp r15d, 0x1000
ja 0x478a6a
xor r12d, r12d
nop dword [rax]
cmp r12, r15
ja 0x478a56
lea rdx, [rsp + r12]
add rdx, 0x70
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x478a25
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x4789c0
cmp dword [rsp + 0x34], 0
jne 0x478a2a
mov eax, dword [rsp + 0x38]
add r12, rax
cmp r12, r15
jne 0x478970
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x47892d
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1070]
add rsp, 0x1088
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.004294a0
jmp 0x478a7e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.00428a50
ud2

Function at 0x478ad0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x478b06
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x0046b6e0]
mov qword [rsp + 0x48], rax
lea rax, [0x004a1278]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.00428040
ud2
Function at 0x47dde0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x00490098]
test ecx, ecx
je 0x47def5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x47de16
mov rcx, rax
cmp qword [rax], 0
je 0x47de16
add rcx, 8
jmp 0x47deeb
mov ecx, dword [0x00490098]
test ecx, ecx
je 0x47df08
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x47decf
mov rdi, rax
test rax, rax
jne 0x47de82
mov ecx, 0x20
mov edx, 8
call fcn.004242f0
test rax, rax
je 0x47df2e
mov rdi, rax
mov qword [rax], 0
lea rax, [0x00490080]
mov qword [rdi + 0x18], rax
mov ecx, dword [0x00490098]
test ecx, ecx
je 0x47df1b
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x47de9f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x47ded8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x47ded3
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x47ded8
xor ecx, ecx
jmp 0x47deeb
call fcn.00478ad0
mov qword [rdi], 1
lea rcx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x00490080]
call fcn.0044ce90
mov ecx, eax
jmp 0x47ddf9
lea rcx, [0x00490080]
call fcn.0044ce90
mov ecx, eax
jmp 0x47de26
lea rcx, [0x00490080]
call fcn.0044ce90
mov ecx, eax
jmp 0x47de7a
mov ecx, 0x20
mov edx, 8
call fcn.00425ea0
ud2
Function at 0x47dfc0
Capabilities:
Copy file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r9
mov rdi, rcx
lea rcx, [rsp + 0x38]
call fcn.0044f020
mov r14, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x47e0e7
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.0046a2f0
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x47e0e7
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.0044f020
mov r15, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x47e0f4
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.0046a2f0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x47e0f4
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x0047e170]
lea r9, [rsp + 0x38]
mov rcx, rsi
mov rdx, rbx
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x47e101
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r15, r15
jne 0x47e11e
jmp 0x47e12b
mov qword [rdi + 8], r14
mov qword [rdi], 1
jmp 0x47e13d
mov qword [rdi + 8], r15
mov qword [rdi], 1
jmp 0x47e12b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r15, r15
je 0x47e12b
mov edx, 2
mov rcx, rbx
call fcn.00424380
test r14, r14
je 0x47e13d
mov edx, 2
mov rcx, rsi
call fcn.00424380
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x47f1c7
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x47f263
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x47f248
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.ntdll.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.0047eb56
mov rcx, rbx
mov rdx, r14
call fcn.0047f4ea
add r13, 8
jmp 0x47f218
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x47f274
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x48497e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov r14, rcx
lea rcx, [0x00490198]
call fcn.0043ed02
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x4849b8
mov rbx, rax
cmp qword [rax], 0
je 0x4849b8
add rbx, 8
jmp 0x484a89
lea rsi, [0x00490198]
mov rcx, rsi
call fcn.0043ed02
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x484a31
mov rbx, rax
test rax, rax
jne 0x484a08
mov ecx, 0x60
mov edx, 8
call fcn.00484a99
mov rbx, rax
and qword [rax], 0
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.0043ed02
mov ecx, eax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test r14, r14
je 0x484a3f
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
and qword [r14], 0
cmp qword [rax], 0
je 0x484a35
lea rsi, [rsp + 0x28]
jmp 0x484a46
xor ebx, ebx
jmp 0x484a89
lea rcx, [rsp + 0x20]
call fcn.00483995
lea rsi, [0x004a3c80]
lea rdi, [rsp + 0x78]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
lea rax, [rsp + 0x20]
mov ecx, 0xb
mov rdi, rax
mov rsi, rbx
rep movsq qword [rdi], qword [rsi]
mov qword [rbx], 1
add rbx, 8
lea rsi, [rsp + 0x78]
mov ecx, 0xa
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, rax
call fcn.00483995
mov rax, rbx
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x48a0f3
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x48a0fa
test al, 1
je 0x48a119
test al, 2
jne 0x48a12e
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x004a5458]
mov edx, 0x23
jmp 0x48a141
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x004a5498]
mov edx, 0x25
call fcn.00428e20
ud2
Function at 0x48acc4
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rdx + 0x10]
lea rbp, [rsp + 0x3a]
xor r12d, r12d
cmp qword [rdx + 8], 0xffffffffffffffff
cmovne r12, rdx
mov r13d, 0x7fffffff
cmp rax, r13
cmovb r13, rax
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r12
mov rdx, qword [r14 + 0x20]
mov rcx, rsi
mov r8, rbx
call fcn.0048aa4c
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x48ae36
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x48ae44
mov dl, byte [rsp + 0x38]
movzx r8d, word [rbp + 4]
lea r9, [rsp + 0x52]
mov word [r9 + 4], r8w
mov r8d, dword [rbp]
mov dword [r9], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r12
lea rdx, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_io_poll_evented.rs_b6J
call fcn.004896ea
mov rcx, qword [r12 + 8]
mov rdx, r15
mov r8d, r13d
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x48ae52
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.0043e147
cmp al, 0xd
jne 0x48ae06
mov rax, qword [r12]
test rax, rax
je 0x48ae06
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x48ae85
mov r12, r13
mov r13, rbx
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.0043e020
mov rbx, rax
xor ecx, ecx
call fcn.0043c883
test rbx, rbx
je 0x48adfb
mov ecx, 1
mov rdx, rsi
call fcn.0043e1a4
mov rsi, rbx
mov rbx, r13
mov r13, r12
mov r12, qword [rsp + 0x40]
mov rcx, rsi
call fcn.00486936
cmp al, 0xd
jne 0x48ae64
mov qword [rsp + 0x30], rsi
mov rcx, rdi
lea rdx, [rsp + 0x48]
call fcn.0048a7f7
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.00485c57
jmp 0x48ad16
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x48ae74
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
jmp 0x48ae5e
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x48ae74
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x48ae89
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0xf0]
lea r15, [rdx + 0x10]
xor r12d, r12d
cmp qword [rdx + 8], 0xffffffffffffffff
cmovne r12, rdx
mov ebp, 0xffffffff
cmp rax, rbp
cmovb rbp, rax
xorps xmm6, xmm6
mov rdx, qword [r14 + 0x20]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov r9b, 1
call fcn.0048a880
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x48b016
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x48b024
mov dl, byte [rsp + 0x48]
lea r9, [rsp + 0x4a]
movzx r8d, word [r9 + 4]
lea r10, [rsp + 0x6a]
mov word [r10 + 4], r8w
mov r8d, dword [r9]
mov dword [r10], r8d
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x69], al
mov rcx, r12
lea rdx, str._cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.29.0_src_io_poll_evented.rs_b6J
call fcn.004896ea
mov rcx, qword [r12 + 8]
and dword [rsp + 0x54], 0
movups xmmword [rsp + 0x28], xmm6
and dword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, ebp
lea r9, [rsp + 0x54]
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x48b032
call sub.WS2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.0043e147
cmp al, 0xd
jne 0x48afe0
mov rax, qword [r12]
test rax, rax
je 0x48afe0
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x48b079
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.0043e020
mov rsi, rax
xor ecx, ecx
call fcn.0043c883
test rsi, rsi
je 0x48afe0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 1
mov ecx, 1
mov rdx, r13
call fcn.0043e1a4
mov r13, rsi
jmp 0x48afee
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], r13
mov rcx, r13
call fcn.00486936
cmp al, 0xd
jne 0x48b050
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.0048a7f7
lea rcx, [rsp + 0x48]
call fcn.00485c57
jmp 0x48aed6
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
jmp 0x48b060
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
jmp 0x48b04a
mov ecx, dword [rsp + 0x54]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x58]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x48b060
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
mov qword [rax + 8], r13
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x48b0ea
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
lea rcx, [0x004901b8]
call fcn.0043ed02
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x48b112
mov rsi, rax
cmp qword [rax], 0
jne 0x48b17e
lea rdi, [0x004901b8]
mov rcx, rdi
call fcn.0043ed02
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x48b17c
mov rsi, rax
test rax, rax
jne 0x48b162
mov ecx, 0x10
mov edx, 8
call fcn.00484a99
mov rsi, rax
and qword [rax], 0
mov qword [rax + 8], rdi
mov rcx, rdi
call fcn.0043ed02
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
call fcn.004880cc
mov rdx, qword [rsi]
lea rcx, [rsp + 0x20]
mov qword [rcx], rdx
mov qword [rsi], rax
call fcn.00488100
jmp 0x48b17e
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x48ef00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004b4804]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x48f020
mov rax, qword [0x004b4808]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x48ef4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x48f006
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x48ef30
mov rcx, rsi
call fcn.0048fb40
test rax, rax
mov r12, rax
je 0x48f058
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004b4808]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.0048fc90
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x004b4808]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x48f03b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x48efff
sub eax, 0x40
and eax, 0xffffffbf
je 0x48efff
add rbx, qword [0x004b4808]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x48f027
add dword [0x004b4804], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebx, ebx
jmp 0x48ef57
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0048ee90
mov rax, qword [0x004b4808]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0048ee90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0048ee90
nop
nop dword [rax + rax]