joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180039ef0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x438]
sub rsp, 0x530
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.180084ad0
mov r8d, 0x104
lea rdx, [rbp]
mov rcx, qword [0x1800f8140]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.180084ad0
xor edi, edi
mov ecx, edi
movzx eax, word [rbp + rcx]
mov word [rbp + rcx + 0x210], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180039f71
lea rdx, str.preview.exe
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18003a107
lea rdx, [rbx + 0x228]
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
cmp word [rdx], di
jne 0x180039fcb
mov r8, rdi
jmp 0x180039fda
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], di
jne 0x180039fd0
lea rcx, [rbp - 0x60]
call fcn.1800034d0
nop
lea r8, [rbp - 0x60]
lea rdx, [0x1800d63b4]
lea rcx, [rbp - 0x20]
call fcn.18001c150
nop
lea r8, [0x1800d63b4]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.18001c230
mov rbx, rax
lea rax, [rbp - 0x60]
cmp rax, rbx
je 0x18003a04f
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x18003a032
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180003df0
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.1800090d0
nop
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x18003a069
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.180003df0
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rdi
mov word [rbp - 0x40], di
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x18003a093
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.180003df0
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180084ad0
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
lea rax, [rbp]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x34], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x18003a105
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180003df0
mov al, 1
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18003a5d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor ecx, ecx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [0x18003ab60]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x48], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x180042a9c
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbx, rcx
test rcx, rcx
je 0x180042b6d
mov rdx, rcx
lea r8, [rsp + 0x40]
lea ecx, [r14 + 2]
call fcn.18005b0c0
test eax, eax
jne 0x180042b6d
mov esi, r14d
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], r14b
jne 0x180042add
mov ebp, 0x2e
mov r8, rdi
mov edx, ebp
mov rcx, rbx
call fcn.18005b0a0
test rax, rax
je 0x180042b21
sub rax, rbx
mov edx, ebp
mov r8, rax
mov rcx, rbx
call fcn.18005b0a0
mov rsi, rax
test rax, rax
je 0x180042b21
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
mov esi, 0x1505
lea rax, [rdi + rbx]
mov rbp, rax
sub rbp, rbx
cmp rbx, rax
cmova rbp, r14
test rbp, rbp
je 0x180042b67
mov rdi, rbx
neg rdi
mov cl, byte [rbx]
call fcn.1800509b0
imul rsi, rsi, 0x21
inc rbx
movsx rcx, al
xor rsi, rcx
lea rax, [rdi + rbx]
cmp rax, rbp
jb 0x180042b49
movzx eax, sil
jmp 0x180042b6f
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180044014
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x180044020
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.18005b8d0
Function at 0x18004cd98
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor edi, edi
movsxd rsi, edx
mov rbp, r9
mov r14, r8
mov rbx, rcx
cmp qword [rcx + 0x728], rdi
je 0x18004cdfa
mov dl, 1
call fcn.18003ef2c
mov rax, qword [rbx + 0x680]
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rbx
call qword [rbx + 0x728]
xor edx, edx
mov rcx, rbx
mov edi, eax
call fcn.18003ef2c
jmp 0x18004ce39
mov edx, 2
cmp esi, edx
ja 0x18004ce39
mov r9, qword [rbx + 0x678]
lea rax, [0x1800bab68]
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.18008b3ec
mov r9, qword [rbx + 0x678]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.18008b3ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18004d1b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x18004d1b6
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18004d364
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x110]
mov rbx, rcx
movsxd rcx, edx
mov r12, r9
mov rdi, rcx
or rdx, 0xffffffffffffffff
shl rdi, 5
mov r15, r8
mov rax, qword [rbx + 0x3e8]
mov rbp, qword [rbx + rcx*8 + 0x240]
mov rsi, qword [rdi + rbx + 0x290]
sub rsi, qword [rdi + rbx + 0x298]
test byte [rax + 0x7c], 3
je 0x18004d49e
lea rax, [0x18004d1f4]
cmp qword [rbx + rcx*8 + 0x268], rax
jne 0x18004d49e
cmp qword [rdi + rbx + 0x288], 0
je 0x18004d3f9
test rsi, rsi
je 0x18004d49e
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.18004c9c8
cmp eax, 0xffffffff
je 0x18004d49e
test al, 1
je 0x18004d49e
cmp qword [rdi + rbx + 0x288], 0
jne 0x18004d470
mov rax, qword [rbx]
mov ecx, dword [rax + 0xb60]
add ecx, ecx
movsxd rcx, ecx
mov qword [rdi + rbx + 0x290], rcx
call qword [fcn.1800865b0]
and qword [rdi + rbx + 0x298], 0
and qword [rdi + rbx + 0x2a0], 0
mov rsi, qword [rdi + rbx + 0x290]
mov qword [rdi + rbx + 0x288], rax
test rax, rax
jne 0x18004d470
and qword [rdi + rbx + 0x290], rax
jmp 0x18004d49e
mov rdx, qword [rdi + rbx + 0x288]
xor r9d, r9d
add rdx, qword [rdi + rbx + 0x298]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x18004d49e
add qword [rdi + rbx + 0x298], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
and dword [r14], 0
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x18004d50b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x18004d4d7
xor edi, edi
mov dword [r14], 0x51
jmp 0x18004d50b
mov r8d, 0x80
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.18003b70c
mov rcx, qword [rbx]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.18004ce58
mov rcx, qword [rbx]
mov dword [rcx + 0x10e8], esi
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180081d90
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
test byte [rcx + 0x2d8], 1
je 0x18004da1a
call fcn.180046838
test eax, eax
jne 0x18004da3e
xor al, al
jmp 0x18004da40
mov rcx, qword [rcx + 0x240]
cmp rcx, 0xffffffffffffffff
je 0x18004da16
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x18004da12
mov al, 1
add rsp, 0x28
ret
Function at 0x18004e160
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1800f8420]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x18004e1b5
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.18004f460
test al, al
je 0x18004e1aa
mov dword [0x1800f8420], 2
jmp 0x18004e20c
mov eax, 1
mov dword [0x1800f8420], eax
cmp eax, 2
je 0x18004e20c
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18004e1eb
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x18004e20c
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x18004e400
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0xb0], rax
cmp dword [rcx + 0xbc], 2
mov rdi, rdx
mov rsi, qword [rcx]
mov rbx, rcx
je 0x18004e5c1
test dword [rcx + 0x3c4], 0x8000002
jne 0x18004e5b9
mov r14d, 0x80
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x18004e4a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, r14d
lea rdx, [rbp + 0x30]
mov ecx, eax
mov ebx, eax
call fcn.18003b70c
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.18004ce58
jmp 0x18004e5c1
mov r8, r14
mov dword [rsp + 0x20], r14d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180084ad0
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18004e4ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, [rbp + 0x30]
mov ecx, eax
mov ebx, eax
call fcn.18003b70c
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x18004e492
lea rdi, [rbx + 0x18e]
mov rdx, rdi
lea r8, [rbx + 0x1bc]
lea rcx, [rbp - 0x50]
call fcn.18004ea34
test al, al
jne 0x18004e53a
call fcn.180086590
mov rbx, rax
call fcn.180086590
mov ecx, dword [rbx]
lea rdx, [rbp + 0x30]
mov r8, r14
mov rdi, rax
call fcn.18003b70c
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x18004e495
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
lea r8, [rbx + 0x1f0]
movups xmm1, xmmword [rdi + 0x10]
lea rdx, [rbx + 0x1c0]
movups xmmword [rbx + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x98], xmm1
movsd qword [rbx + 0xa8], xmm0
mov dword [rbx + 0xb0], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0xb4], ax
call fcn.18004ea34
test al, al
jne 0x18004e5b9
call fcn.180086590
mov rbx, rax
call fcn.180086590
mov ecx, dword [rbx]
lea rdx, [rbp + 0x30]
mov r8, r14
mov rdi, rax
call fcn.18003b70c
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x18004e495
mov rcx, rbx
call fcn.18004e07c
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18004ede0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0xe74]
lea r9, [rsp + 0x50]
mov rdi, rdx
shr eax, 0xd
and eax, 1
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18004ee4b
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.18004cf4c
jmp 0x18004eede
mov ecx, dword [rbx + 0xdfc]
mov dword [rsp + 0x58], 1
call fcn.18004f07c
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe00]
call fcn.18004f07c
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, recv
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x18004eede
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.18004cf4c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x18004f05c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.18009a648
cdqe
add rsp, 0x28
ret
Function at 0x18004f2f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
test rax, rax
je 0x18004f444
lea rdx, [0x1800baff0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800d7f54]
mov rcx, rdi
mov rbp, rax
call fcn.180092510
test rax, rax
je 0x18004f369
mov rcx, rdi
test rbp, rbp
je 0x18004f361
mov r8d, 8
jmp 0x18004f38c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18004f390
test rbp, rbp
je 0x18004f398
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18004f398
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x18004f441
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x18004f441
or rsi, 0xffffffffffffffff
mov rdx, rsi
inc rdx
cmp word [rdi + rdx*2], bx
jne 0x18004f3b4
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.1800865b0]
mov r14, rax
test rax, rax
je 0x18004f438
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18004f438
mov rax, rsi
inc rax
cmp word [r14 + rax*2], bx
jne 0x18004f3e7
mov dword [r14 + rax*2], 0x5c
inc rsi
cmp word [r14 + rsi*2], bx
jne 0x18004f3f9
lea rcx, [rsi + rsi]
sub rcx, rdi
add rcx, r14
movzx eax, word [rdi]
mov word [rcx + rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x18004f40d
mov rcx, r14
test rbp, rbp
je 0x18004f42f
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x18004f435
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, r14
call qword [fcn.18008628c]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18004f5b8
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x18004f60a
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18004f5f1
mov eax, 2
jmp 0x18004f648
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x18004f602
shr ax, 8
cmp al, 2
je 0x18004f60a
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18004f5ea
call fcn.180072f08
test eax, eax
jne 0x18004f648
xor edx, edx
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
call fcn.18004f460
test al, al
je 0x18004f63f
lea rcx, [0x1800fbca0]
mov byte [0x1800fbc9c], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x18004f646
mov byte [0x1800fbc9c], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180081d90
add rsp, 0x1d8
ret
Function at 0x18005b200
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, r9
xor ebp, ebp
and qword [r9], rbp
xor r14d, r14d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x18005b35c
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x18005b34a
cmp dword [rsi + 4], 2
jne 0x18005b2f1
cmp qword [rsi + 0x20], 0
je 0x18005b2f1
cmp qword [rsi + 0x10], 0x10
jb 0x18005b2f1
mov ecx, 0x30
call qword [fcn.1800865b0]
mov rdi, rax
test rax, rax
je 0x18005b320
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call qword [fcn.1800865b0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x18005b319
mov rcx, qword [rsi + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x18005b2de
call qword [0x1800f4050]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18005b2ff
test rbp, rbp
cmove rbp, rdi
test r14, r14
je 0x18005b2ee
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x18005b325
jmp 0x18005b245
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [fcn.18008628c]
mov rcx, rdi
call qword [fcn.18008628c]
jmp 0x18005b325
mov ebx, 8
jmp 0x18005b30e
mov ebx, 8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18005b335
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x18005b345
mov rcx, rbp
call fcn.18005b1b8
xor ebp, ebp
jmp 0x18005b357
test rbp, rbp
jne 0x18005b357
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r15], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18005b8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x18005b8f1
call fcn.180086590
mov dword [rax], 0x273f
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x18005b904
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.18004f8f0
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18005b965
test rax, rax
je 0x18005b99a
cmp rax, rdi
jae 0x18005b99a
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rdx, [rsp + 0x40]
mov cl, byte [rdx]
mov byte [r8 + rdx], cl
inc rdx
test cl, cl
jne 0x18005b988
mov rax, rbx
jmp 0x18005b9a7
call fcn.180086590
mov dword [rax], 0x1c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x18005d380
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.180084ad0
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18005d483
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x18005d463
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x18005d463
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18005d463
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x18005d463
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18005d472
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18005d483
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x18005fba4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.18009302c
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x18005fbf7
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x18005fbf7
lea rcx, [rsp + 0x20]
call qword [0x1800f4050]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180081d90
add rsp, 0x140
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x240]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180063f8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.18004ce58
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.180063814
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret