joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a47d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x48]
test al, al
jne 0x140083b9b
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x30]
mov edx, 1
add rsp, 0x20
pop rbx
jmp 0x1400a47d0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x48]
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
jne 0x1400a4801
mov rdi, rcx
jmp 0x1400a4821
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a481f
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rdi, rax
jmp 0x1400a4821
xor edi, edi
mov rcx, rbx
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a4e30
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rcx
add rcx, 0x48
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Acquire_void____ptr64]
mov rcx, qword [rdi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400a4eae
mov rax, qword [rdi + 0x20]
xor ebp, ebp
test rax, rax
je 0x1400a4e88
lea edx, [rbp + 1]
mov rcx, rax
call fcn.140084908
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x30], rbp
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x28], rbp
mov rcx, qword [rdi + 0x70]
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a4eae
xor edx, edx
mov rax, qword [rsp + 0x30]
div rsi
mov rsi, rax
mov qword [rdi], rax
jmp 0x1400a4eb5
mov rsi, 0xffffffffffffffff
lea rcx, [rdi + 0x48]
call qword [sym.imp.CONCRT140.dll_public:_void___cdecl_Concurrency::details::_ReentrantBlockingLock::_Release_void____ptr64]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7650
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea ecx, [rbp + 0x20]
call fcn.1400848cc
mov rbx, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1400a76b4
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
mov qword [rax], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
shr r8, 1
mov rcx, rax
call fcn.1400865e0
jmp 0x1400a76b7
mov rbx, rbp
mov qword [r14], rbx
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rcx, rax
je 0x1400a7729
sub rax, rcx
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a76de
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x1400a7748
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a76fa
mov rdx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rbx + 0x10]
sub rcx, rax
lea rdi, [rdx + rax*2]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi + 0x18]
cmp qword [rbx + 0x10], rax
jb 0x1400a7742
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x1400a7725
mov rbx, qword [rbx]
mov word [rbx + rax*2], bp
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.140005aa0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.1400a41c0
lea rdx, [0x1400fb0f0]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400ba0f0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rax - 0x18], 1
mov dword [rax + 0x18], esi
mov qword [rax - 0x20], rsi
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400ba16e
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ba168
mov rax, qword [rbx]
mov word [rax + rdx*2], si
jmp 0x1400ba17c
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.1400862f0
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ba189
mov r9, qword [rbx]
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x14]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x1400ba2bf
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x1400ba1c7
mov rax, qword [rbx]
mov rcx, rax
jmp 0x1400ba1cd
mov rax, rbx
mov rcx, rbx
lea rdx, [r8 + r8]
add rax, rdx
cmp word [rcx], 0
jne 0x1400ba24f
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400ba1f2
cmp word [rdx], 0
jne 0x1400ba220
add rdx, 2
cmp rdx, rax
jne 0x1400ba1e3
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp r9, 8
jb 0x1400ba202
mov rax, qword [rbx]
mov word [rax], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
je 0x1400ba220
sub rax, rdx
lea r8, [rax + 2]
sar r8, 1
mov rcx, rbx
call fcn.1400865e0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
sub rax, 2
cmp word [rax], 0
jne 0x1400ba2bf
nop dword [rax]
mov rcx, rax
sub rax, 2
cmp word [rax], 0
je 0x1400ba260
sub rdx, rcx
mov rax, r8
cmp r9, 8
mov r9, rcx
jb 0x1400ba287
sub r9, qword [rbx]
add rdx, qword [rbx]
mov rcx, qword [rbx]
jmp 0x1400ba290
sub r9, rbx
add rdx, rbx
mov rcx, rbx
sar r9, 1
sar rdx, 1
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
lea rcx, [rcx + r9*2]
sub r8, rdx
mov qword [rbx + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ba2e0
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401c3d80]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov rdi, qword [r8]
mov rbx, qword [rdi + 0x58]
mov r8, qword [rbx + 8]
lea rdx, [rdi + 0x58]
lea rcx, [rdi + 0x58]
call fcn.140051020
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r15d, r15d
mov qword [rdi + 0x60], r15
mov dword [rbp - 0x40], r15d
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov edx, dword [rbp - 0x40]
test rdx, rdx
jne 0x1400ba381
mov qword [rbp - 0x20], rdx
mov word [rbp + rdx*2 - 0x30], r15w
jmp 0x1400ba38d
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.1400862f0
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov qword [rsp + 0x28], r15
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rax
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov r15d, eax
cmp rbx, qword [rbp - 0x38]
je 0x1400ba4ea
cmp dword [rdi], 0x22
je 0x1400ba4f7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ba43f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba43a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba43a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084908
mov rax, qword [rsi]
mov word [rax + 0x88], r15w
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.1400ba0f0
nop
mov rcx, qword [rsi]
add rcx, 0x90
cmp rcx, rax
je 0x1400ba47d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400ba473
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
call fcn.1400865e0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ba4c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ba4bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ba4bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084908
mov rdx, qword [rsi]
add rdx, 0x58
mov rcx, r12
call fcn.14009a7c0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400bdc40
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1400d15a0]
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_
int3
lea rcx, str.stoi_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x1400bda38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400bda72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400bda77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400bdac0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400d99e0]
cmp byte [rcx + rax], 0
je 0x1400bdac0
dec r8
sub rdx, 1
jne 0x1400bdaa6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400316bc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031734
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031734
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140031734
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031728
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031746
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031716
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031736

Function at 0x140033280
Capabilities:
Parse pe header

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

Function at 0x14003c014
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bd78

Function at 0x140045f30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045f58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045f58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cf0
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
cwde
xchg esi, eax
xor dword [rsi - 0x6d5b5b6a], ebx
cwde
xchg esi, eax
xor dword [rdx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rcx], esi
xor dword [rsi - 0x6ace5ecf], eax
xor dword [rdx - 0x69ce5acf], edx
xor dword [rbp - 0x60ceaecf], edx
xchg ebp, eax
xor dword [rcx + 0x31], edx
lahf
xor dword [rsi - 0x5ace56cf], edx
xor dword [rcx + 0x31], edx
movsb byte [rdi], byte [rsi]
xor dword [rsi - 0x5ace5acf], edx
xchg esi, eax
xor dword [rbp - 0x65ce5acf], esp
xor dword [rdi - 0x5bce67cf], ebx
xor dword [rcx + 0x31], edx
movabs dword [0x9631a33197319631], eax
Function at 0x140036320
Capabilities:
Terminate process

Disassembly:
invalid
cld
pop r11
jmp 0x14003632d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003633d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140036325
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140036355
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140036342
sub eax, 3
jb 0x14003636f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400363a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140036396
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140036394
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140036383
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400362e2
jmp 0x14003632d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400363f2
cmp rsi, rcx
jae 0x1400363fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400363d9
cmp al, 0x8f
ja 0x1400363d9
cmp byte [rsi - 2], 0xf
je 0x1400363df
sub al, 0xe8
cmp al, 1
ja 0x1400363c3
cmp rsi, rcx
jae 0x1400363fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400363c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400363fa
lodsb al, byte [rsi]
jmp 0x1400363d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x34000]
mov eax, dword [rdi]
or eax, eax
je 0x140036463
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x37ffc]
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 0x140036407
jns 0x14003643c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140036446
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 0x14003645d
mov qword [rbx], rax
add rbx, 8
jmp 0x140036427
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x18f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400364bb
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x140001748
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000176a
xor eax, eax
jmp 0x14000179a
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001766
lea rdx, str.logs
mov rcx, rbx
call fcn.140006928
test eax, eax
je 0x140001766
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001854
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x28], 0
lea r8, [0x14000183c]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001885
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret
Function at 0x140001e7c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xff60]
mov eax, 0x10060
call fcn.14001d100
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0xff50], rax
and dword [r8], 0
mov r14d, 3
and qword [rsp + 0x30], 0
mov r13, r8
and dword [rsp + 0x28], 0
mov rbx, rdx
mov r15d, 0x80000000
mov dword [rsp + 0x20], r14d
lea esi, [r14 - 2]
xor r9d, r9d
mov r8d, esi
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001efb
xor esi, esi
jmp 0x1400020a5
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov r8d, esi
mov edx, r15d
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002082
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or ecx, 0xffffffff
cmp r14d, ecx
je 0x140002082
cmp eax, ecx
je 0x140002082
cmp r14d, eax
jne 0x140002084
mov r15d, r14d
xor r12d, r12d
shr r15d, 0xf
and r14d, 0x7fff
test r15d, r15d
je 0x14000200f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rbp + 0x7f50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002082
cmp dword [rsp + 0x40], 0x8000
jne 0x140002082
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x8000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002082
mov eax, 0x8000
cmp dword [rsp + 0x40], eax
jne 0x140002082
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x7f50]
call fcn.14001d650
test eax, eax
jne 0x140002084
add r12d, esi
cmp r12d, r15d
jb 0x140001f7a
test r14d, r14d
je 0x14000207c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rbp + 0x7f50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002082
cmp dword [rsp + 0x40], r14d
jne 0x140002082
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002082
cmp dword [rsp + 0x40], r14d
jne 0x140002082
mov r8d, r14d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x7f50]
call fcn.14001d650
test eax, eax
jne 0x140002084
mov dword [r13], esi
jmp 0x140002084
xor esi, esi
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140002097
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400020a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0xff50]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x100b8]
add rsp, 0x10060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400020d4
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rdx
mov r14, r9
xor edx, edx
mov r15, r8
mov rsi, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov edi, eax
call fcn.14000762c
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x14000215c
mov eax, dword [0x14002df0c]
mov edi, 1
test dil, al
jne 0x14000214d
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, edi
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x1400021b8
lea r9, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x28]
mov rcx, rbx
lea rdx, [0x140026774]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, 1
test eax, eax
jne 0x1400021cb
mov eax, dword [0x14002df0c]
test dil, al
jne 0x1400021ab
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, edi
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
lea rcx, [0x14002df50]
call fcn.140007060
xor edi, edi
jmp 0x1400021f0
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + 0xa]
mov dword [rbp], eax
movzx eax, word [rcx + 8]
mov dword [r15], eax
movzx eax, word [rcx + 0xe]
movzx ecx, word [rcx + 0xc]
mov dword [r14], eax
mov rax, qword [rsp + 0x70]
mov dword [rax], ecx
test rbx, rbx
je 0x1400021fd
mov rcx, rbx
call fcn.140007668
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140003318
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140003383
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140003374
and qword [0x14002df50], rbx
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_open_service_manager.____d_
jmp 0x1400033d5
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
mov eax, dword [0x14002df0c]
jne 0x1400033eb
test al, 1
jne 0x1400033c8
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
lea rcx, [0x14002df50]
call fcn.140007060
xor edi, edi
jmp 0x14000352d
test al, 1
jne 0x14000340c
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Sending_stop_request...
lea rcx, [0x14002df50]
call fcn.140007008
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000348e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000348e
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140003472
and qword [0x14002df50], 0
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_sending_stop_request.____d_
lea rcx, [0x14002df50]
call fcn.140007060
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x14002df0c]
test al, 1
jne 0x1400034c8
and qword [0x14002df50], rbx
lea rcx, [0x14001dc10]
or eax, 1
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Waiting_for_service_stop...
lea rcx, [0x14002df50]
call fcn.140007008
call fcn.140006acc
mov ebp, eax
call fcn.140006cc0
mov ecx, dword [0x14002df0c]
test cl, 1
jne 0x14000350e
and qword [0x14002df50], rbx
or ecx, 1
mov dword [0x14002df0c], ecx
lea rcx, [0x14001dc10]
call fcn.140007614
mov r8d, ebp
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__d
lea rcx, [0x14002df50]
call fcn.140007008
xor edi, edi
cmp ebp, 1
sete dil
test rbx, rbx
je 0x14000353b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret