joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12d, r8d
lea rcx, [rsp + 0x70]
mov rdi, rdx
mov r14d, 0x104
mov r8d, r14d
xor edx, edx
mov r15, r9
call fcn.140136540
mov eax, dword [rbp + 0xe0]
xor esi, esi
mov r8d, eax
mov qword [rsp + 0x60], rsi
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, r15
mov dword [rsp + 0x58], 0xffffffff
mov dword [rsp + 0x5c], eax
call fcn.140136540
test rdi, rdi
je 0x140022240
mov rax, 0xffffffffffffffff
mov rbx, rax
nop
inc rbx
cmp byte [rdi + rbx], sil
jne 0x1400220d0
test rbx, rbx
je 0x1400220ec
nop
cmp byte [rdi + rbx], 0x5c
je 0x140022121
sub rbx, 1
jne 0x1400220e0
lea rax, [rsp + 0x60]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140022193
mov qword [rsp + 0x60], rsi
jmp 0x14002222c
cmp rbx, r14
jae 0x140022240
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], sil
jne 0x140022130
inc rax
lea rcx, [rsp + 0x70]
cmp rax, r14
mov rdx, rdi
cmovb r14, rax
mov r8, r14
call fcn.140135ea0
lea rax, [rsp + 0x50]
mov byte [rsp + r14 + 0x6f], sil
mov byte [rsp + rbx + 0x70], sil
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
inc rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400221db
mov qword [rsp + 0x50], rsi
jmp 0x14002221c
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rdx, str.Akeo_ConsultingRufus
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1400221db
mov qword [rsp + 0x50], rsi
jmp 0x14002221c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + rbx]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x140022217
test eax, eax
jne 0x14002221c
cmp dword [rsp + 0x58], r12d
jne 0x14002221c
cmp dword [rsp + 0x5c], esi
jbe 0x14002221c
mov esi, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002222c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002223c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140022242
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400b2a30
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140022270
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rsi, r9
mov qword [rsp + 0x70], rbx
mov ebp, r8d
mov qword [rsp + 0x78], rbx
mov rdi, rdx
test rdx, rdx
jne 0x1400222c6
mov r8d, 0x8a
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400fbe54
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x5c
mov rcx, rdi
call fcn.1400b41b4
test rax, rax
je 0x1400222f1
mov r8d, 0x91
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.strchr_key_name_____NULL
call fcn.1400fbe54
mov edx, 0x5c
mov rcx, rdi
call fcn.1400b41b4
test rax, rax
jne 0x1400222b4
lea rax, [rsp + 0x70]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140022333
mov qword [rsp + 0x70], rbx
jmp 0x1400223b7
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREAkeo_ConsultingRufus
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14002237e
mov qword [rsp + 0x78], rbx
jmp 0x1400223a7
mov eax, dword [rsp + 0x90]
mov r9d, ebp
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400223b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400223c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022b20
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xc0
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rcx
mov qword [rsp + 0xd8], rdi
mov edi, edx
mov dword [rsp + 0x5c], 1
xor ebp, ebp
mov dword [rsp + 0x54], 0xdac
mov edx, 6
mov word [rsp + 0x50], bp
xor ecx, ecx
mov dword [rsp + 0x60], 2
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rax, [rsp + 0x68]
xor edx, edx
lea r9, [0x140139060]
mov qword [rsp + 0x20], rax
mov r8d, 0x17
lea rcx, [0x140139150]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140022bfa
mov ebx, ebp
nop dword [rax]
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x58]
cmp eax, 0x8007042c
je 0x140022be3
test eax, eax
je 0x140022bfa
test edi, edi
je 0x140022bfa
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jle 0x140022bb0
jmp 0x140022bfa
xor edx, edx
lea rcx, [rsp + 0x64]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb cx, cx
mov word [rsp + 0x50], cx
mov rdi, qword [rsp + 0xd8]
cmp word [rsp + 0x50], bp
jne 0x140022c1c
mov ecx, 0x2f83
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbp
jmp 0x140022d4c
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
movzx edx, word [0x1401e8302]
lea rcx, str.__WOW64
movzx r8d, word [0x1401e8300]
lea rax, [0x1401564ce]
cmp dword [rsp + 0x58], ebp
lea r9, str.Rufus__d._d._d__Windows_NT__lu._lu_s_
cmovne rax, rcx
movzx ecx, word [0x1401e8304]
mov qword [rsp + 0x48], rax
mov eax, dword [0x1401d0508]
mov dword [rsp + 0x40], eax
mov eax, dword [0x1401d0504]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], edx
mov edx, 0x40
mov dword [rsp + 0x20], r8d
mov r8, 0xffffffffffffffff
call fcn.140004fd0
test rsi, rsi
mov byte [rsp + 0xaf], bpl
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], ebp
cmovne rcx, rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r9d, 4
lea r8, [rsp + 0x54]
mov rcx, rax
mov edx, 2
mov rbx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x54]
mov edx, 5
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x54]
mov edx, 6
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x5c]
mov edx, 0x41
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x60]
mov edx, 0x94
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400b2a30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400256c0
Capabilities:
Check http status code
Connect to http server
Get http content length
Parse url
Send data
Send http request

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rcx, qword [0x14019f608]
lea rax, [0x14015e798]
xor ebx, ebx
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x44], ebx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x78], rax
xorps xmm0, xmm0
mov qword [rbp - 0x38], rbx
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 1
mov dword [rsp + 0x70], 0x40
mov word [rsp + 0x74], bx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x70], 0x80
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x60], 1
movups xmmword [rbp - 0x58], xmm0
test rcx, rcx
jne 0x140025767
xor eax, eax
jmp 0x14002591d
mov dword [0x14019f120], ebx
mov rdx, 0xffffffffffffffff
mov dword [0x1401e89f4], 0x194
nop
inc rdx
cmp byte [rcx + rdx], bl
jne 0x140025780
lea r9, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x140025914
cmp qword [rsp + 0x68], rbx
je 0x140025914
cmp qword [rbp - 0x68], rbx
je 0x140025914
xor edx, edx
mov qword [rsp + 0x1b0], rsi
xor ecx, ecx
mov byte [rbp + 0xf], bl
call fcn.140022b20
mov rsi, rax
test rax, rax
je 0x14002590c
movzx r8d, word [rsp + 0x74]
xor r9d, r9d
mov rdx, qword [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x1c0], r14
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r14, rax
test rax, rax
je 0x1400258fb
cmp dword [rsp + 0x64], 4
lea rdx, [0x14015e870]
mov r8, qword [rbp - 0x68]
mov ecx, 0x408c600
mov qword [rsp + 0x38], rbx
mov eax, 0x488c600
cmove ecx, eax
mov qword [rsp + 0x1b8], rdi
mov dword [rsp + 0x30], ecx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov rcx, r14
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x1400258ea
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, 0xffffffff
lea rdx, str.Accept_Encoding:_gzip__deflate
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1400258e1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 4
lea r8, [0x1401e89f4]
mov qword [rsp + 0x20], rbx
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [0x1401e89f4], 0xc8
jne 0x1400258e1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 4
lea r8, [rsp + 0x44]
mov qword [rsp + 0x20], rbx
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x1b8]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r14, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b0]
cmp dword [rsp + 0x44], ebx
seta bl
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400b2a30
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x1a0
pop rbp
ret
Function at 0x14002a6e0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor r15d, r15d
mov r14d, edx
mov rdi, r8
mov qword [rsp + 0x38], r15
mov rbp, rcx
mov qword [rsp + 0x30], r15
xor edx, edx
mov byte [rsp + 0x64], r15b
mov r8d, 0xff
mov dword [rsp + 0x50], 0x206
lea rcx, [rsp + 0x65]
mov dword [rsp + 0x54], 0xa400
mov esi, r9d
mov dword [rsp + 0x58], 0x31415352
mov dword [rsp + 0x5c], 0x800
mov dword [rsp + 0x60], 0x10001
call fcn.140136540
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, eax
test eax, eax
jne 0x14002a78f
call fcn.140029250
lea rcx, str.PKI:_Could_not_create_the_default_key_container:__s
jmp 0x14002a8d3
mov ecx, r15d
lea rdx, [rsp + 0x64]
lea r8, [0x140152750]
nop
movzx eax, byte [r8]
inc ecx
mov byte [rdx], al
lea rdx, [rdx + 1]
lea r8, [r8 - 1]
cmp ecx, 0x100
jb 0x14002a7a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0x114
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ebx, eax
test eax, eax
jne 0x14002a7f7
call fcn.140029250
lea rcx, str.PKI:_Could_not_import_public_key:__s
jmp 0x14002a8d3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, eax
test eax, eax
jne 0x14002a82e
call fcn.140029250
lea rcx, str.PKI:_Could_not_create_empty_hash:__s
jmp 0x14002a8d3
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
test eax, eax
jne 0x14002a859
call fcn.140029250
lea rcx, str.PKI:_Could_not_hash_data:__s
jmp 0x14002a8d3
lea eax, [rsi - 1]
movsxd rcx, eax
test eax, eax
jle 0x14002a894
mov r11, rdi
lea r9, [rcx + rdi]
neg r11
mov r10, rdi
movzx eax, byte [r9]
lea r9, [r9 - 1]
movzx ecx, byte [r10]
mov byte [r10], al
lea r10, [r10 + 1]
mov byte [r9 + 1], cl
lea rax, [r11 + r9]
lea rcx, [r11 + r10]
cmp rcx, rax
jl 0x14002a870
mov r9, qword [rsp + 0x40]
mov r8d, esi
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov ebx, eax
test eax, eax
jne 0x14002a8db
mov r8, r14
xor edx, edx
mov rcx, rbp
call fcn.140136540
call fcn.140029250
lea rcx, str.Signature_validation_failed:__s
mov rdx, rax
call fcn.14004f2f0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002a8eb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002a8fd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x188
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002b560
Capabilities:
Link many functions at runtime

Disassembly:
push r14
sub rsp, 0x20
cmp qword [0x1401e10a0], 0
mov r14, rcx
jne 0x14002b5a7
lea rcx, str.Ntdll
call fcn.14002ae20
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e10a0], rax
test rax, rax
jne 0x14002b5a7
mov eax, 0xc000007a
add rsp, 0x20
pop r14
ret
mov rcx, qword [0x1401e1058]
mov qword [rsp + 0x30], rbx
mov ebx, dword [0x1401977c4]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x14002b78d
mov rax, qword [0x1401e10e8]
test rax, rax
jne 0x14002b60b
lea rcx, str.Ntdll
call fcn.14002ae20
mov rcx, rax
lea rdx, str.RtlAllocateHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e10e8], rax
test rax, rax
je 0x14002b78d
mov rcx, qword [0x1401e1058]
mov r8, rbx
xor edx, edx
call rax
mov rdi, rax
test rax, rax
je 0x14002b78d
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
call qword [0x1401e10a0]
mov esi, eax
cmp eax, 0xc0000004
jne 0x14002b71b
nop
cmp qword [0x1401e1058], 0
je 0x14002b68c
mov rax, qword [0x1401e1078]
test rax, rax
jne 0x14002b67e
lea rcx, str.Ntdll
call fcn.14002ae20
mov rcx, rax
lea rdx, str.RtlFreeHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e1078], rax
test rax, rax
je 0x14002b68c
mov rcx, qword [0x1401e1058]
mov r8, rdi
xor edx, edx
call rax
add ebx, ebx
cmp ebx, 0x10000000
ja 0x14002b771
cmp qword [0x1401e1058], 0
je 0x14002b78d
mov rax, qword [0x1401e10e8]
test rax, rax
jne 0x14002b6e0
lea rcx, str.Ntdll
call fcn.14002ae20
mov rcx, rax
lea rdx, str.RtlAllocateHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e10e8], rax
test rax, rax
je 0x14002b78d
mov rcx, qword [0x1401e1058]
xor edx, edx
mov r8d, ebx
call rax
mov rdi, rax
test rax, rax
je 0x14002b78d
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
call qword [0x1401e10a0]
mov esi, eax
cmp eax, 0xc0000004
je 0x14002b640
test esi, esi
jns 0x14002b778
mov rcx, qword [0x1401e1058]
test rcx, rcx
je 0x14002b76d
mov rax, qword [0x1401e1078]
test rax, rax
jne 0x14002b766
lea rcx, str.Ntdll
call fcn.14002ae20
mov rcx, rax
lea rdx, str.RtlFreeHeap
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e1078], rax
test rax, rax
je 0x14002b76d
mov rcx, qword [0x1401e1058]
mov r8, rdi
xor edx, edx
call rax
mov eax, esi
jmp 0x14002b792
mov eax, 0xc000009a
jmp 0x14002b792
cmp ebx, 0x200000
ja 0x14002b786
mov dword [0x1401977c4], ebx
mov qword [r14], rdi
mov eax, esi
jmp 0x14002b792
mov eax, 0xc0000017
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14002eb10
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
movsxd r14, r8d
mov rsi, rdx
mov r15, rcx
mov ebp, 0x57
test rdx, rdx
je 0x14002ebc8
mov byte [rdx], bl
mov rcx, r14
mov edx, 2
mov qword [rsp + 0x60], rdi
call fcn.1400c4f6c
mov r8d, r14d
mov rdx, rax
mov rcx, r15
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebx, ebx
je 0x14002ebb0
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test eax, eax
jne 0x14002ebb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rdi, rdi
je 0x14002ebbd
mov rcx, rdi
call fcn.1400e8c70
mov rdi, qword [rsp + 0x60]
mov byte [r14 + rsi - 1], 0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret

Function at 0x14002ec50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x14019f648]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x14002ed1a
mov rcx, rbx
mov qword [rsp + 0x30], rbp
mov edx, 2
call fcn.1400c4f6c
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
jne 0x14002ecab
mov edi, 0xe
xor ebx, ebx
jmp 0x14002ed15
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov edi, eax
test ebx, ebx
je 0x14002ed10
call fcn.14002e7e0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
jne 0x14002ecea
mov edi, 0xe
xor ebx, ebx
mov rcx, rbp
jmp 0x14002ed10
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x14002ecf1
add ebx, 2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
mov edi, eax
call fcn.1400e8c70
mov rcx, rsi
call fcn.1400e8c70
mov rbp, qword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002f030
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.14002e8b0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x14002f067
mov rcx, rbx
call fcn.1400e8c70
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f3e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rcx, [0x1401e8440]
mov r15, r9
call fcn.14002e8b0
lea rcx, [0x140156a6c]
mov rdi, rax
call fcn.14002e8b0
mov rsi, rax
test r15, r15
jne 0x14002f422
xor ebx, ebx
jmp 0x14002f434
mov edx, 2
mov ecx, 0x104
call fcn.1400c4f6c
mov rbx, rax
mov r9, rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test ebp, ebp
je 0x14002f499
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov r8, rbx
mov dword [rsp + 0x28], 0x104
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test eax, eax
jne 0x14002f499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rbx, rbx
je 0x14002f4a6
mov rcx, rbx
call fcn.1400e8c70
test rsi, rsi
je 0x14002f4b3
mov rcx, rsi
call fcn.1400e8c70
test rdi, rdi
je 0x14002f4c0
mov rcx, rdi
call fcn.1400e8c70
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14002f6b0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.14002e8b0
mov rdi, rax
cmp word [rax], 0x22
jne 0x14002f70d
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14002f6e0
cmp word [rdi + rax*2 - 2], 0x22
jne 0x14002f70d
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002f6f4
xor eax, eax
mov word [rdi + rcx*2 - 2], ax
lea rcx, [rdi + 2]
jmp 0x14002f710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.1400e8c70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fa20
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rsi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov qword [rsp + 0x40], rbx
test rdx, rdx
jne 0x14002fa64
mov r8d, 0x2b
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.key_name___NULL
call fcn.1400fbe54
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
lea rax, [rsp + 0x40]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARE
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002fa57
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
test eax, 0xfffffffd
je 0x14002faf5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 5
jne 0x14002fac1
lea rax, str.Key_is_not_empty
jmp 0x14002fac6
call fcn.14004fba0
mov r8, rax
lea rcx, str.Failed_to_delete_registry_key_HKCUSoftware_s:__s
mov rdx, rsi
call fcn.14004f2f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, 0xfffffffd
jne 0x14002fb0d
mov ebx, 1
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret