joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002e64
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140002e59
mov ebp, r14d
cmp dword [rsp + 0xa8], r14d
jbe 0x140002e59
mov eax, pe_nt_image_headers64
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0x68], r14
mov rsi, r14
mov edi, eax
mov ecx, eax
call fcn.14003137c
mov rbx, rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x68], rbx
test rsi, rsi
je 0x140002df1
mov rcx, rsi
call fcn.140030fd0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa0]
mov r8, rbx
mov edx, ebp
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rsi, rbx
cmp eax, 0xea
jne 0x140002e30
mov eax, dword [rsp + 0xa0]
jmp 0x140002dc6
test eax, eax
jne 0x140002e42
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call fcn.140002e80
nop
mov rcx, rbx
call fcn.140030fd0
inc ebp
cmp ebp, dword [rsp + 0xa8]
jb 0x140002db2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400083c0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140008432
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x1400083f8
add rdi, rbx
sub rsi, rbx
je 0x140008432
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1400083f0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1400083f0
and ebp, 0x7fffffff
jmp 0x140008434
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14000aab0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000ab50
jmp 0x14000ab3f
jae 0x14000ac1e
cmp r8, 0x201
jae 0x14000ab50
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000abb6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000ab8e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140022730
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000abdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000ac8a
mov r8d, r13d
cmp r12, r8
jne 0x14000ab30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000acbe
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000ab3f
jmp 0x14000ab50
cmp r14, r8
jb 0x14000acd8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000ccf0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000ac73
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140004cb0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000ac5e
jmp 0x14000ac73
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400237a0
jmp 0x14000aced
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140023b50
ud2
Function at 0x14000ad40
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14000ad66
mov rdx, rax
add rsp, 0x70
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x20], rax
lea rax, [0x14000bc90]
mov qword [rbp - 0x18], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x30], 0
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x50]
call fcn.140023700
ud2
Function at 0x14000f5c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12

Function at 0x1400123e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x140027198]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140012476
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1400124a3
test eax, eax
js 0x140012482
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140012499
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14000c910
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140008e20
mov ecx, 7
int 0x29
ud2

Function at 0x140013060
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
clc
invalid
invalid
invalid
dec dword [rcx + rcx*4 - 0x39]
mov r14, rdx
invalid
Function at 0x140021b18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021b62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021b62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021b62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021b62
cmp dword [rcx + 0x84], 0xe
jbe 0x140021b62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021b64
xor al, al
add rsp, 0x28
ret
Function at 0x180001010
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x188
mov rax, qword [0x1800aa400]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001077
mov qword [rsp + 0x88], 0
jmp 0x1800011d0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x1800010b0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
jmp 0x1800011d0
mov rdx, qword [rsp + 0x58]
add rdx, 0x18
lea rcx, [rsp + 0x90]
mov r8d, 0xf0
call fcn.18009eb10
cmp dword [rsp + 0x100], 0
jne 0x1800010ec
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
jmp 0x1800011d0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x100]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
cmp eax, dword [rcx + 0x18]
jae 0x1800011c3
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x34]
mov eax, dword [rax + r8*4]
add rcx, rax
call fcn.1800940dc
cmp eax, 0
jne 0x1800011ae
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x34]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x1800011c3
jmp 0x1800011b3
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x180001147
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180091ca0
mov rax, qword [rsp + 0x28]
add rsp, 0x188
ret
Function at 0x18009355c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18009355c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800935cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800935cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800935cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800935cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800935cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800935cb
cmp dword [rcx + 0xf8], 0
je 0x1800935cb
mov ecx, ebx
call fcn.1800934c8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180093700
nop
cmp dword [rbp + 0x20], 0
jne 0x18009362c
call fcn.180096ea4
cmp eax, 1
jne 0x18009361c
xor dl, dl
jmp 0x180093626
call fcn.180096e70
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180093637
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18009352c
int3

Function at 0x1800942d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800942f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800942f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800985e8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180098618
xor eax, eax
jmp 0x1800986db
mov rbp, rbx
cmp word [rax], si
je 0x18009863d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180098624
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180098620
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180098508
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18009867e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180098611
call fcn.180098880
mov rdi, rax
test rax, rax
jne 0x180098694
xor ecx, ecx
call fcn.180096120
jmp 0x180098673
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180098508
test eax, eax
jne 0x1800986c5
mov rcx, rdi
call fcn.180096120
jmp 0x1800986cf
xor ecx, ecx
call fcn.180096120
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180007870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x10], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 0
mov rax, qword [0x18001ff80]
mov qword [rsp + 0x10], rax
jl 0x1800078d9
nop
jge 0x1800078d9
test al, 0x7d
idiv dl
int 0xdd
out dx, al
invalid
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800078ef
xor eax, eax
jmp 0x180007a2f
mov rax, qword [rsp + 0x10]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
jg 0x180007934
push rdx
nop
pop rdx
jle 0x180007934
xlatb
cli
fnsave dword [rax + 0x7ddd45c0]
out 0xdd, eax
cli
int 0xcd
jge 0x1800078de
xlatb
mov eax, 0xeed7ee7d
mov al, 0xd7
invalid
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180007948
xor eax, eax
jmp 0x180007a2f
mov dword [rsp], 0
jmp 0x180007959
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x180007a04
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov ecx, dword [rsp]
imul rcx, rcx, 0x28
add rax, rcx
mov qword [rsp + 0x18], rax
jnp 0x1800079b9
nop
jp 0x1800079b9
test dh, 0xfa
jge 0x180007985
xlatb
rol al, 0x45
scasd eax, dword [rdi]
scasd eax, dword [rdi]
invalid
mov rax, qword [rsp + 0x18]
cmp dword [rax + 0x24], 0xe0000020
jne 0x1800079ff
ja 0x1800079f3
push rsp
push rbx
nop
pop rbx
pop rsp
jbe 0x1800079f3
out dx, al
div dh
fnstsw word [rax - 0x47323f48]
cli
idiv dl
cli
invalid
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x180007a04
jmp 0x180007951
cmp qword [rsp + 0x20], 0
jne 0x180007a10
xor eax, eax
jmp 0x180007a2f
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x18001ff80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x180018550
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 8], 0
mov qword [rsp], 0
mov qword [rsp + 0x20], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x238]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1800185fd
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0
jle 0x1800185fd
mov rax, qword [rsp]
cmp dword [rax + 0x3c], 0x190
jge 0x1800185fd
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
jne 0x1800185fd
jmp 0x18001860c
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
jmp 0x1800185a9
mov rax, qword [rsp + 8]
add rsp, 0x38
ret

Function at 0x180018620
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov dword [rsp + 8], 0
mov dword [rsp], 0xffffffff
js 0x180018674
push rdi
push rax
push rbx
push rcx
pop rcx
pop rbx
pop rax
pop rdi
jns 0x180018674
invalid
mov dword [rsp + 4], 0
jmp 0x180018688
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 4], eax
jae 0x180018753
jae 0x1800186c2
push rax
push rbx
nop
pop rbx
pop rax
jb 0x1800186c2
xlatb
idiv byte [rax + 0x45facdaf]
cli
invalid
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov dword [rsp + 8], eax
jbe 0x18001870b
push rsp
push rbx
push rsp
pop rsp
pop rbx
pop rsp
ja 0x18001870b
scasd eax, dword [rdi]
scasd eax, dword [rdi]
int 0x7d
test ch, 0xfa
cli
mov dh, 0xd7
mov al, 0xb8
int 0xe7
out 0xb0, eax
shr byte [rdi - 0x32223983], 0xf6
cli
out 0xc6, eax
xlatb
invalid
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp + 8]
lea rdx, [0x18001fb60]
xor eax, dword [rdx + rcx*4]
mov dword [rsp], eax
jl 0x18001874e
push rdx
nop
pop rdx
jge 0x18001874e
int 0xf6
mov al, 0xaf
jge 0x1800186ef
cli
invalid
jmp 0x18001867e
jp 0x18001877f
push rcx
push rbp
pop rbp
pop rcx
jnp 0x18001877f
invalid
mov eax, dword [rsp]
xor eax, 0xffffffff
mov dword [rsp], eax
jno 0x1800187b4
nop
jo 0x1800187b4
out 0xfa, eax
int 0xb8
fnstsw word [r8 - 0x11323f40]
int 0xcd
rcl bh, 0xe7
scasd eax, dword [rdi]
invalid
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x18
ret
Function at 0x140026720
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x168
mov rax, qword [0x14012e080]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400268d6
mov qword [rsp + 0x170], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x180], rsi
mov r8d, 0x100
mov rcx, rax
mov qword [rsp + 0x160], rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
inc r8
cmp byte [rax + r8], 0
jne 0x140026791
mov qword [rsp + 0x178], rbp
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x150], r15
call fcn.140007f30
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rsi, 0xf
mov rax, qword [rsp + 0x30]
cmova rdi, rbx
cmp rax, 0x10
jb 0x140026840
lea rbp, [rdi + rax]
mov edx, 0x43
lea r8, [rbp - 0xf]
mov rcx, rdi
sub r8, rdi
call fcn.1400d4660
test rax, rax
je 0x140026840
movabs r14, 0x2d7265746e756f43
movabs r15, 0x3220656b69727453
cmp qword [rax], r14
jne 0x140026824
cmp qword [rax + 8], r15
je 0x1400268ce
inc rax
lea r8, [rbp - 0xf]
sub r8, rax
mov rcx, rax
mov edx, 0x43
call fcn.1400d4660
test rax, rax
jne 0x140026815
mov rax, 0xffffffffffffffff
mov r15, qword [rsp + 0x150]
cmp rax, 0xffffffffffffffff
mov r14, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x178]
setne dil
cmp rsi, 0xf
jbe 0x14002689a
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140026892
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400268ee
mov rcx, rbx
call fcn.1400a44dc
mov rsi, qword [rsp + 0x180]
movzx eax, dil
mov rdi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a4170
add rsp, 0x168
ret
sub rax, rdi
jmp 0x140026847
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a4170
add rsp, 0x168
ret
call fcn.1400aa3b0
int3
Function at 0x140029910
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14012e080]
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 0x1400299ea
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400299f0
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 0x1400299c0
test ebx, ebx
je 0x140029a1a
jmp 0x1400299f7
cmp ebx, 0xffffffff
je 0x140029a3d
jmp 0x1400299ea
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a4170
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.140029a80
lea rdx, [0x14012c230]
lea rcx, [rsp + 0x30]
call fcn.1400a640c
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.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x30]
call fcn.1400a640c
int3