joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004b84
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
mov esi, r8d
mov rbp, rdx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rax - 0x28], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180004bda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180004c13
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x180004c02
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x180004c0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180004c2c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edi, eax
je 0x180004cc4
mov rcx, qword [0x18000d350]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004cc4
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180004cb0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
lea r8d, [rsi + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180004cb0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18000f1fa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180004cc4
mov rcx, qword [0x18000d350]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180004cd8
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.180004c2c
test rax, rax
mov rbx, rax
je 0x180004d89
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test rax, rax
je 0x180004d22
lea rcx, [rbx + 4]
cmp rax, rcx
jbe 0x180004d22
cmp dword [rax - 5], 0x776f4c5c
jne 0x180004d22
lea rcx, [rax - 4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
xor edx, edx
mov rcx, rbx
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180004d75
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
xor eax, edi
mov rcx, rbx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180004d75
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x18000f1fa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180004d89
mov rcx, qword [0x18000d350]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180004e30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x18000f464]
xor r8d, r8d
xor edx, edx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
mov edi, eax
je 0x180004e99
mov rcx, qword [0x18000d350]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004e99
lea rcx, [0x18000f464]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x180004e99
mov rcx, qword [0x18000d350]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001511c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001519a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015191
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015191
mov rax, qword [rbp - 8]
jmp 0x1400151af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015164
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002b2c
xor al, al
add rsp, 0x28
ret
Function at 0x140007990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
test rdx, rdx
setg al
setle r10b
test r9, r9
setle r11b
or r11b, r10b
jne 0x140007b64
xor r10d, r10d
lea r11, [0x1402da350]
lea rsi, [0x1402da450]
lea rdi, [0x1402da470]
xor r14d, r14d
mov qword [rsp], r8
nop dword [rax]
movzx ebp, byte [rcx + r14]
test bpl, bpl
js 0x140007a00
mov r15d, 1
jmp 0x140007b32
mov eax, ebp
movsx r15, byte [rax + r11]
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x140007b0a
mov rax, rdx
sub rax, r14
cmp rax, 2
mov r11d, 1
cmovl rax, r11
dec rax
cmp r15, 3
mov r12d, 2
cmovge r12, r15
lea rsi, [r12 - 2]
cmp rax, rsi
jbe 0x140007b82
lea rax, [rcx + r14]
lea r8, [r12 - 1]
test rsi, rsi
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], r8
je 0x140007b4f
lea rdi, [rax + 1]
mov rsi, r8
and rsi, 0xfffffffffffffffe
neg rsi
mov ebx, 1
xor r13d, r13d
nop dword [rax]
movzx eax, byte [rdi + rbx - 1]
mov r11d, eax
and r11b, 0xc0
neg r11b
setno r11b
or r11b, r13b
movzx r8d, byte [rdi + rbx]
mov r13d, r8d
and r13b, 0xc0
neg r13b
setno r13b
or r13b, r11b
shl ebp, 0xc
shl eax, 6
add ebp, r8d
add ebp, eax
lea rax, [rsi + rbx]
add rax, 2
add rbx, 2
cmp rax, 1
jne 0x140007a80
test byte [rsp + 0x10], 1
je 0x140007aef
mov rax, qword [rsp + 8]
movzx eax, byte [rax + rbx]
mov r8d, eax
and r8b, 0xc0
neg r8b
setno r8b
or r13b, r8b
shl ebp, 6
add ebp, eax
mov r8, qword [rsp]
lea r11, [0x1402da350]
lea rsi, [0x1402da450]
lea rdi, [0x1402da470]
jmp 0x140007b13
mov r12d, 1
xor r13d, r13d
xor eax, eax
cmp r12, r15
jne 0x140007b71
test r13b, 1
jne 0x140007b71
sub ebp, dword [rsi + r15*4]
cmp ebp, 0x10ffff
ja 0x140007b71
cmp ebp, dword [rdi + r15*4]
jb 0x140007b82
mov byte [r8 + r10], bpl
add r14, r15
inc r10
cmp r14, rdx
setl al
jge 0x140007b67
cmp r10, r9
jl 0x1400079e0
jmp 0x140007b67
mov ebx, 1
xor r13d, r13d
test byte [rsp + 0x10], 1
jne 0x140007ad0
jmp 0x140007aef
xor r10d, r10d
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140007b71
Function at 0x140007b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test rdx, rdx
setg al
setle r10b
test r9, r9
setle r11b
or r11b, r10b
jne 0x140007dda
mov rdi, rcx
lea rax, [r9 - 1]
mov qword [rsp + 0x18], rax
xor esi, esi
lea r11, [0x1402da350]
lea r14, [0x1402da450]
lea r12, [0x1402da470]
xor r10d, r10d
mov qword [rsp + 0x10], r8
mov qword [rsp + 8], rcx
mov qword [rsp], rdx
nop
movzx r13d, byte [rdi + rsi]
test r13b, r13b
js 0x140007c10
mov ecx, 1
mov ebp, r13d
jmp 0x140007da0
movsx rcx, byte [r13 + r11]
mov rax, r13
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x140007d23
mov rax, rdx
sub rax, rsi
cmp rax, 2
mov r11d, 1
cmovl rax, r11
dec rax
cmp rcx, 3
mov ebx, 2
cmovge rbx, rcx
lea r11, [rbx - 2]
cmp rax, r11
jbe 0x140007df8
lea rax, [rdi + rsi]
lea r14, [rbx - 1]
test r11, r11
mov qword [rsp + 0x20], rax
je 0x140007dbe
lea r11, [rax + 1]
mov rdx, r14
and r14, 0xfffffffffffffffe
neg r14
mov edi, 1
xor r15d, r15d
mov ebp, r13d
nop dword [rax]
movzx eax, byte [r11 + rdi - 1]
mov r12d, eax
and r12b, 0xc0
neg r12b
setno r12b
or r12b, r15b
movzx r8d, byte [r11 + rdi]
mov r15d, r8d
and r15b, 0xc0
neg r15b
setno r15b
or r15b, r12b
shl ebp, 0xc
shl eax, 6
add ebp, r8d
add ebp, eax
lea rax, [r14 + rdi]
add rax, 2
add rdi, 2
cmp rax, 1
jne 0x140007c90
test dl, 1
je 0x140007cfe
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + rdi]
mov r8d, eax
and r8b, 0xc0
neg r8b
setno r8b
or r15b, r8b
shl ebp, 6
add ebp, eax
mov r8, qword [rsp + 0x10]
mov rdi, qword [rsp + 8]
mov rdx, qword [rsp]
lea r11, [0x1402da350]
lea r14, [0x1402da450]
lea r12, [0x1402da470]
jmp 0x140007d2e
mov ebx, 1
xor r15d, r15d
mov ebp, r13d
xor eax, eax
cmp rbx, rcx
jne 0x140007de7
test r15b, 1
jne 0x140007de7
sub ebp, dword [r14 + rcx*4]
cmp ebp, 0x10ffff
ja 0x140007de7
cmp ebp, dword [r12 + rcx*4]
jb 0x140007df8
cmp r13b, 0xf0
jb 0x140007da0
cmp r10, qword [rsp + 0x18]
je 0x140007df8
mov eax, ebp
shr eax, 0xa
add eax, 0xffffd7c0
mov word [r8 + r10*2], ax
and ebp, 0x3ff
or ebp, 0xdc00
mov word [r8 + r10*2 + 2], bp
inc r10
jmp 0x140007da5
mov word [r8 + r10*2], bp
add rsi, rcx
inc r10
cmp rsi, rdx
setl al
jge 0x140007ddd
cmp r10, r9
jl 0x140007bf0
jmp 0x140007ddd
mov rdx, r14
mov edi, 1
xor r15d, r15d
mov ebp, r13d
test dl, 1
jne 0x140007cdf
jmp 0x140007cfe
xor r10d, r10d
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140007de7

Function at 0x140009710
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x140009748
add rsp, 0x58
ret
call fcn.14029fd30
int3
Function at 0x140009750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
test dl, dl
mov eax, 0x40
mov r9d, 4
cmovne r9d, eax
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000979a
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14029f9b8
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000a0d0
Capabilities:
Enumerate process modules

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x2038
call fcn.14029fcd0
sub rsp, rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x2030], rax
cmp qword [0x1404a94a0], 0
jne 0x14000a123
mov ecx, 8
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [0x1404a94a0], rax
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x410
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000a1ff
mov r14, rax
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x2000
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000a1a3
cmp dword [rsp + 0x2c], 8
jb 0x14000a1a3
xor ebx, ebx
mov r15, qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop word cs:[rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
mov rdx, rdi
call r15
test rax, rax
jne 0x14000a25e
inc rbx
mov eax, dword [rsp + 0x2c]
shr eax, 3
cmp rbx, rax
jb 0x14000a180
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r14, str.None_of_the_loaded_modules_contained_the_requested_symbol__s.
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r8, r14
mov r9, rdi
call fcn.1400067e0
movsxd r15, eax
inc r15
mov rcx, r15
call fcn.140006630
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
mov r9, rdi
call fcn.1400067e0
mov qword [rsi], r12
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
je 0x14000a24a
jmp 0x14000a27e
lea rdi, str.Failed_to_open_current_process.
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r8, rdi
call fcn.1400067e0
movsxd r14, eax
inc r14
mov rcx, r14
call fcn.140006630
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8, rdi
call fcn.1400067e0
mov qword [rsi], r15
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14000a27e
mov rax, rbx
add rsp, 0x2038
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
je 0x14000a24a
call fcn.14029fd30
int3
Function at 0x14000af40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14000ae50
mov rcx, qword [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov edi, dword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
mov r8d, 0x4000
cmovne r8d, edi
mov rdx, qword [rsi + 0x50]
add rdx, 0x60
mov dword [rsp + 0x44], 0
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000afae
mov edi, dword [rsp + 0x44]
jmp 0x14000afb8
mov dword [rsp + 0x44], 0
xor edi, edi
mov rbx, qword [rsi + 0x50]
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
call fcn.14000a8b0
mov rcx, qword [rax + 0x60]
mov edx, edi
mov r8, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x14000b024
lea rdi, [rsi + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rsi + 0x71], 1
add rsi, 0x30
mov rcx, rsi
call sub.KERNEL32.dll_WakeConditionVariable
mov rcx, rdi
call fcn.140006ee0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14000b01e
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call fcn.14029fd30
int3
lea rax, str..._.._runtime_bin_eventhandler_win.cc
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x152
lea rdx, str.PostQueuedCompletionStatus_failed
lea rcx, [rsp + 0x30]
call fcn.1402d94a0
int3
Function at 0x14000b550
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x188
call fcn.140006630
mov rsi, rax
mov qword [rax + 0x20], 0xffffffffffffffff
mov qword [rax + 0x28], 0x120
mov qword [rax + 0x30], rdi
lea rcx, [rax + 0x50]
mov qword [rax + 0x38], 0
mov r8d, 0x130
xor edx, edx
call fcn.1402a4b90
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x20], rax
lock inc qword [rdi + 8]
call fcn.14000a8b0
mov rbx, rax
mov rcx, rax
call fcn.14000d890
mov rax, qword [rbx + 0x70]
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
lea r8, [rsi + 0x60]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rdi + 0x78]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
xor r9d, r9d
call rax
test eax, eax
jne 0x14000b621
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14000b642
inc dword [rdi + 0xa0]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14000b6b2
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x60], eax
mov eax, dword [rdi + 0x74]
mov ecx, eax
or ecx, 0x10
mov dword [rdi + 0x74], ecx
test al, 1
jne 0x14000b66d
mov rax, qword [rdi + 0x10]
add rdi, 0x10
mov edx, 4
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14000b687
lock dec qword [rcx + 8]
jne 0x14000b687
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rsi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14000b697
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call fcn.1402bbd1c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
je 0x14000b63a
call fcn.14029fd30
int3
Function at 0x14000b730
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov eax, dword [rdi + 0x74]
test al, 1
jne 0x14000b8ad
mov rax, qword [rdi + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x20]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000b8aa
mov rax, qword [rsi]
mov r14, qword [rax + 0x20]
mov qword [rax + 0x20], 0xffffffffffffffff
call fcn.14000a8b0
mov r15, rax
mov rcx, rax
call fcn.14000d890
mov rcx, qword [rsi]
add rcx, 0x60
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x90
mov r9d, 0x90
call qword [r15 + 0x88]
mov ecx, 0x80
call fcn.14029f9b8
mov r12, rax
mov rdx, qword [rsp + 0x48]
movsxd r8, dword [rsp + 0x44]
mov rcx, rax
call fcn.1402a44e0
mov ecx, 0xb0
call fcn.14029f9b8
mov r15, rax
mov rcx, rax
mov rdx, r14
mov r8d, 3
call fcn.14000e0d0
mov qword [r15 + 0x80], 0
xorps xmm0, xmm0
movups xmmword [r15 + 0x90], xmm0
lea rax, [0x1402da5e0]
mov qword [r15], rax
lea rax, [0x1402da630]
mov qword [r15 + 0x10], rax
mov qword [r15 + 0xa8], r12
mov word [r15 + 0xa0], 1
cmp qword [rdi + 0xa8], 0
je 0x14000b896
mov rax, qword [rdi + 0xb0]
mov qword [rax + 0x98], r15
jmp 0x14000b89d
mov qword [rdi + 0xa8], r15
mov qword [rdi + 0xb0], r15
inc dword [rdi + 0xb8]
mov eax, dword [rdi + 0x74]
dec dword [rdi + 0xa0]
test al, 1
jne 0x14000b903
cmp dword [rdi + 0xb8], 0
jle 0x14000b903
lea r14, [rdi + 0x10]
xor ebp, ebp
nop word cs:[rax + rax]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x40]
test al, 1
je 0x14000b903
mov rax, qword [rdi + 0x10]
mov edx, 1
mov rcx, r14
call qword [rax + 0x28]
mov rcx, rax
mov edx, 1
call fcn.14026c310
inc ebp
cmp ebp, dword [rdi + 0xb8]
jl 0x14000b8d0
mov rcx, rbx
call fcn.140006ee0
mov rsi, qword [rsi]
test rsi, rsi
je 0x14000b945
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14000b92d
lock dec qword [rcx + 8]
jne 0x14000b92d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rsi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14000b93d
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call fcn.1402bbd1c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14000b965
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14029fd30
int3
Function at 0x14000c140
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rdi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rsi, [rcx + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rdi + 0xa1], 1
mov qword [rsp + 0x40], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r15
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000c309
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x90], rax
lea rbx, [rdi + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_WakeConditionVariable
cmp byte [rdi + 0xa1], 1
jne 0x14000c2a0
lea r14, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm6, xmm6
mov r13, qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
jmp 0x14000c255
mov dword [rsp + 0x40], 0
xor ebp, ebp
mov eax, ebp
add qword [rdi + 0x98], rax
mov r15, qword [rdi + 0x58]
movups xmmword [r15 + 0x10], xmm6
movups xmmword [r15], xmm6
call fcn.14000a8b0
mov rcx, qword [rax + 0x60]
mov edx, ebp
mov r8, rdi
mov r9, r15
call r13
test eax, eax
je 0x14000c2e4
cmp byte [rdi + 0xa1], 0
je 0x14000c2a0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.140006f10
mov rdx, qword [rdi + 0x58]
test rdx, rdx
je 0x14000c24c
mov dword [rsp + 0x40], 0xffffffff
mov r8d, dword [rdx + 0x28]
add rdx, 0x60
mov rcx, qword [rdi + 0x40]
mov qword [rsp + 0x20], 0
mov r9, r14
call r12
test eax, eax
je 0x14000c210
mov ebp, dword [rsp + 0x40]
jmp 0x14000c21a
mov byte [rdi + 0xa0], 0
mov rcx, rbx
call sub.KERNEL32.dll_WakeConditionVariable
mov rcx, rsi
call fcn.140006ee0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x14000c2de
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14029fd30
int3
lea rax, str..._.._runtime_bin_eventhandler_win.cc
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x30b
lea rdx, str.PostQueuedCompletionStatus_failed
lea rcx, [rsp + 0x48]
call fcn.1402d94a0
lea rax, str..._.._runtime_bin_eventhandler_win.cc
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x128
lea rdx, str.Failed_to_obtain_thread_handle
lea rcx, [rsp + 0x48]
call fcn.1402d94a0
int3