joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44feb7
movzx edx, byte [rax]
test edx, edx
jne 0x44fd74
nop dword [rax]
test r8b, r8b
jne 0x44fd74
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44fd87
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44fe77
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44fe65
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44fe57
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44fddd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44fe20
mov eax, 1
cmp rax, rbx
ja 0x44fe0b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00462960
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44fe4f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44fe13
mov rcx, r11
mov eax, r12d
jmp 0x44fde2
mov rcx, rbx
call fcn.004628a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004628a0
mov eax, r8d
mov rcx, rbx
call fcn.00462960
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44fead
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44fe70
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44fd8d
mov eax, edx
mov rcx, rbx
call fcn.004628a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004628a0
nop
int3

Function at 0x455a80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x455b35
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00453700
nop
test bl, bl
je 0x455b2f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00455b80]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.004604a0
xorps xmm15, xmm15
mov r14, qword [0x005c5590]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004605c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455a80
Function at 0x458aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458b4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00458ba0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004604a0
xorps xmm15, xmm15
mov r14, qword [0x005c5590]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004605c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00458aa0
Function at 0x4623c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403d43
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409ae0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004605c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403d20
cmp byte [0x005c538b], 0
je 0x4623d5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45f600
jmp 0x403d20

Function at 0x4623e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c5660]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005c538b], 0
je 0x462415
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005c5980]
aesenc xmm0, xmmword [0x005c5990]
aesenc xmm0, xmmword [0x005c59a0]
movq rax, xmm0
ret
jmp 0x409d00

Function at 0x462420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005c5660]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005c538b], 0
je 0x462456
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005c5980]
aesenc xmm0, xmmword [0x005c5990]
aesenc xmm0, xmmword [0x005c59a0]
movq rax, xmm0
ret
jmp 0x409d60

Function at 0x4641e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x464214
mov rcx, 0x28
jmp 0x46421f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005c5590], rcx
pop rbp
ret
Function at 0x46dc40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46dd0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004032e0
xorps xmm15, xmm15
mov r14, qword [0x005c5590]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x46dcef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00491d20]
xor ebx, ebx
mov rcx, rdx
call fcn.00449100
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0046e220
inc rbx
cmp rcx, rbx
jae 0x46dcde
mov edi, 1
lea rsi, [0x00491d20]
call fcn.004491e0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c9658]
lea rsi, [0x004c9000]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004605c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0046dc40
Function at 0x1409a42a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1409a42ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1409a42bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1409a42a5
lea eax, [rcx + 1]
jmp 0x1409a42cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1409a42de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1409a42c4
sub eax, 3
jb 0x1409a42fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1409a434d
sar eax, 1
movsxd rbp, eax
jb 0x1409a4334
jmp 0x1409a430c
add ebx, ebx
jne 0x1409a430a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1409a4334
inc ecx
add ebx, ebx
jne 0x1409a431a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1409a4334
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1409a432d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1409a431c
add ecx, 2
jmp 0x1409a4339
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1409a4262
jmp 0x1409a42ad
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9a0000]
mov eax, dword [rdi]
or eax, eax
je 0x1409a43a9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x9c08f8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1409a4359
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1409a43a3
mov qword [rbx], rax
add rbx, 8
jmp 0x1409a4379
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1409a43ed
cmp al, 0xef
ja 0x1409a43d5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1409a43b5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1409a43c4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1409a43c4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1409a4441
sub rsp, 0xffffffffffffff80
jmp 0x140419014
Function at 0x140001410
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov r11, rsp
push rbp
push r14
sub rsp, 0x168
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r14, rdx
mov qword [rdx], 0
xor edx, edx
mov dword [r11 - 0x28], 0
mov rbp, rcx
lea r9, [r11 - 0x28]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400015bf
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x150]
mov qword [rsp + 0x198], rsi
add r8, r8
mov qword [rsp + 0x160], rdi
mov rdx, qword [rax + 0x60]
mov rcx, qword [rdx + 0x30]
mov edx, 8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x150]
xor r9d, r9d
add r8d, r8d
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
js 0x140001591
mov qword [rsp + 0x190], rbx
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001589
mov ecx, ebx
lea rax, [rsp + 0x20]
imul rdx, rcx, 0x128
lea rcx, [rdi + 8]
add rcx, rdx
mov edx, 2
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400014f0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
mov rcx, rbp
movzx eax, word [rsp + 0x46]
add rdx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000157f
inc ebx
cmp ebx, dword [rdi]
jb 0x1400014d2
jmp 0x140001589
mov rax, qword [rsp + 0x30]
xor esi, esi
mov qword [r14], rax
mov rbx, qword [rsp + 0x190]
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rdi, qword [rsp + 0x160]
mov eax, esi
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140002620
add rsp, 0x168
pop r14
pop rbp
ret
Function at 0x140001820
Capabilities:
Access peb ldr_data
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov qword [rcx], 0
lea rdx, [rsp + 0x58]
mov eax, dword [0x1400044d8]
lea r8, str._lsSystem32_hs
movsd xmm0, qword [0x1400044d0]
mov rsi, rcx
mov dword [rsp + 0x60], eax
mov edi, 0x23f0
movzx eax, byte [0x1400044dc]
mov r9d, 0x7ffe0030
mov byte [rsp + 0x64], al
mov eax, dword [str.CI.dll]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400044e4]
mov word [rsp + 0x54], ax
movzx eax, byte [0x1400044e6]
mov byte [rsp + 0x56], al
movsd qword [rsp + 0x58], xmm0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
lea rax, [rsp + 0x50]
cmp word [rcx + 0x120], di
lea rcx, [rsp + 0x70]
cmovb rax, rdx
mov edx, 0x82
mov qword [rsp + 0x20], rax
call fcn.1400013b0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001070
mov ebx, eax
test eax, eax
jns 0x140001919
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, str.Failed_to_map__ls:__08X_n
call fcn.140001010
jmp 0x140001a51
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp word [rcx + 0x120], di
jb 0x140001982
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140001410
mov ebx, eax
test eax, eax
jns 0x140001957
mov edx, eax
lea rcx, str.Failed_to_FindKernelModule__08X_n
call fcn.140001010
jmp 0x140001a3f
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400015e0
test eax, eax
je 0x140001a3a
mov rax, qword [rsp + 0x30]
xor ebx, ebx
mov qword [rsi], rax
jmp 0x140001a3f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140001410
mov ebx, eax
test eax, eax
js 0x140001a3f
mov r10, qword [rsp + 0x48]
xor edi, edi
xor r9d, r9d
test r10, r10
je 0x140001a2e
mov r11, qword [rsp + 0x40]
lea rbx, [0x140004a6c]
nop word [rax + rax]
mov r8, r9
xor edx, edx
sub r8, rbx
mov rax, rbx
add r8, r11
nop
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x1400019dd
test cl, cl
jne 0x140001a2a
inc edx
inc rax
cmp edx, 4
jb 0x1400019d0
mov cl, 1
test cl, cl
mov rax, r9
cmove rax, rdi
inc r9
mov rdi, rax
cmp r9, r10
jb 0x1400019c0
test rax, rax
je 0x140001a2e
movsxd rbx, dword [rax + r11 + 4]
lea rcx, str.i_:_0x_llx_n_gCiEnabled_:__llx_n_gCiEnabledAddress_:__llx_n
call fcn.140001010
mov rax, qword [rsp + 0x30]
lea rcx, [rdi + rbx]
add rax, 8
add rcx, rax
mov qword [rsi], rcx
xor ebx, ebx
jmp 0x140001a3f
xor cl, cl
jmp 0x1400019e9
lea rcx, str.failed_to_find_CiEnabled_n
call fcn.140001010
mov ebx, 0xc0000225
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002620
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140004aa0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140004b7a
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140004b80
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140004b50
test ebx, ebx
je 0x140004baa
jmp 0x140004b87
cmp ebx, 0xffffffff
je 0x140004bcd
jmp 0x140004b7a
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000fa30
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.140004c10
lea rdx, [0x140016c90]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_select_socket
lea rcx, [rsp + 0x30]
call fcn.1400024d0
lea rdx, [0x140016ad8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140008940
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x71], rdx
xor eax, eax
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x6a09e667
mov dword [rbp - 0x15], 0xbb67ae85
mov dword [rbp - 0x11], 0x3c6ef372
mov dword [rbp - 0xd], 0xa54ff53a
mov dword [rbp - 9], 0x510e527f
mov dword [rbp - 5], 0x9b05688c
mov dword [rbp - 1], 0x1f83d9ab
mov dword [rbp + 3], 0x5be0cd19
mov rsi, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400089c6
mov r14, qword [rdx]
xor ebx, ebx
test rsi, rsi
je 0x140008a06
nop dword [rax]
mov ecx, eax
movzx eax, byte [r14 + rbx]
mov byte [rbp + rcx - 0x69], al
mov eax, dword [rbp - 0x29]
inc eax
mov dword [rbp - 0x29], eax
cmp eax, 0x40
jne 0x1400089fe
lea rcx, [rbp - 0x69]
call fcn.140001260
add qword [rbp - 0x21], 0x200
xor eax, eax
mov dword [rbp - 0x29], eax
inc rbx
cmp rbx, rsi
jb 0x1400089d0
mov byte [rbp + rax - 0x69], 0x80
lea rcx, [rax + 1]
mov edx, 0x38
mov r8d, 0x40
cmp eax, edx
cmovb r8d, edx
cmp rcx, r8
jae 0x140008a36
sub r8, rcx
lea rax, [rbp - 0x69]
add rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rbp - 0x29]
cmp eax, 0x38
jb 0x140008a5f
lea rcx, [rbp - 0x69]
call fcn.140001260
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x69], xmm2
movups xmmword [rbp - 0x59], xmm2
movups xmmword [rbp - 0x49], xmm2
mov qword [rbp - 0x39], rax
mov eax, dword [rbp - 0x29]
lea edx, [rax*8]
add rdx, qword [rbp - 0x21]
mov qword [rbp - 0x21], rdx
mov byte [rbp - 0x2a], dl
mov rax, rdx
shr rax, 8
mov byte [rbp - 0x2b], al
mov rax, rdx
shr rax, 0x10
mov byte [rbp - 0x2c], al
mov rax, rdx
shr rax, 0x18
mov byte [rbp - 0x2d], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp - 0x2e], al
mov rax, rdx
shr rax, 0x28
mov byte [rbp - 0x2f], al
mov rax, rdx
shr rax, 0x30
mov byte [rbp - 0x30], al
shr rdx, 0x38
mov byte [rbp - 0x31], dl
lea rcx, [rbp - 0x69]
call fcn.140001260
xor bl, bl
nop
xor al, al
movzx r11d, bl
mov r10d, 3
sub r10d, r11d
shl r10d, 3
lea r9, [rbp - 0x19]
nop word [rax + rax]
mov r8d, dword [r9]
mov ecx, r10d
shr r8d, cl
movzx ecx, al
lea edx, [r11 + rcx*4]
mov byte [rbp + rdx + 7], r8b
inc al
lea r9, [r9 + 4]
cmp al, 8
jb 0x140008ae0
inc bl
cmp bl, 4
jb 0x140008ac0
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140001490
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140008b49
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140008b44
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008b82
mov rcx, r8
call fcn.14000fa8c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], select
mov byte [rdi], 0
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000fa30
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140009e70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140009e91
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140009ebe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009ec0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009f19
test ecx, ecx
jle 0x140009ef9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140009f19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009f19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
xor eax, 0x38453743
xor dword [rdx + rsi + 0x46], eax
invalid
Function at 0x140009f40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140009f62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140009f71
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009f94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009f96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009fd2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000a06e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a00d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000a04e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000a06e
cmp rbx, rax
ja 0x14000a020
test rbx, rbx
je 0x14000a06e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor al, 0x37
xor eax, 0x32434538
xor dil, byte [r8]
cmp byte [rdi], dh
xor dword [rdi], esi
xor dword [rsi + 0x45], eax
xor al, 0x42
xor dword [rdi], esi
cmp byte [r13 + 0x37], al
cmp byte [rsi + 0x37], al
cmp byte [rsi + 0x44], r8b
xor esi, dword [rdi]
invalid