joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006e9d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x18006ea8c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x18006ea8c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x18004aa4e.0]
cmp eax, 0xffffffff
je 0x18006ea8a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x18004aa4e.0]
cmp eax, 3
je 0x18006eaa3
cmp eax, 1
je 0x18006ea59
test eax, eax
jne 0x18006ea8a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x18006ea80
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18006ea8a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x18006ea8c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004bde0
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
jmp 0x18006ea8c

Function at 0x180072330
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp byte [rcx + 0x48], 0
je 0x180072339
ret
cmp qword [rcx + 0x10], 0
je 0x1800723e7
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x180072351
mov rax, qword [rcx]
xor edx, edx
mov r8d, edx
movzx r9d, byte [rax]
rol edx, 5
xor edx, r9d
imul edx, edx, 0x9e3779b9
inc rax
test r9d, r9d
jne 0x180072353
imul eax, r8d, 0x9e3779b9
movzx edx, byte [rcx + 0x20]
rol eax, 5
xor eax, edx
imul eax, eax, 0x9e3779b9
mov rdx, qword [rcx + 0x28]
rol eax, 5
xor eax, edx
imul eax, eax, 0x9e3779b9
rol eax, 5
shr rdx, 0x20
xor eax, edx
imul eax, eax, 0x9e3779b9
mov edx, eax
rol edx, 5
xor edx, dword [rcx + 0x30]
imul edx, edx, 0x9e3779b9
cmp byte [rcx + 0x34], 0
cmove edx, eax
mov eax, edx
rol eax, 5
xor eax, dword [rcx + 0x38]
imul eax, eax, 0x9e3779b9
cmp byte [rcx + 0x3c], 0
cmove eax, edx
cmp byte [rcx + 0x44], 0
je 0x180072338
rol eax, 5
xor eax, dword [rcx + 0x40]
imul eax, eax, 0x9e3779b9
jmp 0x180072338
xor eax, eax
jmp 0x180072375
Function at 0x180073470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx]
test rax, rax
je 0x1800734fe
mov qword [rsi], 0
mov rbx, qword [rdi + 8]
mov qword [rdi + 8], rax
test rbx, rbx
jne 0x180073534
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
test rbx, rbx
jne 0x180073549
mov rax, qword [rdi + 8]
test rax, rax
je 0x180073519
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov cx, 1
mov word [rax + 0x18], cx
movups xmmword [rax + 0x20], xmm0
mov word [rax + 0x30], cx
movups xmmword [rax + 0x3c], xmm0
mov rax, qword [rdi + 8]
mov eax, dword [rax + 0x38]
mov dword [rdi + 0x18], eax
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
jne 0x18007351d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rdi + 8]
test rax, rax
jne 0x1800734bb
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
mov qword [rdi + 8], rax
jmp 0x1800734b6
xor eax, eax
jmp 0x1800734e4
mov rcx, rdi
call fcn.180062a80
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.mozglue.dll__aligned_free
mov rcx, rbx
call fcn.180062a80
mov rcx, rbx
call sym.mozglue.dll__aligned_free
jmp 0x18007349d
mov rcx, rbx
call fcn.180062a80
mov rcx, rbx
call sym.mozglue.dll__aligned_free
jmp 0x1800734b2

Function at 0x180073ba0
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 [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x1800a80a4]
mov ecx, dword [0x1800a64f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x180073c44
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x180073c20
mov rdi, qword [rsi + 8]
shl rbx, 4
add rbx, rdi
mov r15d, dword [0x1800a80a0]
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 0x180073c07
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004bde0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1800a80a4]
call fcn.18004a800
cmp dword [0x1800a80a4], 0xffffffff
jne 0x180073be0
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x1800a80a0], eax
lea rcx, [0x1800a80a4]
call fcn.18004a7a0
jmp 0x180073be0
Function at 0x180078c10
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
xor esi, esi
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180078ca3
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea r8, str.AppsUseLightTheme
mov rcx, rdi
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
or eax, dword [rsi]
sete sil
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004bde0
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x180079670
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r9
mov r12, r8
mov r14, rdx
mov r15, rcx
mov r13d, dword [rsp + 0x90]
lea eax, [r13 + r13]
cdqe
mov ecx, 8
mul rcx
mov rbx, 0xffffffffffffffff
cmovno rbx, rax
mov rcx, rbx
call sym.mozglue.dll_moz_xmalloc
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
test r13d, r13d
jle 0x1800796f2
mov eax, r13d
shl rax, 4
xor ecx, ecx
movsd xmm0, qword [rsi + rcx]
movsd qword [rdi + rcx], xmm0
movsd xmm0, qword [rsi + rcx + 8]
movsd qword [rdi + rcx + 8], xmm0
add rcx, 0x10
cmp rax, rcx
jne 0x1800796d3
shl r13d, 4
cmp qword [r12 + 0x18], 8
jb 0x180079702
mov r12, qword [r12]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov rdx, r12
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x18007974d
mov dword [r15], 8
xor eax, eax
mov byte [r15 + 5], al
mov rcx, rdi
call sym.mozglue.dll__aligned_free
mov rax, r15
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov al, 1
jmp 0x18007972e

Function at 0x180079760
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp byte [0x1800a82b8], 0
je 0x18007979e
lea rcx, str.MOZ_SKELETON_UI_RESTARTING
lea rdx, [0x18009b2a6]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [0x1800a6240]
mov dil, 1
cmp rcx, 0xffffffffffffffff
je 0x1800797a6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800797a6
mov dword [rsi], 2
xor edi, edi
mov byte [rsi + 5], dil
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1800797c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 8
jb 0x1800797f1
mov r8, qword [r8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdx
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, 8
test eax, eax
jne 0x18007982c
mov ecx, dword [rsp + 0x44]
setne byte [rsi + 4]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004bde0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x180079850
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
cmp qword [r8 + 0x18], 8
mov rdx, r8
jb 0x180079897
mov rdx, qword [rbx]
lea r12, [rsp + 0x54]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800798f4
mov byte [r15 + 0x18], 1
mov dword [r15], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004bde0
mov rax, r15
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, dword [rsp + 0x54]
test sil, 0xf
je 0x18007990c
mov byte [r15 + 0x18], 1
mov dword [r15], 0xe
jmp 0x1800798c9
add rsi, rsi
mov rcx, rsi
call sym.mozglue.dll_malloc
test rax, rax
je 0x18007997a
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
jb 0x180079936
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 8
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x18007998b
mov byte [r15 + 0x18], 1
mov dword [r15], 8
mov rcx, r14
call sym.mozglue.dll__aligned_free
jmp 0x1800798c9
mov byte [r15 + 0x18], 1
mov dword [r15], 4
jmp 0x1800798c9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], 0x10
mov ecx, dword [rsp + 0x54]
cmp ecx, 0x10
jae 0x1800799b8
movups xmmword [r15 + 8], xmm0
mov byte [r15 + 0x18], 0
mov qword [r15], 0x10
jmp 0x18007996d
mov eax, 0x10
xor edx, edx
lea r12, [rsp + 0x38]
xor esi, esi
mov rbx, r14
movsd xmm6, qword [rbx]
movsd xmm7, qword [rbx + 8]
cmp rdx, qword [rsp + 0x48]
je 0x180079a08
shl rdx, 4
movsd qword [rax + rdx], xmm6
movsd qword [rax + rdx + 8], xmm7
mov rdx, qword [rsp + 0x40]
inc rdx
mov qword [rsp + 0x40], rdx
inc rsi
mov edi, ecx
shr edi, 4
add rbx, 0x10
cmp rsi, rdi
jb 0x1800799c9
jmp 0x180079a24
mov rcx, r12
call fcn.18007a190
test al, al
je 0x180079a48
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
jmp 0x1800799d9
mov rcx, qword [rsp + 0x48]
mov byte [r15 + 0x18], 0
mov qword [r15 + 8], rdx
mov qword [r15 + 0x10], rcx
cmp rax, 0x10
je 0x1800799af
mov qword [r15], rax
jmp 0x18007996d
mov byte [r15 + 0x18], 1
mov dword [r15], 4
mov rcx, qword [rsp + 0x38]
cmp rcx, 0x10
je 0x18007996d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18007996d
Function at 0x18007a060
Capabilities:
Print debug messages

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x858
mov r14, rcx
mov qword [rsp + 0x888], rdx
mov qword [rsp + 0x890], r8
mov qword [rsp + 0x898], r9
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x850], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x18007a104
lea rdi, [rsp + 0x888]
mov qword [rsp + 0x28], rdi
lea rbx, [rsp + 0x30]
mov rcx, rbx
call sym.mozglue.dll_protected:_void___cdecl_mozilla::PrintfTarget::constructor_void____ptr64
lea rax, [0x180093b78]
mov qword [rbx], rax
lea rsi, [rsp + 0x50]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0x800
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call sym.mozglue.dll_public:_bool___cdecl_mozilla::PrintfTarget::vprint_char_const____ptr64__char____ptr64____ptr64
mov rax, qword [rbx + 8]
mov ecx, 0x7ff
cmp rax, rcx
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
cmp eax, 0xfffffffe
je 0x18007a16e
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x180097479]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x18007a16e
mov rdi, rax
lea rsi, [rsp + 0x888]
mov qword [rsp + 0x50], rsi
call fcn.180005d70
mov rcx, qword [rax]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov r8, r14
xor r9d, r9d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18004bde0
nop
add rsp, 0x858
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x18007b760
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1800a8564]
mov ecx, dword [0x1800a64f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x18007b790
mov al, byte [0x1800a8562]
add rsp, 0x28
ret
lea rcx, [0x1800a8564]
call fcn.18004a800
cmp dword [0x1800a8564], 0xffffffff
jne 0x18007b785
lea rcx, str.MOZ_DISABLE_WALKTHESTACK
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18007b7d1
cmp byte [rax], 0
sete al
mov byte [0x1800a8562], al
lea rcx, [0x1800a8564]
call fcn.18004a7a0
jmp 0x18007b785
mov al, 1
jmp 0x18007b7bd
Function at 0x18007ef90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x18007f0bc
mov rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x18007f0b3
mov rbx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov qword [rsp + 0x20], 0x40
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x18007f0d8
mov r14, rax
mov ebp, dword [rax + 0x3c]
lea r15, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, ebp
xor edx, edx
div dword [r15 + 0x28]
mov r15d, edx
sub ebp, edx
lea rax, [r15 + 0x108]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov edx, 4
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x18007f0a1
mov edi, dword [rax + r15 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18004bde0
mov eax, edi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x18007f0b3
Function at 0x18007f0f0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rbx, rdx
mov r14, rcx
mov rax, qword [str.LoadLibraryA]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, rdx
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x18007f1bd
mov ebp, eax
mov esi, eax
mov rcx, rsi
call sym.mozglue.dll_moz_xmalloc
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18007f1de
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea rdx, [0x18009b204]
lea r9, [rsp + 0x34]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18007f1ff
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rcx, 0x20
or rax, rcx
mov qword [r14], rax
mov dword [r14 + 8], 0
mov rcx, rdi
call sym.mozglue.dll__aligned_free
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18004bde0
mov rax, r14
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov qword [r14], 0
mov dword [r14 + 8], ecx
jmp 0x18007f1a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov qword [r14], 0
mov dword [r14 + 8], ecx
jmp 0x18007f19a
xor eax, eax
jmp 0x18007f18f

Function at 0x18007f830
Capabilities:
Get number of processors

Disassembly:
test rcx, rcx
je 0x18007ee1c
lea rax, [0x1800a6280]
mov qword [rcx + 8], rax
lea rcx, [0x1800a6260]
jmp 0x18007f830
ret
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
lea rbx, [rcx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rsi, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
mov byte [rdi + 0x18], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rsi, rsi
je 0x18007f929
mov rdi, qword [rsi]
mov rax, qword [rsi + 8]
test rax, rax
jle 0x18007f8f9
lea rbx, [rax + rax*2]
shl rbx, 5
add rbx, rdi
add rdi, 0x28
mov r8, qword [rdi + 0x18]
cmp r8, 8
je 0x18007f8aa
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call sub.ntdll.dll_RtlFreeHeap
cmp qword [rdi + 8], 0
je 0x18007f8c7
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rdi], 0
mov qword [rdi + 8], 0
cmp qword [rdi - 8], 0
je 0x18007f8e6
lea rcx, [rdi - 0x10]
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rdi - 0x10], 0
mov qword [rdi - 8], 0
lea rax, [rdi + 0x60]
add rdi, 0x38
cmp rdi, rbx
mov rdi, rax
jb 0x18007f888
mov rdi, qword [rsi]
cmp rdi, 0x60
je 0x18007f91a
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, rdi
call sub.ntdll.dll_RtlFreeHeap
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.mozglue.dll__aligned_free
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140162df6
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rbp + rbx*8 + 0x20]
push 0x76ac6f03
call fcn.140160c49
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jmp 0x140167a30
lea rsp, [rsp + 8]
jne 0x14014ed08
mov r8, rax
call fcn.14014bbae
mov dword [r9], esi
push 0xffffffffa8ae5698
jmp 0x140143f9a
push 0x53bc6a8
cmp ebx, 3
jmp 0x1401426e1
lea rsp, [rsp + 8]
jmp 0x14015d295
pop r8
pop r9
not esi
jmp 0x140156524
push 0x469c9ca4
push 0x128b872d
cmp ebx, 4
lea rsp, [rsp + 0x10]
jne 0x140138076
mov r9d, 0xa902fb85
call fcn.14014531c
jmp 0x140142e22
lea rsp, [rsp + 0x18]
jne 0x140143314
call fcn.140158cd4
lea rsp, [rsp + 0x18]
je 0x14014b6b4
push 0x680d8c1d
mov qword [rsp], r9
push r8
mov r9d, 0xc3bfe3ab
xor r9b, r9b
lea r9, [0x14016cf18]
mov r8d, 0x7b9b1411
bswap r8d
movzx r8d, byte [r8 + rdi - 0x11149b7b]
push 0x72056892
xor r8d, esi
and r8d, 0xff
mov r8d, dword [r9 + r8*4]
shr esi, 8
push 0x16a7c68b
sar word [rsp + 6], 0x6b
xor esi, r8d
inc rdi
xor esi, 0xb225cb0d
dec rax
lea rsp, [rsp + 0x10]
jne 0x140162e2c
jmp 0x14014b6b0
lea rsp, [rsp + 0x30]
jmp 0x140165f22
Function at 0x1806be058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806be1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1806be089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806be06f
add dl, dl
jne 0x1806be096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806be0f6
xor eax, eax
add dl, dl
jne 0x1806be0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806be1ad
add dl, dl
jne 0x1806be0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806be0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806be0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806be0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806be0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1806be07e
mov eax, 1
add dl, dl
jne 0x1806be106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806be113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806be0fb
sub eax, ebx
mov ebx, 1
jne 0x1806be14c
mov ecx, 1
add dl, dl
jne 0x1806be12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806be13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806be123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806be07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1806be168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806be175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806be15d
cmp eax, 0x7d00
jae 0x1806be19b
cmp eax, 0x500
jb 0x1806be196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806be07e
cmp eax, 0x7f
ja 0x1806be19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806be07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806be1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1806be07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400022f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov byte [rbp - 0x30], 0xbc
xor r10d, r10d
mov byte [rbp - 0x2f], 0xb9
movabs rdi, 0x383b5b9f9dcdc7ea
mov byte [rbp - 0x2e], Ordinal_200
mov r11, rdi
mov byte [rbp - 0x2d], 0xbd
mov rbx, rcx
mov byte [rbp - 0x2c], 0x98
lea esi, [r10 + 0xf]
mov byte [rbp - 0x2b], 0x86
mov byte [rbp - 0x2a], 0xc9
mov byte [rbp - 0x29], 0xca
mov byte [rbp - 0x28], reloc.WLDAP32.dll_Ordinal_200
mov byte [rbp - 0x27], 0x99
mov byte [rbp - 0x26], 0x9b
mov byte [rbp - 0x25], 0xc9
mov byte [rbp - 0x24], 0xca
mov byte [rbp - 0x23], reloc.WLDAP32.dll_Ordinal_217
mov byte [rbp - 0x22], 0xc4
mov byte [rbp - 0x21], 0xce
mov byte [rbp - 0x20], Ordinal_200
mov byte [rbp - 0x1f], 0xc1
mov byte [rbp - 0x1e], Ordinal_217
mov byte [rbp - 0x1d], Ordinal_200
mov byte [rbp - 0x1c], 0xc4
mov byte [rbp - 0x1b], __WSAFDIsSet
mov byte [rbp - 0x1a], Ordinal_60
mov byte [rbp - 0x19], 0x25
mov byte [rbp - 0x18], 0x35
mov byte [rbp - 0x17], reloc.WLDAP32.dll_Ordinal_60
mov byte [rbp - 0x16], 0x3d
mov byte [rbp - 0x15], gethostname
mov byte [rbp - 0x14], reloc.WLDAP32.dll_Ordinal_32
mov byte [rbp - 0x13], 0x66
mov byte [rbp - 0x12], 0x33
mov byte [rbp - 0x11], 0x68
mov byte [rbp - 0x10], 0x33
mov byte [rbp - 0xf], 0x66
mov byte [rbp - 0xe], WSAGetLastError
mov byte [rbp - 0xd], 0x33
mov byte [rbp - 0xc], 0x33
mov byte [rbp - 0xb], Ordinal_50
mov byte [rbp - 0xa], Ordinal_50
mov byte [rbp - 9], Ordinal_50
mov byte [rbp - 8], Ordinal_46
mov byte [rbp - 7], 0x67
mov byte [rbp - 6], Ordinal_32
movzx eax, byte [rbp - 0x30]
lea rax, [rbp - 0x30]
sub r11, rax
nop word [rax + rax]
mov rcx, r10
lea r8, [rbp - 0x30]
add r8, r10
and ecx, esi
cmp rcx, rsi
mov rdx, rdi
cmovae rcx, rsi
movzx r9d, byte [r8]
lea eax, [r8 + r11]
shl cl, 2
shr rdx, cl
and dl, sil
xor dl, al
xor dl, r9b
mov byte [rbp + r10 - 0x30], dl
inc r10
cmp r10, 0x2b
jb 0x1400023e0
mov qword [rsp + 0x30], 0
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r11, [rsp + 0x70]
mov qword [rbx], rax
mov rbx, qword [r11 + 0x10]
cmp rax, 0xffffffffffffffff
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
setne al
mov rsp, r11
pop rbp
ret