joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400335f0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14002f460
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x10040], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003367b
lea r14, [rsp + 0x40]
lea rbx, [rsp + 0x34]
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, 0x10000
mov r9, rbx
call rdi
test eax, eax
je 0x140033667
cmp dword [rsp + 0x34], 0x10000
je 0x14003363f
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140033b20
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x228
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x220], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.140023e30
lea rdx, [rsp + 0x138]
mov rcx, rbx
call fcn.140033ca0
lea rbx, [rsp + 0x138]
mov rcx, rbx
call fcn.140023e30
lea rsi, [rsp + 0x120]
mov rcx, rbx
mov rdx, rsi
call fcn.140034e10
cmp byte [rsi + 0x10], 0
jne 0x140033c2b
cmp byte [rsp + 0x120], 0
je 0x140033c2b
lea rcx, str.MOZ_DISABLE_POISON_IO_INTERPOSER1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
mov ecx, 0x38
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
movups xmm0, xmmword [r14]
movups xmmword [rax], xmm0
xor esi, esi
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x10], rax
test rdi, rdi
lea rdx, [0x140057a43]
cmovne rdx, rdi
lea rcx, [rbx + 0x18]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
call fcn.140002ee0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140035f30]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x140033c68
lea rcx, [rsp + 0x30]
call fcn.140037ba0
lea rcx, [rsp + 0x138]
call fcn.140024750
mov rcx, r14
call fcn.140033d10
lea rcx, [rsp + 0x38]
call fcn.140024750
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140037ba0
lea rcx, [rsp + 0x138]
call fcn.140024750
jmp 0x140033c40
Function at 0x140033d10
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rdi, rcx
lea rdx, str.Firefox_Launcher
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140033dcf
mov r14, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov ebp, dword [rdi + 0xc]
mov dword [rbx], ebp
mov eax, dword [rdi + 8]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov rdx, qword [rdi]
mov r8, r15
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], r12
mov word [rsp + 0x28], 0
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov rcx, r14
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400349c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r15, [rsp + 0x48]
mov dword [r15], 0
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140034a34
cmp eax, 2
jne 0x140034ac0
xor eax, eax
mov byte [r12 + 0x10], al
mov byte [r12], al
jmp 0x140034aed
mov esi, dword [rsp + 0x48]
add rsi, rsi
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r8, rbx
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140034b0e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x66
mov dword [r12 + 0xc], ecx
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x140034aed
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x5a
mov dword [r12 + 0xc], ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002f4d0
mov rax, r12
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
movabs rax, 0x4e0049004d
mov qword [rsp + 0x5e], rax
lea rdx, [rsp + 0x4c]
mov dword [rdx], 0x20
lea r8, [rsp + 0x40]
mov qword [r8], 0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140034b90
lea r15, [rsp + 0x50]
mov rsi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea r13, [rsp + 0x4c]
lea rdi, [rsp + 0x40]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0xb
mov rcx, rax
mov rdx, r15
call rsi
test eax, eax
je 0x140034ba1
xor ebp, ebp
xor ecx, ecx
mov rdx, r13
mov r8, rdi
call rbx
test rax, rax
jne 0x140034b6b
jmp 0x140034b92
xor ebp, ebp
mov byte [r12 + 0x10], 0
mov byte [r12], bpl
jmp 0x140034ab5
mov bpl, 1
jmp 0x140034b92
Function at 0x140034ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 8
jb 0x140034f19
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 0x140034f72
cmp dword [rsp + 0x3c], 4
jne 0x140034f84
mov eax, dword [rsp + 0x44]
mov byte [rsi + 0x10], 0
bts rax, 0x20
mov qword [rsi], rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002f4d0
mov rax, rsi
add rsp, 0x50
pop rsi
ret
cmp eax, 2
jne 0x140034fa2
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
jmp 0x140034f5c
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000042
mov qword [rsi + 8], rax
jmp 0x140034f5c
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], 0x3e
mov dword [rsi + 0xc], ecx
jmp 0x140034f5c

Function at 0x140034fd0
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdi, [rsp + 0x3c]
mov dword [rdi], 0x44
lea r8, [rsp + 0x40]
mov ecx, 0x1a
xor edx, edx
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1400350a8
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 0x1400350f3
cmp dword [rsp + 0x38], 0
je 0x14003510e
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 0x140035117
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 0x1400350d2
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.14002f4d0
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 0x1400350c1
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
jmp 0x1400350d5
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x1400350d5
Function at 0x140037bf0
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [rcx + 9], 0
je 0x140037c23
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140037c12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 0x10
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14001ea50
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140037c37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], 0
cmp qword [rsi + 0x28], 8
jb 0x140037c4c
mov rcx, qword [rsi + 0x10]
jmp 0x140037c50
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140037bfe

Function at 0x140038b40
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x860
mov qword [rsp + 0x888], rdx
mov qword [rsp + 0x890], r8
mov qword [rsp + 0x898], r9
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140038be5
lea rsi, [rsp + 0x888]
mov qword [rsp + 0x28], rsi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.mozglue.dll_protected:_void___cdecl_mozilla::PrintfTarget::constructor_void____ptr64]
lea rax, [0x1400532b0]
mov qword [rdi], rax
lea rbx, [rsp + 0x50]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0x800
lea rdx, str._n_nBROWSERBROWSERBROWSERBROWSER_n__debug_me____lu_n_n
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.mozglue.dll_public:_bool___cdecl_mozilla::PrintfTarget::vprint_char_const____ptr64__char____ptr64____ptr64]
mov rax, qword [rdi + 8]
mov ecx, 0x7ff
cmp rax, rcx
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, rbx
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 0x140038c53
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x140056e49]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x140038c53
mov rsi, rax
lea rdi, [rsp + 0x888]
mov qword [rsp + 0x50], rdi
call fcn.14001bf60
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]
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x860
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003ae10
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.14003b0d0
test rdi, rdi
je 0x14003ae74
test al, al
je 0x14003ae74
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 0x14003ae74
test rcx, rcx
js 0x14003ae74
cmp qword [rsi + 0x10], rax
jb 0x14003ae74
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.14003b0e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003b0e0
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 [0x140061018]
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 0x14003b195
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.14002f4d0
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 0x14003b140
xor esi, esi
jmp 0x14003b177

Function at 0x14003d940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140061078]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003d970
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14003d970
mov rax, qword [rax + rcx]
jmp 0x14003d972
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140045ac0
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r15], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140045b9f
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 0x140045b25
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 0x140045bba
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.14002f4d0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x140045b90

Function at 0x140048160
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.140009d40
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400481ca
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 0x14004a890
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jae 0x14004a8ea
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002f4d0
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 0x14004a93f
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 0x14004a95a
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 8
jb 0x14004a973
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 0x14004aa47
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 0x14004aa5e
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 0x14004a8c4
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x14004a8c4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004aa47
Function at 0x14004aa70
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 0x14004ab08
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 0x140050590
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140008e20
test al, al
je 0x1400505b2
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 0x140051bf0
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140051c94
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140051c70
mov rdi, qword [rsi + 8]
shl rbx, 4
add rbx, rdi
mov r15d, dword [0x140061d60]
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 0x140051c57
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x140051c30
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x140051c30
Function at 0x14000a9ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000aa38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000aa30
cmp dword [rcx + 0x3c], edx
jl 0x14000aa30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000aa30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000aa38
mov rax, rdx
add rsp, 0x18
ret
Function at 0x413100
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41328b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004322a0
xorps xmm15, xmm15
mov r14, qword [0x005f1c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x413165
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x413174
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x413193
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4131a3
cmp rbx, 0x1000
jae 0x41316b
jmp 0x41320d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4131b5
xor edx, edx
jmp 0x413204
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004322a0
xorps xmm15, xmm15
mov r14, qword [0x005f1c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x413199
jmp 0x413188
call fcn.00470640
xorps xmm15, xmm15
mov r14, qword [0x005f1c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436e00
lea rax, [0x004e7e6d]
mov ebx, 0x18
nop dword [rax]
call fcn.00437680
mov rax, qword [rsp + 0x38]
call fcn.004373c0
lea rax, [0x004e830d]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437680
mov rax, qword [rsp + 0x30]
call fcn.004373c0
call fcn.00437040
call fcn.00436e60
lea rax, [0x004ea7c5]
mov ebx, 0x21
call fcn.004679a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046cf00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413100