joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082140
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14008216e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400729d0
ud2

Function at 0x140082180
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 [0x1401a70d8]
test ecx, ecx
je 0x1400821b3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400821cc
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400821cc
add rcx, 0x10
jmp 0x1400822c3
lea rcx, [0x1401a70c0]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400821a0
mov ecx, dword [0x1401a70d8]
test ecx, ecx
je 0x1400822a4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400822c1
mov rdi, rax
test rax, rax
jne 0x14008223c
movzx eax, byte [0x14024a149]
mov edx, 0x20
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x1400822e0
mov rdi, rax
lea rax, [0x1401a70c0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401a70d8]
test ecx, ecx
je 0x1400822cd
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x140082259
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14008228e
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 0x140082289
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14008228e
call fcn.140082140
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400822c3
lea rcx, [0x1401a70c0]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400821eb
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401a70c0]
call fcn.140082e00
mov ecx, eax
jmp 0x140082234
ud2

Function at 0x1400828e0
Capabilities:
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.14007ed10
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x140082987
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400844b0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x14008294c
mov rsi, rdi
jmp 0x140082987
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
mov ebx, eax
test eax, eax
jne 0x14008296b
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x140082981
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
je 0x140082987
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400829a0
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.14007ed10
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x140082a45
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400844b0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x140082a0c
mov rsi, rdi
jmp 0x140082a45
mov rcx, rdi
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
test eax, eax
jne 0x140082a29
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x140082a3f
mov rcx, qword [0x14024a138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
test ebx, ebx
je 0x140082a45
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140082e00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140082e85
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140082ebc
cmp dword [rsp + 0x2c], 0
je 0x140082ead
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140082ebe
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14024a120]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14024a120], rsi
jne 0x140082e60
mov byte [0x14024a118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140082eb2
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140082ebc
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140082eb2
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140082eb2
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2
Function at 0x1400965a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14009670e
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test rbp, rbp
je 0x1400966e4
shl rbp, 3
mov r15d, 8
xor esi, esi
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x80]
xor r12d, r12d
jmp 0x140096652
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [r15 + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [r15 + rax*8], xmm0
mov r12, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x38], r12
add rsi, 8
cmp rbp, rsi
je 0x1400966e4
mov r13, qword [rdi + rsi]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rax
mov word [rsp + 0x90], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.14009e030
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x28]
jne 0x140096620
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.140035700
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
jmp 0x140096620
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x1400966f6
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x140096725
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14009a2b0
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 0x14009a2f2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14009a2fa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14009a30b
jmp 0x14009a322
xor r10d, r10d
jmp 0x14009a3ad
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14009a322
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14009a339
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 0x14009a359
add r11, r8
jmp 0x14009a48a
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 0x14009a422
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 0x14009a3d0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14009a440
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14009a452
jmp 0x14009a46c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14009a46c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14009a486
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
Function at 0x14009bf80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401a7038]
test ecx, ecx
je 0x14009bfbc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14009bfd5
cmp qword [rax + 8], 0
je 0x14009bfd5
add rax, 0x10
jmp 0x14009c07d
lea rcx, [0x1401a7020]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14009bfac
mov ecx, dword [0x1401a7038]
test ecx, ecx
je 0x14009bff9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14009c011
mov r14, rax
cmp rax, 1
jne 0x14009c05a
jmp 0x14009c196
lea rcx, [0x1401a7020]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14009bfeb
movzx eax, byte [0x14024a149]
mov edx, 0x28
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x14009c196
mov r14, rax
lea rax, [0x1401a7020]
mov qword [r14], rax
mov qword [r14 + 8], 0
mov ecx, dword [0x1401a7038]
test ecx, ecx
je 0x14009c180
dec ecx
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
mov qword [r14 + 8], 1
lea rax, [r14 + 0x10]
mov qword [r14 + 0x10], 0
mov word [r14 + 0x18], 0
mov qword [r14 + 0x20], 0
mov rcx, qword [rbx + 0x50]
mov qword [rsp + 0x98], rcx
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rsp + 0x88], xmm0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmm2, xmmword [rbx + 0x20]
movups xmm3, xmmword [rbx + 0x30]
movups xmmword [rsp + 0x78], xmm3
movups xmmword [rsp + 0x68], xmm2
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0xa0], 0
lea rdx, [0x14009c8a0]
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14001ee70
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
movzx eax, byte [rdi + 8]
test al, al
jne 0x14009c196
cmp byte [rdi + 9], 0
jne 0x14009c122
lea rbx, [rdi + 0x10]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0xffffffff
xor r9d, r9d
call sub.KERNEL32.dll_SleepConditionVariableSRW
movzx eax, byte [rdi + 8]
test al, al
jne 0x14009c196
cmp byte [rdi + 9], 0
je 0x14009c100
mov byte [rdi + 9], 0
mov rcx, rdi
call fcn.140107120
mov rax, qword [rsp + 0xa0]
cmp rax, 1
jne 0x14009c193
movups xmm0, xmmword [rsp + 0xa8]
movups xmm1, xmmword [rsp + 0xb8]
movups xmm2, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0x30], xmm2
movaps xmmword [rsp + 0x20], xmm1
movups xmmword [rsi], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401a7020]
call fcn.140082e00
mov ecx, eax
jmp 0x14009c052
test rax, rax
ud2
Function at 0x14009db40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401a7128]
test ecx, ecx
je 0x14009db70
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14009db89
cmp qword [rax + 8], 0
je 0x14009db89
add rax, 0x10
jmp 0x14009dc42
lea rcx, [0x1401a7110]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14009db60
mov ecx, dword [0x1401a7128]
test ecx, ecx
je 0x14009dc23
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14009dc40
mov rdi, rax
test rax, rax
jne 0x14009dbf5
movzx eax, byte [0x14024a149]
mov edx, 0x18
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x14009dc59
mov rdi, rax
lea rax, [0x1401a7110]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401a7128]
test ecx, ecx
je 0x14009dc49
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14009dc0f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14009dc11
mov rcx, qword [rsi + 8]
jmp 0x14009dc11
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
jmp 0x14009dc42
lea rcx, [0x1401a7110]
call fcn.140082e00
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14009dba8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401a7110]
call fcn.140082e00
mov ecx, eax
jmp 0x14009dbed
ud2
Function at 0x14009e2f0
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm7
movaps xmmword [rsp + 0x1b0], xmm6
mov rsi, rcx
xor ecx, ecx
call fcn.140082180
test rax, rax
je 0x14009e5aa
movups xmm6, xmmword [rax]
inc qword [rax]
movzx eax, byte [0x14024a149]
mov edx, 0x56410
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x14009e5aa
mov rdi, rax
add rdi, 0x56000
mov r8d, 0x410
mov rcx, rdi
mov dl, 0xff
call sub.msvcrt.dll_memset
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], 0x3ff
mov qword [rsp + 0x130], 0x380
mov qword [rsp + 0x138], 0
movzx eax, byte [0x14024a149]
mov edx, 9
xor ecx, ecx
call fcn.140080d30
test rax, rax
je 0x14009e5aa
movabs rcx, 0x5043206c61746f54
mov qword [rax], rcx
mov byte [rax + 8], 0x55
mov qword [rsp + 0x90], 9
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 9
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 1
xorps xmm7, xmm7
movups xmmword [rsp + 0xb8], xmm7
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], 0
movabs rax, 0x8000000000000000
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov byte [rsp + 0x118], 0
movups xmmword [rsp + 0x140], xmm6
movups xmmword [rsp + 0x150], xmm7
movups xmmword [rsp + 0x160], xmm7
mov qword [rsp + 0x170], 0
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x14009e4b4
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm7
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x14009e54e
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsp + 0x160], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsp + 0x168], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140098ca0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140099070
mov r8d, 0x120
mov rcx, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
movaps xmm6, xmmword [rsp + 0x1b0]
movaps xmm7, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rdi
pop rsi
ret
ud2
Function at 0x14009e5b0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x14009e5f5
call sub.KERNEL32.dll_GetLastError
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.KERNEL32.dll_K32GetPerformanceInfo
test eax, eax
je 0x14009e68c
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0xd0], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0xd8], rax
mov rcx, rsi
call fcn.140098ca0
mov byte [rsp + 0x20], 1
movabs rax, 0x202020202020101
mov qword [rsp + 0x21], rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140099070
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rsi
ret
Function at 0x14009f8d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, r8
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rdx]
lea rdx, [rsp + 0x20]
mov r8d, 0x20
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14009f933
movsxd rbx, eax
cmp rbx, 0x21
jae 0x14009f986
mov rax, qword [rdi]
mov r14, qword [rdi + 0x10]
sub rax, r14
cmp rax, rbx
jae 0x14009f945
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.140012ef0
mov r14, qword [rdi + 0x10]
jmp 0x14009f945
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009f973
mov r14, qword [rdi + 0x10]
xor ebx, ebx
mov rcx, qword [rdi + 8]
add rcx, r14
lea rdx, [rsp + 0x20]
mov r8, rbx
call sub.msvcrt.dll_memcpy
add r14, rbx
mov qword [rdi + 0x10], r14
mov qword [rsi + 8], rbx
xor eax, eax
mov qword [rsi], rax
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14009f966
ud2
Function at 0x1400ae880
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, r9d
mov rdi, r8
call qword [rdx + 0xb8]
mov rcx, rax
xor eax, eax
test rcx, rcx
je 0x1400ae931
cmp esi, 0x3b9aca00
je 0x1400ae8f7
mov edx, 0x3e8
mov rax, rdi
mul rdx
mov rdx, rax
mov eax, 0xffffffff
jo 0x1400ae8f7
mov r8d, esi
imul r8, r8, 0x431bde83
shr r8, 0x32
add rdx, r8
jb 0x1400ae8f7
imul r8d, r8d, 0xf4240
xor r9d, r9d
sub esi, r8d
setne r9b
add rdx, r9
jb 0x1400ae8f7
mov eax, 0xffffffff
cmp rdx, rax
cmovb rax, rdx
test rax, rax
je 0x1400ae938
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400ae924
xor eax, eax
jmp 0x1400ae931
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x1400ae931
Function at 0x1400bcee0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400bcf37
mov rdi, r8
mov rbx, rdx
mov r14, qword [rcx]
lea rsi, str.failed_to_write_whole_buffer
nop
cmp rdi, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x1400bcf3b
test eax, eax
je 0x1400bcf4a
cdqe
cmp rdi, rax
jb 0x1400bcf57
add rbx, rax
sub rdi, rax
jne 0x1400bcf00
xor esi, esi
jmp 0x1400bcf4a
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x1400c3b40
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x7f8
movaps xmmword [rsp + 0x7e0], xmm9
movaps xmmword [rsp + 0x7d0], xmm8
movaps xmmword [rsp + 0x7c0], xmm7
movaps xmmword [rsp + 0x7b0], xmm6
mov rdi, r8
mov rsi, rdx
Function at 0x1400df1c0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x50], 0
lea r12, [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea rcx, [0x140207914]
lea r9, [0x1402078f8]
xor ebx, ebx
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x1400df2cf
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1400df2e6
mov rcx, r15
mov rdx, r14
call fcn.1400dbcc0
mov r14, rax
mov qword [rsp + 0x50], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x1400df308
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400df320
test r14, r14
je 0x1400df28a
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x1400df367
mov qword [rsi + 8], rbx
mov byte [rsi], 0x12
jmp 0x1400df34e
mov ecx, eax
call fcn.1400db860
mov ebx, edx
test rax, rax
je 0x1400df2e6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], ebx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
jmp 0x1400df357
mov ecx, eax
call fcn.1400db860
mov r15d, edx
test rax, rax
je 0x1400df320
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
test r14, r14
je 0x1400df32d
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
movzx eax, byte [rsp + 0x4f]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x4d]
mov word [rsi + 1], ax
mov dword [rsi + 4], r15d
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call fcn.1400db860
mov ebp, edx
test rax, rax
je 0x1400df37e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
movzx eax, byte [rsp + 0x52]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x50]
mov word [rsi + 1], ax
mov dword [rsi + 4], ebp
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi + 8], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x18], rax
mov byte [rsi], 0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1400df34e