joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005c30
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword [rdx + 8]
test rax, rax
je 0x140005e6e
mov r14, r8
mov r12, rdx
mov r15, rcx
lea rbx, [rdx + 0x10]
mov rdi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
jmp 0x140005c70
mov rax, qword [rbx]
add rbx, 8
test rax, rax
je 0x140005e6e
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140005c60
lea rsi, [rax + 2]
lea rcx, [rax + 4]
xor edx, edx
cmp word [rax + 2], 0x2d
sete dl
cmove rsi, rcx
movzx ecx, word [rax + rdx*2 + 2]
test cx, cx
je 0x140005c60
call rdi
cmp ax, 0x6f
jne 0x140005c60
movzx ecx, word [rsi + 2]
test cx, cx
je 0x140005c60
call rdi
cmp ax, 0x73
jne 0x140005c60
movzx ecx, word [rsi + 4]
test cx, cx
je 0x140005c60
call rdi
cmp ax, 0x69
jne 0x140005c60
movzx ecx, word [rsi + 6]
test cx, cx
je 0x140005c60
call rdi
cmp ax, 0x6e
jne 0x140005c60
movzx ecx, word [rsi + 8]
test cx, cx
je 0x140005c60
call rdi
cmp ax, 0x74
jne 0x140005c60
cmp word [rsi + 0xa], 0
jne 0x140005c60
cmp dword [r15], 4
jne 0x140005e7c
mov rax, qword [r12 + 8]
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140005e7c
lea rsi, [rax + 2]
lea rcx, [rax + 4]
xor edx, edx
cmp word [rax + 2], 0x2d
sete dl
cmove rsi, rcx
movzx ecx, word [rax + rdx*2 + 2]
test cx, cx
je 0x140005e7c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x6f
jne 0x140005e7c
movzx ecx, word [rsi + 2]
test cx, cx
je 0x140005e7c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x73
jne 0x140005e7c
movzx ecx, word [rsi + 4]
test cx, cx
je 0x140005e7c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x69
jne 0x140005e7c
movzx ecx, word [rsi + 6]
test cx, cx
je 0x140005e7c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x6e
jne 0x140005e7c
movzx ecx, word [rsi + 8]
test cx, cx
je 0x140005e7c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
cmp ax, 0x74
jne 0x140005e7c
cmp word [rsi + 0xa], 0
jne 0x140005e7c
lea rax, [r12 + 0x10]
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x140005dce
add dword [r15], 0xffffffff
mov rax, qword [r12 + 8]
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140005e7c
cmp word [rax + 2], 0x2d
lea r15, [rax + 2]
lea rax, [rax + 4]
cmove r15, rax
mov rbx, qword [r14]
test rbx, rbx
jne 0x140005e23
jmp 0x140005e7c
test al, al
je 0x140005e5d
mov rbx, qword [r14 + 8]
add r14, 8
test rbx, rbx
je 0x140005e7c
movzx ecx, word [r15]
test cx, cx
setne al
cmp word [rbx], 0
je 0x140005e12
mov esi, 2
test al, 1
je 0x140005e16
call rdi
cmp ax, word [rbx + rsi - 2]
jne 0x140005e16
movzx ecx, word [r15 + rsi]
test cx, cx
setne al
cmp word [rbx + rsi], 0
lea rsi, [rsi + 2]
jne 0x140005e38
jmp 0x140005e12
mov rax, qword [r12 + 0x10]
movzx eax, word [rax]
or eax, 2
cmp ax, 0x2f
je 0x140005e7c
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
ud2
Function at 0x140006000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [rdx + 8]
test rbx, rbx
je 0x1400061e1
mov rdi, rdx
add rdi, 0x10
mov r14, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
movzx eax, word [rbx]
or eax, 2
cmp ax, 0x2f
je 0x140006060
mov rbx, qword [rdi]
add rdi, 8
test rbx, rbx
jne 0x140006036
jmp 0x1400061e1
cmp word [rbx + 2], 0x2d
je 0x1400061ce
add rbx, 2
movzx ecx, word [rbx]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x73
jne 0x140006042
movzx ecx, word [rbx + 2]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x61
jne 0x140006042
movzx ecx, word [rbx + 4]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x66
jne 0x140006042
movzx ecx, word [rbx + 6]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x65
jne 0x140006042
movzx ecx, word [rbx + 8]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x2d
jne 0x140006042
movzx ecx, word [rbx + 0xa]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x6d
jne 0x140006042
movzx ecx, word [rbx + 0xc]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x6f
jne 0x140006042
movzx ecx, word [rbx + 0xe]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x64
jne 0x140006042
movzx ecx, word [rbx + 0x10]
test cx, cx
je 0x140006042
call r14
cmp ax, 0x65
jne 0x140006042
cmp word [rbx + 0x12], 0
jne 0x140006042
mov dword [rsp + 0x3c], 4
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x30], rdi
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
lea r8, str.DisableSafeMode
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400061d7
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
lea r8, str.DisableSafeMode
mov rcx, 0xffffffff80000001
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400061d7
mov dil, 1
jmp 0x1400061e3
add rbx, 4
jmp 0x14000606f
cmp dword [rsp + 0x38], 1
mov dil, 1
jne 0x1400061e3
xor edi, edi
lea rcx, str.MOZ_SAFE_MODE_RESTART
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x140006216
mov byte [rsi], dil
mov byte [rsi + 1], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp byte [rax], 0
movzx eax, dil
mov edi, 1
cmove edi, eax
jmp 0x1400061f5
Function at 0x1400071a0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r9d
cmp qword [r8 + 0x18], 7
jbe 0x1400071c7
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000720f
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x1400071f4
Function at 0x140007880
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 7
jbe 0x1400078a9
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000790a
cmp dword [rsp + 0x3c], 4
jne 0x14000791c
mov eax, dword [rsp + 0x44]
mov byte [rsi + 0x10], 0
movabs rcx, 0x100000000
or rcx, rax
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x50
pop rsi
ret
cmp eax, 2
jne 0x14000793a
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
jmp 0x1400078f4
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
jmp 0x1400078f4
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x1400078f4

Function at 0x140007a40
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
cmp qword [r8 + 0x18], 7
jbe 0x140007a67
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140007aaf
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x140007a94

Function at 0x140007ae0
Capabilities:
Delete registry value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [r8 + 0x18], 7
jbe 0x140007af2
mov r8, qword [r8]
mov rcx, qword [rdx]
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x140007b13
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
mov rax, rsi
add rsp, 0x20
pop rsi
ret
test eax, eax
jne 0x140007b20
mov byte [rsi + 0x10], 0
mov byte [rsi], 1
jmp 0x140007b0a
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
jmp 0x140007b0a
Function at 0x140007b50
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 8
cmp qword [r8 + 0x18], 7
jbe 0x140007b79
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007bbe
cmp dword [rsp + 0x38], 0xb
jne 0x140007be3
mov rax, qword [rsp + 0x40]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x140007bcd
cmp eax, 2
jne 0x140007c01
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x50
pop rsi
ret
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
jmp 0x140007bcd
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x140007bcd

Function at 0x140007c30
Capabilities:
Get token membership
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x3c], 0x44
lea r8, [rsp + 0x40]
lea rdi, [rsp + 0x3c]
mov ecx, 0x1a
xor edx, edx
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140007d0a
lea rbx, [rsp + 0x40]
lea r8, [rsp + 0x38]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140007d55
cmp dword [rsp + 0x38], 0
je 0x140007d70
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea r8, str.EnableLUA
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140007d79
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x26
jmp 0x140007d34
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x14
mov byte [rsi + 0x10], 1
lea rdx, str._builds_worker_checkouts_gecko_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x19
jmp 0x140007d23
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
jmp 0x140007d37
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x140007d37
Function at 0x140009340
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005bafc]
mov ecx, dword [0x14005b2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140009390
mov esi, dword [0x14005baf8]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004ce20
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14005bafc]
call fcn.14004c320
cmp dword [0x14005bafc], 0xffffffff
jne 0x140009375
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x14005baf8], eax
lea rcx, [0x14005bafc]
call fcn.14004c388
jmp 0x140009375

Function at 0x140009750
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov rsi, r9
mov rbx, r8
mov r8, rdx
mov rdi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0xb0]
call fcn.1400098f0
mov r8d, dword [rdi + 0x30]
and r8d, 1
shl r8, 0x1e
lea rdx, [rsp + 0xa0]
mov rcx, rdi
mov r9d, r8d
call fcn.14000be50
cmp byte [rsp + 0xa8], 0
je 0x1400098dd
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x68]
call fcn.14000c5e0
cmp byte [rsp + 0x98], 0
je 0x1400098e1
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x48], xmm0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x8c]
mov qword [rsp + 0x5c], rax
mov al, byte [rsp + 0x94]
mov byte [rsp + 0x64], al
mov dword [rsp + 0x70], 0
mov byte [rsp + 0x94], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0xb0]
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x38]
mov rcx, rdi
call fcn.140009c00
cmp qword [rsi], 0
setne sil
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000988a
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14000988a
lea rdi, [rsp + 0x40]
mov edx, dword [rsp + 0x60]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x40], 0
mov byte [rsp + 0x64], 0
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
lea rcx, [rsp + 0x68]
call fcn.14000b740
mov rdi, qword [rsp + 0xb8]
test rdi, rdi
je 0x1400098c0
lock sub dword [rdi + 8], 1
jne 0x1400098c0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock sub dword [rdi + 0xc], 1
jne 0x1400098c0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14004ce20
mov eax, esi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140009894
xor esi, esi
jmp 0x14000988a
Function at 0x14000bee0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005bb04]
mov ecx, dword [0x14005b2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000bf30
mov esi, dword [0x14005bb00]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004ce20
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14005bb04]
call fcn.14004c320
cmp dword [0x14005bb04], 0xffffffff
jne 0x14000bf15
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov dword [0x14005bb00], eax
lea rcx, [0x14005bb04]
call fcn.14004c388
jmp 0x14000bf15

Function at 0x14000c0a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005bb10]
mov ecx, dword [0x14005b2c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000c10d
lea rcx, [0x14005bb10]
call fcn.14004c320
cmp dword [0x14005bb10], 0xffffffff
jne 0x14000c10d
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x38]
mov qword [0x14005bb08], rax
lea rcx, [0x14005bb10]
call fcn.14004c388
mov rsi, qword [0x14005bb08]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x14000d870
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [rcx], rdx
movaps xmm0, xmmword [0x14004e2f0]
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov rcx, rdx
call fcn.140009340
lea rcx, [rbx + rdi]
add rcx, 0xffffffffffffffff
mov r15d, eax
mov rax, rcx
xor edx, edx
div r15
mov r12, rax
mov rax, rbx
xor edx, edx
div r15
sub r12, rax
inc r12
je 0x14000d944
mov rbx, rax
imul rbx, r15
xor edi, edi
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000d96d
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov r8, r15
mov r9d, 0x40
call rbp
test eax, eax
je 0x14000d965
mov r13d, dword [rsp + 0x2c]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14000d977
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r13d
mov qword [rcx + rax + 8], rbx
add qword [rsi + 0x10], 1
add rdi, 1
add rbx, r15
cmp rdi, r12
jb 0x14000d8ef
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004ce20
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x2c], 0
mov rcx, rsi
call fcn.14000d990
jmp 0x14000d944
lea rcx, [rsi + 8]
mov edx, 1
call fcn.14000da90
test al, al
je 0x14000d96d
mov rax, qword [rsi + 0x10]
jmp 0x14000d922
Function at 0x140012210
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x848
mov qword [rsp + 0x868], rdx
mov qword [rsp + 0x870], r8
mov qword [rsp + 0x878], r9
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rsp + 0x840], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140012287
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x1400517eb]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
jne 0x1400122df
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14004ce20
nop
add rsp, 0x848
pop rdi
pop rsi
ret
lea rsi, [rsp + 0x868]
mov qword [rsp + 0x38], rsi
call fcn.140001a40
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea r9, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov byte [rsp + 0x83f], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001224d
mov rsi, rax
lea rdi, [rsp + 0x868]
mov qword [rsp + 0x40], rdi
call fcn.140001a40
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
lea r8, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001226c

Function at 0x140012400
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx]
lea rax, [rcx + 0x18]
cmp rdi, rax
je 0x140012472
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400124c0
mov rcx, rax
shr rcx, 0x3b
jne 0x14001246e
mov rdx, rax
shl rdx, 4
lea rcx, [rdx - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
mov ecx, 1
cmp rdx, 1
cmovb rbx, rcx
sub rbx, rdx
xor ecx, ecx
cmp rbx, 7
seta cl
lea rbx, [rcx + rax*2]
mov rax, rbx
shr rax, 0x3d
je 0x1400124e9
xor eax, eax
jmp 0x1400124e1
mov ecx, 0x20
call qword [sym.imp.mozglue.dll_malloc]
test rax, rax
je 0x14001246e
mov rcx, qword [rsi + 8]
test rcx, rcx
jle 0x1400124b3
lea rcx, [rdi + rcx*8]
mov rdx, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, qword [rdi]
mov qword [rdx], rbx
add rdi, 8
add rdx, 8
cmp rdi, rcx
jb 0x1400124a0
mov qword [rsi], rax
mov qword [rsi + 0x10], 4
jmp 0x1400124df
mov ebx, 1
mov edx, 8
mov rcx, rdi
call qword [sym.imp.mozglue.dll_realloc]
test rax, rax
je 0x14001246e
mov qword [rsi], rax
mov qword [rsi + 0x10], rbx
mov al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rbx*8]
jmp 0x1400124ca
Function at 0x1400127e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xd0], xmm6
mov rsi, rcx
lea rcx, [0x14005bb38]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbx, qword [0x14005bb30]
test rbx, rbx
je 0x140012994
xorps xmm6, xmm6
lea rdi, [rbp - 0x40]
lea r13, [rbp + 0xc4]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
jmp 0x14001286c
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400519be]
mov r8d, 1
mov r9, r13
call r14
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140012994
movzx r9d, word [rbx]
shr r9d, 1
mov r8, qword [rbx + 8]
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14001285f
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
test eax, eax
je 0x14001285f
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140012840
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x140051fa4]
mov r8d, 1
mov r9, r13
call r14
mov rax, qword [rbx + 0x10]
mov rcx, rax
shr rcx, 0x30
mov word [rbp + 0xc8], cx
mov rcx, rax
shr rcx, 0x20
mov word [rbp + 0xca], cx
mov rcx, rax
shr rcx, 0x10
mov word [rbp + 0xcc], cx
mov word [rbp + 0xce], ax
xor r12d, r12d
jmp 0x140012924
add r12, 1
call fcn.1400119d0
cmp r12, 4
jae 0x140012840
movzx ecx, word [rbp + r12*2 + 0xc8]
mov rdx, rdi
mov r8d, 0xa
call r15
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
mov r9, r13
call r14
call fcn.1400119d0
cmp r12, 3
je 0x140012920
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x140051fa2]
mov r8d, 1
mov r9, r13
call r14
jmp 0x140012920
lea rcx, [0x14005bb38]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movaps xmm6, xmmword [rbp + 0xd0]
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret