joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c2da0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x310
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
lea r8, [rsp + 0x50]
mov rbp, rcx
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400c2df8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400c301b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x300], r14
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov edx, 0x48000022
mov qword [rsp + 0x30], rax
mov rcx, rdi
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea r8, [rbx + 0x20]
mov dword [rbx + 0x58], 8
lea rdx, [rbp + 0x10]
mov qword [rbx + 8], rbp
mov qword [r8], rdx
lea r9, [rsp + 0x70]
test eax, eax
mov dword [rbx + 0x10], 8
mov rax, qword [rdx + 8]
cmove rdi, qword [rsp + 0x60]
mov qword [r8 + 8], rax
mov rcx, rdi
mov qword [rax], r8
lea rax, [rsp + 0x54]
mov qword [rdx + 8], r8
mov edx, 0xffff
mov r8d, 0x2005
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x30], 0xffffffff
mov qword [rbx + 0x68], rdi
mov byte [rbx + 0x19c], r14b
mov dword [rsp + 0x54], 0x274
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1400c2ec4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400b5700
jmp 0x1400c3013
mov r9, qword [rsp + 0x8c]
lea r11, [0x140115c40]
mov r10, qword [rsp + 0x84]
mov r8d, 0xffffffff
mov edx, r14d
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
mov rax, r10
shl rcx, 4
sub rax, qword [rcx + r11]
jne 0x1400c2f08
mov rax, r9
sub rax, qword [rcx + r11 + 8]
test rax, rax
cmove r8d, edx
inc edx
cmp edx, 4
jb 0x1400c2ef0
test r8d, r8d
js 0x1400c2fd2
mov qword [rsp + 0x308], rsi
movsxd rax, r8d
lea rsi, [rax*8]
add rsi, rbp
mov rdi, qword [rsi + 0x90]
test rdi, rdi
jne 0x1400c2fbe
mov r8d, dword [rsp + 0xcc]
lea r9, [rsp + 0x70]
mov edx, dword [rsp + 0xc8]
mov ecx, dword [rsp + 0xbc]
mov rbp, qword [rbp + 0x38]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c2fb0
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400c2fa7
xor r9d, r9d
mov r8, rdi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x1400c2fb7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, 0xffffffffffffffff
mov qword [rsi + 0x90], rdi
mov rsi, qword [rsp + 0x308]
cmp rdi, 0xffffffffffffffff
je 0x1400c2fd2
mov qword [rbx + 0x70], rdi
jmp 0x1400c2fd9
or dword [rbx + 0x58], 0x1000000
mov word [rbx + 0x198], r14w
xor eax, eax
mov dword [rbx + 0xc0], reloc.WS2_32.dll_listen
mov qword [rbx + 0xf8], r14
mov qword [rbx + 0xb8], rbx
mov dword [rbx + 0x130], reloc.WS2_32.dll_listen
mov qword [rbx + 0x168], r14
mov qword [rbx + 0x128], rbx
mov r14, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x310
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400c3f00
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
xor ebx, ebx
mov qword [r9], rbx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, 0x273f
jg 0x1400c3f98
je 0x1400c3f85
mov ecx, eax
test eax, eax
je 0x1400c4009
sub ecx, 8
je 0x1400c3f72
sub ecx, 0x271e
je 0x1400c3f5f
cmp ecx, 0x16
jne 0x1400c3fb4
mov ebx, 0xfffff43d
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff446
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff442
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff443
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, eax
sub ecx, 0x277d
je 0x1400c4004
sub ecx, 0x37c
je 0x1400c3ff1
sub ecx, 1
je 0x1400c3fde
cmp ecx, 1
je 0x1400c3fcb
mov ecx, eax
call fcn.1400b5700
mov ebx, eax
mov dword [rdi + 0x58], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff444
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff447
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff440
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff43e
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c5320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [rsp + 0x80]
xor ebp, ebp
mov r12, r9
mov rsi, rdx
mov rdi, rcx
cmp rdx, 2
jbe 0x1400c5381
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x1400c5369
cmp ax, 0x2f
jne 0x1400c5387
movzx eax, word [rcx + 2]
cmp ax, 0x5c
je 0x1400c5379
cmp ax, 0x2f
jne 0x1400c5387
mov rbx, rbp
jmp 0x1400c5411
cmp rsi, 1
jb 0x1400c539d
movzx eax, word [rcx]
cmp ax, 0x2f
je 0x1400c5396
cmp ax, 0x5c
jne 0x1400c539d
mov ebx, 2
jmp 0x1400c5411
cmp rsi, 2
jb 0x1400c5409
cmp word [rcx + 2], 0x3a
jne 0x1400c53f0
lea r14, [rcx + 4]
cmp rsi, 3
jb 0x1400c53c4
movzx eax, word [r14]
cmp ax, 0x2f
je 0x1400c53f6
cmp ax, 0x5c
je 0x1400c53f6
mov rbx, qword [rsp + 0x88]
cmp rbx, 2
jb 0x1400c5379
mov rdx, rcx
mov r8d, 2
mov rcx, r13
call fcn.1400eaa60
test eax, eax
jne 0x1400c5379
mov rdi, r14
sub rsi, 2
jmp 0x1400c5411
cmp rsi, 2
jbe 0x1400c5409
cmp word [rcx + 2], 0x3a
mov rbx, qword [rsp + 0x88]
cmove rbx, rbp
jmp 0x1400c5411
mov rbx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x78]
lea rcx, [rsi + r12]
add rcx, rbp
add rcx, rbx
lea rcx, [rcx*2 + 8]
call fcn.1400a8170
mov r8, rbx
mov rdx, r13
mov rcx, rax
mov r15, rax
call fcn.1400ea168
lea r14, [r15 + rbx*2]
mov r13d, 0x5c
test rbx, rbx
je 0x1400c546b
movzx edx, word [r14 - 2]
lea rcx, [0x140115fb0]
call fcn.1400cd568
test rax, rax
jne 0x1400c546b
mov word [r14], r13w
add r14, 2
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.1400ea168
lea rbx, [r14 + rsi*2]
test rsi, rsi
je 0x1400c549f
movzx edx, word [rbx - 2]
lea rcx, [0x140115fb0]
call fcn.1400cd568
test rax, rax
jne 0x1400c549f
mov word [rbx], r13w
add rbx, 2
mov rdx, qword [rsp + 0x60]
mov r8, r12
mov rcx, rbx
call fcn.1400ea168
lea rbx, [rbx + r12*2]
test rbp, rbp
je 0x1400c54e4
test r12, r12
je 0x1400c54d0
cmp word [rbx - 2], 0x2e
je 0x1400c54d0
mov eax, 0x2e
mov word [rbx], ax
add rbx, 2
mov rdx, qword [rsp + 0x70]
mov r8, rbp
mov rcx, rbx
call fcn.1400ea168
lea rbx, [rbx + rbp*2]
xor eax, eax
mov rcx, r15
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c5500
test al, 0x10
jne 0x1400c5500
mov rax, r15
jmp 0x1400c550a
mov rcx, r15
call fcn.1400a7f70
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400c83f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov r12, r8
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x1400c842a
xor ebp, ebp
test rdx, rdx
je 0x1400c8416
mov qword [rdx], rbp
mov qword [r8], rbp
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400c8440
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1400c8469
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1400c8469
cmp ax, 0x2f
jne 0x1400c8450
mov qword [rsp + 0x50], r15
test rbx, rbx
jne 0x1400c84cf
test r14, r14
je 0x1400c84c1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test eax, eax
je 0x1400c84ba
mov ecx, ebx
add rcx, rcx
call fcn.1400a8170
mov qword [r14], rax
test rax, rax
je 0x1400c8557
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400c84c1
mov rcx, qword [r14]
call fcn.1400a7f70
xor ebp, ebp
mov qword [r14], rbp
mov eax, 0xffffffff
jmp 0x1400c8539
mov rcx, rsi
call fcn.1400edb6c
mov qword [r12], rax
jmp 0x1400c8537
xor ebp, ebp
lea r15, [rbx + rbx]
test r14, r14
je 0x1400c8503
lea rcx, [r15 + 4]
call fcn.1400a8170
mov qword [r14], rax
test rax, rax
je 0x1400c8557
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call fcn.1400ea168
mov rax, qword [r14]
mov word [rax + r15 + 2], bp
sub rdi, rbx
lea rbx, [rdi + rdi]
mov rcx, rbx
call fcn.1400a8170
mov qword [r12], rax
test rax, rax
je 0x1400c8557
lea rdx, [rsi + 2]
mov rcx, rax
add rdx, r15
lea r8, [rdi - 1]
call fcn.1400ea168
mov rax, qword [r12]
mov word [rbx + rax - 2], bp
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
lea rdx, str.uv__malloc
mov ecx, select
call fcn.1400b5650
int3
Function at 0x1400c9280
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
cmp r9, 0x7fffffff
jbe 0x1400c92a9
mov eax, 0xfffff003
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x60], 0
je 0x1400c92c0
mov eax, 0xfffff019
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x1400c92e4
call fcn.1400b45a0
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.1400aa000
xor r8d, r8d
mov dword [rdx + 8], 0xa
mov qword [rdx + 0x40], r8
lea r9, [0x1400c9240]
inc dword [rcx + 0x20]
mov qword [rdx + 0x90], rax
lea rax, [0x1400c9210]
mov qword [rdx + 0x70], rcx
mov dword [rdx + 0x78], r8d
mov qword [rdx + 0x80], rdi
mov qword [rdx + 0x88], rbx
add rdx, 0x98
mov qword [rsp + 0x20], rax
call fcn.1400c6610
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c9a80
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov edx, 0xfffff027
cmp eax, 0xffffffff
mov dword [rbx], eax
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400c9ab0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400c9ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400c9ad9
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call fcn.1400d7068
int3

