joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015d90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r15, r9
mov rbp, r8
mov r13, rdx
mov rbx, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x140044f64]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015f00
xor esi, esi
test r13, r13
je 0x140015ed9
cmp r15, rbp
jbe 0x140015ed9
mov r12d, dword [0x140044f60]
lea rsi, [rsp + 0x44]
mov dword [rsi], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand_s]
mov rax, r15
sub rax, rbp
sub rax, r13
xor edx, edx
div r12
mov rcx, rax
mov eax, dword [rsi]
inc rcx
xor edx, edx
div rcx
mov rdi, rdx
imul rdi, r12
mov qword [rsp + 0x30], rbp
add rdi, rbp
sub r15, r13
cmp rdi, r15
mov qword [rsp + 0x38], rbx
ja 0x140015f62
lea rsi, [rsp + 0x48]
lea rbp, [rsp + 0x50]
lea r14, [r12 - 1]
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x30
mov rcx, rbx
xor r8d, r8d
mov r9, rbp
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001600b
cmp qword [rsp + 0x48], 0x30
jne 0x140016019
mov r9, rbp
mov r8, rsi
cmp dword [rsp + 0x70], 0x10000
jne 0x140015f41
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rcx, rdx
neg rcx
and rcx, r14
lea rbp, [rcx + rdx]
mov rax, rbx
sub rax, rcx
cmp rax, r13
mov esi, 0
cmovae rsi, rbp
cmp rbx, rcx
jb 0x140015f4b
test rsi, rsi
je 0x140015f4b
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001d520
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140044f64]
call fcn.14001c180
cmp dword [0x140044f64], 0xffffffff
jne 0x140015de6
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 0x28]
mov dword [0x140044f60], eax
lea rcx, [0x140044f64]
call fcn.14001c120
jmp 0x140015de6
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rdx, rbx
cmp rdx, r15
mov rbx, qword [rsp + 0x38]
mov rsi, r8
mov rbp, r9
jbe 0x140015e62
cmp rdi, qword [rsp + 0x30]
jbe 0x140016019
dec r12
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x50]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor r8d, r8d
mov r9, r15
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001600b
cmp qword [rsp + 0x48], 0x30
jne 0x140016019
cmp dword [rsp + 0x70], 0x10000
jne 0x140015fee
mov rax, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
mov rcx, rax
neg rcx
and rcx, r12
mov rbx, rax
lea rdx, [rcx + rax]
mov rax, rbp
sub rax, rcx
cmp rax, r13
mov esi, 0
cmovae rsi, rdx
cmp rbp, rcx
jb 0x140015ff8
test rsi, rsi
je 0x140015ff8
jmp 0x140015ed9
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rbx, rbp
mov qword [rsp + 0x30], rbx
cmp rbx, rdi
jb 0x140015f7a
jmp 0x140016019
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x140015ed9
Function at 0x140019140
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140044f50]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140019190
mov esi, dword [0x140044f4c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d520
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140044f50]
call fcn.14001c180
cmp dword [0x140044f50], 0xffffffff
jne 0x140019175
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c120
jmp 0x140019175
Function at 0x14001ec00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001ec37
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001ec37
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001ec37
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x14001ec36

Function at 0x14001f980
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001f9bf
call fcn.14001fad0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d520
nop
add rsp, 0x60
pop rsi
ret
movaps xmm0, xmmword [0x14003b090]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140044ed8], 0
jne 0x14001f9fd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140044ed8], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140044f28]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140044eb8]
mov qword [r8 + 8], rsi
lea rax, [0x14003b9e1]
mov qword [r8 + 0x10], rax
lea rax, [0x1400387e0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140044f30]
lea rdx, [0x140038880]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001f9a6
cmp qword [rsp + 0x28], 0
je 0x14001f9a6
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140044f38]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x14003b9d1]
mov qword [r8 + 0x10], rax
lea rax, [0x140038810]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140044f40]
lea rdx, [0x140038880]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001f9a6
cmp qword [rsp + 0x28], 0
jne 0x14001f9ab
jmp 0x14001f9a6
Function at 0x1400224d0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.140022790
test rdi, rdi
je 0x140022534
test al, al
je 0x140022534
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x140022534
test rcx, rcx
js 0x140022534
cmp qword [rsi + 0x10], rax
jb 0x140022534
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400227a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400227a0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r9
mov r15, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
mov ebp, edx
sar ebp, 0x1f
lea r12d, [rax + rax]
add r12d, 4
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x140022855
mov rdi, qword [rsp + 0xc0]
lea rsi, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsi + 0x18]
sub rcx, rbx
add rcx, qword [rsi + 8]
test rax, rax
cmove rcx, rax
mov qword [rdi], rcx
mov sil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d520
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, ebp
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x140022800
xor esi, esi
jmp 0x140022837

Function at 0x140025080
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140043038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400250b0
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400250b0
mov rax, qword [rax + rcx]
jmp 0x1400250b2
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14002d200
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r15, qword [rsp + 0xc8]
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r15], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14002d2df
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x14002d265
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14002d2fa
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
lea r14, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r14]
mov qword [r15], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001d520
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x14002d2d0

Function at 0x14002f8b0
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rsi
mov rdx, rax
call fcn.140009740
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14002f91a
mov eax, edi
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140031fe0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jae 0x14003203a
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001d520
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
xor r12d, r12d
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 8
jb 0x14003208f
mov r9, qword [r9]
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 8
jb 0x1400320aa
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 8
jb 0x1400320c3
mov rsi, qword [rsi]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140032197
cmp edi, 6
mov r12d, 0x1fffff
mov esi, 0x101c01
cmove esi, r12d
mov r13, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r13
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400321ae
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
mov rsi, qword [rbx + 8]
add rbx, 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rsi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x140032014
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x140032014
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140032197
Function at 0x1400321c0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140032258
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140037ce0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140008820
test al, al
je 0x140037d02
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140039530
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140044f50]
mov ecx, dword [0x1400431a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400395d4
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x1400395b0
mov rdi, qword [rsi + 8]
shl rbx, 4
add rbx, rdi
mov r15d, dword [0x140044f4c]
lea r14, [rsp + 0x20]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rdi]
mov rcx, qword [rdi + 8]
mov rdx, r15
mov r9, r14
call r12
add rdi, 0x10
cmp rdi, rbx
jne 0x140039597
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001d520
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140044f50]
call fcn.14001c180
cmp dword [0x140044f50], 0xffffffff
jne 0x140039570
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140044f4c], eax
lea rcx, [0x140044f50]
call fcn.14001c120
jmp 0x140039570
Function at 0x140004cd0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [rdx + 8]
mov r10, qword [rdx]
xor r8d, r8d
add eax, eax
mov r9d, 0x1505
movsxd rdx, eax
test eax, eax
jle 0x140004cfc
movzx ecx, byte [r8 + r10]
imul r9d, r9d, 0x21
inc r8
add r9d, ecx
cmp r8, rdx
jl 0x140004ce8
mov eax, r9d
ret

Function at 0x14001b5fc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
cmp byte [rcx + 0x20], 0
mov r10, r9
mov r11, r8
mov rbx, rdx
jne 0x14004f3b8
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.14002b024
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
imul r10d, r11d
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rsp + 0x30]
jmp 0x14001b62e
Function at 0x14006e960
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002652c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.1400265f0
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14006e9ef
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14006e9e2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x140074b68
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r14, rdx
mov r15, rcx
mov byte [0x1400e451f], dil
test ebx, ebx
je 0x140074bde
mov byte [0x1400e4520], 1
call qword [0x1400aa2f0]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x1400750a4]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400281c0
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r14
mov rcx, r15
call qword [0x1400aae08]
mov ebx, eax
test rdi, rdi
je 0x140074c13
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400e4520], 0
call qword [0x1400aa2c8]
mov rcx, rdi
call qword [0x1400aa418]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400e451f], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14007953c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [reloc.WSOCK32.dll_accept]
jne 0x14007954d
call fcn.140079638
mov rax, qword [0x1400e7180]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret

Function at 0x140079590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [reloc.WSOCK32.dll_accept]
jne 0x1400795a1
call fcn.140079638
mov rax, qword [0x1400e7180]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400d1e88]
add rsp, 0x28
ret
Function at 0x1400795f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400e67c0], ecx
lea rdx, [0x1400e67c4]
mov ecx, r8d
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
cmp ecx, 0x270
jl 0x140079606
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400e67a8], r8d
ret

Function at 0x140079638
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e67a8], 0
lea rbx, [0x1400e67c0]
jne 0x14007965d
xor ecx, ecx
call fcn.14002abd4
mov rcx, rax
call fcn.1400795f0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400e7180], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
dec r9d
jne 0x140079680
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
mov dword [rbx], edx
lea rbx, [r8]
dec r9d
jne 0x1400796b0
mov ecx, dword [0x1400e67c0]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400855a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x420
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rdx, [0x1400d0748]
call fcn.14002ac34
mov rdi, rax
test rax, rax
jne 0x1400855dd
lea edx, [rax + 0x1f]
jmp 0x140085657
mov dword [rsp + 0x430], 1
lea r9, [rsp + 0x430]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rsi
call qword [0x1400aaf70]
test eax, eax
je 0x140085652
mov eax, dword [rsp + 0x430]
test eax, eax
je 0x140085637
lea rcx, [rsp + 0x20]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140028db0
mov ecx, dword [rsp + 0x430]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x1400855e8
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x140085648
mov edx, SafeArrayDestroyDescriptor
jmp 0x14008565a
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140085663
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.1400857d8
mov bl, al
test rdi, rdi
je 0x140085677
mov rcx, rdi
call fcn.14002ad9c
lea r11, [rsp + 0x420]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140085adc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x140085b42
test dl, dl
je 0x140085b42
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x140085b10
call qword [0x1400aa418]
mov qword [rdi + 0x190], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x1400aa588]
lea rcx, [0x140085b90]
mov r8, rdi
xor edx, edx
mov qword [rdi + 0x190], rax
call fcn.14002b6b8
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x140085b47
call fcn.1400847c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008ba1c
Capabilities:
Hash data with crc32

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 r14
mov esi, dword [rsp + 0x30]
mov ebp, r9d
mov eax, r9d
shl eax, 2
mov edi, r8d
or r10d, 0xffffffff
imul ebp, dword [rsp + 0x30]
movsxd rbx, eax
shl ebp, 2
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl esi, 2
lea r14, [0x1400ccec0]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x14008bab8
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14008ba66
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret