joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400059d8
Capabilities:
Create thread
Query environment variable

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 rsi, r8
mov r9, r8
mov rbp, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rdi, rdx
mov dword [rsp + 0x20], 0x10000
call fcn.14000c3e0
mov rbx, rax
test rax, rax
jne 0x140005a3f
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call fcn.14000c3e0
mov rbx, rax
cmp dword [0x140023078], 0
je 0x140005afc
lea rcx, str.J2D_D3D
call fcn.140009cf8
test rax, rax
je 0x140005a7c
lea rdx, str.false
mov rcx, rax
call fcn.140019600
neg eax
sbb ecx, ecx
and ecx, dword [0x140023078]
mov dword [0x140023078], ecx
lea rcx, str.J2D_D3D_PRELOAD
call fcn.140009cf8
mov rdi, rax
test rax, rax
je 0x140005ab1
lea rdx, str.false
mov rcx, rax
call fcn.140019600
neg eax
sbb ecx, ecx
and ecx, dword [0x140023078]
mov dword [0x140023078], ecx
jmp 0x140005ab7
mov ecx, dword [0x140023078]
test ecx, ecx
jns 0x140005aee
and dword [0x140023078], 0
test rdi, rdi
je 0x140005afc
lea rdx, str.true
mov rcx, rdi
call fcn.140019600
mov ecx, dword [0x140023078]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [0x140023078], ecx
test ecx, ecx
je 0x140005afc
lea rcx, str.preloadD3D
call fcn.140005898
test rbx, rbx
je 0x140005b26
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005b2f
mov rcx, rsi
call rbp
mov dword [rsp + 0x68], eax
cmp dword [0x1400247e0], 0
je 0x140005b46
mov rax, qword [0x140024800]
test rax, rax
je 0x140005b46
call rax
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 0x140005d98
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x10
mov ecx, ebx
call fcn.140003f54
lea ecx, [rbx + 0x70]
mov dword [rax + 0xc], ebx
mov rsi, rax
call fcn.140003f54
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.140003f54
lea rdx, [0x140024810]
mov rcx, r14
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140005f43
lea r15, [0x14002483c]
mov qword [r12], rax
mov qword [r12 + 8], r15
mov rbp, qword [r12 + 8]
test rbp, rbp
je 0x140005e1e
and qword [r12 + 8], 0
jmp 0x140005e37
mov rcx, qword [r12]
lea rdx, [0x140024810]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r15
test rbp, rbp
je 0x140005f22
mov rcx, rbp
call fcn.140009f00
cmp eax, 4
jl 0x140005e0c
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140005e0c
lea rbx, [rcx + rbp - 3]
lea rdx, [0x14001bc34]
mov rcx, rbx
call fcn.14000a7b0
test eax, eax
je 0x140005e82
lea rdx, [0x14001bc30]
mov rcx, rbx
call fcn.14000a7b0
test eax, eax
jne 0x140005e0c
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bfac
test rax, rax
jne 0x140005e0c
mov rcx, r14
call fcn.140009f00
mov rcx, rbp
mov rdi, rax
call fcn.140009f00
lea ecx, [rax + rdi]
mov rbx, rax
movsxd rcx, ecx
call fcn.140003f54
lea ecx, [rdi - 1]
mov rdx, r14
movsxd r8, ecx
mov rcx, rax
mov r13, rax
call fcn.14000a0a0
lea r11d, [rbx + 1]
movsxd rcx, edi
lea rcx, [rcx + r13 - 1]
movsxd r8, r11d
mov rdx, rbp
call fcn.14000a0a0
mov r11d, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc r11d
cmp eax, r11d
jge 0x140005f0f
add eax, eax
mov dword [rsi + 0xc], eax
cmp eax, r11d
jl 0x140005ef3
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
call fcn.140003f80
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r13
inc dword [rsi + 8]
jmp 0x140005e0c
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r12 + 8]
call fcn.140003fd8
mov rcx, r12
call fcn.140003fd8
mov rax, rsi
jmp 0x140005f45
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400060c4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 0x2a
mov rdi, rcx
call fcn.14000bfac
test rax, rax
jne 0x1400060ea
mov rax, rdi
jmp 0x14000613a
mov dl, 0x3b
mov rcx, rdi
call fcn.140005c80
mov rcx, rax
mov rbx, rax
call fcn.140005f64
mov dl, 0x3b
mov rcx, rbx
call fcn.140005bbc
mov rcx, rbx
mov rsi, rax
call fcn.140005b60
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.140009cf8
test rax, rax
je 0x140006137
lea rcx, str.Expanded_wildcards:_n____before:___s__n____after_:___s__n
mov r8, rsi
mov rdx, rdi
call fcn.140009b90
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000624c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov rbp, r8
mov rdi, rdx
mov esi, ecx
je 0x1400062c1
cmp qword [rdx], 0xffffffffffffffff
je 0x1400062c1
mov edx, dword [rdx + 0x10]
xor r8d, r8d
call fcn.1400175c4
test eax, eax
js 0x1400062c1
mov rcx, qword [rdi + 8]
inc rcx
call fcn.14000b234
mov rbx, rax
test rax, rax
je 0x1400062c1
mov r12, qword [rdi + 8]
mov rdx, rax
mov ecx, esi
mov r8d, r12d
call fcn.1400168f4
movsxd rcx, eax
cmp rcx, r12
je 0x1400062e1
mov rcx, rbx
call fcn.14000b3c0
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
cmp dword [rdi + 0x14], 0
jne 0x1400062fc
mov byte [r12 + rbx], 0
test rbp, rbp
je 0x1400062f7
mov eax, dword [rdi + 8]
mov dword [rbp], eax
mov rax, rbx
jmp 0x1400062c3
cmp dword [rdi + 0x14], 8
jne 0x1400062c1
mov eax, dword [rdi + 8]
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov r9d, 0x58
lea r8, str.1.2.3
lea rcx, [rsp + 0x20]
lea edx, [r9 - 0x67]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call fcn.14000714c
test eax, eax
js 0x1400062b9
mov rcx, qword [rdi]
inc rcx
call fcn.14000b234
mov rsi, rax
test rax, rax
je 0x1400062b9
mov qword [rsp + 0x30], rax
mov eax, dword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov dword [rsp + 0x38], eax
call fcn.140007334
mov rcx, rbx
test eax, eax
jns 0x140006388
call fcn.14000b3c0
mov rcx, rsi
jmp 0x1400062bc
mov rax, qword [rdi]
mov byte [rsi + rax], 0
call fcn.14000b3c0
lea rcx, [rsp + 0x20]
call fcn.1400088b4
test eax, eax
js 0x140006380
test rbp, rbp
je 0x1400063ac
mov eax, dword [rdi]
mov dword [rbp], eax
mov rax, rsi
jmp 0x1400062c3
Function at 0x1400063b4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, rdx
mov edx, 0xffffffea
mov ebx, ecx
lea r8d, [rdx + 0x18]
call fcn.1400175c4
mov edi, eax
test eax, eax
js 0x14000651f
mov r8d, 0x16
mov rdx, rbp
mov ecx, ebx
call fcn.1400168f4
test eax, eax
js 0x14000651f
movzx eax, byte [rbp + 2]
movzx ecx, byte [rbp + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x140006430
mov eax, edi
jmp 0x140006522
xor edx, edx
mov ecx, ebx
lea r8d, [rdx + 2]
call fcn.1400175c4
mov r12d, eax
test eax, eax
js 0x14000651f
mov edi, 0x10015
mov r8d, 2
mov ecx, ebx
cmp eax, edi
mov esi, edi
cmovl esi, eax
mov edx, esi
neg edx
call fcn.1400175c4
test eax, eax
js 0x14000651f
mov ecx, edi
call fcn.14000b234
mov rdi, rax
test rax, rax
je 0x14000651f
mov r8d, esi
mov rdx, rax
mov ecx, ebx
call fcn.1400168f4
test eax, eax
js 0x140006517
movsxd rsi, eax
add eax, 0xffffffea
movsxd rbx, eax
add rsi, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x140006517
cmp byte [rbx], 0x50
jne 0x1400064ed
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x1400064ed
movzx eax, byte [rbx + 0x15]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rbx + 0x14]
or rcx, rax
lea rax, [rcx + rbx + 0x16]
cmp rax, rsi
je 0x1400064f2
dec rbx
jmp 0x1400064a4
mov r8d, 0x16
mov rdx, rbx
mov rcx, rbp
call fcn.14000a0a0
mov rcx, rdi
call fcn.14000b3c0
mov r11d, r12d
sub r11, rsi
lea rax, [rbx + r11]
jmp 0x140006522
mov rcx, rdi
call fcn.14000b3c0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140009b30
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400099a0

Function at 0x14000c27c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14000c2a6
call fcn.14000bd40
and dword [rax], 0
call fcn.14000bd20
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14000cf7c
mov eax, ebx
jmp 0x14000c2f6
test edx, 0xfffffff9
jne 0x14000c289
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000c2cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000bd60
call fcn.14000bd20
mov eax, dword [rax]
jmp 0x14000c2f6
test al, 0x10
jne 0x14000c2f4
test al, 1
je 0x14000c2f4
test bl, 2
je 0x14000c2f4
call fcn.14000bd40
mov dword [rax], 5
call fcn.14000bd20
mov dword [rax], 0xd
jmp 0x14000c2c6
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140010937
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400230c0]
jne 0x14000a79a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000a796
repz ret
ror rcx, 0x10
jmp 0x140010890
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025470]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140025568]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140010915
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140025470]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140010937
mov rax, qword [rsp + 0x88]
mov qword [0x140025568], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140025508], rax
mov rax, qword [0x140025568]
mov qword [0x1400253e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400254f0], rax
mov dword [0x1400253d0], 0xc0000409
mov dword [0x1400253d4], 1
mov rax, qword [0x1400230c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400230c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025468], eax
mov ecx, 1
call fcn.140014d2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001f6c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025468], 0
jne 0x1400109be
mov ecx, 1
call fcn.140014d2c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140014d7c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400230c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000cfd8
xor ebx, ebx
cmp qword [0x140025970], rbx
mov rdi, rax
jne 0x140014e8f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140014f66
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014f66
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140025970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140025978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140025980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140025990], rax
test rax, rax
je 0x140014e86
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140025988], rax
jmp 0x140014e96
mov rax, qword [0x140025988]
jmp 0x140014e9d
mov rax, qword [0x140025988]
mov r11, qword [0x140025990]
cmp rax, rdi
je 0x140014f04
cmp r11, rdi
je 0x140014f04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140025990]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140014f04
test rax, rax
je 0x140014f04
call rsi
test rax, rax
je 0x140014efe
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140014efe
test byte [rsp + 0x40], 1
jne 0x140014f04
bts ebp, 0x15
jmp 0x140014f44
mov rcx, qword [0x140025978]
cmp rcx, rdi
je 0x140014f44
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f44
call rax
mov rbx, rax
test rax, rax
je 0x140014f44
mov rcx, qword [0x140025980]
cmp rcx, rdi
je 0x140014f44
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f44
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140025970]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140014f66
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140014f68
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a780
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001c88
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001d19
lea rdi, [0x140086ca0]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x6c]
and qword [rsp + 0x30], 0
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x100
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [0x140067ec0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140001d35
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001cc4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x140001d24
Function at 0x140008154
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor ebp, ebp
mov rsi, r9
mov r14, rdx
mov rdi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x14000824c
test r8b, r8b
je 0x1400081bd
mov al, byte [rdx]
test al, 8
je 0x1400081bd
or al, 8
mov dword [rsp + 0x70], ebp
mov byte [rdx], al
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rsp + 0x30]
setne dl
call fcn.1400080a8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rsi
mov ebx, eax
setne dl
call fcn.1400080a8
test ebx, ebx
je 0x14000824c
mov edx, 0x2733
lea rcx, [rsp + 0x30]
call fcn.140023954
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140007234
test al, al
jne 0x140008219
mov edx, 0x4d5
lea rcx, [rsp + 0x30]
call fcn.140023954
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140007234
test al, al
je 0x14000824c
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], ebp
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rsi
mov ebx, eax
setne dl
call fcn.1400080a8
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140008264
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x10], 1
mov rbx, rdx
mov rdi, rcx
je 0x140008280
mov r8d, dword [rdx]
jmp 0x1400082b5
mov rcx, qword [rdx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r8d, ecx, 0x3e8
add r8d, dword [rbx]
sub r8d, 0x79
je 0x1400082e5
sub r8d, 0x450
je 0x1400082de
sub r8d, 6
je 0x1400082d7
cmp r8d, 1
jne 0x1400082f2
mov edx, 0x2751
jmp 0x1400082ea
mov edx, 0x2743
jmp 0x1400082ea
mov edx, 0x274d
jmp 0x1400082ea
mov edx, 0x274c
mov rcx, rbx
call fcn.1400238c8
test byte [rbx + 0x10], 1
je 0x140008304
cmp qword [rbx + 0x10], 1
jne 0x140008342
cmp dword [rbx], 0
jne 0x140008342
cmp rdi, 0xffffffffffffffff
jne 0x140008319
mov edx, 0x2719
mov rcx, rbx
call fcn.1400238c8
jmp 0x140008342
and dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.1400080a8
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008740
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140008771
cmp byte [rdx], 0
jne 0x140008773
xor edi, edi
test rbx, rbx
je 0x14000877e
cmp byte [r8], 0
jne 0x140008780
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rbp + 0x30]
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400088e8
sub eax, 8
je 0x1400088e1
sub eax, 0x271e
je 0x1400088d1
sub eax, 0x16
je 0x1400088ca
sub eax, 3
je 0x1400088c3
sub eax, 0x3e
je 0x140008864
sub eax, 0x37c
je 0x14000885d
sub eax, 1
je 0x14000884a
cmp eax, 1
je 0x140008843
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and dword [rbp - 0x2c], 0
lea rbx, [0x14007f0d0]
movabs rdx, 0x4d54ee85da812030
mov edi, eax
add rdx, qword [0x14007f0d8]
mov eax, 1
cmp rdx, rax
jbe 0x140008827
mov r8, qword [0x14007f0d0]
mov edx, edi
mov rcx, rbx
call qword [r8 + 0x30]
jmp 0x14000882c
test edi, edi
setne al
movzx eax, al
add rax, 2
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], rbx
jmp 0x1400088f4
mov edx, 0x2afb
jmp 0x14000884f
mov edx, 0x2afa
lea rcx, [rbp - 0x30]
call fcn.140023954
jmp 0x1400088f4
mov edx, 0x2af9
jmp 0x14000884f
mov edi, 0x277d
mov rcx, qword [0x14007f0d8]
lea rbx, [0x14007f0d0]
and dword [rbp - 0x14], 0
movabs rdx, 0x4d54ee85da812030
add rcx, rdx
mov eax, 1
cmp rcx, rax
jbe 0x1400088a1
mov rax, qword [0x14007f0d0]
mov edx, edi
mov rcx, rbx
call qword [rax + 0x30]
movzx eax, al
add rax, 2
mov dword [rbp - 0x18], edi
mov qword [rbp - 8], rax
movsd xmm1, qword [rbp - 8]
mov qword [rbp - 0x10], rbx
movups xmm0, xmmword [rbp - 0x18]
movsd qword [rbp - 0x20], xmm1
jmp 0x1400088f0
mov edx, 0x273f
jmp 0x1400088d6
mov edi, 0x273c
jmp 0x140008869
mov edx, 0x2726
lea rcx, [rbp - 0x30]
call fcn.140023954
jmp 0x1400088f4
mov edx, reloc.WS2_32.dll_ntohl
jmp 0x1400088d6
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp + 0x38]
movups xmm1, xmmword [rbp - 0x30]
mov rbx, qword [rsp + 0x60]
movsd xmm0, qword [rbp - 0x20]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
movups xmmword [rax], xmm1
movups xmmword [rsi], xmm1
movsd qword [rax + 0x10], xmm0
mov rax, rsi
movsd qword [rsi + 0x10], xmm0
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x1400089a4
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140086a50], eax
test eax, eax
je 0x1400089fb
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140008a1c
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140007ff4]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x14000a7d8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, qword [rcx + 8]
lea rax, [rbp + 0x10]
xor edx, edx
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x30], rdx
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
xorps xmm0, xmm0
mov byte [rbp + 0x10], dl
lea r8d, [rdx + 1]
mov qword [rbp - 0x10], rdx
mov dword [rbp + 0x18], edx
mov dword [rsp + 0x20], edx
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x30], 1
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.WS2_32.dll_WSASend]
mov dl, 1
lea rcx, [rbp - 0x20]
call fcn.1400080a8
cmp qword [rbp - 0x10], 1
movabs r9, 0x4800144005b3
mov r8, qword [rbp - 0x18]
je 0x14000a84e
mov ecx, dword [rbp - 0x20]
mov eax, ecx
jmp 0x14000a87c
mov rax, r9
mov rcx, r8
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
mov ecx, dword [rbp - 0x20]
add eax, ecx
cmp eax, 0x40
jne 0x14000a888
mov edx, 0x2746
jmp 0x14000a8c5
cmp qword [rbp - 0x10], 1
jne 0x14000a8b8
mov rax, r9
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub r8, rax
imul eax, r8d, 0x3e8
add ecx, eax
cmp ecx, 0x4d2
jne 0x14000a8ce
mov edx, 0x274d
lea rcx, [rbp - 0x20]
call fcn.1400238c8
add rsp, 0x70
pop rbp
ret