joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc5390b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc53a190
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc539ab2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc55c108]
test eax, eax
je 0x2fc539b4a
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc55c110]
mov qword [rbp - 8], rax
jmp 0x2fc539b2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc539b22
cmp qword [rbp - 0x10], 0
je 0x2fc539b22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc539ae8
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc539b4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc539c50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc539c78
mov eax, 0
jmp 0x2fc539cc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc539ca1
mov eax, 0
jmp 0x2fc539cc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc539cc1
mov eax, 0
jmp 0x2fc539cc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc539ccc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc539d4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc539d41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc539d41
mov rax, qword [rbp - 8]
jmp 0x2fc539d5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc539d14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5f42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5fda
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5fbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d5fb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d5fb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5f78
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5fdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d60e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6108
mov eax, 0
jmp 0x2fc4d6156
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6131
mov eax, 0
jmp 0x2fc4d6156
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6151
mov eax, 0
jmp 0x2fc4d6156
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d615c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d61da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d61d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d61d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d61ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d61a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Inspect section memory permissions

Disassembly:
test qword [rcx], 0x200000
jne 0x18000100d
or byte [rcx + 0x5d], 1
test qword [rcx], 0x400000
jne 0x18000101a
or byte [rcx + 0x5d], 2
test qword [rcx], 0x800000
jne 0x180001027
or byte [rcx + 0x5d], 4
mov r10d, 0x1000000
test qword [rcx], r10
jne 0x180001036
and byte [rcx + 0x5d], 0xf7
test qword [rcx], 0x100000
jne 0x180001043
mov byte [rcx + 0x5c], 0x10
test qword [rcx], 0x40000
jne 0x180001055
mov eax, 0x41
mov word [rcx + 0x58], ax
xor eax, eax
test qword [rcx], 0x80000
jne 0x180001064
mov word [rcx + 0x5a], ax
test qword [rcx], 0x100
jne 0x180001074
mov dword [rcx + 0x34], 0x3d090
test qword [rcx], 0x200
jne 0x180001084
mov dword [rcx + 0x38], shutdown
test qword [rcx], 0x400
jne 0x180001094
mov dword [rcx + 0x3c], 0xa
test qword [rcx], 0x800
jne 0x1800010a4
mov dword [rcx + 0x40], 0x3e8
mov r9d, 0x1000
test qword [rcx], r9
jne 0x1800010b6
mov dword [rcx + 0x44], 0x14d
mov r8d, 0x2000
test qword [rcx], r8
jne 0x1800010c8
mov dword [rcx + 0x48], 0x19
test qword [rcx], 0x4000
jne 0x1800010d8
mov dword [rcx + 0x4c], 0x3e80
mov edx, 0x8000
test qword [rcx], rdx
jne 0x1800010e5
mov dword [rcx + 0x50], eax
test byte [rcx], 4
jne 0x1800010f2
mov qword [rcx + 0x18], 0x7530
test byte [rcx], 2
jne 0x1800010ff
mov qword [rcx + 0x10], 0x2710
test qword [rcx], 0x10000
jne 0x18000110c
mov word [rcx + 0x54], ax
test qword [rcx], 0x20000
jne 0x180001119
mov word [rcx + 0x56], ax
test byte [rcx], 8
jne 0x180001122
mov dword [rcx + 0x20], r8d
test byte [rcx], 0x20
jne 0x18000112a
mov dword [rcx + 0x28], edx
test byte [rcx], 0x40
jne 0x180001133
mov dword [rcx + 0x2c], r9d
test byte [rcx], 0x80
jne 0x18000113c
mov dword [rcx + 0x30], r10d
test byte [rcx], 1
jne 0x18000114f
movabs rax, 0x4000000000
mov qword [rcx + 8], rax
test qword [rcx], 0x2000000
jne 0x18000115c
and byte [rcx + 0x5d], 0xcf
test qword [rcx], 0x8000000
jne 0x180001169
and byte [rcx + 0x5d], 0xbf
test qword [rcx], 0x10000000
jne 0x18000117b
mov eax, 0x4e0
mov word [rcx + 0x6c], ax
test qword [rcx], 0x20000000
jne 0x18000118d
mov eax, 0x5dc
mov word [rcx + 0x6e], ax
mov eax, 0x80000000
test qword [rcx], rax
jne 0x18000119b
mov byte [rcx + 0x78], 3
test qword [rcx], 0x40000000
jne 0x1800011ac
mov qword [rcx + 0x70], 0x23c34600
movabs rax, 0x100000000
mov edx, 0x64
test qword [rcx], rax
jne 0x1800011c4
mov word [rcx + 0x7a], dx
movabs rax, 0x200000000
test qword [rcx], rax
jne 0x1800011d7
mov word [rcx + 0x7c], dx
ret

Function at 0x1800018c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jle 0x1800018fa
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180028c10
add rsp, 0x48
ret
Function at 0x180002b18
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
sub edx, 2
je 0x180002b46
sub edx, 1
je 0x180002b6d
sub edx, 1
je 0x180002b56
cmp edx, 1
jne 0x18003a034
or byte [rcx + 0xe0], 0x20
or byte [rcx + 0xe3], dl
add rsp, 0x28
ret
add rcx, 0x750
add rsp, 0x28
jmp fcn.180002b78
xor r9d, r9d
mov r8, 0xffffffff80410005
lea edx, [r9 + 0x13]
add rsp, 0x28
jmp fcn.180002830
add rsp, 0x28
jmp fcn.1800453a4
lea r8, [0x180057274]
mov edx, 0x1a83
lea rcx, str.D:workspace_work1_s_srcmsquic_srccoreconnection.c
call fcn.18004b2ec
int 0x2c
jmp 0x180002b41

Function at 0x180002c8c
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x27], rax
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
mov rsi, r8
mov r15, rcx
lea r8, [rsp + 0x30]
mov rcx, rdx
movups xmmword [rsp + 0x40], xmm0
mov r14, rdx
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
call fcn.180002dbc
mov ebx, eax
test eax, eax
js 0x18003a054
movzx eax, word [rsi]
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 4
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x180002d35
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 2
xor edx, edx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x18003a076
mov rdx, qword [rsp + 0x38]
mov r8, rsi
movzx ecx, word [rsp + 0x44]
call fcn.180002d90
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
xor ebx, ebx
cmp qword [rsp + 0x30], 0
je 0x180002d70
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [0x180069238]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180028c10
add rsp, 0x100
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
test byte [0x180067c70], 4
je 0x180002d54
lea r9, str.Convert_HostName_to_unicode
mov r8d, eax
call fcn.18004176c
nop
jmp 0x180002d54
test byte [0x180067c70], 4
je 0x18003a092
lea r8, str.Resolving_hostname_to_IP
lea rdx, [0x180056b28]
call fcn.1800417fc
test byte [0x180067c75], 0x20
je 0x18003a0ce
mov qword [rsp + 0x28], r14
lea r9, str.__p__Couldnt_resolve_hostname__s_to_an_IP_address
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
mov edx, 0x80
lea rcx, [rbp - 0x59]
call fcn.180042088
lea r8, [rbp - 0x59]
lea rdx, [0x180056e48]
call fcn.1800417fc
mov ebx, 0x80072af9
jmp 0x180002d54
Function at 0x1800162b4
Capabilities:
Generate random numbers via winapi

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, 0x20
movzx r14d, r8w
movzx ebp, r9b
movzx r8d, byte [0x180067d74]
mov rbx, rdx
mov rdi, rcx
add r8, 0x38
mov rcx, qword [0x180069238]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180016363
mov qword [rax + 0x20], rdi
xorps xmm0, xmm0
lea rdi, [rax + 0x38]
movups xmmword [rax + 0x28], xmm0
mov cl, byte [0x180067d74]
mov byte [rax + 0x29], cl
test rbx, rbx
je 0x180016381
movzx r8d, byte [0x180067d73]
mov rdx, rbx
mov rcx, rdi
call fcn.18002a1d0
movzx eax, byte [0x180067d73]
add rdi, rax
mov word [rdi], r14w
add rdi, 2
test bpl, bpl
jne 0x18003d1b6
mov r8d, 7
mov r9d, 2
sub r8d, ebp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx r8d, byte [0x180067d73]
mov r9d, 2
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
jmp 0x18001632e
mov rdx, qword [rsp + 0x50]
mov r8, rbp
mov rcx, rdi
call fcn.18002a1d0
add rdi, rbp
jmp 0x180016349
Function at 0x180018e1c
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, r9d
mov rdi, rcx
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov ebx, eax
test eax, eax
js 0x180018e7e
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov ebx, eax
test eax, eax
js 0x18003d703
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jg 0x18003d725
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test byte [0x180067c70], 4
je 0x180018e5e
jmp 0x18003d6fa
lea r9, [0x18005f180]
jmp 0x18003d717
test byte [0x180067c70], 4
je 0x180018e5e
lea r9, [0x18005f190]
mov r8d, eax
call fcn.18004176c
nop
jmp 0x180018e5e
movzx eax, ax
or eax, 0x80070000
jmp 0x180018e6e
Function at 0x18001d704
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
lea r10d, [r9 + r9]
mov r11, rdx
xor r9d, r9d
mov rbx, rcx
test r8d, r8d
je 0x18001d756
mov r8d, r8d
movzx edx, byte [r11]
inc r11
mov eax, r10d
mov ecx, edx
shr rcx, 4
inc r10d
shl rax, 4
and edx, 0xf
add rcx, rax
xor r9d, dword [rbx + rcx*4]
mov ecx, r10d
inc r10d
shl rcx, 4
add rcx, rdx
xor r9d, dword [rbx + rcx*4]
sub r8, 1
jne 0x18001d71e
mov rbx, qword [rsp + 8]
mov eax, r9d
ret
Function at 0x18001f184
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx]
mov r14, rdx
mov rdi, rcx
mov rbp, qword [rax + 8]
and dword [rsp + 0x40], 0
cmp qword [rcx + 0xc0], 0
jne 0x18001f1f4
movzx eax, word [rdx + 0x1c]
lea rbx, [rbp + 0x100]
lea rcx, [rax + rax*4]
shl rcx, 5
add rbx, rcx
mov rcx, rbx
call fcn.180015e50
test rax, rax
je 0x18001f2a6
and dword [rax + 8], 0
mov qword [rax], rbx
mov qword [rdi + 0xc0], rax
lea rsi, [rdi + 0xc8]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
lea r15, [rdi + 0x88]
movups xmmword [rsi + 0x10], xmm0
mov eax, dword [rbp + 0x70]
lea rbp, [rdi + 0x20]
add rax, qword [rdi + 0xc0]
mov qword [rdi + 0x28], rax
and dword [rdi + 0x94], 0
and dword [rdi + 0xa4], 0
and dword [rdi + 0xac], 0
and qword [rdi + 0xb8], 0
mov rax, qword [rdi + 0xc0]
add rax, 0xc
mov dword [rdi + 0x90], 0x1c
mov qword [r15], rax
lea rax, [rdi + 0x30]
mov qword [rdi + 0xb0], rax
mov qword [rdi + 0x98], rbp
mov dword [rdi + 0xa0], 1
mov dword [rdi + 0xa8], 0x58
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
test byte [rax], 3
jne 0x18001f2e2
mov rax, qword [rax + 8]
lea r8, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9, rsi
mov rdx, r15
mov rax, qword [rax + 0x20]
call qword [0x18004e538]
jmp 0x18001f310
mov qword [rdi + 0xc0], rax
mov ebx, 0x8007000e
test byte [0x180067c70], 2
je 0x18001f3af
mov rax, qword [rdi]
lea r8, str.Socket_Receive_Buffer
mov rcx, qword [rax + 8]
mov r9d, dword [rcx + 0x70]
add r9d, 0xfff7
call fcn.180041870
jmp 0x18001f3af
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x44]
and dword [rsp + 0x44], 0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov r8d, 1
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x18001f378
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x18001f3ad
mov r8, qword [rdi]
test byte [r8], 3
jne 0x18001f345
cmp eax, 0x2746
jne 0x18001f345
mov rcx, rdi
call fcn.18001f718
jmp 0x18001f279
test byte [0x180067c75], 8
je 0x18001f369
lea rax, str.WSARecvMsg
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, [0x180056a58]
call fcn.180042260
test ebx, ebx
jle 0x18001f3af
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18001f3af
mov edx, dword [rsp + 0x40]
mov r9, rsi
mov rcx, qword [r14 + 8]
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x18001f3ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x180067c75], 8
mov ebx, eax
je 0x18001f369
mov r8, qword [rdi]
lea rax, [0x180059e80]
jmp 0x18001f355
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180028c10
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180020c7c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x40
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180069238], rax
test rax, rax
je 0x180020d26
call fcn.180020d30
test al, al
je 0x18003f1b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x18003f1fc
call fcn.180039900
mov ebx, eax
test eax, eax
js 0x18003f1d9
mov rax, qword [rsp + 0x48]
mov edx, 0x80
test byte [0x180067c75], dl
mov qword [0x180067c50], rax
jne 0x18003f234
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180028c10
add rsp, 0x100
pop rbx
ret
jns 0x180020d04
jmp 0x18003f1d9
mov ebx, 0x8007000e
jmp 0x180020d04
test byte [0x180067c70], 4
je 0x18003f1d4
lea r8, str.CxPlatProcessorInfoInit_failed
lea rdx, [0x180056b28]
call fcn.1800417fc
mov ebx, 0x8007000e
mov rcx, qword [0x180069238]
test rcx, rcx
je 0x180020d04
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
and qword [0x180069238], 0
jmp 0x180020d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x180067c70], 4
mov ebx, eax
je 0x18003f21c
lea r9, str.GlobalMemoryStatusEx_failed
mov r8d, eax
call fcn.18004176c
test ebx, ebx
jle 0x180020d1f
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jmp 0x180020d1f
lea r9, str.__dll__Initialized__AvailMem___llu_bytes_
mov qword [rsp + 0x20], rax
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
call fcn.180042088
lea r8, [rsp + 0x70]
lea rdx, [0x180056c78]
call fcn.1800417fc
nop
jmp 0x180020d04
Function at 0x180023a08
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r13d, r13d
movzx ebx, dl
cmp dword [rcx + 8], 2
mov r15, r9
mov r14, r8
mov dword [r11 - 0x68], r13d
mov rdi, rcx
mov eax, r13d
je 0x180023aa8
mov rcx, qword [rcx]
lea rax, [r11 - 0x68]
mov dword [r11 - 0x70], r13d
mov rdx, r14
mov qword [r11 - 0x78], rax
shl ebx, 4
mov dword [rsp + 0x38], ebx
mov r8d, ebx
mov qword [rsp + 0x30], r9
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jg 0x180040006
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180028c10
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x54], r13d
mov esi, r13d
mov byte [rsp + 0x58], r13b
mov ebp, r13d
mov dword [rcx + 0x20], shutdown
test dl, dl
je 0x180023a8a
jmp 0x18003ff90
mov dword [rsp + 0x48], r13d
lea r9, [rdi + 0x10]
mov ecx, ebp
lea rdx, [rsp + 0x54]
mov r8d, 5
lea rax, [rcx + r14]
mov qword [rdi + 0x18], rax
lea rax, [rcx + r15]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rdi]
mov dword [rsp + 0x38], shutdown
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jle 0x18003fff2
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x180023a8a
inc esi
add ebp, 0x10
cmp esi, ebx
jb 0x18003ff90
jmp 0x180023a8a
movzx eax, ax
or eax, 0x80070000
jmp 0x180023a8a

Function at 0x180023ca0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 1], 0x10
mov rbx, rcx
mov dword [rdx + 0x60], r8d
jne 0x180023cf9
mov edx, 4
cmp r8d, 0x4b
jb 0x180023cf4
call fcn.1800054a4
test al, al
je 0x180023cf9
cmp dword [rbx + 0xa40], 0
je 0x180023ce1
lea rcx, [rbx + 0xa08]
mov edx, 0xb
call fcn.180015bcc
lea rcx, [rbx + 0x750]
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.180008720
call fcn.180007868
add rsp, 0x20
pop rbx
ret
Function at 0x18002557c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r9, qword [rcx + 0x18]
mov r14, rdx
mov r8, qword [rcx + 0x10]
mov rbx, rcx
and qword [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r9, rax
test rax, rax
je 0x180040546
test byte [rbx], 2
xorps xmm0, xmm0
movzx eax, word [rbx + 2]
mov rsi, qword [0x180067c40]
movups xmmword [rsp + 0x30], xmm0
lea rdi, [rax + rax*2]
jne 0x180040552
mov ecx, dword [rsi + rdi*8 + 8]
mov rax, qword [0x180067c38]
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x30], rcx
movzx eax, word [rsi + rdi*8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov word [rsp + 0x38], ax
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
movzx eax, word [rbx]
test al, 1
jne 0x180040568
test al, 4
jne 0x18004057d
cmp qword [rbx + 8], 0
je 0x180025691
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call fcn.180029d60
mov r9, qword [rbx + 8]
lea rdx, [rsp + 0x60]
or qword [rsp + 0x20], 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov r8d, 0x3f
call fcn.18002c888
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [r14]
lea r8, [rsp + 0x48]
mov r9d, setsockopt
lea edx, [r9 + 0x16]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180028c10
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
jmp 0x180025693
mov ecx, dword [rsi + rdi*8 + 4]
mov eax, 1
shl rax, cl
mov qword [rsp + 0x30], rax
jmp 0x180025604
mov edx, dword [rsi + rdi*8 + 4]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
movzx eax, word [rbx]
jmp 0x180025629
mov rcx, qword [r14]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
jmp 0x180025631

Function at 0x180041564
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r8d, ecx
mov r9d, 2
xor ecx, ecx
jmp qword [sym.imp.bcrypt.dll_BCryptGenRandom]