joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004280
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140004320
jmp 0x14000430f
jae 0x1400043e0
cmp r8, 0x201
jae 0x140004320
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004378
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000434f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001a140
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400043a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004448
mov r8d, r14d
cmp r15, r8
jne 0x140004300
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004475
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000430f
jmp 0x140004320
cmp rsi, r8
jb 0x14000448f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400063d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004431
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001b00
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 + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140004419
jmp 0x140004431
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ab50
jmp 0x1400044a4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001afa0
ud2
Function at 0x14000a650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001e0f8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000a694
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000a6fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000a731
test eax, eax
js 0x14000a70b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000a724
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006110
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002580
mov ecx, 7
int 0x29
ud2
Function at 0x140018550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400185ca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400185c0
cmp r11, r10
ja 0x140018661
cmp r10, rdx
ja 0x140018673
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400185c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400185a0
jmp 0x140018637
ja 0x1400185ca
mov r11, r10
cmp rax, r8
jne 0x140018572
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001863b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018610
mov r8, r10
sub ecx, r9d
jns 0x14001862e
jmp 0x14001863d
cmp r10, rdx
je 0x140018649
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001863d
xor al, 1
cmp r8, rdx
jne 0x1400185f0
jmp 0x14001863d
xor eax, eax
jmp 0x14001863d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14001ff5b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ab50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b020
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001afa0
int3

Function at 0x140019ba8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019bf2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019bf2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019bf2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019bf2
cmp dword [rcx + 0x84], 0xe
jbe 0x140019bf2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019bf4
xor al, al
add rsp, 0x28
ret
Function at 0x140001040
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x48], edx
mov edx, 6
lea r9, [rsp + 0x48]
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140001160
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
xor eax, eax
lea rdx, [rsp + 0x40]
lea r9d, [rax + 2]
lea r8d, [rax + 1]
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400012f1
or eax, 0xffffffff
add rsp, 0x28
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000130e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x140001320
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x1d8
ret

Function at 0x1400013a0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x28
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400013b4
add rsp, 0x28
ret
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
add rsp, 0x28
jmp qword [sym.imp.WS2_32.dll_inet_ntoa]

Function at 0x140001430
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x140001460
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0x20
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000149a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400014d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, 0x22
lea rcx, str.Stop_Service__c_s_c_Successfully_n
mov edx, r9d
mov r8, rsi
call fcn.14001347c
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rsi
ret
Function at 0x140001520
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000155a
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov r8d, 0xf01ff
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000159c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov r9d, 0x22
lea rcx, str.Starting_Service__c_s_c_r_n
mov r8, rsi
mov edx, r9d
call fcn.14001347c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x14000158a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rsi
ret

Function at 0x1400015f0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor edx, edx
mov rdi, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x1400016f1
lea rdx, [rsp + 0x70]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400016e8
xor ecx, ecx
lea rax, [rsp + 0x70]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r8, rdi
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x1a8], rsi
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
je 0x1400016c8
mov r9d, 0x22
lea rcx, str.Install_Service__c_s_c_Successfully_n
mov r8, rdi
mov edx, r9d
call fcn.14001347c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400016e0
mov r9d, 0x22
lea rcx, str.Fail_To_Install_Service__c_s_c_n
mov r8, rdi
mov edx, r9d
call fcn.14001347c
mov rsi, qword [rsp + 0x1a8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400135f0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
ret
Function at 0x140001840
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x178
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, dword [rsp + 0x1d0]
xor ebx, ebx
mov r13, r8
mov r12, rdx
mov rbp, rcx
mov dword [rsp + 0x50], ebx
mov edi, ebx
cmp esi, 1
je 0x1400018ab
cmp esi, 2
je 0x1400018ab
cmp esi, 4
jne 0x1400018ce
lea r8, [rsp + 0x60]
lea rdx, [0x140022670]
mov rcx, r9
mov edi, esi
call fcn.140013828
cmp eax, 1
je 0x1400018ce
xor eax, eax
jmp 0x140001942
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
repne scasb al, byte [rdi]
mov r8d, 0xff
mov rdx, r9
not rcx
mov edi, ecx
lea rcx, [rsp + 0x60]
call fcn.140013620
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, rbp
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001935
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9d, esi
xor r8d, r8d
mov rdx, r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x178
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001970
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r8d
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rbx, rcx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400019d4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400019d4
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140001db0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x240
xor ebx, ebx
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
mov dword [rax + 8], reloc.WS2_32.dll_recv
mov dword [rax + 0xc], ebx
mov ebp, ebx
cmp rcx, 0xffffffffffffffff
je 0x140001e8c
test rdx, rdx
je 0x140001e8c
lea rax, [rax + 8]
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x140001e46
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140001e46
xor r9d, r9d
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bpl
mov eax, dword [rsp + 0x30]
mov rcx, rbx
test eax, eax
je 0x140001e88
cmp qword [rsp + rcx*8 + 0x38], rdi
je 0x140001e65
inc ebx
inc rcx
cmp ebx, eax
jb 0x140001e51
mov eax, ebp
jmp 0x140001e8e
dec eax
cmp ebx, eax
jae 0x140001e88
lea r8, [rsp + rcx*8 + 0x38]
mov rcx, qword [r8 + 8]
inc ebx
add r8, 8
mov qword [r8 - 8], rcx
mov ecx, dword [rsp + 0x30]
dec ecx
cmp ebx, ecx
jb 0x140001e70
mov eax, ebp
jmp 0x140001e8e
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
push rdi
sub rsp, 0x20
mov r9, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r9
add rsp, 0x20
pop rdi
jmp 0x140001db0

Function at 0x140001eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r12
sub rsp, 0x28
mov rbp, rdx
mov r12, rcx
cmp rcx, 0xffffffffffffffff
je 0x140001f6e
test rdx, rdx
je 0x140001f6e
test r8d, r8d
je 0x140001f6e
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea esi, [r8 - 1]
xor ebx, ebx
mov qword [rsp + 0x20], rdi
mov byte [rdx], 0
test esi, esi
jle 0x140001f2e
mov rdi, rdx
nop dword [rax]
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rcx, r12
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x140001f3d
movzx eax, byte [rsp + 0x40]
mov byte [rdi], al
cmp al, 0xa
je 0x140001f2e
inc ebx
inc rdi
cmp ebx, esi
jl 0x140001f00
cmp ebx, esi
jl 0x140001f61
movsxd rax, ebx
mov byte [rax + rbp], 0
mov eax, ebx
jmp 0x140001f45
test eax, eax
jne 0x140001f5c
test ebx, ebx
jne 0x140001f2e
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rbp
ret
or eax, 0xffffffff
jmp 0x140001f45
inc ebx
movsxd rcx, ebx
mov eax, ebx
mov byte [rcx + rbp], 0
jmp 0x140001f45
or eax, 0xffffffff
add rsp, 0x28
pop r12
pop rbp
ret
Function at 0x140001f80
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x240
mov dword [rax + 0x18], edx
lea rax, [rax + 0x18]
xor ebx, ebx
mov dword [rax + 4], ebx
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
jle 0x140001fdd
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
cmove edi, ebx
mov eax, dword [rsp + 0x30]
mov rcx, rbx
test eax, eax
je 0x140002028
cmp qword [rsp + rcx*8 + 0x38], rsi
je 0x140001ffa
inc ebx
inc rcx
cmp ebx, eax
jb 0x140001fe8
jmp 0x140002028
dec eax
cmp ebx, eax
jae 0x140002028
lea rdx, [rsp + rcx*8 + 0x38]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
add rdx, 8
mov qword [rdx - 8], rax
mov eax, dword [rsp + 0x30]
dec eax
cmp ebx, eax
jb 0x140002010
lea r11, [rsp + 0x240]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140002200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rdi, r8
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000226a
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400022d0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x58]
mov rsi, rcx
lea rdx, str.HardwareDescriptionSystemCentralProcessor0
xor ebx, ebx
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000234d
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
lea rdx, str.MHz
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002550
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.140013cc0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
jne 0x14000268d
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x1400025bf
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
cmp eax, 5
jne 0x14000262d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400025e9
mov eax, 2
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
cmp eax, 1
jne 0x14000260b
mov eax, 3
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
cmp eax, 2
jne 0x14000268d
mov eax, 4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
cmp eax, 6
jne 0x14000268d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140002660
cmp byte [rsp + 0xba], 1
setne al
add eax, 5
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
cmp eax, 1
jne 0x14000268d
xor eax, eax
cmp byte [rsp + 0xba], 1
sete al
add eax, 7
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xd8
ret

Function at 0x140002a50
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rcx
mov r12d, edx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x80
xor edi, edi
call fcn.140013cc0
lea rcx, [rsp + 0x20]
mov edx, 0x80
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x140002aa4
xor eax, eax
jmp 0x140002b46
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xe8], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x140002b25
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe0], rbx
mov rbx, rdi
cmp qword [rax], rbx
je 0x140002b11
mov rcx, rdi
nop word [rax + rax]
mov rax, qword [rcx + rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
mov rdi, rax
call fcn.140002970
test eax, eax
je 0x140002b11
mov rax, qword [rsi + 0x18]
inc rbx
lea rcx, [rbx*8]
cmp qword [rcx + rax], 0
jne 0x140002ae0
mov rcx, rdi
call fcn.140001370
mov rbx, qword [rsp + 0xe0]
test eax, eax
je 0x140002b29
xor eax, eax
jmp 0x140002b3e
lea r8d, [r12 - 1]
mov rdx, rdi
mov rcx, rbp
call fcn.140013620
mov eax, 1
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0xb0
pop r12
pop rdi
pop rbp
ret
Function at 0x140002b70
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
lea rcx, str.Kernel32.DLL
mov rsi, rdx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140002c1c
lea rdx, str.GlobalMemoryStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002c0f
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call rax
test eax, eax
je 0x140002c0f
mov rcx, qword [rsp + 0x30]
mov edi, 1
shr rcx, 0x14
mov dword [rbp], ecx
mov rcx, qword [rsp + 0x28]
shr rcx, 0x14
mov dword [rsi], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x140002c64
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
shr r11, 0x14
shr rax, 0x14
mov dword [rbp], r11d
mov dword [rsi], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rdi
ret