joyce8/EMBER2024-capa huggingface dataset:
Function at 0x678be0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x148
mov rsi, rcx
lea rdi, [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x88], 0
movups xmm0, xmmword [0x00724818]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x00724828]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
cmp r8, 0x3f
ja 0x678c42
mov rcx, rdi
mov r14, r8
jmp 0x678c6f
mov rbx, r8
and rbx, 0xffffffffffffffc0
mov r14d, r8d
and r14d, 0x3f
add rbx, rdx
shr r8, 6
mov qword [rsp + 0x40], r8
lea rcx, [rsp + 0x20]
call fcn.006544f0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memcpy
mov byte [rsp + 0x88], r14b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0xf8], al
mov eax, dword [rsp + 0x89]
mov dword [rsp + 0xf9], eax
movzx eax, word [rsp + 0x8d]
mov word [rsp + 0xfd], ax
movzx eax, byte [rsp + 0x8f]
mov byte [rsp + 0xff], al
movdqa xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xb0], xmm2
movaps xmm2, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xe0], xmm2
movaps xmm2, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm3
movaps xmmword [rsp + 0xa0], xmm1
movdqa xmmword [rsp + 0x90], xmm0
movzx edi, byte [rsp + 0xf8]
mov rax, qword [rsp + 0xb0]
shl rax, 9
mov ebx, edi
shl ebx, 3
or rbx, rax
mov byte [rsp + rdi + 0xb8], pe_nt_image_headers64
mov r8, rdi
xor r8, 0x3f
je 0x678d5c
lea rcx, [rsp + rdi]
add rcx, 0xb9
test rcx, rcx
je 0x678d5c
xor edx, edx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0xb8]
bswap rbx
xor edi, 0x38
cmp edi, 8
jae 0x678dcb
lea rdi, [rsp + 0x90]
mov r8d, 1
mov rcx, rdi
call fcn.006544f0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], rbx
lea rdx, [rsp + 0x100]
mov r8d, 1
mov rcx, rdi
jmp 0x678de1
mov qword [rsp + 0xf0], rbx
lea rcx, [rsp + 0x90]
mov r8d, 1
call fcn.006544f0
pxor xmm0, xmm0
movdqa xmm1, xmmword [rsp + 0x90]
movdqa xmm2, xmmword [rsp + 0xa0]
movdqa xmm3, xmm1
punpckhbw xmm3, xmm0
pshuflw xmm3, xmm3, 0x1b
pshufhw xmm3, xmm3, 0x1b
punpcklbw xmm1, xmm0
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm3
movdqa xmm3, xmm2
punpckhbw xmm3, xmm0
pshuflw xmm3, xmm3, 0x1b
pshufhw xmm3, xmm3, 0x1b
punpcklbw xmm2, xmm0
pshuflw xmm0, xmm2, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm3
movdqu xmmword [rsi], xmm1
movdqu xmmword [rsi + 0x10], xmm0
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x678f30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x678fc5
mov rax, qword [0x00770040]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x679004
cmp dword [rbp], 0
je 0x678fe8
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x679027
mov edi, eax
mov rax, qword [0x0076d140]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x0076d140], rsi
jne 0x678fa0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x678ff9
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x679069
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x678fed
mov edi, dword [rbp + 4]
jmp 0x678ff9
mov edi, dword [rsi + 0x18]
jmp 0x678ff7
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rdx, [0x00726cd0]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 4]
lea r8, [rbp - 0x38]
call fcn.0067a3e0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.0056d430
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
or byte [rax], al
add byte [rax], al
Function at 0x67ba20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x006df178]
test ecx, ecx
je 0x67ba4d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x67ba66
add rax, 8
jmp 0x67bb01
lea rcx, [0x006df160]
call fcn.00678f30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x67ba44
je 0x67baff
movzx eax, byte [0x0076d188]
mov edx, 0x10
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x67bb2a
mov rbx, rax
mov rsi, rax
lea rax, [0x006df160]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x006df178]
test ecx, ecx
je 0x67bb0a
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x006df178]
test ecx, ecx
je 0x67bb1a
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x67bafa
mov rax, qword [rdi + 8]
test rax, rax
je 0x67bae9
lock dec qword [rax]
jne 0x67bae9
mov rcx, qword [rdi + 8]
call fcn.0067b140
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rax, rbx
jmp 0x67bb01
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x006df160]
call fcn.00678f30
mov ecx, eax
jmp 0x67baac
lea rcx, [0x006df160]
call fcn.00678f30
mov ecx, eax
jmp 0x67bac0
mov ecx, 8
mov edx, 0x10
call fcn.00522ef0
int3

Function at 0x67bff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x006df138]
test ecx, ecx
je 0x67c01d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x67c036
add rax, 8
jmp 0x67c0b1
lea rcx, [0x006df120]
call fcn.00678f30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x67c014
je 0x67c0af
movzx eax, byte [0x0076d188]
mov edx, 0x10
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x67c0da
mov rbx, rax
mov rsi, rax
lea rax, [0x006df120]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x006df138]
test ecx, ecx
je 0x67c0ba
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x006df138]
test ecx, ecx
je 0x67c0ca
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x67c0aa
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rax, rbx
jmp 0x67c0b1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x006df120]
call fcn.00678f30
mov ecx, eax
jmp 0x67c074
lea rcx, [0x006df120]
call fcn.00678f30
mov ecx, eax
jmp 0x67c088
mov ecx, 8
mov edx, 0x10
call fcn.00522ef0
int3
Function at 0x67c560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x006df118]
test ecx, ecx
je 0x67c58d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x67c5a6
add rax, 8
jmp 0x67c629
lea rcx, [0x006df100]
call fcn.00678f30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x67c584
je 0x67c627
movzx eax, byte [0x0076d188]
mov edx, 0x18
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x67c652
mov rbx, rax
mov rsi, rax
lea rax, [0x006df100]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x006df118]
test ecx, ecx
je 0x67c632
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x006df118]
test ecx, ecx
je 0x67c642
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x67c622
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rax, rbx
jmp 0x67c629
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x006df100]
call fcn.00678f30
mov ecx, eax
jmp 0x67c5ec
lea rcx, [0x006df100]
call fcn.00678f30
mov ecx, eax
jmp 0x67c600
mov ecx, 8
mov edx, 0x18
call fcn.00522ef0
int3

Function at 0x67d960
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x699c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81

Function at 0x69bdd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x006df158]
test ecx, ecx
je 0x69bdfd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x69be16
add rax, 8
jmp 0x69beb1
lea rcx, [0x006df140]
call fcn.00678f30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x69bdf4
je 0x69beaf
movzx eax, byte [0x0076d188]
mov edx, 0x10
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x69beda
mov rbx, rax
mov rsi, rax
lea rax, [0x006df140]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x006df158]
test ecx, ecx
je 0x69beba
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x006df158]
test ecx, ecx
je 0x69beca
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x69beaa
mov rax, qword [rdi + 8]
test rax, rax
je 0x69be99
lock dec qword [rax]
jne 0x69be99
mov rcx, qword [rdi + 8]
call fcn.0069bef0
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rax, rbx
jmp 0x69beb1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x006df140]
call fcn.00678f30
mov ecx, eax
jmp 0x69be5c
lea rcx, [0x006df140]
call fcn.00678f30
mov ecx, eax
jmp 0x69be70
mov ecx, 8
mov edx, 0x10
call fcn.00522ef0
int3
Function at 0x69c6e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x0076d130]
cmp rax, 3
jne 0x69c8d0
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x69c8f6
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x69c778
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x69c834
inc rdx
cmp rax, rdx
jne 0x69c760
jmp 0x69c89b
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x69c7ae
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x69c834
inc rdx
cmp rcx, rdx
jne 0x69c790
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x69c7b2
jmp 0x69c7fe
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x006ead70]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x69c7fe
add rcx, 0x10
cmp rcx, rdx
jbe 0x69c7d0
sub rax, rcx
je 0x69c89b
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x69c831
inc rdx
cmp rax, rdx
jne 0x69c820
jmp 0x69c89b
add rdx, rcx
cmp rdx, rdi
jne 0x69c89b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x69c8af
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x69c8c7
lea rax, [0x00726100]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x69c908
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x69c908
mov rbx, rdx
call fcn.0069cdc0
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x69c737
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.0069ce30
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x69ce30
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x69d053
js 0x69d05f
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x0076d188]
xor ecx, ecx
mov rdx, r14
call fcn.0069df80
test rax, rax
je 0x69d064
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0x10
jae 0x69cec8
test rbx, rbx
je 0x69cf6f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x69cfd5
inc rax
cmp rbx, rax
jne 0x69ceb0
jmp 0x69cf6f
lea rax, [r15 + 7]
and rax, 0xfffffffffffffff8
sub rax, r15
jne 0x69cf20
lea rcx, [rbx - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x006ead80]
movabs rdx, 0x8080808080808080
nop dword [rax]
movdqu xmm1, xmmword [r15 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x69cf4c
add rax, 0x10
cmp rax, rcx
jbe 0x69cef0
jmp 0x69cf4c
cmp rax, rbx
cmovae rax, rbx
xor ecx, ecx
nop dword [rax]
cmp byte [r15 + rcx], 0
je 0x69cfd5
inc rcx
cmp rax, rcx
jne 0x69cf30
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x69cedb
cmp rax, rbx
je 0x69cf6f
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x69cfd5
inc rax
cmp rbx, rax
jne 0x69cf60
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.005230a0
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x69d00d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x69d021
lea rax, [0x00726100]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x69d041
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, r12
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.006d3c74
mov rcx, qword [rdi]
mov rax, qword [rbp]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x69d041
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rbx
call fcn.006d3c74
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.005722f0
call fcn.00522eb0
mov ecx, 1
mov rdx, r14
call fcn.00522e90
int3
Function at 0x69d860
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x0076d188]
mov edx, 0x10
xor ecx, ecx
call fcn.0069df80
test rax, rax
je 0x69d937
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x0069d9b0]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x69d929
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x69d8e1
mov rcx, rdi
call rax
cmp qword [r14 + 8], 0
je 0x69d904
cmp qword [r14 + 0x10], 0x11
jb 0x69d8f3
mov rdi, qword [rdi - 8]
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rdi
call fcn.006d3c74
mov rcx, qword [0x0076d128]
xor edx, edx
mov r8, rsi
call fcn.006d3c74
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.00522ef0
ud2

Function at 0x6a3140
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x6a32c4
mov rax, qword [0x0076d130]
cmp rax, 3
jne 0x6a32cf
mov r14, rdx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x6a31da
cmp word [r14], 0
je 0x6a324b
movups xmm0, xmmword [r14 + 4]
mov eax, dword [r14 + 0x14]
mov edx, dword [r14 + 0x18]
movzx ecx, word [r14 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x6a3262
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x6a31f3
mov ebx, eax
cmp eax, 0x2726
jne 0x6a32b4
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x6a32ad
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x6a31ad
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov rcx, rsi
call fcn.006d3a2c
jmp 0x6a32b4
mov eax, dword [r14 + 2]
movzx ecx, word [r14 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], edx
lea rdx, [rbp - 0x1c]
mov rcx, rsi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x6a3291
xor eax, eax
mov rdx, rsi
jmp 0x6a32c4
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call fcn.006d3a2c
mov rdx, rdi
jmp 0x6a32bf
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rdx, rbx
mov eax, 1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rsi, rdx
call fcn.0069cdc0
mov rdx, rsi
jmp 0x6a316e
Function at 0x6a5970
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
je 0x6a59ef
mov rbx, qword [rsi]
lea r14, [rbx + 0x10]
movdqa xmm0, xmmword [rbx]
pmovmskb eax, xmm0
not eax
jmp 0x6a59c2
tzcnt ecx, eax
shl ecx, 5
mov rdx, rbx
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
dec rdi
je 0x6a59ef
test ax, ax
jne 0x6a59a0
nop word [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rbx, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x6a59d0
not eax
jmp 0x6a59a0
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x6a5a06
call sub.kernel32.dll_CloseHandle
test eax, eax
je 0x6a5a1f
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x6a5a32
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.kernel32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x6a5a14
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x6d3aa4
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x6a85a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x6a85e2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x6a85ea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x6a85fb
jmp 0x6a8612
xor r10d, r10d
jmp 0x6a869d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x6a8612
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x6a8629
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x6a8649
add r11, r8
jmp 0x6a877b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x6a8712
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x6a86c0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x6a8730
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x6a8742
jmp 0x6a875d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x6a875d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x6a8777
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret