joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041080
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14004117a
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b618], rax
test rax, rax
je 0x14004117a
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14004117a
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b620], rax
test rax, rax
je 0x14004117a
lea rcx, str.COMBASE.DLL
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140041175
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b628], rax
test rax, rax
je 0x140041175
lea rdx, str.WindowsCreateStringReference
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b630], rax
test rax, rax
je 0x140041175
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b638], rax
test rax, rax
je 0x140041175
lea rdx, str.WindowsDeleteString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009b640], rax
mov rbx, qword [rsp + 0x20]
cmp qword [0x14009b618], 0
je 0x1400411b3
cmp qword [0x14009b620], 0
je 0x1400411b3
cmp qword [0x14009b628], 0
je 0x1400411b3
cmp qword [0x14009b630], 0
je 0x1400411b3
cmp qword [0x14009b640], 0
je 0x1400411b3
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1400446d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004471a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004471a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004471a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004471a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004471a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004471c
xor al, al
add rsp, 0x28
ret
Function at 0x1400016f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
lea rdx, str.C:WindowsSystem32RuntimeBroker.exe
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400017e6
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400017c4
mov rcx, rax
call section..text
test al, al
jne 0x1400017c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf0]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001810
add rsp, 0xf8
ret
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001810
add rsp, 0xf8
ret

Function at 0x1400021fc
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000592f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000592f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000592f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000592f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000592f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000592f
cmp dword [rcx + 0xf8], 0
je 0x14000592f
mov ecx, ebx
call fcn.1400059e0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400057bc
nop
cmp dword [rbp + 0x20], 0
je 0x14000597d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005988
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400058c0

Function at 0x140005ac4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400058c0
Function at 0x140008bdc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008c0c
xor eax, eax
jmp 0x140008ccf
mov rbp, rbx
cmp word [rax], si
je 0x140008c31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008c18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008c14
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008afc
movsxd r14, eax
test eax, eax
jne 0x140008c6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008c05
mov rcx, r14
call fcn.1400064cc
mov rdi, rax
test rax, rax
jne 0x140008c88
xor ecx, ecx
call fcn.14000715c
jmp 0x140008c64
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008afc
test eax, eax
jne 0x140008cb9
mov rcx, rdi
call fcn.14000715c
jmp 0x140008cc3
xor ecx, ecx
call fcn.14000715c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c160
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007bcc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c1ea
cmp byte [rbp - 0x21], r15b
je 0x14000c1e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c220
call fcn.14000a268
test eax, eax
jne 0x14000c20c
cmp byte [rbp - 0x21], r15b
je 0x14000c204
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c220
cmp byte [rbp - 0x21], r15b
je 0x14000c21d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400071ac
test eax, eax
jne 0x14000c2c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007bcc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c25f
cmp byte [rbp - 0x21], r15b
je 0x14000c294
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c294
call fcn.14000a268
test eax, eax
jne 0x14000c280
cmp byte [rbp - 0x21], r15b
je 0x14000c279
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c294
cmp byte [rbp - 0x21], r15b
je 0x14000c291
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400071ac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c2c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c2c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c2d1
mov rcx, rdi
call fcn.14000715c
cmp byte [rbp + 0x3f], r15b
je 0x14000c2e0
mov rcx, qword [rbp + 0x27]
call fcn.14000715c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f110
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f138
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f138
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c428
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
jmp 0x14000c428
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14000c554
test rbx, rbx
je 0x14000c554
lea rdi, [rcx + 4]
lea rcx, [rax - 0x50]
mov r8d, InitCommonControls
mov rdx, rdi
mov qword [rsp + 0x20], rdi
call fcn.14000c6a8
shr rbx, 4
mov qword [rsp + 0x88], rbx
test rbx, rbx
je 0x14000c538
mov r13d, dword [rsp + 0x34]
mov r14d, dword [rsp + 0x30]
mov r15d, dword [rsp + 0x2c]
mov edi, dword [rsp + 0x28]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, rbp
call fcn.14000bc14
mov r11d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x44]
xor r11d, edi
mov edi, dword [rsi]
xor r9d, r15d
mov r15d, dword [rsi + 4]
xor edx, r14d
mov r14d, dword [rsi + 8]
xor eax, r13d
mov r13d, dword [rsi + 0xc]
mov dword [r12], r11d
mov dword [r12 + 4], r9d
mov dword [r12 + 8], edx
mov dword [r12 + 0xc], eax
add rsi, 0x10
add r12, 0x10
sub rbx, 1
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x2c], r15d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], eax
jne 0x14000c4a5
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov r8d, InitCommonControls
mov rcx, rdi
call fcn.14000c6a8
shl rbx, 4
mov rax, rbx
jmp 0x14000c556
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000cbf4
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14000cf4c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x98
mov r9d, 0x64
lea r8, [rsp + 0x20]
mov ecx, 0x400
lea edx, [r9 - 0x55]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsx eax, byte [rsp + 0x20]
add rsp, 0x98
ret

Function at 0x14000d280
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov ebx, edx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x40]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e218
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1020
call fcn.140015e00
sub rsp, rax
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14000e244
mov byte [r9], 0
mov rcx, qword [rsp + 0x1050]
test rcx, rcx
je 0x14000e254
mov byte [rcx], 0
test rbx, rbx
je 0x14000e300
mov al, byte [rbx]
test al, al
je 0x14000e300
movsxd rbp, dword [rsp + 0x1058]
xor edi, edi
xor r8d, r8d
inc rbx
cmp al, 0x3d
jne 0x14000e293
test rsi, rsi
je 0x14000e29b
test rdi, rdi
jne 0x14000e29b
test r9, r9
je 0x14000e28e
mov byte [r9], 1
mov rdi, rdx
jmp 0x14000e2a8
cmp al, 0xd
je 0x14000e2b8
cmp al, 0xa
je 0x14000e2bb
mov byte [rdx], al
lea eax, [rbp - 2]
inc rdx
cmp r8d, eax
jg 0x14000e2b3
mov al, byte [rbx]
inc r8d
test al, al
jne 0x14000e274
jmp 0x14000e2bb
mov byte [rcx], 1
jmp 0x14000e2bb
inc rbx
mov byte [rdx], 0
test rsi, rsi
je 0x14000e2fb
mov byte [rsi], 0
test rdi, rdi
je 0x14000e2fb
lea rdx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r11d, [rbp - 1]
lea rdx, [rsp + 0x20]
movsxd r8, r11d
mov rcx, rsi
call fcn.14000c9c8
mov byte [rbp + rsi - 1], 0
mov byte [rdi], 0
mov rax, rbx
jmp 0x14000e302
xor eax, eax
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000e31c
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
sub rsp, 0x468
lea rdx, [rsp + 0x60]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [0x14001fcdd], 0
jne 0x14000e3b2
lea rcx, [rsp + 0x60]
call fcn.140008968
mov rdx, qword [str.RarSFX]
mov r8d, 6
mov rcx, rax
call fcn.14000cb78
test eax, eax
jne 0x14000e3b2
lea rcx, [0x140016600]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x60]
call fcn.14000c808
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x38]
mov byte [rsp + rax + 0x61], 0
call fcn.14000c654
mov eax, 0x14
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
add rsp, 0x468
ret
Function at 0x14000e4a8
Capabilities:
Hide graphical window

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x14001f440]
mov edi, 1
mov dword [0x14001f428], edi
test rcx, rcx
je 0x14000e4e6
lea ecx, [rdi + 0x7c]
call fcn.14000b944
mov rcx, qword [0x14001f440]
mov edx, edi
mov r8, rax
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [0x14001f440]
and dword [0x14001f424], 0
mov dword [0x14001f420], edi
test rcx, rcx
je 0x14000e53b
mov edx, edi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp qword [0x14001fcf8], 0
jne 0x14000e532
cmp byte [0x14001fcdc], 0
jne 0x14000e532
mov rcx, qword [0x14001f440]
xor r9d, r9d
mov r8, rdi
mov edx, 0x111
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x14000e532
call fcn.14000cefc
cmp dword [0x14001f430], 2
jne 0x14000e52d
cmp byte [0x14001f450], 0
je 0x14000e549
call fcn.14000e31c
add rsp, 0x20
pop rdi
ret

Function at 0x14000e550
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x450
cmp byte [0x14001f458], 0
mov rbx, rcx
je 0x14000e635
cmp byte [0x14001e380], 0
je 0x14000e635
lea rdx, [0x14001e380]
lea rcx, [rsp + 0x50]
call fcn.14000c978
cmp byte [rsp + 0x50], 0
je 0x14000e5ad
lea rax, [rsp + 0x50]
cmp byte [rax], 0x3a
je 0x14000e5a2
cmp byte [rax], 0x5c
je 0x14000e5a2
cmp byte [rax], 0x2f
jne 0x14000e5a5
mov byte [rax], 0x25
inc rax
cmp byte [rax], 0
jne 0x14000e593
lea rax, [rsp + 0x468]
lea rdx, str.SoftwareWinRAR_SFX
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x470]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000e635
mov rcx, rbx
call fcn.14000c808
mov rcx, qword [rsp + 0x470]
lea rdx, [rsp + 0x50]
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x450
pop rbx
ret

Function at 0x14000e640
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x830
cmp byte [0x14001f458], 0
mov rbx, rcx
je 0x14000e71f
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000c978
cmp byte [rsp + 0x30], 0
je 0x14000e68c
lea rax, [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x14000e681
cmp byte [rax], 0x5c
je 0x14000e681
cmp byte [rax], 0x2f
jne 0x14000e684
mov byte [rax], 0x25
inc rax
cmp byte [rax], 0
jne 0x14000e672
lea rax, [rsp + 0x858]
lea rdx, str.SoftwareWinRAR_SFX
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000e71f
mov rcx, qword [rsp + 0x858]
lea rax, [rsp + 0x848]
lea r9, [rsp + 0x850]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x430]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x848], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000e711
lea rdx, [rsp + 0x430]
mov rcx, rbx
call fcn.14000c978
mov rcx, qword [rsp + 0x858]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x830
pop rbx
ret
Function at 0x14000afc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ddd8]
test rcx, rcx
je 0x14000affb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afee
mov rcx, qword [0x14002ddd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ddd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002dde8], 0
je 0x14000b0ee
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288a8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140036610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0cf
test al, 0x10
je 0x14000b0cf
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b075
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140002450
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Delete file
Get file attributes

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.FakeDll.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140002498
lea rcx, str.Couldnt_find_FakeDll_for_copying_n
call fcn.1400016d0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret
lea rcx, str.c:windows_system32license.rtf
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400024cd
lea rcx, str.Couldnt_find_target_file_to_overwrite_n
call fcn.1400016d0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret
lea rcx, str.c:programdataxxxx1.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.c:programdataxxxx2.txt
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, str.c:programdataxxxx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor r9d, r9d
mov dword [rsp + 0x20], 0x18
lea r8, [rsp + 0x28]
lea rcx, str.D:_A__GA___WD__A_OICIIO_GA___WD_
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
lea rdx, [rsp + 0x20]
lea rcx, str.c:programdataxxxx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.140001740
test al, al
jne 0x14000255b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_create_hardlink_to_target_d_n
call fcn.1400016d0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret
call fcn.140001e30
test al, al
jne 0x140002587
lea rcx, str.Move_operation_failed_n
call fcn.1400016d0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret
xor r8d, r8d
lea rdx, str.c:windows_system32license.rtf
lea rcx, str.FakeDll.dll
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400025cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_copying_file_to_new_file:__d_n
call fcn.1400016d0
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret
call fcn.140001fb0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002780
add rsp, 0x48
ret

Function at 0x14000dcbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000daac
Function at 0x140013458
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400134df
mov rsi, rbx
cmp word [rax], bp
je 0x14001349e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013488
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013484
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e6b4
mov rdi, rax
test rax, rax
je 0x1400134cc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007f30
mov rbp, rdi
xor ecx, ecx
call fcn.14000e678
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret