joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7a6171b60
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
cmp dword [0x7ff7a6744100], 0
jne 0x7ff7a6171c44
xorps xmm0, xmm0
mov word [rbp - 0x79], 2
xor eax, eax
lea rcx, [rbp - 0x79]
movups xmmword [rbp - 0x77], xmm0
mov dword [rbp + 0x19], eax
movups xmmword [rbp - 0x67], xmm0
mov word [rbp + 0x1d], ax
movups xmmword [rbp - 0x57], xmm0
movups xmmword [rbp - 0x47], xmm0
movups xmmword [rbp - 0x37], xmm0
movups xmmword [rbp - 0x27], xmm0
movups xmmword [rbp - 0x17], xmm0
movups xmmword [rbp - 7], xmm0
movups xmmword [rbp + 9], xmm0
call fcn.7ff7a6170f30
lea rcx, [rbp + 0x27]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
movaps xmm0, xmmword [rbp - 0x79]
movaps xmm1, xmmword [rbp - 0x69]
mov eax, dword [rbp + 0x47]
movaps xmmword [0x7ff7a6744020], xmm0
movaps xmmword [0x7ff7a6744030], xmm1
movaps xmm1, xmmword [rbp - 0x49]
movaps xmmword [0x7ff7a6744050], xmm1
movaps xmm1, xmmword [rbp - 0x29]
movaps xmmword [0x7ff7a6744070], xmm1
movaps xmm1, xmmword [rbp - 9]
mov dword [rbp - 0x59], eax
movaps xmm0, xmmword [rbp - 0x59]
movaps xmmword [0x7ff7a6744040], xmm0
movaps xmm0, xmmword [rbp - 0x39]
movaps xmmword [0x7ff7a6744060], xmm0
movaps xmm0, xmmword [rbp - 0x19]
movaps xmmword [0x7ff7a6744080], xmm0
movaps xmm0, xmmword [rbp + 7]
movaps xmmword [0x7ff7a6744090], xmm1
movsd xmm1, qword [rbp + 0x17]
movaps xmmword [0x7ff7a67440a0], xmm0
movsd qword [0x7ff7a67440b0], xmm1
mov dword [0x7ff7a6744100], 1
lea rax, [0x7ff7a6744020]
add rsp, 0xf0
pop rbp
ret

Function at 0x7ff7a6171d20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
mov eax, r8d
shr eax, 2
test al, 1
je 0x7ff7a6171d3e
shr r8d, 1
and r8d, 1
inc r8d
shl r8d, 5
jmp 0x7ff7a6171d5b
test r8b, 3
je 0x7ff7a6171d55
shr r8d, 1
and r8d, 1
lea r8d, [r8*2 + 2]
jmp 0x7ff7a6171d5b
mov r8d, 1
lea r9, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_VirtualProtect]
xor edx, edx
mov ecx, 2
test eax, eax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x28
ret

Function at 0x7ff7a6171f20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x7ff7a6744104]
test eax, eax
jne 0x7ff7a6171f86
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec eax
mov ecx, eax
shr ecx, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov edx, ecx
shr edx, 8
or edx, ecx
mov eax, edx
shr eax, 0x10
or eax, edx
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x60]
mov qword [0x7ff7a6744110], rax
mov eax, 1
xchg dword [0x7ff7a6744104], eax
mov rax, qword [0x7ff7a6744110]
add rsp, 0x58
ret

Function at 0x7ff7a6174e50
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [rcx + 0x18]
mov rax, rdx
test r9, r9
je 0x7ff7a6174e7e
cmp r8, 0xffffffffffffffff
jne 0x7ff7a6174e70
inc r8
cmp byte [rdx + r8], 0
jne 0x7ff7a6174e66
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
xor eax, eax
add rsp, 0x28
ret
Function at 0x7ff7a618ec30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x7ff7a618edd4
cmp r9, 4
jb 0x7ff7a618ec7a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x7ff7a618ec60
xor r11d, r11d
test r9, r9
je 0x7ff7a618edd4
cmp r9, 8
jb 0x7ff7a618edad
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x7ff7a618ecac
cmp rdx, r8
jae 0x7ff7a618edad
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x7ff7a618ecc1
cmp rdx, r10
jae 0x7ff7a618edad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x7ff7a618ed67
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x7ff7a618ed00
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x7ff7a618ed9f
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x7ff7a618ed80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x7ff7a618edd4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x7ff7a618edc0
add rsp, 8
ret
Function at 0x7ff7a619cc20
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x7ff7a619cd02
call fcn.7ff7a61b1f20
test al, al
jne 0x7ff7a619cd02
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x7ff7a619cc52
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.7ff7a61be630
test rax, rax
je 0x7ff7a619cc97
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.7ff7a61be630
mov rsi, rax
test rax, rax
je 0x7ff7a619cc97
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x7ff7a619cccb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.7ff7a61ae160
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x7ff7a619ccb0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7a61a9370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x7ff7a61a943b
cmp qword [rcx + 0x268], 0
je 0x7ff7a61a93ee
mov qword [rsp + 0x40], rbx
call fcn.7ff7a6197340
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.7ff7a61976b0
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.7ff7a61976b0
mov rbx, qword [rsp + 0x40]
jmp 0x7ff7a61a943b
mov ecx, esi
test edx, edx
je 0x7ff7a61a93fe
sub ecx, 1
je 0x7ff7a61a93fe
cmp ecx, 1
jne 0x7ff7a61a943b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x7ff7a633ab50]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x7ff7a61aba20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ucrtbase.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x7ff7a61abd10
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x7ff7a633af20]
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x7ff7a61abd3a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x7ff7a633af38]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, [0x7ff7a633af48]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.ucrtbase.dll_wcspbrk]
test rax, rax
je 0x7ff7a61abd9a
mov rcx, rbx
test r14, r14
je 0x7ff7a61abd87
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.kernel32.dll_LoadLibraryW]
test r14, r14
je 0x7ff7a61abdd1
lea rdx, [0x7ff7a633af50]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x7ff7a61abdd1
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x7ff7a61abe9a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x7ff7a61abe00
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.ucrtbase.dll_malloc]
mov rsi, rax
test rax, rax
je 0x7ff7a61abe8c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x7ff7a61abe8c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x7ff7a61abe33
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x7ff7a61abe45
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x7ff7a61abe60
mov rcx, rsi
test r14, r14
je 0x7ff7a61abe83
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x7ff7a61abe89
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.7ff7a633199a]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x7ff7a61b2ce0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x7ff7a61b2cf5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.7ff7a61b2770
Function at 0x7ff7a61bede0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.7ff7a619d010
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.7ff7a61bcc90
mov rcx, rdi
mov rsi, rax
call fcn.7ff7a61bcc90
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x7ff7a61bee90
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.7ff7a619d010
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.7ff7a619d0a0
cmp rax, 0x3e8
ja 0x7ff7a61beec3
mov ecx, 1
call qword [sym.imp.kernel32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x7ff7a61bee40
test rsi, rsi
je 0x7ff7a61bee9e
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
test rbx, rbx
je 0x7ff7a61beeac
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x7ff7a61beed1
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
test rbx, rbx
je 0x7ff7a61beedf
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov eax, 1
jmp 0x7ff7a61beeae
Function at 0x7ff7a61bf370
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x7ff7a61bf50e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x7ff7a61bf4ee
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x7ff7a61bf3de
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff7a61bf3d0
inc rbx
jmp 0x7ff7a61bf3e0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x7ff7a61bf3ed
lea ebp, [rax + 0xe]
jmp 0x7ff7a61bf3f9
cmp eax, 0x17
jne 0x7ff7a61bf491
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x7ff7a61bf491
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x7ff7a61bf491
cmp rax, rbp
jb 0x7ff7a61bf491
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.ucrtbase.dll_malloc]
mov r14, rax
test rax, rax
je 0x7ff7a61bf4a0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x7ff7a61bf47e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x7ff7a61bf48e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x7ff7a61bf3c0
jmp 0x7ff7a61bf4a6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff7a61bf4c0
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
test r12d, r12d
je 0x7ff7a61bf4e9
test rdi, rdi
je 0x7ff7a61bf4e5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.7ff7a633199a]
mov rdi, rbx
test rbx, rbx
jne 0x7ff7a61bf4d0
xor edi, edi
jmp 0x7ff7a61bf4fd
test rdi, rdi
jne 0x7ff7a61bf4fd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.ws2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x7ff7a61bf970
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
test rax, rax
je 0x7ff7a61bf9a7
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x7ff7a61bfa10
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x7ff7a61bfaeb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.7ff7a61a3530
cmp eax, 4
je 0x7ff7a61bfa68
mov edx, eax
jmp 0x7ff7a61bfa95
cmp byte [0x7ff7a6742884], r14b
jne 0x7ff7a61bfa9f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x7ff7a61bfaed
mov eax, dword [rsp + 0x50]
jmp 0x7ff7a61bfabe
imul eax, dword [0x7ff7a6742880], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x7ff7a6742880], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x7ff7a61bfae2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x7ff7a61bfad0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x7ff7a61bfa40
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x7ff7a61bfb00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x7ff7a61bfba3
xor ebp, ebp
lea r14, [0x7ff7a633f590]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.7ff7a61a3530
cmp eax, 4
jne 0x7ff7a61bfb6f
cmp byte [0x7ff7a6742884], bpl
jne 0x7ff7a61bfbbb
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x7ff7a61bfba8
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x7ff7a61bfb30
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x7ff7a61bfb30
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x7ff7a6742880], 0x41c64e6d
add ecx, 0x3039
mov dword [0x7ff7a6742880], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x7ff7a61bfb77
Function at 0x7ff7a61c2a70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x7ff7a61a56c0.0]
mov rdi, rax
test rax, rax
je 0x7ff7a61c2aed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x7ff7a61c2b18
cmp ebx, esi
je 0x7ff7a61c2b18
cmp ebx, 0x8000
ja 0x7ff7a61c2b18
cmp ebx, esi
jb 0x7ff7a61c2b13
mov edx, ebx
mov rcx, rdi
call qword [case.0x7ff7a61a56c0.0]
mov rdi, rax
test rax, rax
jne 0x7ff7a61c2ab0
mov rcx, rbp
call qword [fcn.7ff7a633199a]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x7ff7a61c2af8
mov rcx, rdi
jmp 0x7ff7a61c2af0

Function at 0x7ff7a61c42e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff7a61c433f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff7a6341640]
mov rcx, rbx
mov r8d, eax
call fcn.7ff7a61a9460
mov r9d, edi
lea rdx, [0x7ff7a634165c]
mov r8d, esi
mov rcx, rbx
call fcn.7ff7a61c3e80
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff7a61c44e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x7ff7a61c4696
push rbp
push rdi
push r13
sub rsp, 0x20
mov rbp, qword [rcx + 0x1a8]
mov rdi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
lea rsi, [rbp + 0x1cb8]
mov qword [rsp + 0x50], r14
lea rbx, [rbp + 0x1eb8]
mov qword [rsp + 0x58], r15
mov qword [rbx], rsi
mov rax, rsi
cmp rsi, rbx
jae 0x7ff7a61c4536
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x7ff7a61c454f
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x7ff7a61c454f
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rbp + 0x1ca8]
call qword [sym.imp.ws2_32.dll_htons_1]
movzx ecx, word [rbp + 0x1caa]
movzx r14d, ax
shr r14w, 8
movzx r15d, ax
call qword [sym.imp.ws2_32.dll_htons_1]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x7ff7a61c458e
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x7ff7a61c45a1
mov byte [r9], r14b
inc qword [rbx]
mov r9, qword [rbx]
mov r14, qword [rsp + 0x50]
cmp r9, rbx
jae 0x7ff7a61c45e0
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff7a61c45e0
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff7a61c45e0
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff7a61c45e0
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rbp + 0x1ec0], r9
lea r8, [rbp + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.7ff7a61c3fb0
mov rcx, qword [r13 + 0x1a8]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x7ff7a61c4642
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff7a6341640]
mov rcx, rdi
mov r8d, eax
call fcn.7ff7a61a9460
lea rdx, [rbp + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.7ff7a61c4370
mov rcx, qword [r13 + 0x1a8]
lea rdx, [rbp + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff7a61c468e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff7a6341640]
mov rcx, rdi
mov r8d, eax
call fcn.7ff7a61a9460
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret
Function at 0x7ff7a61c5d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x7ff7a673fab8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x5d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ws2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x7ff7a61c5df6
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x7ff7a61c5e46
lea rdx, [0x7ff7a6341d38]
mov rcx, rbp
call fcn.7ff7a61a9460
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff7a6330880
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x7ff7a61c5e7c.1
movsxd rax, ecx
lea r9, [0x7ff7a6150000]
mov ecx, dword [r9 + rax*4 + 0x75fac]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x7ff7a61c5e7c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x7ff7a61c5e7c.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.7ff7a61a99c0
mov esi, eax
test eax, eax
jne 0x7ff7a61c5ef2
mov eax, dword [rdi + 0x13c]
mov rcx, rbp
sub eax, 4
cdqe
add qword [rbp + 0x100], rax
mov rdx, qword [rbp + 0x100]
call fcn.7ff7a61ba0f0
mov esi, eax
test eax, eax
je case.0x7ff7a61c5e7c.4
mov edx, 5
mov rcx, rdi
call fcn.7ff7a61c69c0
jmp 0x7ff7a61c5e21
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.7ff7a61c6a30
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x7ff7a61c5e7c.4
mov r8, r14
lea rdx, [0x7ff7a6341d58]
mov rcx, rbp
call fcn.7ff7a61a9550
jmp case.0x7ff7a61c5e7c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.7ff7a61c5aa0
mov esi, eax
test eax, eax
je case.0x7ff7a61c5e7c.4
jmp 0x7ff7a61c5e23
lea r8, [0x7ff7a6341d68]
mov rcx, rbp
lea rdx, [0x7ff7a6339274]
call fcn.7ff7a61a9460
mov rcx, rbp
call fcn.7ff7a61ba570
test eax, eax
je 0x7ff7a61c5e21
mov edx, 5
mov rcx, rdi
call fcn.7ff7a61c69c0
mov eax, 0x2a
jmp 0x7ff7a61c5e23