Function at 0x1400c9ae0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400c9af5
add rsp, 0x28
ret
call fcn.1400d7068
int3
Function at 0x1400c9cb0
Capabilities:
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
test byte [rdx], 1
mov rbp, r9
mov r14, r8
mov rsi, rcx
je 0x1400c9d10
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x1400c9d12
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x34]
dec rbx
add rbx, rax
dec rax
not rax
and rbx, rax
mov eax, ebx
cmp rax, rbx
je 0x1400c9d12
mov eax, 0xfffff019
jmp 0x1400c9da4
xor ebx, ebx
mov ecx, 0x18
call fcn.1400a8170
mov rdi, rax
test rax, rax
jne 0x1400c9d2b
mov eax, 0xfffff027
jmp 0x1400c9da4
mov qword [rsp + 0x28], 0
lea r8, [0x1400c9950]
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, ebx
mov qword [rax], r14
xor ecx, ecx
mov qword [rax + 8], rbp
call fcn.1400ead34
test rax, rax
jne 0x1400c9d92
call fcn.1400de4e0
mov rcx, rdi
mov ebx, dword [rax]
call fcn.1400a7f70
test ebx, ebx
je 0x1400c9da2
cmp ebx, 0xb
je 0x1400c9d8b
cmp ebx, 0xd
je 0x1400c9d84
cmp ebx, 0x16
je 0x1400c9d06
mov eax, 0xfffff01a
jmp 0x1400c9da4
mov eax, 0xfffff004
jmp 0x1400c9da4
mov eax, 0xfffff008
jmp 0x1400c9da4
mov qword [rsi], rax
mov rcx, rax
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400c9f10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
cmp byte [0x1403c0688], 0
jne 0x1400c9f8f
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
test rax, rax
je 0x1400ca025
xor eax, eax
lock cmpxchg qword [0x1403c0690], rbx
mov rdi, rax
jne 0x1400c9f78
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1403c0680], eax
cmp eax, 0xffffffff
je 0x1400ca04f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x1403c0688], 1
jmp 0x1400c9f8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1403c0680]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400c9fb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca04f
mov qword [rsp + 0x50], rbx
test rbx, rbx
jne 0x1400ca017
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x50]
mov rcx, rax
mov r8, rdi
xor eax, eax
mov rdx, rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400ca03a
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1403c0680]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400ca04f
mov rbx, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400b5650
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [0x140116198]
call fcn.1400b5650
int3
call fcn.1400d7068
int3
Function at 0x1400cab10
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x1403c19e0]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.1400a8c60
test eax, eax
jne 0x1400cacad
lea r8, [0x1403c19c0]
xor edx, edx
lea rcx, [0x1401145a8]
call fcn.1400a8cd0
test eax, eax
jne 0x1400cacad
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400cac95
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400cacb3
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x1403c19f4], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cac13
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]
test eax, eax
jne 0x1400cac0a
mov eax, dword [0x1403c19f4]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x1403c19f4], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x1403c19f0], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cac85
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]
test eax, eax
jne 0x1400cac7c
mov eax, dword [0x1403c19f0]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x1403c19f0], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400cb6d0
add rsp, 0x478
ret
call fcn.1400d7068
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400b5650
int3

Function at 0x1400d705c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d6ec7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d6ec7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d6ec7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d6ec7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d6ec7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d6ec7
cmp dword [rcx + 0xf8], 0
je 0x1400d6ec7
mov ecx, ebx
call fcn.1400d6f78
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d6d54
nop
cmp dword [rbp + 0x20], 0
je 0x1400d6f15
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d6f20
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d6e58
Function at 0x1400df5c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400cb9a0
sub rsp, rax
mov rax, qword [0x140136348]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400f039c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400df613
mov rax, rbp
jmp 0x1400df71b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3c11f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400ea0bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c11f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400df717
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400df717
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400ea0bc
test rax, rax
js 0x1400df717
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400df717
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400df709
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400df709
cmp byte [rcx], 0xd
jne 0x1400df6ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400df6fe
cmp byte [rcx + 1], 0xa
jne 0x1400df6fe
inc rcx
jmp 0x1400df6fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x136580]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400df6d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400df71b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400cb6d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e0410
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400d616c
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1400e045b
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1400e048f
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e048f
call fcn.1400ee024
xor ebx, ebx
test eax, eax
jne 0x1400e047d
cmp byte [rbp - 0x48], bl
je 0x1400e0476
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1400e048f
cmp byte [rbp - 0x48], bl
je 0x1400e048d
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.1400e01b0
mov esi, eax
test eax, eax
je 0x1400e04cb
call fcn.1400de4e0
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400e0524
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.1400e01b0
mov edi, eax
test eax, eax
je 0x1400e0507
call fcn.1400de4e0
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400e0516
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400f548c
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400e0524
mov rcx, qword [rbp - 0x50]
call fcn.1400edc50
cmp byte [rbp - 8], bl
je 0x1400e0532
mov rcx, qword [rbp - 0x20]
call fcn.1400edc50
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e8394
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400e83b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400de454
or eax, 0xffffffff
jmp 0x1400e83b6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400e8794
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403c11f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e87eb
cmp word [rdx], r13w
jne 0x1400e87eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e87f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e8915
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e8936
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e8829
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e8850
cmp r9, r8
jae 0x1400e8860
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e880a
jmp 0x1400e8915
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400e890a
cmp dword [rsp + 0x80], esi
je 0x1400e890a
lea r8, [0x1403c11f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e88e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e88b2
mov word [rbx], r13w
jmp 0x1400e8912
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e88bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e8912
cmp word [rsp + 0x70], r13w
jne 0x1400e88ef
cmp rbx, r14
je 0x1400e88ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ea0c4
cmp word [rsp + 0x70], r13w
je 0x1400e8915
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403c11f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e890f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e8915