joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800163d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800163fe
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180017230
cmp byte [0x18018aaa8], 0
jne 0x180016449
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180016439
lea rdx, [0x1800abc80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18018aaa0], rax
mov byte [0x18018aaa8], 1
jmp 0x180016450
mov rax, qword [0x18018aaa0]
mov byte [0x18018aaa8], 1
jmp 0x180016450
mov rax, qword [0x18018aaa0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18001646f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x180016fa0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x40], rbp
xor eax, eax
mov qword [rsp + 0x50], rbp
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov dword [rsp + 0x48], ebp
lea rcx, [rsp + 0x40]
call fcn.180016af0
mov ebx, eax
test eax, eax
jne 0x1800170b7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180017091
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180016fa0
mov ebx, eax
test eax, eax
jne 0x1800170b7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180017040
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800170a6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.1800163d0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800170c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180017230
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800172a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x1800172bf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1800172bf
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x1800172bf
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
Function at 0x1800174d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.18007f510
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180017570
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180017570
call fcn.1800156e0
mov ebx, eax
jmp 0x180017698
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180017591
call fcn.1800156e0
jmp 0x180017687
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800175b4
call fcn.1800156e0
jmp 0x180017687
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800175d6
mov ebx, 0x8007000e
jmp 0x180017689
mov ecx, eax
test eax, eax
je 0x18001760e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180017604
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18001760e
lea rcx, [rsp + 0x70]
call fcn.180015470
jmp 0x180017618
mov ecx, 0x80070216
call fcn.180007cd0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18001762b
cmp qword [rsp + 0x70], 0
jne 0x18001763a
mov ebx, 0x8007000e
jmp 0x180017689
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180017664
call fcn.1800156e0
jmp 0x180017687
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1800172e0
mov ebx, eax
test rdi, rdi
je 0x180017698
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800176af
lea rcx, [rsp + 0x70]
call fcn.180016700
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180017d90
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x48
ret

Function at 0x180017de0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x180017df8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x180017e04
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x180017e00
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180019380
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
or rbx, 0xffffffffffffffff
cmp byte [rcx], r15b
jne 0x1800193dc
mov r8d, r15d
jmp 0x1800193e9
mov r8, rbx
nop
inc r8
cmp byte [rcx + r8], r15b
jne 0x1800193e0
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.1800023a0
nop
mov r8b, 0x5c
mov edx, 1
lea rcx, [rbp + 7]
call fcn.180006bb0
cmp byte [rsi], 0
jne 0x180019411
mov rbx, r15
jmp 0x18001941a
inc rbx
cmp byte [rsi + rbx], 0
jne 0x180019411
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 7]
call fcn.180002600
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp - 0x65]
call fcn.18007f510
mov dword [rbp - 0x69], reloc.WS2_32.dll_WSASetLastError
mov dword [rbp - 0x65], 0x440
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], r15d
mov qword [rbp - 0x31], r15
lea rcx, [rbp - 0x69]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, eax
test eax, eax
je 0x18001948e
or edx, 0xffffffff
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x1f]
cmp rcx, 0x10
jb 0x1800194e7
inc rcx
mov rax, qword [rbp + 7]
cmp rcx, 0x1000
jb 0x1800194df
test al, 0x1f
je 0x1800194b2
call fcn.18008185c
int3
mov rcx, qword [rax - 8]
cmp rcx, rax
jb 0x1800194c1
call fcn.18008185c
int3
sub rax, rcx
cmp rax, 8
jae 0x1800194d0
call fcn.18008185c
int3
cmp rax, 0x27
jbe 0x1800194dc
call fcn.18008185c
int3
mov rax, rcx
mov rcx, rax
call fcn.18005e5ac
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18005ef00
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019920
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov ebx, ecx
test rdx, rdx
je 0x18001995c
mov r8d, 5
lea rdx, [0x1800ac598]
mov rcx, rax
call fcn.180081e28
movzx edx, byte [0x18018cc48]
test eax, eax
mov ecx, 1
cmove edx, ecx
mov byte [0x18018cc48], dl
test ebx, ebx
je 0x180019978
call sym.XYShellExt64.dll_DllRegisterServer
mov ebx, eax
test eax, eax
jns 0x180019982
call sym.XYShellExt64.dll_DllUnregisterServer
mov eax, ebx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.XYShellExt64.dll_DllUnregisterServer
add rsp, 0x20
pop rbx
ret
Function at 0x180019990
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x64]
call fcn.18007f510
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x64]
call fcn.18007f510
mov r8d, 0x32
lea rdx, [rbp]
lea rcx, [0x1800ac5d8]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
xor edi, edi
mov qword [rsp + 0x58], rax
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], edi
lea r9d, [rax + 2]
mov qword [rsp + 0x60], rdi
call fcn.180016af0
test eax, eax
jne 0x180019ac8
mov eax, dword [rsp + 0x58]
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x40], rcx
lea rdx, str.________.XYShellExt
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x38], rcx
or eax, 0x2001f
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180019ac8
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x180019a83
mov rbx, qword [rbp - 0x80]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x180019ac8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x70], edi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rdi
lea r9d, [rax + 2]
call fcn.180016af0
mov rbx, qword [rsp + 0x68]
test eax, eax
jne 0x180019b2c
lea rax, str.xiaoyu_Shell_externsion
mov dword [rsp + 0x28], 0x30
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
lea rcx, [0x18018aa50]
call fcn.180016480
mov edi, eax
test rbx, rbx
je 0x180019b4a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], 0
je 0x180019b5d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.18005ef00
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180019b80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
xor edi, edi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], edi
lea r9d, [rax + 2]
mov qword [rsp + 0x30], rdi
call fcn.180016af0
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x180019c73
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180019c00
lea r8, str.________.XYShellExt
mov rdx, rbx
call fcn.180017230
jmp 0x180019c73
cmp byte [0x18018aaa8], dil
jne 0x180019c4b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180019c3b
lea rdx, [0x1800abc80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18018aaa0], rax
mov byte [0x18018aaa8], 1
jmp 0x180019c52
mov rax, qword [0x18018aaa0]
mov byte [0x18018aaa8], 1
jmp 0x180019c52
mov rax, qword [0x18018aaa0]
lea rdx, str.________.XYShellExt
mov rcx, rbx
test rax, rax
je 0x180019c6d
mov r8d, dword [rsp + 0x28]
xor r9d, r9d
call rax
jmp 0x180019c73
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
lea r9d, [rax + 2]
call fcn.180016af0
test eax, eax
jne 0x180019cfd
xor edx, edx
lea r8d, [rax + 0x64]
lea rcx, [rbp - 0x50]
call fcn.18007f510
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x64]
call fcn.18007f510
mov r8d, 0x32
lea rdx, [rsp + 0x40]
lea rcx, [0x1800ac5d8]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
lea rcx, [0x18018aa50]
call fcn.1800165d0
cmp qword [rsp + 0x20], 0
mov edi, eax
je 0x180019d20
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x180019d2e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18005ef00
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1800279b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180027a0e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180027a08
shr ax, 8
cmp al, 2
jne 0x180027a08
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x1d8
ret
Function at 0x180028f80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 3
jne 0x180028fca
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x180028fba
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x180029012
cmp qword [rbx + 0x10], 0
jne 0x180028ffe
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1800aefdc]
call fcn.18008d8d8
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x180028ffe
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.18008eb1c
mov rdi, rax
test rax, rax
jne 0x180029035
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18002902c
call fcn.180086648
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18002e640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x18002e64c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.180044460
Function at 0x180037030
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 0x18003706b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x210]
call fcn.1800375b0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x180037218
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800371ed
mov dword [rsi], 0x51
xor eax, eax
jmp 0x18003721b
mov edx, ebx
mov rcx, r14
call fcn.180043a90
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180036d50
mov rcx, qword [r14]
mov dword [rcx + 0x49dc], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x380]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x180037693
lea rax, [0x1800370c0]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x180037693
cmp qword [rbx], 0
je 0x180037614
test rdi, rdi
je 0x180037693
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1800366e0
cmp eax, 0xffffffff
je 0x180037693
test al, 1
je 0x180037693
cmp qword [rbx], 0
jne 0x180037672
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [fcn.1800819ac]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x180037672
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180037693
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800376b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1800376f3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x180037736
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800b02b0]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1800868f4
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.1800868f4
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x180037844
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x18003783d
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x180038120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18003818b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.180043a90
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.180036e20
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180036e20
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret