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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push 0
push eax
mov edi, edx
mov dword [ebp - 0x120], ebx
call fcn.00493600
mov eax, dword [ebp + 0x10]
push eax
push 0
push ebx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x118], eax
call fcn.00493600
add esp, 0x18
test edi, edi
je 0x41bd8c
mov esi, edi
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x41bbc0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, ecx
je 0x41bbdc
cmp byte [edi + esi], 0x5c
je 0x41bc11
sub esi, 1
jne 0x41bbd1
lea eax, [ebp - 0x110]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41bcd5
mov dword [ebp - 0x110], 0
jmp 0x41bd68
cmp esi, 0x104
jae 0x41bd8c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bc22
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41bc4c
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bc40
sub ecx, edx
inc ecx
jmp 0x41bc51
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00493080
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bc67
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x41bc93
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bc80
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
jmp 0x41bc96
lea eax, [ebp - 5]
mov byte [eax], 0
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
push eax
push 0x80000001
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41bd0e
mov dword [ebp - 0x10c], 0
jmp 0x41bd5b
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 7
push 0
push 0
push 0
push str.Akeo_ConsultingRufus
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41bd0e
mov dword [ebp - 0x10c], 0
jmp 0x41bd5b
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push eax
push 0
lea eax, [edi + esi]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x41bd51
test eax, eax
jne 0x41bd5b
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp + 8]
jne 0x41bd5b
cmp dword [ebp - 0x118], 0
jbe 0x41bd5b
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x41bd68
push eax
call ebx
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x41bd75
push ecx
call ebx
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x41bda0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
mov edi, edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
test edi, edi
jne 0x41bdd5
push 0x8a
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_registry.h
push str.key_name___NULL
call fcn.0049ed6b
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call fcn.00492830
add esp, 8
test eax, eax
je 0x41bdfb
push 0x91
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_registry.h
push str.strchr_key_name_____NULL
call fcn.0049ed6b
add esp, 0xc
push 0x5c
push edi
call fcn.00492830
add esp, 8
test eax, eax
jne 0x41bdcd
lea eax, [ebp - 4]
push eax
push 0x2001d
push 0
push 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41be2b
mov dword [ebp - 4], esi
jmp 0x41be7c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 7
push 0
push 0
push 0
push str.SOFTWAREAkeo_ConsultingRufus
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41be54
mov dword [ebp - 8], esi
jmp 0x41be6e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb esi, esi
inc esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x41be7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x41be8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423b10
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x100
mov ebx, edx
mov dword [ebp - 0x12c], ecx
push 0
push eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0x206
mov dword [ebp - 0x11c], 0xa400
mov dword [ebp - 0x118], 0x31415352
mov dword [ebp - 0x114], 0x800
mov dword [ebp - 0x110], 0x10001
call fcn.00493600
add esp, 0xc
lea eax, [ebp - 0x128]
push 0xf0000008
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, eax
test esi, esi
jne 0x423bc1
call fcn.00422810
push eax
push str.PKI:_Could_not_create_the_default_key_container:__s
jmp 0x423cd4
xor ecx, ecx
mov edx, 0x4cb1c0
jmp 0x423bd0
mov al, byte [edx]
lea edx, [edx - 1]
mov byte [ebp + ecx - 0x10c], al
inc ecx
cmp ecx, 0x100
jb 0x423bd0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push 0x114
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov esi, eax
test esi, esi
jne 0x423c1e
call fcn.00422810
push eax
push str.PKI:_Could_not_import_public_key:__s
jmp 0x423cd4
lea eax, [ebp - 0x124]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
jne 0x423c50
call fcn.00422810
push eax
push str.PKI:_Could_not_create_empty_hash:__s
jmp 0x423cd4
push 0
push ebx
push dword [ebp - 0x12c]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
jne 0x423c78
call fcn.00422810
push eax
push str.PKI:_Could_not_hash_data:__s
jmp 0x423cd4
mov ebx, dword [ebp + 0xc]
xor esi, esi
lea edx, [ebx - 1]
test edx, edx
jle 0x423c96
mov al, byte [edi + edx]
mov cl, byte [edi + esi]
mov byte [edi + esi], al
inc esi
mov byte [edi + edx], cl
dec edx
cmp esi, edx
jl 0x423c84
push 0
push 0
push dword [ebp - 0x130]
push ebx
push edi
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov esi, eax
test esi, esi
jne 0x423cdc
push dword [ebp - 0x134]
push eax
push dword [ebp - 0x12c]
call fcn.00493600
add esp, 0xc
call fcn.00422810
push eax
push str.Signature_validation_failed:__s
call fcn.004407e0
add esp, 8
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x423ced
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x423d00
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x424420
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x53c390], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
mov dword [ebp - 4], ecx
jne 0x424464
push str.NtQuerySystemInformation
push ecx
mov ecx, str.Ntdll
call fcn.00409990
add esp, 4
push eax
call ebx
mov dword [0x53c390], eax
test eax, eax
jne 0x424464
mov eax, 0xc000007a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x53c36c]
mov esi, dword [0x4f4774]
test ecx, ecx
je 0x42460a
mov eax, dword [0x53c3c4]
test eax, eax
jne 0x4244aa
push str.RtlAllocateHeap
push ecx
mov ecx, str.Ntdll
call fcn.00409990
add esp, 4
push eax
call ebx
mov dword [0x53c3c4], eax
test eax, eax
je 0x42460a
mov ecx, dword [0x53c36c]
push esi
push 0
push ecx
call eax
mov edi, eax
test edi, edi
je 0x42460a
push 0
push esi
push edi
push 0x40
call dword [0x53c390]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x42458e
cmp dword [0x53c36c], 0
je 0x424514
mov eax, dword [0x53c37c]
test eax, eax
jne 0x424509
push str.RtlFreeHeap
push ecx
mov ecx, str.Ntdll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c37c], eax
test eax, eax
je 0x424514
push edi
push 0
push dword [0x53c36c]
call eax
add esi, esi
cmp esi, 0x10000000
ja 0x4245dd
cmp dword [0x53c36c], 0
je 0x42460a
mov eax, dword [0x53c3c4]
test eax, eax
jne 0x42455f
push str.RtlAllocateHeap
push ecx
mov ecx, str.Ntdll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c3c4], eax
test eax, eax
je 0x42460a
push esi
push 0
push dword [0x53c36c]
call eax
mov edi, eax
test edi, edi
je 0x42460a
push 0
push esi
push edi
push 0x40
call dword [0x53c390]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x4244d4
test ebx, ebx
jns 0x4245e9
mov edx, dword [0x53c36c]
test edx, edx
je 0x4245d4
mov eax, dword [0x53c37c]
test eax, eax
jne 0x4245ce
push str.RtlFreeHeap
push ecx
mov ecx, str.Ntdll
call fcn.00409990
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x53c37c], eax
test eax, eax
je 0x4245d4
mov edx, dword [0x53c36c]
push edi
push 0
push edx
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4f4774]
cmp esi, 0x200000
cmovbe eax, esi
mov dword [0x4f4774], eax
mov eax, dword [ebp - 4]
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4258e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x53c3c0]
test eax, eax
je 0x425934
push 0x7d0
push eax
mov dword [0x53c3c8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42592a
push str.Process_search_thread_did_not_exit_within_timeout___forcefully_terminating_it_
call fcn.004407e0
add esp, 4
push 0
push dword [0x53c3c0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x53c3c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x53c3c0], 0
ret
Function at 0x426d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], ecx
push edi
mov edi, edx
lea eax, [esi + 0x57]
test edi, edi
je 0x426d92
mov esi, dword [ebp + 8]
push ebx
push 2
push esi
mov byte [edi], 0
call fcn.0049570f
add esp, 8
mov ebx, eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
je 0x426d79
push 0
push 0
push dword [ebp + 8]
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
jne 0x426d79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x426d86
push ebx
call fcn.004998ec
add esp, 4
mov eax, dword [ebp + 8]
pop ebx
mov byte [edi + eax - 1], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426db0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fae2c]
push esi
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
test esi, esi
je 0x426f06
push ebx
push 2
push esi
call fcn.0049570f
add esp, 8
mov ebx, eax
call edi
test ebx, ebx
jne 0x426e04
mov eax, 0xe
xor esi, esi
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
call edi
mov dword [ebp - 4], eax
test esi, esi
je 0x426ef9
cmp word [ebx], 0
jne 0x426e41
push 1
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
mov dword [ebp - 8], esi
call edi
test esi, esi
jne 0x426ebf
jmp 0x426e9d
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x426e9b
push 1
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x426e9b
push 0
push 0
push dword [ebp - 4]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, dword [ebp - 4]
je 0x426ebd
push esi
call fcn.004998ec
add esp, 4
call edi
push ebx
xor esi, esi
call fcn.004998ec
add esp, 4
mov eax, 0xe
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call edi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426ec4
sub ecx, edx
lea esi, [ecx + 2]
call edi
push ebx
mov dword [ebp - 4], eax
call fcn.004998ec
push dword [ebp - 8]
call fcn.004998ec
mov eax, dword [ebp - 4]
add esp, 8
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004998ec
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4270e0
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, ecx
test edi, edi
jne 0x4270f0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
ret
cmp byte [edi], 0
push ebx
push esi
jne 0x427116
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
jne 0x427175
pop esi
pop ebx
pop edi
ret
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x427161
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x427161
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
cmp eax, ebx
je 0x42716d
call fcn.004998ec
add esp, 4
push 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
pop ebx
pop edi
ret
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
push esi
call fcn.004998ec
add esp, 4
mov eax, edi
pop esi
pop ebx
pop edi
ret

Function at 0x427190
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4271f9
cmp byte [esi], 0
jne 0x4271ae
push 2
push 1
call fcn.0049570f
add esp, 8
mov edi, eax
jmp 0x4271fb
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x4271f9
push 2
push ebx
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x4271f9
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4271fb
push edi
call fcn.004998ec
add esp, 4
xor edi, edi
cmp word [edi], 0x22
jne 0x42723e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427206
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x22
jne 0x42723e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427222
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [edi + ecx*2 - 2], ax
lea eax, [edi + 2]
push eax
jmp 0x42723f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004998ec
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x427520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push 0
push eax
mov edi, edx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x124], ebx
call fcn.00493600
mov eax, dword [ebp + 0x10]
push eax
push 0
push ebx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x11c], eax
call fcn.00493600
add esp, 0x18
test edi, edi
je 0x42776d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4275a4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, ecx
je 0x4275c0
cmp byte [edi + esi], 0x5c
je 0x4275f6
sub esi, 1
jne 0x4275b5
lea eax, [ebp - 0x110]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4276b6
mov dword [ebp - 0x110], 0
jmp 0x427749
cmp esi, 0x104
jae 0x42776d
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427607
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x42762c
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427620
sub ecx, edx
inc ecx
jmp 0x427631
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00493080
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427647
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x427673
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427660
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
jmp 0x427676
lea eax, [ebp - 5]
mov byte [eax], 0
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
push eax
push dword [ebp - 0x114]
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4276ef
mov dword [ebp - 0x10c], 0
jmp 0x42773c
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 7
push 0
push 0
push 0
push str.Akeo_ConsultingRufus
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4276ef
mov dword [ebp - 0x10c], 0
jmp 0x42773c
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x124]
lea eax, [ebp - 0x118]
push eax
push 0
lea eax, [edi + esi]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x427732
test eax, eax
jne 0x42773c
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 8]
jne 0x42773c
cmp dword [ebp - 0x11c], 0
jbe 0x42773c
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x427749
push eax
call ebx
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x427756
push ecx
call ebx
mov eax, dword [ebp - 0x120]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x42ae00
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
push 0x80
push 3
sub esp, 8
mov edx, 0x80000000
mov esi, ecx
xor bl, bl
call fcn.00427030
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x42ae47
call fcn.00440bb0
push eax
push esi
push str.FindArch:_Could_not_open_file__s:__s
call fcn.004407e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
jne 0x42ae7c
call fcn.00440bb0
push eax
push str.FindArch:_Could_not_create_file_mapping:__s
call fcn.004407e0
add esp, 8
jmp 0x42af66
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x42aea9
call fcn.00440bb0
push eax
push str.FindArch:_Could_not_get_mapped_view_address:__s
call fcn.004407e0
add esp, 8
jmp 0x42af58
mov eax, 0x5a4d
cmp word [esi], ax
je 0x42aec5
push str.FindArch:_DOS_header_not_found
call fcn.004407e0
add esp, 4
jmp 0x42af51
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
je 0x42aee0
push str.FindArch:_NT_header_not_found
call fcn.004407e0
add esp, 4
jmp 0x42af51
movzx eax, word [eax + esi + 4]
cmp eax, 0x5032
ja 0x42af1e
je 0x42af1a
cmp eax, 0x200
ja 0x42af0f
je 0x42af0b
sub eax, 0x14c
je 0x42af07
sub eax, 0x74
jne 0x42af51
mov bl, 3
jmp 0x42af51
mov bl, 1
jmp 0x42af51
mov bl, 5
jmp 0x42af51
cmp eax, 0xebc
jne 0x42af51
mov bl, 9
jmp 0x42af51
mov bl, 6
jmp 0x42af51
cmp eax, 0x8664
ja 0x42af41
je 0x42af3d
cmp eax, 0x5064
je 0x42af39
cmp eax, 0x5128
jne 0x42af51
mov bl, 8
jmp 0x42af51
mov bl, 7
jmp 0x42af51
mov bl, 2
jmp 0x42af51
cmp eax, 0xaa64
movzx ebx, bl
mov ecx, 4
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x42af66
push edi
call esi
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x42af71
push eax
call esi
cmp bl, 0xa
jb 0x42af8d
push 0x4e3
push str.C:UsersgamerDownloads_rufus72_rufus_7_src_rufus.c
push str.ret___ARCH_MAX
call fcn.0049ed6b
add esp, 0xc
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433410
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x542fb0]
push edi
push 0xa
push 0x1f5
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x433454
call fcn.00440bb0
push eax
push str.rufus.com
push str.Could_not_locate_resource__s:__s
call fcn.004407e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x433483
call fcn.00440bb0
push eax
push str.rufus.com
push str.Could_not_load_resource__s:__s
call fcn.004407e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43344b
push 0x4da158
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push str.rufus.com
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4334ec
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x4334ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1c
push 0xa
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x433631
mov dword [esi], 1
mov dword [esi + 8], 4
movsx cx, byte [str.rufus.com]
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], 4
push 0x1c
mov word [esi + 6], cx
movsx eax, byte [0x4d8769]
mov word [esi + 0x22], ax
mov dword [esi + 0x38], 1
mov dword [esi + 0x40], 4
movsx eax, byte [0x4d876a]
mov word [esi + 0x3e], ax
mov dword [esi + 0x54], 1
mov dword [esi + 0x5c], 4
movsx eax, byte [0x4d876b]
mov word [esi + 0x5a], ax
mov dword [esi + 0x70], 1
mov dword [esi + 0x78], 4
movsx eax, byte [0x4d876c]
mov word [esi + 0x76], ax
mov dword [esi + 0x8c], 1
mov dword [esi + 0x94], 4
movsx eax, byte [0x4d876d]
mov word [esi + 0x92], ax
mov dword [esi + 0xa8], 1
mov dword [esi + 0xb0], 4
movsx eax, byte [0x4d876e]
mov word [esi + 0xae], ax
mov dword [esi + 0xc4], 1
mov dword [esi + 0xcc], 4
movsx eax, byte [0x4d876f]
mov word [esi + 0xca], ax
mov dword [esi + 0xe0], 1
mov dword [esi + 0xe8], 4
movsx eax, byte [0x4d8770]
mov word [esi + 0xe6], ax
mov eax, 0xd
push esi
push 0xa
mov dword [esi + 0xfc], 1
mov word [esi + 0x100], ax
call dword [sym.imp.USER32.dll_SendInput]
push esi
call fcn.004998ec
add esp, 4
test edi, edi
je 0x433640
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret