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

Disassembly:
cld
pop r11
jmp 0x14002812d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002813d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140028125
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140028155
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140028142
sub eax, 3
jb 0x14002816f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400281a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140028196
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140028194
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140028183
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400280e2
jmp 0x14002812d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400281f2
cmp rsi, rcx
jae 0x1400281fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400281d9
cmp al, 0x8f
ja 0x1400281d9
cmp byte [rsi - 2], 0xf
je 0x1400281df
sub al, 0xe8
cmp al, 1
ja 0x1400281c3
cmp rsi, rcx
jae 0x1400281fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400281c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400281fa
lodsb al, byte [rsi]
jmp 0x1400281d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x26000]
mov eax, dword [rdi]
or eax, eax
je 0x140028257
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x28000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140028207
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140028251
mov qword [rbx], rax
add rbx, 8
jmp 0x140028227
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140028291
cmp al, 0xef
ja 0x140028283
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140028263
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140028272
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140028310], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140028310
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140028300
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x100001960
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000019df
lea r8, [rsp + 0x58]
lea rdx, [0x1000013e8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1000019d9
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x34], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80010002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret

Function at 0x100001f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov qword [rsp + 0x60], rsi
mov ecx, 0x2004
mov qword [rsp + 0x68], rdi
mov rsi, rdx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rdi, rax
jne 0x100001f6f
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
ret
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x30], 0x2000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100002002
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100002024
cmp dword [rsp + 0x34], 7
jne 0x100002024
mov ebx, dword [rsp + 0x30]
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
shr rcx, 1
lea rcx, [rcx + rcx + 4]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rdi, rax
je 0x100002031
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100001fa3
mov ecx, dword [rsp + 0x30]
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], 0
mov rcx, rdi
mov word [rdi + rax*2], 0
call fcn.100001b70
test rax, rax
jne 0x100002033
test rdi, rdi
je 0x100002031
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x100005e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x288
mov rax, qword [0x100009348]
mov qword [rsp + 0x250], rax
test rdx, rdx
mov qword [rsp + 0x280], rbx
mov dword [rsp + 0x30], 0
mov ebx, 2
jne 0x100005e3d
cmp r8d, ebx
jl 0x100005e3d
mov rcx, qword [r9]
cmp word [rcx], dx
jne 0x100005e47
mov eax, 3
jmp 0x100005f5c
mov qword [rsp + 0x270], rsi
mov rsi, qword [r9 + 8]
cmp word [rsi], 0
jne 0x100005e63
mov eax, 3
jmp 0x100005f54
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 0x104
jae 0x100005f52
test eax, eax
je 0x100005f52
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100005f52
lea rcx, [0x100001750]
mov qword [rsp + 0x268], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rdi, rax
je 0x100005f4a
lea rdx, [0x100001728]
mov rcx, rax
mov qword [rsp + 0x278], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbp, rax
je 0x100005f39
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r9, [rsp + 0x40]
mov r8, rsi
add rcx, 0x30
mov edx, 0xeeae
call fcn.100001830
lea r11, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 1
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r11
call rbp
test eax, eax
je 0x100005f39
mov rcx, qword [sym.imp.msvcrt.dll__iob]
mov edx, 0xeeb2
add rcx, 0x30
call fcn.100001830
xor ebx, ebx
cmp dword [rsp + 0x30], ebx
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x268]
mov eax, ebx
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
call fcn.100007630
add rsp, 0x288
ret
Function at 0x1000072b0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x100009400]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x1000094f8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100007331
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x1000094f8]
jmp 0x10000734d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1000094f8], r11
mov qword [0x100009498], rax
mov rax, qword [0x100009348]
mov qword [0x100009370], r11
mov qword [0x100009480], rdi
mov dword [0x100009360], 0xc0000409
mov dword [0x100009364], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x100009340]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000017e8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x100009348]
jne 0x100007649
rol rcx, 0x10
test cx, 0xffff
jne 0x100007645
ret
ror rcx, 0x10
jmp 0x1000072b0
Function at 0x1000073d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x100000000], 0x5a4d
je 0x1000073f1
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
movsxd rax, dword [0x10000003c]
lea rcx, [0x100000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x100007412
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x100007450
cmp ecx, 0x20b
je 0x10000742e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
cmp dword [rax + 0x84], 0xe
ja 0x10000743f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
cmp dword [rax + 0x74], 0xe
ja 0x10000745e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x10000746d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x1000098e0], 0xffffffffffffffff
mov qword [0x1000098e8], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x1000098dc]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x1000098d8]
mov dword [rcx], eax
call fcn.100007610
cmp dword [0x100009350], 0
jne 0x1000074c7
lea rcx, [fcn.100007610]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1000013b0]
lea rcx, [0x1000013a8]
call fcn.1000a0000
mov r11d, dword [0x1000098d4]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1000098d0]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x1000013a0]
lea rcx, [0x100001390]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___winitenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.100002bf0
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x100007553
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x100007574
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00416ab0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00416ac0]
mov dword [rax], 1
mov rax, qword [0x00416ad0]
mov dword [rax], 1
mov rax, qword [0x00416aa0]
mov dword [rax], 1
mov rax, qword [0x00416940]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00416a90]
mov dword [0x00419008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call sym._encode_pointer
mov rdx, qword [0x004169d0]
mov qword [rdx], rax
mov rdx, qword [0x004169c0]
mov qword [rdx], rax
mov rax, qword [0x00416a30]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004168f0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4031d5
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.C:_nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_3
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x00415438]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x00415438]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x403320
mov qword [rbp - 0x40], 0x332
lea rax, str.C:_nimlib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x403286
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x40329a
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x00415438]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x58]
mov ecx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x403301
mov ecx, 1
mov qword [rdx], rax
mov rax, rcx
and eax, 1
test al, al
je 0x403313
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x403254
nop
mov qword [rbp - 0x40], 0x338
lea rax, str.C:_nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 1
mov edx, 1
lea rcx, [0x00415458]
call sym.fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x339
lea rax, str.C:_nimlib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x18], eax
call sym.popFrame_3
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x4050fb
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x40512a
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen
mov rdx, rax
jmp 0x40512f
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x40d73e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00419a44]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4125a8
mov rax, qword [0x00419a48]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4124dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x41258e
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x4124c0
mov rcx, rsi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4125e0
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00419a48]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call sym._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov qword [r13 + 8], rax
mov rax, qword [0x00419a48]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4125c3
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x412587
sub eax, 4
and eax, 0xfffffffb
je 0x412587
add rbx, qword [0x00419a48]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4125af
add dword [0x00419a44], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebx, ebx
jmp 0x4124e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov rax, qword [0x00419a48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rbx + 8]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call sym.__report_error
nop

Function at 0x412d60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00419d20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00419d00]
test rbx, rbx
je 0x412db4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x412dab
test rsi, rsi
je 0x412dab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x412d90
lea rcx, [0x00419d20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x412ff0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x413000
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x413010
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x413051
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x413048
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x413053
add rax, 0x28
cmp rax, r9
jne 0x413034
xor eax, eax
ret

Function at 0x4130f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00416940]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
je 0x413110
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x413108
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x41316d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x413164
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x413108
add rdx, 0x28
cmp rdx, r9
jne 0x413150
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x413280
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00416940]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4132a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x413298
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4132fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4132f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x413304
add rax, 0x28
cmp rax, r9
jne 0x4132e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x413320
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00416940]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
je 0x413341
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x413339
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x413339
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x413339
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x413394
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4133b0
add rdx, 0x28
cmp rdx, r10
jne 0x413380
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x4133c8
jmp 0x41339d
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4133d6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x41339d
test r8d, r8d
jg 0x4133c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140003870
Capabilities:
Delete file
Query environment variable

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, str.MOZ_CRASHREPORTER_NO_DELETE_DUMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000389f
cmp byte [rax], 0
jne 0x140003a0c
cmp qword [0x140034290], 0
je 0x14000391a
lea rdx, [0x140034280]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x1400038c9
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000391a
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003915
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa64
cmp qword [0x1400342b0], 0
je 0x140003995
lea rdx, [0x1400342a0]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x140003944
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140003995
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003990
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa64
cmp qword [0x1400342d0], 0
je 0x140003a0c
lea rdx, [0x1400342c0]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x1400039bf
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140003a0c
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003a07
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa64
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400209b0
nop
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3