joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001de4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [rsp + 0x20], 0
mov edx, ebx
lea r15d, [rbx + 1]
mov ecx, r15d
lea r8d, [rbx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001f3d
lea r9, [rbp - 0x1c]
mov dword [rbp - 0x1c], ebx
mov r8d, ebx
mov dword [rsp + 0x20], 4
lea edx, [rbx + 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140001f3d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov dword [rbp - 0x20], ebx
lea r8d, [rbx - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x140001f51
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x18], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
cmp byte [rdi + 0x4a], bl
je 0x140001eb7
and dword [rbp - 0x14], ebx
jmp 0x140001ec5
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001f29
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140001f3d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
and dword [rbp - 0x20], 0
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140001f3d
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001f51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005b20
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140001f74
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
mov rdi, rcx
mov dword [rsp + 0x28], r14d
xor r9d, r9d
and dword [rsp + 0x20], 0
mov edx, r14d
lea ebx, [r14 + 5]
lea r12d, [r14 + 0x16]
mov r8d, ebx
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400020d1
lea r9, [rbp - 0x2c]
mov dword [rbp - 0x2c], r14d
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400020d1
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], r14d
lea r8d, [r14 - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x1400020e5
xor eax, eax
xorps xmm0, xmm0
and dword [rbp - 0x10], eax
movups xmmword [rbp - 0x24], xmm0
mov dword [rbp - 0x14], eax
cmp byte [rdi + 0x4a], al
jne 0x140002048
mov byte [rbp - 0x11], r14b
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x28], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r14d, 0x1c
mov word [rbp - 0x26], ax
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400020bd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x1400020d1
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], 0
lea r8d, [r14 - 0x21]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400020d1
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400020e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005b20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14000210c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x48], 0
mov rbx, rcx
je 0x14000212d
xor eax, eax
jmp 0x1400021a3
call fcn.140002318
mov edi, eax
test eax, eax
jne 0x140002199
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rbx
mov esi, dword [rsp + 0x40]
cmp byte [rbx + 0x4b], dil
je 0x140002157
call fcn.140001f74
jmp 0x14000215c
call fcn.140001de4
mov edi, eax
test eax, eax
jne 0x140002199
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x140002183
mov rcx, rbx
call fcn.140001d64
mov edi, eax
test eax, eax
jne 0x140002199
dec esi
test esi, esi
jg 0x14000216f
mov r8d, ebp
lea rdx, [0x14000766c]
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x1400021a1
mov rcx, rbx
call fcn.1400021b8
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140002318
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [r11 + 0x20]
xor ebx, ebx
mov qword [r11 - 0x18], rax
and qword [r11 + 0x20], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002366
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400023a8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.AllowRemoteConnection
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002356
cmp dword [rsp + 0x50], ebx
setne al
mov byte [rdi + 0x4a], al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400023b8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400023c2
mov byte [rdi + 0x4a], 0
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000248c
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rbp + 0xf0], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov byte [rcx + 0x4b], 0
call fcn.1400011ac
mov ebx, eax
test eax, eax
jne 0x140002614
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400024fa
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002614
xor r9d, r9d
mov byte [rdi + 4], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
jne 0x14000251f
call fcn.140004f2c
mov ebx, eax
jmp 0x140002614
mov qword [rdi + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov eax, 0xa5b8
mov r9d, 0x20019
mov word [rdi + 0x30], ax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400025ea
mov rcx, qword [rsp + 0x38]
lea ebx, [rax + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Port
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400025aa
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x1400025aa
mov word [rdi + 0x30], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseIPV6
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400025ea
cmp dword [rsp + 0x44], eax
je 0x1400025ea
mov byte [rdi + 0x4b], 1
call fcn.140004e5c
mov ebx, eax
test eax, eax
jne 0x140002614
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140002513
call sub.webengine4.dll_PerfCounterInitialize
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002624
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140005b20
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400027ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov byte [rcx + 0x10], dil
call fcn.1400023d0
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x1400027e0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140002831
call fcn.140004f2c
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140002bc0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x140003f0c
mov rcx, qword [rcx + 0x30]
jmp 0x1400055fc
push rbx
sub rsp, 0x260
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
je 0x140005683
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x40]
and dword [rsp + 0x3c], 0
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x14000565f
mov eax, 1
jmp 0x140005685
cmp eax, 0xffffffff
je 0x140005683
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
ja 0x140005658
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005b20
add rsp, 0x260
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
lea rax, [fcn.140004410]
mov rsi, rcx
mov qword [rcx + 0x20], rax
xor ebx, ebx
mov ebp, r8d
mov r14, rdx
lea ecx, [rbx + 0x40]
call fcn.140004f90
test rax, rax
je 0x140004600
mov rdx, rsi
mov rcx, rax
call fcn.140003518
mov rdi, rax
test rax, rax
je 0x140004603
mov rax, qword [rax]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140007408]
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x14000a9e0]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x70], ebx
call fcn.140004ab8
lea rcx, [rsi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsi + 0x30]
lea rax, [rdi + 8]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 1]
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140004608
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x3e5
je 0x140004608
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x14000a9e0]
call fcn.140004b0c
mov qword [rsi + 0x20], rbx
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 0x10]
call qword [0x140007408]
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
jmp 0x140004608
mov rdi, rbx
mov ebx, 0x8007000e
mov rcx, rdi
call fcn.1400055e0
lea r8, str.Tracker::Read
mov edx, ebx
mov rcx, rsi
call fcn.140004638
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140004850
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebx, r8d
mov rdi, rcx
lea r12d, [rsi + 1]
cmp byte [rcx + 0x110], sil
jne 0x140004a9e
mov rbp, qword [rsp + 0xb8]
mov byte [rcx + 0x110], r12b
test rbp, rbp
je 0x1400048a1
mov r13d, dword [rbp + 4]
jmp 0x1400048a4
xor r13d, r13d
mov eax, dword [rsp + 0xb0]
add eax, ebx
lea r14d, [rax*2 + 0x3e]
movsxd rcx, r14d
mov dword [rsp + 0x90], r14d
call fcn.140004f58
mov r15, rax
test rax, rax
je 0x140004a8e
and qword [rsp + 0x38], rsi
mov r9d, ebx
and qword [rsp + 0x30], rsi
xor edx, edx
mov r8, qword [rsp + 0x98]
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and qword [rsp + 0x38], rsi
mov edx, r14d
and qword [rsp + 0x30], rsi
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
movsxd rbx, eax
sub edx, ebx
mov dword [rsp + 0x28], edx
xor edx, edx
lea rcx, [r15 + rbx]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [str.Content_Length:]
add ebx, eax
mov r9d, 0xa
movsxd rax, ebx
mov ecx, r13d
add ebx, 0x10
movsxd r14, ebx
add r14, r15
movdqu xmmword [rax + r15], xmm0
mov eax, dword [rsp + 0x90]
mov rdx, r14
sub eax, ebx
movsxd r8, eax
call qword [sym.imp.ucrtbase_clr0400.dll__itoa_s]
test eax, eax
jne 0x140004a8e
jmp 0x140004979
add r14, r12
cmp byte [r14], sil
jne 0x140004976
mov dword [r14], 0xa0d0a0d
lea rbx, [rdi + 0xe8]
sub r14d, r15d
mov qword [rdi + 0xf0], r15
add r14d, 4
mov dword [rbx], r14d
xor r14d, r14d
mov r15d, r14d
test r13d, r13d
jle 0x1400049ca
mov qword [rdi + 0x108], rbp
lock add dword [rbp], r12d
lea rax, [rbp + 8]
mov dword [rdi + 0xf8], r13d
mov qword [rdi + 0x100], rax
lea r12d, [r14 + 2]
lea rax, [0x140004490]
mov ecx, 0x40
mov qword [rdi + 0x20], rax
call fcn.140004f90
test rax, rax
je 0x140004a8e
mov rdx, rdi
mov rcx, rax
call fcn.140003518
mov rsi, rax
test rax, rax
je 0x140004a8e
mov rax, qword [rax]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140007408]
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9e0]
call fcn.140004ab8
lea rcx, [rdi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rdi + 0x30]
lea rax, [rsi + 8]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov rdx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140004a8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140004a8e
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9e0]
call fcn.140004b0c
mov qword [rdi + 0x20], r14
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
call qword [0x140007408]
mov rcx, rsi
call fcn.1400055e0
mov rcx, r15
call fcn.140004fc8
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000505c
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x110
call sub.VCRUNTIME140_CLR0400.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140005189
cmp dword [rsp + 0x40], 2
jne 0x140005189
cmp dword [rsp + 0x34], 6
jb 0x140005189
xor edx, edx
lea rcx, [rbp + 0x50]
mov r8d, 0x20a
call sub.VCRUNTIME140_CLR0400.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005189
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x140005189
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov ebx, 0x105
cmp word [rbp + rcx*2 + 0x4e], 0x5c
je 0x140005130
lea r8, [0x140007b90]
mov edx, ebx
lea rcx, [rbp + 0x50]
call fcn.140004c14
test eax, eax
jne 0x140005189
lea r8, str.kernel32.dll
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140004c14
test eax, eax
jne 0x140005189
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140005189
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005180
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x140007408]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140005b20
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret

Function at 0x1400055fc
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x140003f0c
mov rcx, qword [rcx + 0x30]
jmp 0x1400055fc
push rbx
sub rsp, 0x260
mov rax, qword [0x14000a118]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
je 0x140005683
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x40]
and dword [rsp + 0x3c], 0
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x14000565f
mov eax, 1
jmp 0x140005685
cmp eax, 0xffffffff
je 0x140005683
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
ja 0x140005658
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005b20
add rsp, 0x260
pop rbx
ret
Function at 0x140001000
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x2268
call fcn.140001360
sub rsp, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x28]
mov edx, 0x2000
lea rcx, [rsp + 0x260]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x14000106d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____EnumProcesses_Failed_With_Error_:__d__n
call fcn.140001284
xor eax, eax
jmp 0x1400011a8
mov eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str._i__Number_Of_Processes_Detected_:__d__n
call fcn.140001284
mov dword [rsp + 0x20], 0
jmp 0x1400010a3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1400011a3
movsxd rax, dword [rsp + 0x20]
cmp dword [rsp + rax*4 + 0x260], 0
je 0x14000119e
movsxd rax, dword [rsp + 0x20]
mov r8d, dword [rsp + rax*4 + 0x260]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000119e
lea r9, [rsp + 0x38]
mov r8d, 8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140001130
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rcx, dword [rsp + 0x20]
mov r8d, eax
mov edx, dword [rsp + rcx*4 + 0x260]
lea rcx, str.____EnumProcessModules_Failed___At_Pid:__d___With_Error_:__d__n
call fcn.140001284
jmp 0x140001193
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
jne 0x140001171
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd rcx, dword [rsp + 0x20]
mov r8d, eax
mov edx, dword [rsp + rcx*4 + 0x260]
lea rcx, str.____GetModuleBaseName_Failed___At_Pid:__d___With_Error_:__d__n
call fcn.140001284
jmp 0x140001193
movsxd rax, dword [rsp + 0x20]
mov r9d, dword [rsp + rax*4 + 0x260]
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0x20]
lea rcx, str.__0.3d__Process___s____Of_Pid_:__d__n
call fcn.1400012dc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001099
mov eax, 1
add rsp, 0x2268
ret

Function at 0x140001240
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
call section..text
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x1f4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140002f60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140131a34], 0
lea rdi, [0x140131a30]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140003038
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002f90
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000306e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140003050
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400030af
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140003093
cmp byte [r8], r9b
jne 0x140003093
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140003080
not eax
pop rdi
ret
Function at 0x140003290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x1400032a9
mov qword [r8], 0
lea rdx, [0x1400b7330]
call fcn.1400030c0
mov rbx, rax
test rax, rax
jne 0x1400032c8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003388
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003388
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003388
mov rax, qword [0x1401314c0]
mov rbp, rsi
test rax, rax
je 0x140003325
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003388
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140003375
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401314c0]
test rax, rax
je 0x14000336a
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003391
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003383
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140003393
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret