joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054f80
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xa0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
call fcn.1400551b0
mov rcx, rdi
call fcn.1400554d0
mov rcx, rdi
call fcn.140055780
test al, al
je 0x140055176
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rdi]
call fcn.1400694ec
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140055003
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rax, vtable.CUtlCommonPath.0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], ebp
or rsi, 0xffffffffffffffff
test rbx, rbx
jne 0x140055032
mov eax, ebp
jmp 0x14005503f
mov rax, rsi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140055035
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140011b80
nop
lea rcx, [rsp + 0x40]
call fcn.14003c8c0
lea rdx, [0x140296e0c]
lea rcx, [rsp + 0x40]
call fcn.14003cc30
call fcn.1400694ec
mov rcx, rax
test rax, rax
setne bpl
test ebp, ebp
jne 0x140055089
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str._A___B__d___Y_____I:_M__p
lea rcx, [rsp + 0x38]
call fcn.140011c70
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14003f680
nop
mov r8, qword [rax]
lea rdx, str._Logging_Started__s_
lea rcx, [rsp + 0x20]
call fcn.140011640
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400550e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi + 0x18]
xor r9d, r9d
mov r8d, 0x3041
mov rdx, qword [rdi]
lea rcx, [rdi + 0x18]
call qword [rax + MsiGetSummaryInformationW]
mov rbx, qword [rsp + 0x20]
test eax, eax
jle 0x14005511e
mov rdx, rbx
lea rcx, [rdi + 0x18]
call fcn.140067ed0
test al, al
je 0x14005511e
mov rax, qword [0x140239ae8]
jmp 0x140055129
mov rax, qword [0x140239ae8]
mov qword [rdi + 0x20], rax
mov r8d, 1
cmp qword [rdi + 0x20], rax
je 0x14005513d
mov rdx, qword [rdi]
mov ecx, dword [rdi + 0x10]
jmp 0x140055141
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msi.dll_MsiGetComponentPathW]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005515d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140055176
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401f2f70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140057de0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140057e09
mov eax, 0xc9
jmp 0x140057e8e
test rcx, rcx
je 0x140057e89
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140057e82
mov qword [rsp + 0x40], 7
xor r8d, r8d
mov qword [rsp + 0x38], r8
mov word [rsp + 0x28], r8w
cmp word [rbx], r8w
je 0x140057e4b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140057e40
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400267e0
nop
mov rcx, qword [rdi + 0x18]
add rcx, 0x10
lea rdx, [rsp + 0x28]
call fcn.140062cd0
nop
cmp qword [rsp + 0x40], 8
jb 0x140057e7e
mov rcx, qword [rsp + 0x28]
call fcn.1400680cc
xor eax, eax
jmp 0x140057e8e
mov eax, 0xca
jmp 0x140057e8e
mov eax, 0xc8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14005a2b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14005a2d8
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005a3dd
mov qword [rsp + 0x298], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x14029fe0c]
lea rcx, [rsp + 0x20]
mov r8d, eax
mov edi, eax
call fcn.14005bd40
mov rcx, rbx
call fcn.140058510
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
mov rdx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14005a38b
nop
inc edi
lea rdx, [0x14029fe0c]
lea rcx, [rsp + 0x20]
mov r8d, edi
call fcn.14005bd40
mov rcx, rbx
call fcn.140058510
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
mov rdx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14005a340
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [rsp + 0x60], 0
mov rdi, qword [rsp + 0x298]
jne 0x14005a3ad
xor r8d, r8d
jmp 0x14005a3cb
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a3c0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400267e0
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x280
pop rbx
ret
Function at 0x14005a400
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x650
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
jb 0x14005a43c
xor eax, eax
jmp 0x14005a4dd
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14005a4a5
cmp word [rsp + 0x230], 0
jne 0x14005a47c
xor r8d, r8d
lea rdx, [rsp + 0x230]
jmp 0x14005a4d0
lea rax, [rsp + 0x230]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a490
lea rdx, [rsp + 0x230]
jmp 0x14005a4d0
cmp word [rsp + 0x20], 0
jne 0x14005a4b2
xor r8d, r8d
jmp 0x14005a4cb
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a4c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400267e0
mov eax, 1
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x650
pop rbx
ret
Function at 0x14005a500
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5d8]
sub rsp, 0x6d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rdi, rcx
xor ebx, ebx
mov word [rbp + 0x3b0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3b2]
call fcn.1401f7640
cmp qword [rdi + 0x18], 8
jb 0x14005a564
mov rdx, qword [rdi]
jmp 0x14005a567
mov rdx, rdi
lea r8, [0x1402986f4]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14005a6d8
nop word [rax + rax]
mov word [rbp + 0x1a0], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.1401f7640
test byte [rsp + 0x50], 0x10
je 0x14005a68f
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, word [0x140299a40]
jne 0x14005a5e6
cmp ax, word [0x140299a42]
je 0x14005a6b9
cmp cx, word [0x14029fc10]
jne 0x14005a609
cmp ax, word [0x14029fc12]
jne 0x14005a609
movzx eax, word [rbp - 0x80]
cmp ax, word [0x14029fc14]
je 0x14005a6b9
mov rcx, rdi
call fcn.140058510
mov rdx, rax
lea r8, [rsp + 0x7c]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp word [rbp + 0x1a0], 0
jne 0x14005a648
mov r8, rbx
jmp 0x14005a65e
lea rax, [rbp + 0x1a0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005a653
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x20]
call fcn.1400267e0
nop
lea rcx, [rsp + 0x20]
call fcn.14005a500
nop
cmp qword [rsp + 0x38], 8
jb 0x14005a6b9
mov rcx, qword [rsp + 0x20]
call fcn.1400680cc
jmp 0x14005a6b9
mov rcx, rdi
call fcn.140058510
mov rdx, rax
lea r8, [rsp + 0x7c]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005a5a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rdi + 0x18], 8
jb 0x14005a6e2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1401f2f70
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005a830
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea r8d, [rdi + 5]
lea rdx, str.Other
lea rcx, [rsp + 0x30]
call fcn.1400267e0
nop
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp - 0x80]
call fcn.1401f7640
mov dword [rbp - 0x80], 0x11c
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14005a911
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jae 0x14005a8f7
mov r8, qword [rsp + 0x40]
inc r8
je 0x14005a8ff
add r8, r8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401f3020
mov rdx, qword [rsp + 0x48]
jmp 0x14005a8ff
mov rcx, qword [rsp + 0x30]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
jmp 0x14005aa25
mov eax, dword [rbp - 0x78]
mov ecx, dword [rbp - 0x7c]
cmp ecx, 5
jne 0x14005a95a
cmp eax, 1
jne 0x14005a933
mov r8d, 0xa
lea rdx, str.Windows_XP
jmp 0x14005a9cb
cmp eax, 2
jne 0x14005a95a
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp byte [rbp + 0x9a], 1
jne 0x14005a9d5
cmp word [rsp + 0x50], 9
jne 0x14005a9d5
jmp 0x14005a921
cmp byte [rbp + 0x9a], 1
jne 0x14005a9be
cmp ecx, 6
jne 0x14005a9b9
test eax, eax
je 0x14005a9aa
cmp eax, 1
je 0x14005a99b
jbe 0x14005a9d5
cmp eax, 3
jbe 0x14005a98c
cmp eax, 4
jne 0x14005a9d5
mov r8d, 0xa
lea rdx, str.Windows_10
jmp 0x14005a9cb
mov r8d, 9
lea rdx, str.Windows_8
jmp 0x14005a9cb
mov r8d, 9
lea rdx, str.Windows_7
jmp 0x14005a9cb
mov r8d, SafeArrayDestroy
lea rdx, str.Windows_Vista
jmp 0x14005a9cb
cmp ecx, 0xa
je 0x14005a97d
mov r8d, 5
lea rdx, str.Other
lea rcx, [rsp + 0x30]
call fcn.1400267e0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rcx, qword [rsp + 0x48]
cmp rcx, 8
jae 0x14005aa10
mov r8, qword [rsp + 0x40]
inc r8
je 0x14005aa18
add r8, r8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401f3020
mov rcx, qword [rsp + 0x48]
jmp 0x14005aa18
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov rax, rbx
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1401f2f70
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005aa50
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rax
mov word [rcx], ax
lea r8d, [rax + 3]
lea rdx, [0x14029ad68]
call fcn.1400267e0
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x38]
cmp ax, 9
je 0x14005aabf
cmp ax, 6
jne 0x14005aad4
mov r8d, 3
lea rdx, [0x14029ad60]
mov rcx, rbx
call fcn.1400267e0
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x70
pop rbx
ret

Function at 0x14005aaf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
lea r8d, [rsi + 5]
lea rdx, str.Other
lea rcx, [rsp + 0x48]
call fcn.1400267e0
nop
mov word [rsp + 0x70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.1401f7640
mov dword [rsp + 0x68], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareClientsStartMenuInternet
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005abcf
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREClientsStartMenuInternet
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005ac3f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140296e0c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14005ac3f
test edi, edi
jne 0x14005ac3f
cmp word [rsp + 0x70], di
jne 0x14005ac1c
mov r8, rsi
jmp 0x14005ac30
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005ac25
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400267e0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rcx, qword [rsp + 0x60]
cmp rcx, 8
jae 0x14005ac7a
mov r8, qword [rsp + 0x58]
inc r8
je 0x14005ac82
add r8, r8
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1401f3020
mov rcx, qword [rsp + 0x60]
jmp 0x14005ac82
mov rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1401f2f70
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005ad90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rdi, rcx
lea ecx, [rbx + 0x10]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
lea rdx, [0x14029709c]
lea rcx, [rsp + 0x28]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x28], bx
je 0x14005adfa
lea rax, [rsp + 0x28]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14005adf0
lea rdx, [rsp + 0x28]
mov r8, rbx
mov rcx, rdi
call fcn.1400267e0
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f2f70
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14005ae60
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, rcx
mov qword [rbp - 0x48], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
xor r8d, r8d
lea rdx, [0x140296e0c]
call fcn.1400267e0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rsi
mov word [rbp], si
cmp word [rax], si
jne 0x14005aee4
mov r8d, esi
jmp 0x14005aefb
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005aef0
mov rdx, rax
lea rcx, [rbp]
call fcn.1400267e0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov r8d, SafeArrayDestroy
lea rdx, str.passthrough
lea rcx, [rsp + 0x50]
call fcn.1400267e0
nop
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.140026bd0
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x20]
call fcn.140059c20
nop
cmp qword [rbp - 0x10], 0
je 0x14005af8f
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400593b0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
mov r8d, 8
lea rdx, str.passthro
lea rcx, [rsp + 0x30]
call fcn.1400267e0
nop
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.140026bd0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.140059c20
mov rdi, rax
lea rax, [rbp - 0x20]
cmp rax, rdi
je 0x14005b036
cmp qword [rbp - 8], 8
jb 0x14005b01a
mov rcx, qword [rbp - 0x20]
call fcn.1400680cc
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.140026680
cmp qword [rbp - 0x28], 8
jb 0x14005b046
mov rcx, qword [rbp - 0x40]
call fcn.1400680cc
cmp qword [rbp - 0x10], 0
je 0x14005b076
mov r8d, 1
lea rdx, [0x140299a44]
mov rcx, rbx
call fcn.140059070
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400593b0
nop
cmp qword [rbp - 8], 8
jb 0x14005b086
mov rcx, qword [rbp - 0x20]
call fcn.1400680cc
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
cmp qword [rbp + 0x18], 8
jb 0x14005b0a6
mov rcx, qword [rbp]
call fcn.1400680cc
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401f2f70
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005b0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, r8
mov r15, rdx
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x30], 0x101
mov dword [rsp + 0x34], 0x201
mov qword [rsp + 0x68], 7
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140026bd0
nop
lea rcx, [rsp + 0x50]
call fcn.140059ec0
mov r14, rax
xor sil, sil
mov edi, r12d
nop word [rax + rax]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + rdi*4 + 0x30]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005b233
mov ecx, 0x200
call fcn.1400680c4
mov rbx, rax
mov rcx, r15
call fcn.140058510
mov rdx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b216
mov sil, 1
cmp dword [rsp + 0x4c], 4
jne 0x14005b1ef
mov r8d, dword [rbx]
lea rdx, [0x14029709c]
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
cmp word [rbx], 0
jne 0x14005b1fa
mov r8, r12
jmp 0x14005b20b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x14005b200
mov rdx, rbx
mov rcx, rbp
call fcn.1400267e0
mov rcx, rbx
call fcn.1400680cc
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005b22e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
jne 0x14005b240
inc rdi
cmp rdi, 2
jb 0x14005b160
cmp qword [rsp + 0x68], 8
jb 0x14005b252
mov rcx, qword [rsp + 0x50]
call fcn.1400680cc
movzx eax, sil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005b280
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, r8
mov rdi, rdx
mov qword [r11 - 0x30], 7
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov word [rsp + 0x60], bp
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [r11 - 0x48]
call fcn.140026bd0
nop
lea rcx, [rsp + 0x60]
call fcn.140059ec0
mov rsi, rax
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf023f
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005b366
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14005b366
xor bl, bl
jmp 0x14005b3c2
mov sil, 1
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14005b377
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14005b381
mov rdi, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, sil
test eax, eax
cmovne ebx, ebp
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005b3c2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x78], 8
jb 0x14005b3d4
mov rcx, qword [rsp + 0x60]
call fcn.1400680cc
movzx eax, bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401f2f70
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret