joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002eb4
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
xor edx, edx
mov word [rbp + 0x5a0], r15w
mov r8d, 0x206
lea rcx, [rbp + 0x5a2]
call sub.msvcrt.dll_memset
mov edi, 0x208
mov word [rbp + 0x390], r15w
mov r8d, edi
lea rcx, [rbp + 0x392]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
mov word [rbp + 0x180], r15w
xor edx, edx
lea rcx, [rbp + 0x182]
call sub.msvcrt.dll_memset
xor edx, edx
mov dword [rsp + 0x30], r15d
mov r8d, 0x24c
lea rcx, [rsp + 0x34]
mov edi, r15d
call sub.msvcrt.dll_memset
mov r9, r14
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.dmp
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.140001658
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x140002fe8
inc edi
cmp word [rbp + 0x390], r15w
je 0x140002fc2
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jle 0x140002fd6
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x390]
call fcn.1400012f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
test eax, eax
jne 0x140002fa0
cmp edi, esi
jb 0x140003081
lea rax, [rbp + 0x390]
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140001658
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140003081
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140001590
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x140003090
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140006900
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400030c4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
lea rbp, [rax - 0x418]
sub rsp, 0x508
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor ebx, ebx
lea r9, [rbp + 0x428]
mov r8, rcx
mov word [rbp - 0x20], bx
lea rcx, [rbp - 0x20]
mov word [rbp + 0x3ee], bx
mov edx, 0x208
call fcn.140002600
test eax, eax
js 0x1400031df
xor edx, edx
lea r8d, [rbx + 0x60]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea eax, [rbx + 6]
mov dword [rsp + 0x70], 0x68
mov word [rbp - 0x50], ax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x58]
mov dword [rbp - 0x54], 0x81
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateProcessW]
test eax, eax
je 0x1400031c9
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
jmp 0x1400031cf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140006900
add rsp, 0x508
pop rbx
pop rbp
ret
Function at 0x140003c84
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7f0ea553
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
Function at 0x14000407c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x28], rax
mov rbx, r8
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1400040f8
cmp dword [rsp + 0x30], 2
jb 0x14000413c
mov eax, dword [rsp + 0x40]
lea ecx, [rdx + 0x4e]
and eax, 0xffdf
cmp eax, ecx
je 0x1400040f4
cmp eax, 0x59
jne 0x14000413c
mov dword [rbx], 1
jmp 0x14000413c
mov dword [rbx], edx
jmp 0x14000413c
mov eax, dword [rbx]
mov r9d, 1
neg eax
mov word [rsp + 0x42], dx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
sbb r8w, r8w
mov qword [rsp + 0x20], rax
and r8w, 0xb
mov rdx, rsi
add r8w, 0x4e
mov rcx, rdi
mov word [rsp + 0x40], r8w
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140006900
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004160
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov ebx, dword [0x14000d020]
lea rax, [r11 + 0x10]
mov qword [r11 - 0x10], rax
lea rbp, [0x14000d020]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rbp
xor r8d, r8d
mov dword [rsp + 0x48], 4
lea rdx, str.EventDispatchTtime
mov dword [rsp + 0x50], 4
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400041cb
cmp dword [rsp + 0x50], 4
je 0x1400041f7
mov dword [0x14000d020], ebx
jmp 0x1400041f7
mov dword [rsp + 0x28], 4
lea rdx, str.EventDispatchTtime
mov r9d, 4
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dword [0x14000d020], ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000579c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], rsp
lea rcx, [0x14000d2f8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
nop
cmp byte [0x14000f6f8], 0
jne 0x14000583b
lea rax, [0x14000f700]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMSDTCTracing
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14000582f
and qword [0x14000f700], 0
lea rcx, str.Unable_to_open_MSDTCTracing_settings_key_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov dword [rsp + 0x50], ecx
lea rdx, [0x140005829]
mov rcx, rsp
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, dword [rsp + 0x50]
jmp 0x14000584a
call fcn.140005858
mov byte [0x14000f6f8], 1
lea rcx, [0x14000d2f8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140005fc8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor ebx, ebx
mov edi, 0x105
mov qword [rsp + 0x30], rbx
mov rsi, rdx
mov dword [rsp + 0x38], edi
mov r14, rcx
test rdx, rdx
jne 0x14000601b
mov eax, 0x80070057
jmp 0x1400061b1
mov qword [rcx], rbx
mov qword [rdx], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
lea r9, [rsp + 0x38]
xor edx, edx
mov rcx, rax
lea r8, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x140006061
lea r9, [rsp + 0x30]
mov edx, edi
lea r8, [rbp + 0x2e0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
test eax, eax
jne 0x14000607a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400061af
mov rdx, qword [rsp + 0x30]
lea rcx, str.dllhost.exe
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1400061a0
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineA]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400061a0
add rax, 1
je 0x1400061a0
movzx ecx, word [0x14000ada8]
lea rdx, [rsp + 0x40]
movsd xmm0, qword [str._ProcessID]
mov word [rsp + 0x50], cx
mov cl, byte [0x14000adaa]
mov byte [rsp + 0x52], cl
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x40], rcx
mov rcx, rax
movsd qword [rsp + 0x48], xmm0
call fcn.140005ee4
cmp eax, 1
jl 0x1400061a0
lea rdi, [rbp - 0x40]
cmp byte [rbp - 0x40], bl
je 0x14000611a
cmp byte [rdi], 0x3a
je 0x140006115
inc rdi
cmp byte [rdi], bl
jne 0x140006107
jmp 0x14000611a
mov byte [rdi], bl
inc rdi
cmp byte [rdi], bl
je 0x140006131
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x140006135
lea rdi, [rbp - 0x40]
mov rcx, rbx
test rdi, rdi
je 0x14000615f
mov ecx, 0x28
mov r8, rdi
mov edx, ecx
mov eax, ebx
cmp byte [r8], bl
je 0x140006157
inc r8
sub rdx, 1
jne 0x140006149
test rdx, rdx
jne 0x1400061d8
mov rcx, rbx
mov eax, 0x80070057
test eax, eax
js 0x1400061a0
lea r9d, [rcx + 1]
mov dword [rsp + 0x28], 0x29
lea rax, [rsp + 0x60]
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x1400061a0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14000223c
test eax, eax
js 0x1400061af
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.14000223c
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.140006900
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
sub rcx, rdx
jmp 0x140006164
Function at 0x140006650
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x14000f980], rbx
je 0x1400066b9
cmp rax, rbx
jne 0x1400066ac
mov edi, 1
mov r14d, edi
jmp 0x1400066be
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140006690
mov edi, 1
mov eax, dword [0x14000f988]
cmp eax, edi
jne 0x1400066d6
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x140006747
mov eax, dword [0x14000f988]
test eax, eax
jne 0x14000673c
mov dword [0x14000f988], edi
lea r12, [0x140008560]
lea rbx, [0x140008548]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x14000672e
test eax, eax
jne 0x140006732
mov rsi, qword [rbx]
test rsi, rsi
je 0x140006723
mov rcx, rsi
mov rax, qword [0x1400084d0]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140006700
test eax, eax
je 0x140006742
mov eax, 0xff
jmp 0x1400068a3
mov dword [0x14000d3f4], edi
mov esi, 0x1f
mov eax, dword [0x14000f988]
cmp eax, edi
jne 0x14000676e
lea rdx, [0x140008540]
lea rcx, [0x1400084e0]
call sub.msvcrt.dll__initterm
mov dword [0x14000f988], 2
test r14d, r14d
jne 0x14000677d
mov rax, r15
xchg qword [0x14000f980], rax
cmp qword [0x14000f990], r15
je 0x1400067b4
lea rcx, [0x14000f990]
call fcn.140006ad0
test eax, eax
je 0x1400067b4
mov rbx, qword [0x14000f990]
mov rcx, rbx
mov rax, qword [0x1400084d0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400067cd
mov eax, 0xff
jmp 0x1400068a3
mov qword [rsp + 0x28], rdx
mov ecx, dword [rsp + 0x20]
cmp word [rdx], 0x20
ja 0x140006854
cmp word [rdx], r15w
je 0x1400067e6
test ecx, ecx
jne 0x140006854
movzx eax, word [rdx]
sub ax, di
cmp ax, si
ja 0x1400067fc
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1400067e6
mov ecx, dword [rsp + 0x7c]
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
and cl, dil
cmovne r9d, eax
mov r8, rdx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001374
mov dword [0x14000d3f0], eax
cmp dword [0x14000d410], r15d
jne 0x14000683d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d3f4], r15d
jne 0x140006852
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d3f0]
jmp 0x1400068a3
cmp word [rdx], 0x22
jne 0x140006868
mov eax, r15d
test ecx, ecx
sete al
mov ecx, eax
mov dword [rsp + 0x20], eax
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x1400067d6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.1400b7000
add rsp, 0x28
jmp 0x140006650
Function at 0x1400069bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006a08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006a00
cmp dword [rcx + 0x3c], edx
jl 0x140006a00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006a00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006a08
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140008e60
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.140017240
test rax, rax
je 0x140008e95
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140008e60
mov ebx, eax
test eax, eax
je 0x140008ea1
mov word [rsi], 0x2f
jmp 0x140008e97
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x140008e8e
mov rcx, rdi
call fcn.140025100
test eax, eax
jns 0x140008e8e
call fcn.140020464
cmp dword [rax], 0x11
je 0x140008e8e
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008efe
call fcn.140020464
mov r9d, dword [rax]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.1400139f0
mov ebx, 7
jmp 0x140008e8e
lea rcx, [0x140055e98]
call fcn.140015744
cmp dword [0x140055e98], 0xffffffff
jne 0x140008ee0
mov qword [0x140055c88], 0
lea rcx, [0x140008510]
call fcn.140015828
lea rcx, [0x140055e98]
call fcn.1400157bc
jmp 0x140008ee0
Function at 0x14000c670
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c855
mov rcx, qword [0x140055c88]
test rcx, rcx
je 0x14000c6cb
call fcn.1400265ec
mov qword [0x140055c88], 0
cmp byte [0x140054a49], 1
jne 0x14000c773
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
mov rcx, rsi
call fcn.140013610
test eax, eax
je 0x14000c727
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
lea rcx, [0x1400496d0]
mov rdx, rsi
call fcn.140013710
test eax, eax
jne 0x14000c78d
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
mov rcx, rsi
call fcn.140013610
test eax, eax
je 0x14000c773
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
lea rcx, [0x140049c70]
mov rdx, rsi
call fcn.140013710
test eax, eax
jne 0x14000c7f2
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.14002cd00
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [rsp + 0x230]
lea rdx, [rsp + 0x440]
call fcn.14003dbc0
test eax, eax
je 0x14000c727
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
lea r8, str._supdate.status
lea r9, [0x140054210]
mov edx, 0x105
mov rcx, rsi
call fcn.140005e90
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c727
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x440]
call fcn.14003dbc0
test eax, eax
je 0x14000c773
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14003cd40
lea r8, str._supdate_elevated.log
lea r9, [0x140054210]
mov edx, 0x105
mov rcx, rsi
call fcn.140005e90
lea rcx, [rsp + 0x20]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14000c773
lea rcx, [0x140055e98]
call fcn.140015744
cmp dword [0x140055e98], 0xffffffff
jne 0x14000c6af
mov qword [0x140055c88], 0
lea rcx, [0x140008510]
call fcn.140015828
lea rcx, [0x140055e98]
call fcn.1400157bc
jmp 0x14000c6af
Function at 0x14000c8a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.140023ed0
mov rcx, r14
call fcn.1400246c4
test eax, eax
je 0x14000c913
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000c9c5
lea rdx, str.Warning:_chdir_failed
call fcn.1400139f0
test bl, bl
je 0x14000c936
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002cd00
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, edi
mov r8, rsi
call fcn.14003d770
test eax, eax
je 0x14000c917
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
call r14
mov ebx, eax
sub ebx, edi
cmp ebx, 0x270f
ja 0x14000c9b5
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x14000c9b5
call r13
cmp eax, 0x5bf
jne 0x14000c9b5
mov ecx, 0xa
call rbp
jmp 0x14000c97c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c917
lea rcx, [0x140055e98]
call fcn.140015744
cmp dword [0x140055e98], 0xffffffff
jne 0x14000c907
mov qword [0x140055c88], 0
lea rcx, [0x140008510]
call fcn.140015828
lea rcx, [0x140055e98]
call fcn.1400157bc
jmp 0x14000c907
Function at 0x140010d40
Capabilities:
Hash data via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x140010e14
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010e14
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010e4e
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010e4e
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.14003d100
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x140010e61
inc r15
cmp r14, r15
jne 0x140010df4
xor eax, eax
jmp 0x140010e3d
mov ecx, 2
call fcn.1400176e0
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.1400271c8
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400176e0
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010e72
mov ecx, 2
call fcn.1400176e0
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.14003d9d0
jmp 0x140010e38
Function at 0x140012590
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rbp, rcx
mov rcx, qword [r8]
sub r9, rcx
mov r10d, dword [rbp]
cmp r10d, 4
je 0x14001262e
cmp r10d, 7
jne 0x140012634
cmp r9, 4
jb 0x140012634
add rcx, rdx
add rcx, 3
mov edx, 0xfffffff8
xor r10d, r10d
cmp byte [rcx + r10], 0xeb
jne 0x140012616
movzx eax, byte [rcx + r10 - 3]
movzx r11d, byte [rcx + r10 - 2]
movzx esi, byte [rcx + r10 - 1]
shl esi, 0x12
shl r11d, 0xa
or r11d, esi
lea eax, [r11 + rax*4]
sub eax, dword [rbp + 0xc]
add eax, edx
mov r11d, eax
shr r11d, 2
mov byte [rcx + r10 - 3], r11b
mov r11d, eax
shr r11d, 0xa
mov byte [rcx + r10 - 2], r11b
shr eax, 0x12
mov byte [rcx + r10 - 1], al
lea rsi, [r10 + 4]
add r10, 8
add edx, 0xfffffffc
cmp r10, r9
mov r10, rsi
jbe 0x1400125ca
jmp 0x140012795
cmp r9, 5
jae 0x14001263b
xor esi, esi
jmp 0x140012795
add rdx, rcx
mov edi, dword [rbp + 0x10]
add r9, 0xfffffffffffffffc
mov r10, 0xffffffffffffffff
xor esi, esi
lea r11, [0x140046058]
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x140012670
mov rcx, rsi
sub rcx, r10
cmp rcx, 3
jbe 0x140012678
xor edi, edi
jmp 0x1400126b5
mov rcx, rsi
jmp 0x14001276f
dec cl
shl edi, cl
mov ecx, edi
mov edi, 0
and ecx, 7
je 0x1400126b5
mov eax, 0xe8
bt eax, ecx
jb 0x140012762
movzx r10d, byte [rcx + r11]
mov rdi, rsi
sub rdi, r10
mov r10b, byte [rdi + rdx + 4]
dec r10b
cmp r10b, 0xfe
jae 0x140012762
mov edi, ecx
mov cl, byte [rdx + rsi + 4]
dec cl
cmp cl, 0xfe
jae 0x1400126cc
lea edi, [rdi*2 + 1]
jmp 0x140012769
mov r14d, dword [rbp + 0xc]
mov r15d, 0xfffffffb
sub r15d, esi
mov ebx, dword [rdx + rsi + 1]
add ebx, r15d
sub ebx, r14d
test edi, edi
je 0x140012734
mov ecx, edi
movzx ecx, byte [rcx + r11]
shl ecx, 3
mov r10d, 0x18
sub r10d, ecx
neg cl
mov r12d, 0xffffffff
shl r12d, cl
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfe
jb 0x140012734
xor ebx, r12d
not ebx
add ebx, r15d
sub ebx, r14d
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfd
ja 0x140012717
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov r10d, eax
neg r10d
or r10d, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr r10d, 0x18
mov byte [rdx + rsi + 4], r10b
jmp 0x14001276c
lea edi, [rcx*2 + 1]
mov rcx, rsi
mov r10, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x140012655
mov rax, rsi
sub rax, r10
lea ecx, [rax - 1]
shl edi, cl
xor ecx, ecx
cmp rax, 4
cmovb ecx, edi
mov dword [rbp + 0x10], ecx
add qword [r8], rsi
add dword [rbp + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret