joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032210
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x14011a288]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x270]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 8], 0xffffffff
mov rcx, qword [rsp + 0x30]
call fcn.140034950
mov qword [rsp + 0x40], rax
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x1400322db
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0xc], 0xffffffff
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x270]
mov r9d, eax
lea r8, str.GetVolumePathName_failed:__d
mov edx, 0xffffffff
call fcn.14000a870
mov eax, 0xffffffe7
jmp 0x1400323b7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jb 0x140032336
cmp dword [rsp + 0x38], 1
jbe 0x14003230c
cmp dword [rsp + 0x38], 4
je 0x140032321
jmp 0x140032336
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0xc], 0xffffffff
jmp 0x140032349
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0xc], 1
jmp 0x140032349
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
add rax, 0x10
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x1400323b5
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x378]
mov dword [rax + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x270]
mov r9d, eax
lea r8, str.GetDiskFreeSpace_failed:__d
mov edx, 0xffffffff
call fcn.14000a870
mov eax, 0xffffffe7
jmp 0x1400323b7
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400f0970
add rsp, 0x268
ret
Function at 0x1400414d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, 0xffffffff
cmp qword [rsp + 0x70], rax
jbe 0x1400414f8
mov eax, 0xffffffff
mov qword [rsp + 0x70], rax
cmp dword [rsp + 0x60], 0
jge 0x140041517
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
mov rax, 0xffffffffffffffff
jmp 0x1400415c2
cmp qword [rsp + 0x70], 0
jne 0x140041526
xor eax, eax
jmp 0x1400415c2
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1400415be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xe8
jne 0x14004158c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xb
mov rax, 0xffffffffffffffff
jmp 0x1400415c2
cmp dword [rsp + 0x30], 0x6d
jne 0x140041597
xor eax, eax
jmp 0x1400415c2
cmp dword [rsp + 0x30], 5
jne 0x1400415ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
jmp 0x1400415b5
mov ecx, dword [rsp + 0x30]
call fcn.140041ed0
mov rax, 0xffffffffffffffff
jmp 0x1400415c2
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x140041920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov eax, 0xffffffff
cmp qword [rsp + 0x60], rax
jbe 0x140041948
mov eax, 0xffffffff
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x50], 0
jge 0x140041964
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
mov rax, 0xffffffffffffffff
jmp 0x1400419c8
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400419c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 5
jne 0x1400419b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
jmp 0x1400419bb
mov ecx, dword [rsp + 0x30]
call fcn.140041ed0
mov rax, 0xffffffffffffffff
jmp 0x1400419c8
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x1400609f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp], 0xa
mov eax, dword [rsp]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
div rcx
mov qword [rsp + 0x18], rax
mov eax, dword [rsp]
mov qword [rsp + 0x28], rax
xor edx, edx
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x28]
div rcx
mov rax, rdx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 0x20
je 0x140060a5d
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 9
jne 0x140060a85
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x58]
dec eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x10], 0
jbe 0x140060a85
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x140060a43
mov qword [rsp + 8], 0
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
sub eax, 0x30
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
cmp eax, 0x30
jl 0x140060b3e
mov eax, dword [rsp]
cmp dword [rsp + 4], eax
jae 0x140060b3e
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x58]
dec eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x14], 0
jbe 0x140060b3e
mov rax, qword [rsp + 0x18]
cmp qword [rsp + 8], rax
ja 0x140060af7
mov rax, qword [rsp + 0x18]
cmp qword [rsp + 8], rax
jne 0x140060b02
mov eax, dword [rsp + 4]
cmp rax, qword [rsp + 0x30]
jbe 0x140060b02
mov qword [rsp + 8], 0xffffffffffffffff
jmp 0x140060b3e
mov eax, dword [rsp]
mov rcx, qword [rsp + 8]
imul rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 4]
add rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
sub eax, 0x30
mov dword [rsp + 4], eax
jmp 0x140060a9d
mov rax, qword [rsp + 8]
add rsp, 0x48
ret
Function at 0x1400990c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
xor eax, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.zlib.dll_crc32]
xor eax, 0xffffffff
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx + rax]
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
shr eax, 0x18
and eax, 0xff
mov byte [rsp + 0x20], al
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
xor eax, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.zlib.dll_crc32]
xor eax, 0xffffffff
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
add rsp, 0x38
ret

Function at 0x140099200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x60], rax
jae 0x140099230
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x14009923a
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
jmp 0x140099256
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jae 0x1400992ac
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400991b0
movzx eax, al
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax], dl
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.1400990c0
jmp 0x14009924c
add rsp, 0x48
ret
Function at 0x1400d7a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x60], rax
jae 0x1400d7a60
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x1400d7a6a
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
jmp 0x1400d7a86
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x24], eax
jae 0x1400d7adc
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x50]
call fcn.1400d8450
movzx eax, al
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.1400d8360
jmp 0x1400d7a7c
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret

Function at 0x1400d8360
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
xor eax, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.zlib.dll_crc32]
xor eax, 0xffffffff
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx + rax]
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
shr eax, 0x18
and eax, 0xff
mov byte [rsp + 0x20], al
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax]
xor eax, 0xffffffff
mov r8d, 1
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.zlib.dll_crc32]
xor eax, 0xffffffff
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
add rsp, 0x38
ret
Function at 0x1400dbd90
Capabilities:
Hash data using murmur3

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0x10
jb 0x1400dbe0f
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
rol eax, 1
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x10]
rol ecx, 7
add eax, ecx
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x14]
rol ecx, 0xc
add eax, ecx
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x18]
rol ecx, 0x12
add eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1400dbe20
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
add eax, 0x165667b1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
sub rax, 4
cmp qword [rsp + 0x30], rax
ja 0x1400dbe84
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1400db590
imul eax, eax, 0xc2b2ae3d
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x30], rax
jmp 0x1400dbe33
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jae 0x1400dbeca
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
imul eax, eax, 0x165667b1
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
rol eax, 0xb
imul eax, eax, 0x9e3779b1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x1400dbe84
mov eax, dword [rsp + 0x20]
shr eax, 0xf
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca77
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae3d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x1400e6a80
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400e6ae6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400e6ae6
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400e6b1d
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov dword [rsp + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [rsp + 0x30], 0
je 0x1400e6b1d
xor eax, eax
jmp 0x1400e6b22
mov eax, 0xffffffe7
add rsp, 0x48
ret

Function at 0x1400e7580
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
mov qword [rsp], 0
jmp 0x1400e75ad
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 8
jae 0x1400e75d0
lea rax, [0x1400fe7d8]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov rdi, qword [rsp]
mov eax, dword [rax + rdi*4]
mov dword [rcx + rdx*4], eax
jmp 0x1400e75a2
add rsp, 0x10
pop rdi
ret
Function at 0x180012520
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov edi, 0x104
mov r12, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
mov r15d, edi
add r15, r15
mov rcx, r15
call sym.mozglue.dll_moz_xmalloc
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.VCRUNTIME140.dll_memset
test r14, r14
jne 0x18001258a
xor ecx, ecx
mov rdx, rbx
mov r8d, edi
call r12
test eax, eax
je 0x180012594
cmp eax, edi
je 0x1800125b3
mov byte [rsi + 8], 0
mov qword [rsi], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r14
call sym.mozglue.dll__aligned_free
jmp 0x180012562
mov byte [rsi + 8], 1
mov dword [rsi], 0xa
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sym.mozglue.dll__aligned_free
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
sete cl
shl edi, cl
mov r14, rbx
cmp eax, 0x7a
je 0x18001253f
jmp 0x180012575

Function at 0x1800129d0
Capabilities:
Parse pe header

Disassembly:
mov rax, rcx
mov qword [rcx], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov byte [rcx + 0x18], 0
test rdx, rdx
je 0x180012a54
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x180012a54
lea r8, [rax + 8]
movsxd r9, dword [rdx + 0x3c]
lea rcx, [rdx + r9]
mov qword [r8], rcx
cmp dword [rdx + r9], 0x4550
jne 0x180012a54
movzx r8d, word [rcx + 0x18]
cmp r8d, 0x20b
jne 0x180012a54
mov r8d, dword [rcx + 0x50]
cmp r8d, 0x148
jb 0x180012a54
lea r9d, [r8 - 1]
add rdx, r9
mov qword [rax + 0x10], rdx
mov edx, dword [rcx + 0x84]
cmp edx, 0x10
mov r9d, 0x10
cmovb r9d, edx
cmp r9d, 2
jb 0x180012a54
cmp dword [rcx + 0x90], r8d
setae byte [rax + 0x18]
ret
Function at 0x1800156d0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x1800158ce
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x180015798
cmp ecx, dword [rdi + 0x10]
jae 0x1800158ce
mov eax, dword [0x1800cd8c4]
mov ecx, dword [0x1800cb4e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x18001584c
mov edx, dword [0x1800cd8c0]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1800158ce
mov eax, dword [0x1800cd8c4]
mov ecx, dword [0x1800cb4e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x18001588d
mov eax, dword [0x1800cd8c0]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800157e3
mov eax, dword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov cl, byte [rsp + 0x5c]
test r8, r8
je 0x18001580d
test rdx, rdx
je 0x180015810
test r9, r9
je 0x180015810
test eax, eax
je 0x180015810
test cl, cl
je 0x180015810
inc dword [rdi + 0x18]
mov qword [rsi], r8
mov dword [rsi + 8], eax
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r9
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], cl
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180062020
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1800cd8c4]
call fcn.180060ac0
cmp dword [0x1800cd8c4], 0xffffffff
jne 0x18001573e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x1800cd8c0], eax
lea rcx, [0x1800cd8c4]
call fcn.180060b40
jmp 0x18001573e
lea rcx, [0x1800cd8c4]
call fcn.180060ac0
cmp dword [0x1800cd8c4], 0xffffffff
jne 0x18001578b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x1800cd8c0], eax
lea rcx, [0x1800cd8c4]
call fcn.180060b40
jmp 0x18001578b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x180015835
Function at 0x180017f10
Capabilities:
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r9
mov r14, r8
mov rsi, rcx
mov rax, qword [0x1800cb028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x1800cd8c4]
mov ecx, dword [0x1800cb4e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x180018025
lea rcx, [0x1800cd8c4]
call fcn.180060ac0
Function at 0x18001c930
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 0x38]
test rdi, rdi
je 0x18001c948
lock dec dword [rdi + 0x40]
je 0x18001c990
mov rdi, qword [rsi + 0x28]
mov qword [rsi + 0x28], 0
test rdi, rdi
je 0x18001c976
mov rcx, qword [rdi]
test rcx, rcx
je 0x18001c96e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0
mov rcx, rdi
call sym.mozglue.dll__aligned_free
cmp dword [rsi + 0x10], 0
jne 0x18001c9b7
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x18001c9d0
add rsp, 0x28
pop rdi
pop rsi
jmp sym.mozglue.dll__aligned_free
mov rax, qword [rdi + 0x18]
cmp rax, 0x10
jae 0x18001c9d8
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, rdi
call sym.mozglue.dll__aligned_free
jmp 0x18001c948
lea rax, str.MOZ_RELEASE_ASSERT_stackPointer__0_
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
nop
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
add rax, 0xfffffffffffff001
cmp rax, 0xffffffffffffefff
ja 0x18001c9fd
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x18001ca04
mov rcx, rax
call sym.mozglue.dll__aligned_free
jmp 0x18001c99a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3