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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000a0d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, r14d
lea ebx, [rsi + 6]
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 0x1400020da
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 0x1400020da
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 0x1400020ee
xor eax, eax
mov word [rbp - 0x26], si
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp byte [rdi + 0x4a], sil
jne 0x140002052
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 0x1400020c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x1400020da
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], esi
lea r8d, [r14 - 0x21]
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 0x1400020da
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400020ee
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.140005dd0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x140002118
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 0x140002139
xor eax, eax
jmp 0x1400021af
call fcn.140002318
mov edi, eax
test eax, eax
jne 0x1400021a5
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 0x140002163
call fcn.140001f74
jmp 0x140002168
call fcn.140001de4
mov edi, eax
test eax, eax
jne 0x1400021a5
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x14000218f
mov rcx, rbx
call fcn.140001d64
mov edi, eax
test eax, eax
jne 0x1400021a5
dec esi
test esi, esi
jg 0x14000217b
mov r8d, ebp
lea rdx, [0x14000760c]
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x1400021ad
mov rcx, rbx
call fcn.1400021c4
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 0x1400023d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x20], rax
and qword [rsp + 0x68], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 0xf]
test eax, eax
je 0x140002420
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002468
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.SocketTimeout
lea rax, [rsp + 0x58]
mov dword [rsp + 0x60], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002410
mov eax, dword [rsp + 0x58]
test eax, eax
cmovle eax, esi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x20], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002478
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000247f
mov dword [rdi + 0x20], esi
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
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 [0x14000a0d8]
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.140005174
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.140005094
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.140005dd0
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.140005174
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002bf0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x1400040cc
mov rcx, qword [rcx + 0x30]
jmp 0x140005878
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a0d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400058a4
xor eax, eax
jmp 0x140005906
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x40]
xor edi, edi
mov dword [rsp + 0x40], 1
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400058de
lea eax, [rdi + 1]
jmp 0x140005906
cmp eax, 0xffffffff
je 0x1400058a0
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
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005dd0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, [fcn.1400045e0]
mov rbp, rcx
mov qword [rcx + 0x20], rax
xor edi, edi
mov r14d, r8d
mov r15, rdx
lea ecx, [rdi + 0x40]
call fcn.1400051d8
test rax, rax
je 0x14000471b
mov rdx, rbp
mov rcx, rax
call fcn.1400036c8
mov rsi, rax
jmp 0x14000471e
mov rsi, rdi
test rsi, rsi
jne 0x14000472d
mov edi, 0x8007000e
jmp 0x140004802
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.1400054f0]
mov rcx, rsi
call rbx
mov edx, dword [rbp + 0xd8]
mov rcx, qword [0x14000a9e8]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x80], edi
call fcn.140004cd4
lea rcx, [rbp + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rbp + 0x30]
lea rax, [rsi + 8]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x80]
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140004802
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x3e5
je 0x140004802
mov edx, dword [rbp + 0xd8]
mov rcx, qword [0x14000a9e8]
call fcn.140004d28
mov qword [rbp + 0x20], rdi
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400054f0]
mov rcx, rsi
call rbx
movzx edi, r14w
or edi, 0x80070000
test r14d, r14d
cmovle edi, r14d
mov rcx, rsi
call fcn.140005844
lea r8, str.Tracker::Read
mov edx, edi
mov rcx, rbp
call fcn.140004834
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a68
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 r14d, r14d
mov ebx, r8d
mov rdi, rcx
mov r12d, 1
cmp byte [rcx + 0x110], r14b
jne 0x140004cb9
mov rbp, qword [rsp + 0xb8]
mov byte [rcx + 0x110], r12b
test rbp, rbp
je 0x140004abc
mov r13d, dword [rbp + 4]
jmp 0x140004abf
xor r13d, r13d
mov eax, dword [rsp + 0xb0]
add eax, ebx
lea esi, [rax*2 + 0x3e]
movsxd rcx, esi
mov dword [rsp + 0x90], esi
call fcn.1400051a0
mov r15, rax
test rax, rax
je 0x140004ca9
and qword [rsp + 0x38], r14
mov r9d, ebx
and qword [rsp + 0x30], r14
xor edx, edx
mov r8, qword [rsp + 0x98]
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r9d, dword [rsp + 0xb0]
mov ecx, esi
mov r8, qword [rsp + 0xa8]
xor esi, esi
movsxd rbx, eax
xor edx, edx
sub ecx, ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ecx
xor ecx, ecx
lea rax, [r15 + rbx]
mov qword [rsp + 0x20], rax
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 rsi, ebx
add rsi, r15
movdqu xmmword [rax + r15], xmm0
mov eax, dword [rsp + 0x90]
mov rdx, rsi
sub eax, ebx
movsxd r8, eax
call qword [sym.imp.ucrtbase_clr0400.dll__itoa_s]
test eax, eax
jne 0x140004ca9
jmp 0x140004b92
add rsi, r12
cmp byte [rsi], r14b
jne 0x140004b8f
mov dword [rsi], 0xa0d0a0d
sub esi, r15d
add esi, 4
mov qword [rdi + 0xf0], r15
xor r15d, r15d
mov dword [rdi + 0xe8], esi
test r13d, r13d
jle 0x140004bda
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, [r15 + 2]
lea rax, [0x140004660]
mov ecx, 0x40
mov qword [rdi + 0x20], rax
call fcn.1400051d8
test rax, rax
je 0x140004c02
mov rdx, rdi
mov rcx, rax
call fcn.1400036c8
mov r14, rax
test r14, r14
je 0x140004ca9
mov rax, qword [r14]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.1400054f0]
mov rcx, r14
call rbx
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9e8]
call fcn.140004cd4
lea rcx, [rdi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rdi + 0x30]
lea rax, [r14 + 8]
xor esi, esi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea rdx, [rdi + 0xe8]
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140004ca9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140004ca9
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9e8]
call fcn.140004d28
mov qword [rdi + 0x20], rsi
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400054f0]
mov rcx, r14
call rbx
mov rcx, r14
call fcn.140005844
mov rcx, r15
call fcn.140005210
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 0x1400052a4
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14000a0d8]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov ebx, 0x114
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140_CLR0400.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400053da
cmp dword [rsp + 0x30], 2
jne 0x1400053da
cmp dword [rsp + 0x24], 6
jb 0x1400053da
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x20a
call sub.VCRUNTIME140_CLR0400.dll_memset
lea edx, [rbx - 0x10]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400053da
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x1400053da
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov ebx, 0x105
cmp word [rbp + rcx*2 + 0x3e], 0x5c
je 0x140005379
lea r8, [0x140007b30]
mov edx, ebx
lea rcx, [rbp + 0x40]
call fcn.140004e30
test eax, eax
jne 0x1400053da
lea r8, str.kernel32.dll
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140004e30
test eax, eax
jne 0x1400053da
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400053da
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400053d1
mov rcx, rax
call qword [fcn.1400054f0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140005dd0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

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

Disassembly:
jmp 0x1400040cc
mov rcx, qword [rcx + 0x30]
jmp 0x140005878
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a0d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400058a4
xor eax, eax
jmp 0x140005906
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x40]
xor edi, edi
mov dword [rsp + 0x40], 1
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400058de
lea eax, [rdi + 1]
jmp 0x140005906
cmp eax, 0xffffffff
je 0x1400058a0
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
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005dd0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14001b032
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
jmp 0x140048110
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140067040]
xor rax, rbp
mov qword [rbp + 0x1d8], rax
lea rcx, [0x140070677]
call fcn.14001c0a4
nop
lea rcx, str.SystemRoot
call qword [sym.imp.ucrtbased.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14001b794
nop
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x48]
call fcn.14001c16c
nop
lea r8, [0x140067708]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001bb09
nop
lea r8, [0x140067758]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0xc8]
call fcn.14001bb09
nop
lea rcx, [rbp + 0x88]
call fcn.14001b587
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400481e6
lea rcx, [rbp + 0xc8]
call fcn.14001b587
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400481e6
mov dword [rbp + 0x1d4], 0
jmp 0x1400481f0
mov dword [rbp + 0x1d4], 1
movzx eax, byte [rbp + 0x1d4]
mov byte [rbp + 0x1c4], al
lea rcx, [rbp + 0xc8]
call fcn.14001be4c
nop
lea rcx, [rbp + 0x88]
call fcn.14001be4c
nop
lea rcx, [rbp + 0x48]
call fcn.14001be4c
nop
lea rcx, [rbp + 8]
call fcn.14001b30c
movzx eax, byte [rbp + 0x1c4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005df30]
call fcn.14001bdb1
mov eax, edi
mov rcx, qword [rbp + 0x1d8]
xor rcx, rbp
call fcn.14001b811
lea rsp, [rbp + 0x1e8]
pop rdi
pop rbp
ret

Function at 0x14001b366
Capabilities:
Create thread

Disassembly:
jmp 0x140025e40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140067040]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14007011a]
call fcn.14001c0a4
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.14001b4ec
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14001b87a
nop
lea rax, [0x14001bb04]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.14001bb45
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x140025f1c
lea rcx, [rbp + 8]
call fcn.14001b72b
nop
jmp 0x140025f35
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001b3c0
nop
lea rcx, [rbp + 8]
call fcn.14001b6d6
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14005bde0]
call fcn.14001bdb1
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14001b811
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14001b36b
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140048a60
push rbp
push rdi
sub rsp, 0x6c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x116
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140067040]
xor rax, rbp
mov qword [rbp + 0x688], rax
lea rcx, [0x140070677]
call fcn.14001c0a4
nop
lea rcx, [0x140067730]
call fcn.14001b587
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140048adc
xor al, al
jmp 0x140048ce6
mov dword [rbp + 0x264], 0x200
lea rcx, [0x1400676b8]
call fcn.14001b587
mov qword [rbp + 0x678], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x680], rax
lea rax, [rbp + 0x264]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x678]
mov rcx, qword [rbp + 0x680]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140048b54
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x140048ce6
lea rcx, [0x140067690]
call fcn.14001b587
mov qword [rbp + 0x678], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x680], rax
lea rax, [rbp + 0x264]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x678]
mov rcx, qword [rbp + 0x680]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140048bc2
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x140048ce6
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x2a8]
call fcn.14001b578
nop
lea rax, [rbp + 0x554]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x574]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x554]
movzx r8d, byte [rbp + 0x574]
movzx edx, byte [rbp + 0x594]
lea rcx, [rbp + 0x530]
call fcn.1400430e0
mov rcx, rax
call fcn.14001b1d1
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x2a8]
call fcn.14001bb72
cmp rax, 0xffffffffffffffff
jne 0x140048cb0
lea rax, [rbp + 0x5e4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x604]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x5e4]
movzx r8d, byte [rbp + 0x604]
movzx edx, byte [rbp + 0x624]
lea rcx, [rbp + 0x5c0]
call fcn.140043240
mov rcx, rax
call fcn.14001b9e2
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x2a8]
call fcn.14001bb72
cmp rax, 0xffffffffffffffff
je 0x140048ccc
mov byte [rbp + 0x644], 1
lea rcx, [rbp + 0x2a8]
call fcn.14001be4c
movzx eax, byte [rbp + 0x644]
jmp 0x140048ce6
mov byte [rbp + 0x664], 0
lea rcx, [rbp + 0x2a8]
call fcn.14001be4c
movzx eax, byte [rbp + 0x664]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14005dda0]
call fcn.14001bdb1
mov rax, rdi
mov rcx, qword [rbp + 0x688]
xor rcx, rbp
call fcn.14001b811
lea rsp, [rbp + 0x698]
pop rdi
pop rbp
ret