joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f740
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x80000
lea rax, [0x18006c903]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x100000
mov dword [rsp + 0x40], ebp
je 0x18000f7b4
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x18000f83f
mov eax, dword [rdi + 0x58]
bt eax, 0x12
jae 0x18000f8a7
bts eax, 0x11
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18000f832
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x18000f91d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x18000f91d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000f8a7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x18000f85e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000f86c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x18000f89a
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x18000f91d
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x18000f91d
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x100000
je 0x18000f91d
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x18000f91d
mov rdx, qword [rbx + 0x70]
lea r8, [0x18000f3c0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x18000f91d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x18000f8ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000f90d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.18000ee00
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 0x180010300
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x18001037f
mov eax, dword [rdx + 0x58]
bt eax, 0xb
jae 0x1800103fa
btr eax, 0xb
sub dword [rdx + 0x7c], 1
mov dword [rdx + 0x58], eax
jne 0x180010355
test al, 1
jne 0x180010355
test al, 0x40
je 0x180010355
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x180010355
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov r9, qword [rdx + 0x100]
test r9, r9
je 0x1800103fa
mov ecx, dword [r8 + 0x40]
call fcn.180015a80
mov ecx, eax
call fcn.180011510
mov edx, eax
mov rcx, rbx
call r9
jmp 0x1800103fa
cmp dword [r8 + 0x40], 0
jl 0x1800103d4
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800103d4
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x1800103fa
xor edx, edx
mov rcx, rbx
call rax
jmp 0x1800103fa
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
test dword [rbx + 0x58], 0x800
je 0x1800103fa
mov rdx, rdi
mov rcx, rbx
call fcn.18000f450
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x180010420
cmp dword [rbx + 0x78], 0
jne 0x180010420
test al, 8
jne 0x180010420
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180010430
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
sub dword [rdx + 0x7c], 1
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
jne 0x18001046f
mov eax, dword [rdx + 0x58]
test al, 1
jne 0x18001046f
test al, 0x40
je 0x18001046f
and eax, 0xffffffbf
mov dword [rdx + 0x58], eax
test al, 0x20
je 0x18001046f
mov rax, qword [rdx + 8]
dec dword [rax + 8]
mov rcx, qword [r8 + 0x18]
xor edi, edi
mov rax, qword [r8 + 0x10]
mov qword [rcx], rax
mov rcx, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
mov qword [rcx + 8], rax
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x180010501
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov edx, 0xffff
mov dword [rsp + 0x20], edi
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800104f9
or dword [rbx + 0x58], 0x19000
mov dword [rbx + 0x100], edi
mov dword [rbx + 0x88], select
mov qword [rbx + 0xc0], rdi
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], 0xffffffffffffffff
mov qword [rbx + 0x80], rbx
mov qword [rbx + 0x108], rdi
inc dword [rsi + 0xa8]
jmp 0x180010508
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180010506
call fcn.180015a80
mov edi, eax
mov ecx, edi
call fcn.180011510
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
dec dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
test al, 1
je 0x18001053d
cmp dword [rbx + 0x78], 0
jne 0x18001053d
test al, 8
jne 0x18001053d
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180011170
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov ecx, 0x18
mov rsi, rdx
call qword [fcn.18001fa14]
mov r14, rax
test rax, rax
jne 0x1800111ab
mov eax, 0xfffff027
jmp 0x180011234
mov qword [rax + 8], rdi
lea r8, [0x180011080]
xor edi, edi
mov qword [rax], rsi
mov qword [rsp + 0x28], rdi
mov r9, r14
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.180021178
test rax, rax
jne 0x180011222
call fcn.18002144c
mov esi, dword [rax]
call fcn.18002144c
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.18001fa0c]
call fcn.18002144c
mov dword [rax], ebx
test esi, esi
je 0x180011232
cmp esi, 0xb
je 0x18001121b
cmp esi, 0xd
je 0x180011214
cmp esi, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x180011234
mov eax, 0xfffff004
jmp 0x180011234
mov eax, 0xfffff008
jmp 0x180011234
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x180011c30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x180069028]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r9d, dword [rdx + 0x58]
mov rdi, r8
btr r9d, 0x11
mov rbx, rdx
mov dword [rdx + 0x58], r9d
mov rsi, rcx
mov r10d, dword [r8 + 0x40]
test r10d, r10d
jns 0x180011ce5
mov ecx, r10d
call fcn.180015a80
mov r11d, eax
cmp eax, 0x2738
je 0x180011ce5
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
je 0x180011cda
bt r9d, 8
jae 0x180011e2c
mov rcx, rbx
call fcn.180006240
xor edi, edi
test dword [rbx + 0x58], 0x80000
je 0x180011cbc
mov qword [rbp - 0x61], rdi
lea rax, [rbp - 0x69]
mov dword [rbp - 0x69], edi
jmp 0x180011cc3
lea rax, [rbx + 0xf0]
movups xmm0, xmmword [rax]
mov ecx, r11d
movaps xmmword [rbp - 0x69], xmm0
call fcn.180011510
movsxd rdx, eax
jmp 0x180011e18
bt r9d, 0x13
jae 0x180011e2c
bt r9d, 0x13
jb 0x180011d10
mov rdx, qword [rdi + 0x48]
lea r9, [rbx + 0x100]
sar r10d, 0x1f
lea r8, [rbx + 0xf0]
and r10d, 2
mov dword [rsp + 0x20], r10d
jmp 0x180011e23
bt r9d, 8
jae 0x180011e2c
xor edi, edi
lea r8, [rbp - 0x69]
mov qword [rbp - 0x61], rdi
mov edx, 0x10000
mov dword [rbp - 0x69], edi
mov rcx, rbx
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
call qword [rbx + 0x190]
cmp qword [rbp - 0x61], rdi
je 0x180011e11
cmp dword [rbp - 0x69], edi
je 0x180011e11
xor edx, edx
lea rcx, [rbp - 0x49]
mov r8d, 0x80
call fcn.18001aa10
mov rcx, qword [rbx + 0x70]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rdi
lea r9, [rbp - 0x59]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x55], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], edi
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x180011db6
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
jmp 0x180011e1b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2738
jne 0x180011dd6
mov edx, dword [rbp - 0x59]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x20], 2
jmp 0x180011e1f
cmp edx, 0x2733
jne 0x180011de2
xor edx, edx
jmp 0x180011e18
add eax, 0xffffd8bc
mov rcx, rbx
test eax, 0xfffffffd
je 0x180011e02
call fcn.180006240
mov ecx, edx
call fcn.180011510
movsxd rdx, eax
jmp 0x180011e18
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
lea r8, [rbp - 0x69]
jmp 0x180011e26
mov rdx, 0xfffffffffffff024
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rbp - 0x69]
mov rcx, rbx
call qword [rbx + 0x188]
mov eax, dword [rbx + 0x58]
and eax, 0x20100
cmp eax, 0x100
jne 0x180011e46
mov rdx, rbx
mov rcx, rsi
call fcn.180011ae0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x180011e6f
test ecx, ecx
jne 0x180011e6f
test al, 8
jne 0x180011e6f
or eax, 8
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180016f60
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012b80
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
xor ebp, ebp
mov qword [rax - 0x10], rbp
mov rbx, r8
mov dword [rax - 0x18], ebp
mov rdi, rcx
mov dword [rax - 0x20], 0x10000
mov r9d, 0xff
mov rcx, qword [rsi + 0x120]
xor r8d, r8d
mov edx, 0x40000003
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x180012c32
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180012beb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180012bf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x180012c25
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x180012d19
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
jmp 0x180012d19
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.180012380
test eax, eax
je 0x180012c6c
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180012beb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180012bf9
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x180012d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180012d14
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x180012cb5
mov qword [rbx + 0x40], rbp
jmp 0x180012ced
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180012cd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180012ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x180012d0c
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x180012d10
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rsi + 0x78]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180012fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rbx, [rdx + 0x80]
mov rdi, rdx
mov rbp, rcx
je 0x18001304c
mov r8d, select
lea rcx, [0x180012d40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x180013179
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180013033
call qword [sym.imp.KERNEL32.dll_GetLastError]
cdqe
mov qword [rbx + 0x40], rax
jmp 0x180013148
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
jmp 0x180013148
xor eax, eax
lea rsi, [rbx + 0x40]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
test dword [rdx + 0x58], 0x100000
je 0x180013076
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x118]
lea rdx, [0x18006c929]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800130bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800130bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180013135
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180013143
test dword [rdi + 0x58], 0x100000
je 0x180013179
cmp qword [rbx + 0x70], 0
jne 0x1800130f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x1800131b7
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x180013179
mov rdx, qword [rbx + 0x58]
lea r8, [0x18000f3c0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x180013179
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x180013135
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180013143
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi], rax
mov qword [rbx + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x18001316f
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x180013198
mov qword [rbx + 0x68], rbx
mov qword [rbp + 0x48], rbx
jmp 0x180013198
mov rcx, qword [rdi + 0x128]
test rcx, rcx
je 0x180013198
xor r9d, r9d
lea rdx, [0x1800141b0]
lea r8d, [r9 + 0x32]
call fcn.180010e40
or dword [rdi + 0x58], 0x20000
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.180011450
int3
Function at 0x1800157e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x180069028]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800159dc
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x18006ce60], rax
mov ebx, 2
xor ecx, ecx
mov word [0x18006ce60], bx
mov qword [0x18006ce68], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x18006ce64]
mov word [0x18006ce62], ax
lea rcx, str.0.0.0.0
call fcn.180011fe0
test eax, eax
jne 0x1800159eb
call fcn.180006100
test eax, eax
jne 0x1800159f1
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800158f0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1800159f7
mov eax, dword [0x18006cea0]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x18006cea0], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x180015917
jmp 0x180015a0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x180015a60
cmp eax, 0x273a
jbe 0x180015a60
cmp eax, 0x2740
jae 0x180015a60
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001598d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x180015a21
mov eax, dword [0x18006ce9c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x18006ce9c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1800159b4
jmp 0x180015a36
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x180015a4b
cmp eax, 0x273a
jbe 0x180015a4b
cmp eax, 0x2740
jae 0x180015a4b
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180016f60
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.180011450
int3
call fcn.180021334
int3
call fcn.180021334
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.180011450
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.180011450
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.180011450
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.180011450
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.180011450
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.180011450
int3
Function at 0x18001b240
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x180051d68]
xor ecx, ecx
lea r8, [0x180051d60]
lea rdx, str.FlsAlloc
call fcn.18001b068
mov rbx, rax
test rax, rax
je 0x18001b280
mov rcx, rax
call fcn.18001768c
mov rcx, rdi
call rbx
jmp 0x18001b286
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001b2e8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180051d78]
mov ecx, 2
lea r8, [0x180051d70]
lea rdx, str.FlsGetValue
call fcn.18001b068
mov rdi, rax
test rax, rax
je 0x18001b329
mov rcx, rax
call fcn.18001768c
mov ecx, ebx
call rdi
jmp 0x18001b331
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001b33c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180051d80]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180051d78]
call fcn.18001b068
mov rsi, rax
test rax, rax
je 0x18001b388
mov rcx, rax
call fcn.18001768c
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x18001b393
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180021674
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180021694
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800213dc
or eax, 0xffffffff
jmp 0x180021696
xor eax, eax
add rsp, 0x28
ret
Function at 0x180034aa0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x180034b10
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x180034b10
movsxd rcx, eax
mov edx, 0x4000
call fcn.18001c1c4
lea rdx, [0x18005b51c]
mov ecx, eax
call fcn.18001bcb0
mov ecx, 1
mov qword [rsp + 0x30], rax
call fcn.18001b898
mov r9, rax
lea r8, [0x18005b530]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x30]
call fcn.18001c3f8
lea rcx, str.Command_Prompt
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor al, al
add rsp, 0x28
ret

Function at 0x180034b20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
xor ebx, ebx
call fcn.180034c60
mov dword [rsp + 0x38], ebx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov r8d, 0x104
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x180034bd1
lea rax, [rsp + 0x40]
nop word [rax + rax]
movzx ecx, word [rax]
add rax, 2
test cx, cx
jne 0x180034b70
lea rcx, [rsp + 0x40]
sub rax, rcx
sar rax, 1
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8, rbx
lea rax, [rsp + 0x40]
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x180034bc0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x180034c60
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea rdx, [0x18005b50c]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHLWAPI.dll_StrStrW]
lea rcx, [rsp + 0x40]
sub eax, ecx
lea rdx, [rsp + 0x40]
mov r8d, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rcx, [rsp + 0x20]
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180034cc0
lea rax, [rsp + 0x20]
sub rcx, rax
sar rcx, 1
lea ebx, [rcx + rcx]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
lea rdx, [rsp + 0x20]
sub r8, rdx
lea rcx, [rsp + 0x20]
movzx edx, word [rcx]
mov word [r8 + rcx], dx
lea rcx, [rcx + 2]
test dx, dx
jne 0x180034d01
add rsp, 0x250
pop rbx
ret