joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140001155
mov r8d, 0x26
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000114c
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001143
xor eax, eax
mov edx, 0xffffffff
mov qword [rsp + 0x50], rax
mov r9d, edx
mov qword [rsp + 0x48], rax
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140001143
cmp dword [rsp + 0x64], 4
jne 0x140001143
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140001143
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400021b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x140002a84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ace
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002ace
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002ace
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002ace
cmp dword [rcx + 0x84], 0xe
jbe 0x140002ace
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002ad0
xor al, al
add rsp, 0x28
ret
Function at 0x140002cd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003af0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003af0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002e70
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d70
mov rcx, rbx
call fcn.140003790
mov rdi, rax
test rax, rax
je 0x140002e92
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e20
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cd0
nop dword [rax]
xor esi, esi
jmp 0x140002d98
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003400
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000345c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003453
test rsi, rsi
je 0x140003453
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003438
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003790
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000380d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003804
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037b0
add rax, 0x28
cmp rax, r9
jne 0x1400037f0
xor eax, eax
ret

Function at 0x140003810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005970]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000382f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003838
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000382f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400038d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140005760
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
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 [0x14000d010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14000591e
cmp byte [rcx + 0x71], 0
je 0x14000591e
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140005ce0]
or edx, 0xffffffff
mov rcx, rdi
call rbx
cmp eax, 0xffffffff
jne 0x1400057c9
xor al, al
jmp 0x140005920
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140005a90
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000583d
sub eax, 1
jne 0x1400058b2
jmp 0x140005841
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000588f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400058bf
cmp byte [rdi + 0x71], 0
je 0x1400058c3
test rbx, rbx
jne 0x140005800
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140002d30
jmp 0x1400057ee
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400058c3
xor bl, bl
jmp 0x1400058c5
mov bl, 1
cmp r9, 0x10
jb 0x140005919
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x140005914
test byte [rbp - 0x30], 0x1f
je 0x1400058e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400058f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140005904
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140005911
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140006170
movzx eax, bl
jmp 0x140005920
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140006570
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002b40
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140020070]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ecx, dword [0x14001c3f0]
mov rbp, qword [str.quake]
mov dword [rsp + 0x268], ecx
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
xor esi, esi
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002c22
mov qword [rsp + 0x290], rbx
movzx ebx, word [rsp + 0x268]
nop word [rax + rax]
lea rax, [rsp + 0x4c]
or rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], si
jne 0x140002bd0
lea rcx, [rsp + 0x4c]
inc rdx
call fcn.140004bdc
cmp qword [rsp + 0x4c], rbp
jne 0x140002bf4
cmp word [rsp + 0x54], bx
je 0x140002c08
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002bc0
jmp 0x140002c1a
lea rcx, str.Find_Quake_r_n
mov esi, 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x290]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400045a0
lea r11, [rsp + 0x280]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004480
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x140022b70], 0
jne 0x1400044aa
lea rcx, [0x140022ba0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x140004400]
mov qword [0x140022c18], rax
mov edx, 0x20
lea ecx, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400044c6
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREFortemedia
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000452f
lea rcx, [rsp + 0x40]
lea rax, [rbx + 0x10]
lea rdx, str.TraceFlag
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140022ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x10]
bt eax, 0x1e
jae 0x14000455c
btr eax, 0x1e
mov dword [rbx + 0x10], eax
lea rax, [0x140004410]
mov qword [0x140022c18], rax
jmp 0x140004569
lea rcx, str.FMAPP:_Debug_function_is_disable_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
inc dword [0x140022b70]
lea rcx, [0x140022ba0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140010d68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140010d94
call fcn.1400051a8
mov dword [rax], 0x16
call fcn.140005df8
jmp 0x140010e9a
mov eax, dword [rcx + 0x18]
test al, 0x83
je 0x140010e9a
test al, 0x40
jne 0x140010e9a
test al, 2
je 0x140010db6
or eax, 0x20
mov dword [rcx + 0x18], eax
jmp 0x140010e9a
or eax, 1
mov dword [rcx + 0x18], eax
test eax, 0x10c
jne 0x140010dca
call fcn.14000dca8
jmp 0x140010dd1
mov rax, qword [rcx + 0x10]
mov qword [rcx], rax
mov rcx, rdi
call fcn.14000d28c
mov r8d, dword [rdi + 0x24]
mov rdx, qword [rdi + 0x10]
mov ecx, eax
call fcn.140011130
mov dword [rdi + 8], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140010e89
test byte [rdi + 0x18], 0x82
jne 0x140010e57
mov rcx, rdi
call fcn.14000d28c
cmp eax, 0xffffffff
je 0x140010e42
mov rcx, rdi
call fcn.14000d28c
cmp eax, 0xfffffffe
je 0x140010e42
mov rcx, rdi
call fcn.14000d28c
mov rcx, rdi
lea rsi, [0x140022500]
movsxd rbx, eax
sar rbx, 5
call fcn.14000d28c
and eax, 0x1f
imul rax, rax, 0x58
add rax, qword [rsi + rbx*8]
jmp 0x140010e49
lea rax, [0x140020b70]
mov al, byte [rax + 8]
and al, 0x82
cmp al, 0x82
jne 0x140010e57
bts dword [rdi + 0x18], 0xd
cmp dword [rdi + 0x24], 0x200
jne 0x140010e76
test byte [rdi + 0x18], 8
je 0x140010e76
test dword [rdi + 0x18], 0x400
jne 0x140010e76
mov dword [rdi + 0x24], 0x1000
mov rcx, qword [rdi]
add dword [rdi + 8], 0xfffffffe
movzx eax, word [rcx]
add rcx, 2
mov qword [rdi], rcx
jmp 0x140010e9f
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [rdi + 0x18], eax
and dword [rdi + 8], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180006540
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov ecx, 0xb0
lea rdx, [0x1800f7c10]
call fcn.1800d6d14
mov rbx, rax
test rax, rax
je 0x18000678a
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov qword [0x1801635a0], rbx
movups xmmword [rbx + 0xa0], xmm0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 0x20
lea rbx, str.1126231782665228298
mov qword [rsp + 0x20], rax
mov r8, rbx
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180005390
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x180141fc0]
mov dword [0x1801635a8], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180006612
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rdi, rdi
je 0x180006632
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x180163470], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [0x180163480], xmm1
jmp 0x180006652
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x180163470], xmm0
movups xmmword [0x180163480], xmm0
movups xmmword [0x180163490], xmm0
lea rcx, [0x180141fc0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x1801636b0], xmm0
movups xmmword [0x1801636c0], xmm0
movups xmmword [0x1801636d0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x1801676e8], 0
jne 0x180006793
mov r8d, 1
lea rax, [0x18013eff8]
mov edx, r8d
mov qword [0x1801678f0], rax
sub rdx, rbx
lea rcx, [0x180167910]
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x1800066dc
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x1800066c2
mov rdi, qword [0x1801635a0]
lea rax, [0x1801678f0]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x1801676e8], rax
lea rax, [0x180006c40]
mov qword [0x180167900], rax
lea rax, [0x180006c50]
mov qword [0x180167908], rax
xchg byte [rdi], r8b
call fcn.1800d6924
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x180007110]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000677a
cmp dword [rdi + 0xa8], ebx
je 0x18000675d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x1801635a0], rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180006e60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rbx, rcx
movsd xmm6, qword [0x18011ada8]
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
movsd xmm1, qword [0x18011ac40]
movabs rax, 0x8000000000000000
divsd xmm1, xmm0
xorps xmm0, xmm0
cvttsd2si rcx, xmm1
cmp rcx, rax
je 0x180006eca
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
ucomisd xmm0, xmm1
je 0x180006eca
unpcklpd xmm1, xmm1
movmskpd eax, xmm1
xorps xmm1, xmm1
and eax, 1
xor eax, 1
add rcx, rax
cvtsi2sd xmm1, rcx
movsd xmm2, qword [0x18011ab98]
mov ecx, 1
cvttsd2si eax, xmm1
xorps xmm1, xmm1
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x1800070f9
mov r8d, dword [rbx]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
movabs r14, 0x38eb3ffff6d3
mov edi, eax
nop word [rax + rax]
cmp r8d, 0x138
jne 0x180006f82
lea r8, [rbx + 0x10]
mov r9d, 0x138
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180006f40
mov r8d, dword [rbx]
jmp 0x180007068
cmp r8d, 0x270
jb 0x180007068
lea r10, [rbx + 0x9c8]
mov r11d, 0x9c
mov rax, qword [r10]
nop
mov rdx, qword [r10 + 8]
lea r8, [r10 + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 - 0x9c0], rcx
lea r10, [r8]
sub r11, 1
jne 0x180006fa0
lea r10, [rbx + 0xea8]
mov r11d, 0x9b
mov rax, qword [r10]
nop
mov rdx, rax
lea r8, [r10 + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r10 - 0xea0]
xor rcx, rdx
mov qword [r10 - 0x9c0], rcx
lea r10, [r8]
sub r11, 1
jne 0x180006ff0
mov edx, dword [rbx + 0x1380]
mov r8d, ebp
xor edx, dword [rbx + 8]
btr edx, 0x1f
xor rdx, qword [rbx + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx + 0x9c0], rcx
mov dword [rbx], ebp
mov eax, r8d
xorps xmm0, xmm0
inc r8d
mov rcx, qword [rbx + rax*8 + 8]
mov rax, rcx
mov dword [rbx], r8d
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, r14
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x1800070ba
cvtsi2sd xmm0, rdx
jmp 0x1800070cf
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, xmm2
mulsd xmm2, xmm6
addsd xmm1, xmm0
sub rdi, 1
jne 0x180006f20
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x20]
divsd xmm1, xmm2
movaps xmm0, xmm1
add rsp, 0x30
pop rbx
ret
Function at 0x180007610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x1801676e8]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x1800076eb
mov rax, qword [rdi]
test rax, rax
je 0x18000769b
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000769b
test rsi, rsi
je 0x18000769b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18000769b
cmp dword [rsp + 0x40], ebx
je 0x1800076eb
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1800076ba
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x1800076ba
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000cbe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0xffffffff
test edx, edx
je 0x18000cc1e
mov r9d, edx
lea r10, [0x180111250]
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rcx]
lea rcx, [rcx + 2]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx edx, r8b
xor eax, dword [r10 + rdx*4]
sub r9, 1
jne 0x18000cc00
not eax
ret