joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d6e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14005d70d
xor al, al
jmp 0x14005d86f
mov rax, qword [0x14007e6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14007e6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14007e6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14007e6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14007e6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14007e6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14007e6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14007e6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14007e700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14005d861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14005d7b9
mov r11d, 2
jmp 0x14005d7dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14005d7d3
mov r11d, 1
jmp 0x14005d7dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14005d885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14005d822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14005d83a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14005d84a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14005d858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14005d7a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14005d86a

Function at 0x14009ea3c
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffd3f7af18
call fcn.1402b9afb
xchg eax, ebp
imul edi, dword [rdx], 0x8b20342
cdq
mov ah, 0xcb
outsd dx, dword [rsi]
invalid
Function at 0x140005a10
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x50
syscall
ret

Function at 0x140006fa0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140006fce
xor eax, eax
jmp 0x1400070b4
cmp qword [rcx + 0x68], 0
je 0x140006fdf
call fcn.1400070d0
jmp 0x1400070b4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006ff6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006ff8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000702a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140009ea0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400070ae
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007061
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000708a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000f978
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400070ae
cmp rsi, rbx
ja 0x140007068
test rsi, rsi
je 0x1400070ae
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000f978
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008c7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008cc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008cc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008cc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008cc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140008cc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008cc8
xor al, al
add rsp, 0x28
ret

Function at 0x1400140d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013ec0
Function at 0x14001a088
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001a0ba
call fcn.1400110b8
mov dword [rax], 0x16
call fcn.14000ea74
jmp 0x14001a1d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001a1d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001a1d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001a0e9
lock or dword [rcx + 0x14], 0x10
jmp 0x14001a1d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001a0fd
call fcn.14001b6ec
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140017580
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001ae68
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001a1c7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001a192
mov rcx, rsi
call fcn.140017580
cmp eax, edi
je 0x14001a17d
mov rcx, rsi
call fcn.140017580
cmp eax, 0xfffffffe
je 0x14001a17d
mov rcx, rsi
call fcn.140017580
movsxd rbx, eax
lea r14, [0x14003a1f0]
mov rcx, rsi
sar rbx, 6
call fcn.140017580
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001a184
lea rdx, [0x1400383d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001a192
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001a1b6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001a1b6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001a1b6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001a1dc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001a504
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400088d0
sub rsp, rax
mov rax, qword [0x140038020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017580
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001a553
mov rax, rbp
jmp 0x14001a65b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a1f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b640
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a1f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001a657
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a657
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b640
test rax, rax
js 0x14001a657
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001a657
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001a649
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001a649
cmp byte [rcx], 0xd
jne 0x14001a62f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001a63e
cmp byte [rcx + 1], 0xa
jne 0x14001a63e
inc rcx
jmp 0x14001a63e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001a611
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001a65b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007fd0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a9bc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003a1f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001aa1a
cmp word [rdx], r12w
jne 0x14001aa1a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001aa20
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001ab7b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001ab56
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001aa59
mov rcx, r9
jmp 0x14001aa7c
cmp r9, rdx
jae 0x14001aa93
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001aa3d
jmp 0x14001ab7b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ab50
cmp dword [rsp + 0x80], edi
je 0x14001ab50
mov rdx, r14
lea r11, [0x14003a1f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001ab29
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001aafc
mov word [rbx], r12w
jmp 0x14001ab77
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001ab05
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001ab77
cmp word [rsp + 0x70], r12w
jne 0x14001ab36
cmp rbx, rsi
je 0x14001aaf6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001b648
cmp word [rsp + 0x70], r12w
je 0x14001ab7b
mov word [rbx], r13w
jmp 0x14001ab77
lea r11, [0x14003a1f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001ab73
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001ab7b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001e91c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001e94c
xor eax, eax
jmp 0x14001ea0f
mov rbp, rbx
cmp word [rax], si
je 0x14001e971
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e958
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e954
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001d08c
movsxd r14, eax
test eax, eax
jne 0x14001e9af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e945
mov rcx, r14
call fcn.1400172d0
mov rdi, rax
test rax, rax
jne 0x14001e9c8
xor ecx, ecx
call fcn.140017294
jmp 0x14001e9a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001d08c
test eax, eax
jne 0x14001e9f9
mov rcx, rdi
call fcn.140017294
jmp 0x14001ea03
xor ecx, ecx
call fcn.140017294
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400233b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011130
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002343e
cmp byte [rbp - 0x21], r15b
je 0x140023439
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140023474
call fcn.140018874
test eax, eax
jne 0x140023460
cmp byte [rbp - 0x21], r15b
je 0x140023458
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140023474
cmp byte [rbp - 0x21], r15b
je 0x140023471
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140013750
test eax, eax
jne 0x140023514
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011130
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400234b3
cmp byte [rbp - 0x21], r15b
je 0x1400234e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400234e8
call fcn.140018874
test eax, eax
jne 0x1400234d4
cmp byte [rbp - 0x21], r15b
je 0x1400234cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400234e8
cmp byte [rbp - 0x21], r15b
je 0x1400234e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140013750
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140023514
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140023517
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023525
mov rcx, rdi
call fcn.140017294
cmp byte [rbp + 0x3f], r15b
je 0x140023534
mov rcx, qword [rbp + 0x27]
call fcn.140017294
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001c00
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, qword [rdx + 8]
test rsi, rsi
je 0x140001e1a
mov r15, r8
mov r13, rdx
mov r12, rcx
lea rbx, [rdx + 0x10]
mov r14, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov rdi, rsi
movzx eax, byte [rdi]
or al, 2
cmp al, 0x2f
je 0x140001c50
mov rdi, qword [rbx]
add rbx, 8
test rdi, rdi
jne 0x140001c34
jmp 0x140001e1a
cmp byte [rdi + 1], 0x2d
je 0x140001e2b
add rdi, 1
movsx ecx, byte [rdi]
test ecx, ecx
je 0x140001c3d
call r14
cmp al, 0x6f
jne 0x140001c3d
movsx ecx, byte [rdi + 1]
test ecx, ecx
je 0x140001c3d
call r14
cmp al, 0x73
jne 0x140001c3d
movsx ecx, byte [rdi + 2]
test ecx, ecx
je 0x140001c3d
call r14
cmp al, 0x69
jne 0x140001c3d
movsx ecx, byte [rdi + 3]
test ecx, ecx
je 0x140001c3d
call r14
cmp al, 0x6e
jne 0x140001c3d
movsx ecx, byte [rdi + 4]
test ecx, ecx
je 0x140001c3d
call r14
cmp al, 0x74
jne 0x140001c3d
cmp byte [rdi + 5], 0
jne 0x140001c3d
cmp dword [r12], 4
jne 0x140001e34
mov al, byte [rsi]
or al, 2
cmp al, 0x2f
jne 0x140001e34
lea rdi, [rsi + 1]
lea rax, [rsi + 2]
xor ecx, ecx
cmp byte [rsi + 1], 0x2d
sete cl
cmove rdi, rax
movsx ecx, byte [rcx + rsi + 1]
test ecx, ecx
je 0x140001e34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6f
jne 0x140001e34
movsx ecx, byte [rdi + 1]
test ecx, ecx
je 0x140001e34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x73
jne 0x140001e34
movsx ecx, byte [rdi + 2]
test ecx, ecx
je 0x140001e34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x69
jne 0x140001e34
movsx ecx, byte [rdi + 3]
test ecx, ecx
je 0x140001e34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6e
jne 0x140001e34
movsx ecx, byte [rdi + 4]
test ecx, ecx
je 0x140001e34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x74
jne 0x140001e34
cmp byte [rdi + 5], 0
jne 0x140001e34
lea rax, [r13 + 0x10]
mov rcx, qword [rax]
mov qword [rax - 8], rcx
add rax, 8
test rcx, rcx
jne 0x140001d6b
add dword [r12], 0xffffffff
mov rax, qword [r13 + 8]
mov cl, byte [rax]
or cl, 2
cmp cl, 0x2f
jne 0x140001e34
cmp byte [rax + 1], 0x2d
lea rsi, [rax + 1]
lea rax, [rax + 2]
cmove rsi, rax
mov rdi, qword [r15]
test rdi, rdi
je 0x140001e34
mov al, byte [rsi]
mov byte [rsp + 0x27], al
test al, al
setne r12b
jmp 0x140001dcd
test cl, cl
je 0x140001e0e
mov rdi, qword [r15 + 8]
add r15, 8
test rdi, rdi
je 0x140001e34
mov bl, byte [rdi]
mov ecx, r12d
test bl, bl
je 0x140001dbc
mov ebp, 1
mov ecx, r12d
mov al, byte [rsp + 0x27]
test cl, 1
je 0x140001dc0
movsx ecx, al
call r14
movsx eax, al
movsx ecx, bl
cmp eax, ecx
jne 0x140001dc0
movzx ebx, byte [rdi + rbp]
movzx eax, byte [rsi + rbp]
test al, al
setne cl
add rbp, 1
test bl, bl
jne 0x140001de2
jmp 0x140001dbc
mov rax, qword [r13 + 0x10]
mov al, byte [rax]
or al, 2
cmp al, 0x2f
je 0x140001e34
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rdi, 2
jmp 0x140001c5e
mov ecx, 0x7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
ud2
Function at 0x140001e70
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.140045ef0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140054018]
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 0x140001f22
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x34]
mov rcx, rsi
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001f0e
cmp dword [rsp + 0x34], 0x10000
jne 0x140001f0e
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x34]
mov rcx, rsi
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001f0e
cmp dword [rsp + 0x34], 0x10000
je 0x140001f40
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.140045f60
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret
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 0x140001f0e
cmp dword [rsp + 0x34], 0x10000
je 0x140001f51
jmp 0x140001f0e
Function at 0x140003060
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x1e8
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.1400031b0
lea rdx, [rsp + 0x118]
mov rcx, rdi
call fcn.140003260
lea rdi, [rsp + 0x118]
mov rcx, rdi
call fcn.1400031b0
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.1400077a0
cmp byte [rsp + 0x110], 0
jne 0x140003138
cmp byte [rsp + 0x100], 0
je 0x140003138
lea rcx, str.MOZ_DISABLE_POISON_IO_INTERPOSER1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
mov ecx, 0x18
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
movups xmm0, xmmword [rsi]
movups xmmword [rax], xmm0
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400081c0]
xor ecx, ecx
xor edx, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x140003172
lea rcx, [rsp + 0x30]
call fcn.140009ed0
lea rcx, [rsp + 0x118]
call fcn.1400033c0
mov rcx, rsi
call fcn.1400032e0
lea rcx, [rsp + 0x38]
call fcn.1400033c0
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x1e8
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140009ed0
lea rcx, [rsp + 0x118]
call fcn.1400033c0
cmp byte [0x140054ac4], 0
je 0x14000314d
jmp 0x140003145

Function at 0x1400032e0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, rcx
lea rdx, [0x14004bd46]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x1400033a5
mov r14, rax
mov rcx, qword [rbx]
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 rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov ebp, dword [rbx + 0xc]
mov dword [rdi], ebp
mov eax, dword [rbx + 8]
mov dword [rdi + 4], eax
lea rcx, [rdi + 8]
mov rdx, qword [rbx]
mov r8, r15
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test rdi, rdi
je 0x14000338f
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
mov rcx, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret