joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002c60
Capabilities:
Enumerate processes
Get disk size
Get memory capacity

Disassembly:
sub rsp, 0x308
mov rax, qword [0x14003c250]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
lea rcx, str.C:Program_FilesVMwareVMware_Tools_
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x140002ca4
mov al, 1
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.140019120
add rsp, 0x308
ret
xor edx, edx
mov qword [rsp + 0x310], rbx
mov dword [rsp + 0xa0], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002cd2
xor al, al
jmp 0x140002ea0
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002d5c
nop word [rax + rax]
lea rdx, str.VMwareService.exe
lea rcx, [rsp + 0xcc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140002df8
lea rdx, str.VMwareTray.exe
lea rcx, [rsp + 0xcc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140002df8
lea rdx, str.VMwareUser.exe
lea rcx, [rsp + 0xcc]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140002df8
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002cf0
mov rcx, rbx
mov qword [rsp + 0x300], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea r8, [rsp + 0x40]
lea rcx, str.localhost
lea edx, [rdi + 0x64]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x140002dd3
mov rax, qword [str.WORKGROUP]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x2e0]
mov qword [rsp + 0x2e0], rax
mov rax, qword [0x140035828]
mov qword [rsp + 0x2e8], rax
mov eax, dword [0x140035830]
mov dword [rsp + 0x2f0], eax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140002df1
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x68], 0x45f41500
jae 0x140002dff
mov al, 1
jmp 0x140002e98
mov al, 1
jmp 0x140002ea0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, str..PhysicalDrive0
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002e3f
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140002e98
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x7405c
mov rcx, rbx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x48]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp rax, 0x6e
setl al
mov rdi, qword [rsp + 0x300]
mov rbx, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.140019120
add rsp, 0x308
ret
Function at 0x1400032c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [r12 + 0x138]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rbx
mov edx, 0xff
call fcn.14001961c
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.140019160
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
xor edx, edx
add r11d, 8
add rcx, 8
mov word [rsp + 0x28], dx
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
movzx r8d, si
mov rdx, rbp
call qword [rax]
test eax, eax
je 0x1400033d4
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x140035d38]
mov al, 1
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
jmp 0x1400033d6
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140004470
Capabilities:
Enumerate gui resources
Enumerate processes
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x2a0
mov rax, qword [0x14003c250]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r12, r8
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400044b3
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdi, [0x1400353e4]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
jne 0x1400044db
lea r8, [0x14003537c]
mov edx, 0xffff
mov rcx, rbx
call fcn.140019594
lea r8, [0x140035978]
mov r9, rbx
mov edx, 0xffff
mov rcx, rbx
call fcn.140019594
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x234
call fcn.14001aa00
lea rdx, [rsp + 0x50]
mov rcx, r12
mov dword [rsp + 0x50], 0x238
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400045cf
mov qword [rsp + 0x2d0], r13
lea r13, [0x140042eb0]
nop word [rax + rax]
mov eax, dword [rsp + 0x58]
lea rdx, [rsp + 0x40]
lea rcx, [0x140004420]
mov dword [rsp + 0x40], eax
inc ebp
call qword [sym.imp.USER32.dll_EnumWindows]
lea rdi, [0x1400353e4]
mov rsi, r13
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
lea rax, [rsp + 0x7c]
mov r9, rbx
mov rcx, rbx
mov edx, 0xffff
je 0x14000459c
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8, [0x140035988]
mov dword [rsp + 0x20], ebp
call fcn.140019594
jmp 0x1400045b1
mov qword [rsp + 0x28], rax
lea r8, str._s__d__s
mov dword [rsp + 0x20], ebp
call fcn.140019594
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004540
mov r13, qword [rsp + 0x2d0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140019120
add rsp, 0x2a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140005020
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x140005080
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x140005078
mov eax, dword [r8 + 0x20]
jmp 0x140005080
test dl, dl
jns 0x140005080
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x140041388]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x1400051f7
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x1400050f3
mov r9d, dword [rbx]
test r9b, 0x40
je 0x1400050ea
mov eax, dword [r8 + 0x20]
jmp 0x1400050f3
test r9b, r9b
jns 0x1400050f3
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x1400051b1
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x1400051b1
test r10, r10
je 0x1400051a4
bt edx, 0x19
jae 0x140005157
cmp r11, rcx
jne 0x1400051a4
cmp dword [r8 + 0x38], esi
je 0x140005137
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x1400051a4
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x1400051d2
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140041388]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x14000518f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000521c
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x1400051d2
mov eax, dword [rbx]
bt eax, 0x19
jae 0x1400051c3
bt edx, 0x19
jae 0x1400051c3
or edx, eax
jmp 0x1400051c9
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x1400050c0
mov ebx, 1
lea rdi, [0x140041388]
test r10, r10
je 0x140005266
bt edx, 0x19
jae 0x140005220
cmp r11, rcx
jne 0x140005266
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x140005266
xor eax, eax
jmp 0x140005268
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x140005251
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000521c
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140005da0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.14001961c
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.140019160
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
mov edi, 1
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005ebc
cmp eax, 0x102
je 0x140005eaa
cmp eax, 0xffffffff
jne 0x140005eb8
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140005f1f
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x140035d38]
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], edi
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140007aa0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
xor r11d, r11d
mov qword [rsp + 0x28], r11
lea r8, [0x140007400]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140007b10
Capabilities:
Check mutex on windows
Get common file path
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14003c250]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov rsi, rcx
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str._sys.key
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x50]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x40], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x140007be7
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x40]
mov rdx, rsi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019120
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007c50
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x14003c250]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x140043ef0]
xor edx, edx
mov r8d, 0x800
call fcn.14001aa00
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x140043ef0]
mov rcx, rax
mov r8d, 0x800
mov qword [0x1400446f0], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.14001aa00
mov r11, qword [0x140043948]
cmp qword [0x1400446f0], r11
je 0x140007d6c
lea rcx, [0x140043ef0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x140007d5e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x140043ef0]
lea rdx, [0x140035cd0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.140007b10
lea rcx, [0x140043ef0]
xor edx, edx
mov r8d, 0x800
call fcn.14001aa00
mov ebx, 1
mov rcx, qword [0x1400446f0]
mov qword [0x140043948], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140019120
add rsp, 0x870
pop rbx
ret
Function at 0x14000f140
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140011860
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000f150
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140011890
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400117a0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140011860
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140011860
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140011890
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140011890
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400118c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1400118e8
lea r9, [rsp + 0x50]
jmp 0x1400118f2
cmp edx, 1
jne 0x14001193b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14001198e
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x140011db0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x44]
mov rcx, rbx
mov rbp, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, dword [rsp + 0x60]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x40]
cmp rax, rsi
cmovb rax, rsi
xor edx, edx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140011e2e
call fcn.14000f0b0
jmp 0x140011e96
test rsi, rsi
jne 0x140011e41
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x140011e45
mov qword [rdi + 8], rsi
mov edx, dword [rsp + 0x68]
mov rax, qword [rdi + 8]
mov qword [rdi + 0x18], rbp
mov r8d, dword [rdi + 0x1c]
mov r9d, ebp
mov qword [rsp + 0x28], 0
mov dword [rdi + 0x20], edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
jne 0x140011e94
call fcn.14000f0b0
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0
mov eax, ebx
jmp 0x140011e96
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011f80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x140011fc4
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x140011fca
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140011fd2
xor eax, eax
jmp 0x14001204d
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x140012028
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x140012046
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x140012046
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x140012090
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, rcx
mov rcx, qword [rdx + 8]
mov rbx, rdx
xor edx, edx
mov edi, r9d
mov rsi, r8
test rcx, rcx
je 0x1400120e4
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x80
lea r9d, [rdx + 1]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdx
mov r8d, 0x80000000
mov rdx, rax
call fcn.140011c00
jmp 0x14001210e
mov qword [rsp + 0x30], rdx
xor r9d, r9d
mov rcx, rax
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14001212d
call fcn.14000f0b0
test eax, eax
jns 0x140012130
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x140012150
call fcn.14000f0b0
test eax, eax
js 0x1400121a2
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140012190
cmp rax, rdi
ja 0x140012190
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 2
call fcn.140011db0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rax, rax
mov ecx, 0x800700df
mov edx, 0x800703ee
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret