joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f4f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1401f5050
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x1401f50da
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1401f508c
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx edi, byte [rsp + 0x57]
jmp 0x1401f508c
mov edi, r14d
test rdi, rdi
jle 0x1401f50ac
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.1401cb9e4
cmp eax, 0xffffffff
jne 0x1401f50b6
mov edi, 0xffffffff
jmp 0x1401f508c
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1401c4a94
cmp eax, 0xffffffff
je 0x1401f50d3
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1401f50fc
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x1401f5147
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1401f50b3
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x1401f508c
cmp eax, 2
je 0x1401f50d3
cmp eax, 3
je 0x1401f5122
jmp 0x1401f512a
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [0x1403d6008]
cmp eax, 1
jne 0x1401f513b
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1401f50d3
mov rcx, qword [rsi + 0x40]
call fcn.1401c4a94
cmp eax, 0xffffffff
je 0x1401f50d3
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1401f5158
Function at 0x1401f5500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1401f5640
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x1401f56cc
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x1401f567c
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx edi, word [rsp + 0x56]
jmp 0x1401f567c
mov edi, r14d
test rdi, rdi
jle 0x1401f569c
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.1401cb9e4
cmp eax, 0xffffffff
jne 0x1401f56a6
mov di, 0xffff
jmp 0x1401f567c
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.1401c4a94
cmp eax, 0xffffffff
je 0x1401f56c6
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1401f56ee
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x1401f5742
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x1401f56a3
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x1401f567c
cmp eax, 2
je 0x1401f56c6
cmp eax, 3
je 0x1401f5716
jmp 0x1401f5720
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x56]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [0x1403d6008]
cmp eax, 1
jne 0x1401f5736
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1401f56c6
mov rcx, qword [rsi + 0x40]
call fcn.1401c4a94
cmp eax, 0xffffffff
je 0x1401f56c6
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1401f5753

Function at 0x1401f5a70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1401f5aa7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1401f5a81
ret

Function at 0x1401f5b10
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1401f5b48
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1401f5b21
ret
Function at 0x14020dd10
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rax], 0
mov r9d, 0x20019
or r9d, dword [rcx + 0x10]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14020dd77
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a2850
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x6c]
mov dword [rax], 0
mov rcx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14020dd5d
mov ebx, 0x91
cmp dword [rsp + 0x6c], 0
jne 0x14020dd5d
mov r8d, dword [rdi + 0x10]
mov rcx, qword [rdi + 8]
mov rdx, rsi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
jmp 0x14020dd5d

Function at 0x14020ddf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x14020de20
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x4c]
mov dword [r9], ntohl
lea rax, [rsp + 0x40]
mov qword [rax], 0
lea r8, [rsp + 0x3c]
mov dword [r8], 8
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x14020de8f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x4c]
and eax, 0xfffffff7
mov edi, 0x3f4
cmp eax, 3
jne 0x14020de79
cmp dword [rsp + 0x3c], 8
jne 0x14020de79
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
xor edi, edi
jmp 0x14020de79

Function at 0x14020dec0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret
Function at 0x14020ef30
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14020efa1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14020efab
mov dil, 1
test bl, bl
je 0x14020ef8a
cmp byte [rsi + 8], 0
je 0x14020efa6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14020ef5d
mov rcx, qword [rsi]
jmp 0x14020ef7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14020efd3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14020efd8
xor edi, edi
jmp 0x14020ef8a
mov rcx, qword [rsi]
jmp 0x14020efc0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14020efff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14020ef8a
mov rcx, qword [rsi]
jmp 0x14020efef
Function at 0x14020fee0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1ca
call fcn.140151d90
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140147900
mov al, byte [rsi + 0x17]
test al, al
jns 0x14020ff6c
cmp qword [rsi + 8], 0x103
ja 0x14020ff8a
test al, al
jns 0x14020ff73
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140147b40
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401a2850
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140210440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edx, 1
mov r8d, 0x80000000
jmp fcn.140079ea0
Function at 0x140210770
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], r12
movaps xmm6, xmmword [0x14032ae20]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x86
call fcn.140151d90
xor ebp, ebp
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140147900
mov rcx, rdi
call fcn.1401548c0
test al, al
jne 0x14021082c
mov rcx, rsi
call fcn.1401548c0
test al, al
jne 0x14021082a
cmp byte [rdi + 0x17], 0
jns 0x140210870
cmp qword [rdi + 8], 0x103
jbe 0x140210870
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.140147b40
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401a2850
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400c6de0
jmp 0x14021082c
cmp byte [rsi + 0x17], 0
jns 0x140210880
cmp qword [rsi + 8], 0x103
ja 0x14021082a
lea r14, [rsp + 0x40]
mov qword [r14 + 0x10], r12
movaps xmmword [r14], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x93
call fcn.140151d90
lea r8, [0x1403b0fec]
mov rcx, r14
mov rdx, r15
call fcn.1400c6ae0
cmp byte [rsi + 0x17], 0
jns 0x1402108c9
mov rsi, qword [rsi]
movzx r8d, bl
cmp byte [rdi + 0x17], 0
jns 0x1402108d6
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140210862
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
je 0x140210864
mov ecx, eax
and ecx, 1
je 0x140210864
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bpl, 1
jmp 0x140210864
Function at 0x140211010
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.MoveUnsafe
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x4bb
call fcn.140151d90
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140147900
mov al, byte [rdi + 0x17]
test al, al
jns 0x1402109c6
cmp qword [rdi + 8], 0x103
ja 0x1402109d9
mov cl, byte [rsi + 0x17]
test cl, cl
jns 0x140210a05
cmp qword [rsi + 8], 0x103
jbe 0x140210a05
xor ebx, ebx
lea rcx, [rsp + 0x40]
call fcn.140147b40
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401a2850
mov eax, ebx
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, rsi
test cl, cl
jns 0x140210a0f
mov rdx, qword [rsi]
mov rcx, rdi
test al, al
jns 0x140210a19
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x1402109d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.14007a000
test al, al
jne 0x140210a49
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1402109d7
mov rcx, rdi
mov rdx, rsi
call fcn.140210a60
test al, al
jne 0x1402109d9
jmp 0x140210a3f
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1401548c0
test al, al
jne 0x140211031
mov rcx, rsi
call fcn.1401548c0
test al, al
je 0x14021103a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140210930
Function at 0x140211b60
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x858
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp byte [0x14039f860], 0
je 0x140211d19
mov rdx, qword [0x1403b1018]
test rdx, rdx
je 0x140211d19
cmp byte [rdx + 0x17], 0
jns 0x140211bab
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
je 0x140211d43
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140151db0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 0x18]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [r14], xmm0
mov rdx, r14
call fcn.140131a60
mov eax, dword [rsi + 8]
test eax, eax
je 0x140211c5a
cmp eax, 1
je 0x140211c60
mov bx, 1
add eax, 0xfffffffe
cmp eax, 2
jae 0x140211c64
lea r12, [rsp + 0x78]
mov r8d, 0x7d8
mov rcx, r12
mov dl, 0xaa
call fcn.1401a49a0
mov rcx, r12
call fcn.1400d9880
lea r15, [rsp + 0x48]
mov rcx, r12
mov rdx, r15
call fcn.140279cb0
movzx r8d, byte [r15 + 0x17]
test r8b, r8b
js 0x140211d91
and r8d, 0x7f
jmp 0x140211d9b
mov bx, 4
jmp 0x140211c64
mov bx, 2
cmp byte [rsp + 0x77], 0
jns 0x140211c70
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x48], 0
mov rcx, qword [0x1403b1028]
cmp byte [rcx + 0x17], 0
jns 0x140211c8e
mov rcx, qword [rcx]
lea rdx, [rsp + 0x48]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x140211d76
mov rax, qword [rsp + 0x48]
mov r9d, dword [0x1403b1024]
movzx r8d, word [0x1403b1020]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
je 0x140211d5b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140211cfa
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [rsp + 0x77], 0
jns 0x140211d0b
mov rcx, qword [rsp + 0x60]
call fcn.1401a10a4
call fcn.140151db0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.1400887d0
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1401a2850
nop
add rsp, 0x858
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.1401e2460
jmp 0x140211d19
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.1401e2460
jmp 0x140211cea
lea rcx, [rsi + 0x10]
lea rdx, str.___ERROR_GETTING_USER_SID__
mov r8d, 0x1b
call fcn.1401e2460
jmp 0x140211ca0
mov r8, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.14013ba40
cmp byte [rsp + 0x5f], 0
jns 0x140211c64
mov rcx, qword [rsp + 0x48]
call fcn.1401a10a4
jmp 0x140211c64
Function at 0x140215730
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1403b11b0], 0
je 0x140215776
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1401a2850
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1403b1188]
test rdi, rdi
je 0x140215817
test byte [0x14039f864], 1
je 0x140215759
cmp byte [rdi + 0x17], 0
jns 0x140215798
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403b11b0], rax
inc rax
cmp rax, 1
ja 0x140215759
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a49a0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1402158e0
xor esi, esi
jmp 0x140215759
mov ecx, 0x18
call fcn.1401a1068
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a49a0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14032ae20]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1401e2280
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14021587d
and eax, 0x7f
mov rcx, rdi
jmp 0x140215884
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1402158bf
lea r8, [rax + rax]
test r8, r8
je 0x1402158bf
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x14021588d
cmp rdx, 0xfffffffffffffffe
je 0x1402158bf
sar rdx, 1
cmp rax, rdx
jbe 0x1402159a7
inc rdx
mov rcx, rdi
call fcn.1401e2640
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14005c6a0
mov qword [0x1403b1188], rdi
jmp 0x140215786
mov rdi, qword [0x1403b1188]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1401ca774
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14005c2e0
mov rcx, qword [0x1403b1188]
call fcn.140208780
cmp word [rax], 0x5c
je 0x14021592d
mov rcx, qword [0x1403b1188]
lea rdx, [0x14032c110]
mov r8d, 1
call fcn.14005c6a0
mov rcx, qword [0x1403b1188]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14005c6a0
mov rcx, qword [0x1403b1188]
cmp byte [rcx + 0x17], 0
jns 0x140215956
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403b11b0], rax
inc rax
cmp rax, 1
ja 0x140215759
mov qword [0x1403b11b0], 0
jmp 0x140215810
mov rcx, rdi
call fcn.1401e2420
int3
Function at 0x140221370
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [0x14032ae20]
movups xmmword [rcx], xmm0
call fcn.140152600
mov eax, ebx
xor al, 1
movzx eax, al
lea ecx, [rax + rax*8]
add ecx, 0x67
mov rdx, rsi
call fcn.14007cea0
test al, al
jne 0x140221456
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a49a0
mov word [rdi], 0
lea rax, [0x14033acb0]
lea rcx, str.LOCALAPPDATA
test bl, bl
cmovne rcx, rax
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
jbe 0x14022141d
lea rcx, [rsp + 0x48]
call fcn.140152600
jmp 0x14022143e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1401ca774
mov qword [rbx + 8], rax
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.140152730
lea rdi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
call fcn.140152970
mov rcx, rdi
call fcn.1401528f0
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140221463
and eax, 0x7f
jmp 0x140221467
mov rax, qword [rsi + 8]
test rax, rax
je 0x14022152d
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.14008fb90
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea r8, [rsp + 0x38]
mov qword [r8], rax
cmovs rcx, qword [rdi + 8]
mov qword [r8 + 8], rcx
lea rbx, [rsp + 0x70]
mov rcx, rsi
mov rdx, rbx
call fcn.140153ca0
mov rcx, rsi
mov rdx, rbx
call fcn.140152970
mov rcx, rbx
call fcn.1401528f0
cmp byte [rdi + 0x17], 0
jns 0x1402214d3
mov rcx, qword [rsp + 0x48]
call fcn.1401a10a4
lea rcx, [0x14032e860]
lea rdi, [rsp + 0x28]
mov qword [rdi], rcx
call fcn.1401ca774
mov qword [rdi + 8], rax
lea rbx, [rsp + 0x70]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140153ca0
mov rcx, rsi
mov rdx, rbx
call fcn.140152970
mov rcx, rbx
call fcn.1401528f0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401a2850
nop
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x1402244c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
lea rax, [0x1403b15a0]
xor ecx, ecx
mov edx, 0xedb88320
mov r9d, ecx
shr r9d, 1
mov r8d, ecx
and r8d, 1
neg r8d
and r8d, edx
xor r8d, r9d
mov r10d, r8d
shr r10d, 1
mov r9d, ecx
shl r9d, 0x1e
sar r9d, 0x1f
and r9d, edx
xor r9d, r10d
mov r10d, r9d
shr r10d, 6
mov r11d, ecx
shl r11d, 0x1d
sar r11d, 0x1f
and r11d, 0x76dc419
mov esi, ecx
shl esi, 0x1c
sar esi, 0x1f
and esi, 0xedb8832
xor esi, r11d
mov r11d, ecx
shl r11d, 0x1b
sar r11d, 0x1f
and r11d, 0x1db71064
xor r11d, esi
mov esi, ecx
shl esi, 0x1a
sar esi, 0x1f
and esi, 0x3b6e20c8
xor esi, r11d
xor esi, r10d
shl r8d, 0x1a
sar r8d, 0x1f
and r8d, 0x76dc4190
xor r8d, esi
shl r9d, 0x1a
sar r9d, 0x1f
and r9d, edx
xor r9d, r8d
mov dword [rax], r9d
inc rcx
add rax, 4
cmp rcx, 0x100
jne 0x1402244d3
mov eax, 0x100
lea rcx, [0x1403b15a0]
mov edx, dword [rcx + rax*4 - 0x400]
movzx r8d, dl
shr edx, 8
xor edx, dword [rcx + r8*4]
mov dword [rcx + rax*4], edx
inc rax
cmp rax, 0x800
jne 0x140224596
lea rax, [0x1401a1940]
mov qword [0x1403b35a0], rax
mov qword [0x1403b1598], rax
lea rsi, [0x1401a1850]
mov qword [0x1403b35a8], rsi
call fcn.1402851f0
test eax, eax
jne 0x1402245e9
mov qword [0x1403b1598], rsi
add rsp, 0x20
pop rsi
ret