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

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x45f315
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
cmp byte [edi], 0
push esi
jne 0x45f344
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x45f3c7
jmp 0x45f3be
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 0x45f38f
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x45f38f
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 0x45f3ae
call fcn.004d1211
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004d1211
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
Function at 0x45f3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x5a2660], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
jne 0x45f408
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x45f455
push 0
push 0
push 0xffffffffffffffff
push 0x5a2660
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x45f453
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x45f453
push edi
push esi
push 0xffffffffffffffff
push 0x5a2660
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x45f455
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
cmp byte [0x52b2c8], 0
jne 0x45f46e
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x45f4bf
push 0
push 0
push 0xffffffffffffffff
push 0x52b2c8
push 0
push 0xfde9
call ebx
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x45f4bd
push 2
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x45f4bd
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push 0x52b2c8
push 0
push 0xfde9
call ebx
cmp eax, dword [ebp - 4]
je 0x45f4bf
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
cmp dword [ebp + 0xc], 0
jne 0x45f4c9
xor ebx, ebx
jmp 0x45f4da
push 2
push 0x104
call fcn.004b6706
add esp, 8
mov ebx, eax
push ebx
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], 0
mov dword [ebp - 8], eax
je 0x45f523
push 0
push 0
push 0x104
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
jne 0x45f523
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x45f530
push ebx
call fcn.004d1211
add esp, 4
test edi, edi
je 0x45f53d
push edi
call fcn.004d1211
add esp, 4
test esi, esi
je 0x45f54a
push esi
call fcn.004d1211
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f740
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x45f759
xor esi, esi
jmp 0x45f7bd
cmp byte [edi], 0
jne 0x45f76e
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x45f7b8
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
mov ebx, eax
cmp ebx, 1
jle 0x45f7b6
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
je 0x45f7bd
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, ebx
je 0x45f7b8
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x45f7d5
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45f88e
cmp byte [edi], 0
jne 0x45f801
push 2
push 1
call fcn.004b6706
add esp, 8
mov ebx, eax
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test ebx, ebx
je 0x45f88e
jmp 0x45f885
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jg 0x45f828
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45f88e
push 2
push eax
call fcn.004b6706
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45f847
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45f88e
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x45f879
push ebx
call fcn.004d1211
add esp, 4
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45f88e
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
push ebx
call fcn.004d1211
add esp, 4
test esi, esi
je 0x45f89b
push esi
call fcn.004d1211
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5512ec]
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.004ab0f0
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.004ab0f0
add esp, 0x18
test edi, edi
je 0x45fafd
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45f934
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, ecx
je 0x45f950
cmp byte [edi + esi], 0x5c
je 0x45f986
sub esi, 1
jne 0x45f945
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 0x45fa46
mov dword [ebp - 0x110], 0
jmp 0x45fad9
cmp esi, 0x104
jae 0x45fafd
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f997
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45f9bc
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f9b0
sub ecx, edx
inc ecx
jmp 0x45f9c1
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004aab70
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f9d7
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45f9fc
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f9f0
sub ecx, edx
inc ecx
jmp 0x45fa01
mov ecx, 0x104
lea eax, [ebp - 0x10c]
mov byte [ebp + ecx - 0x109], 0
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 0x45fa7f
mov dword [ebp - 0x10c], 0
jmp 0x45facc
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 0x45fa7f
mov dword [ebp - 0x10c], 0
jmp 0x45facc
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 0x45fac2
test eax, eax
jne 0x45facc
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp + 8]
jne 0x45facc
cmp dword [ebp - 0x11c], 0
jbe 0x45facc
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x45fad9
push eax
call ebx
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x45fae6
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.004a8b60
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.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x45fea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
xor edx, edx
mov byte [0x5a3073], dl
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push esi
push edi
test ebx, ebx
je 0x45fef2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fec2
sub ecx, esi
cmp ecx, 4
jbe 0x45fef2
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fed5
sub ecx, edx
lea edx, [ebx - 1]
add edx, ecx
cmp byte [edx], 0x2e
je 0x45fef2
cmp edx, ebx
je 0x45fef2
dec edx
cmp byte [edx], 0x2e
jne 0x45fee8
xor esi, esi
mov edi, str._NULL_
test edx, edx
cmovne edi, edx
nop
mov eax, dword [esi*8 + 0x558a60]
mov ecx, str._NULL_
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.004e7afe
add esp, 8
test eax, eax
je 0x45ff2e
inc esi
cmp esi, 0xa
jb 0x45ff00
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi*8 + 0x558a64]
push 0x200
mov byte [0x5a3073], al
call fcn.004d122c
mov edi, eax
add esp, 4
test edi, edi
je 0x460032
mov al, byte [0x5a3073]
mov dword [0x55a318], 0
cmp al, 9
jae 0x45ffa6
push 0x55a318
push 0
push 0
push 0
push 0
push fcn.0044b0b0
push 0
call fcn.0047ea40
movzx eax, byte [esi*8 + 0x558a64]
add esp, 0x1c
push eax
push 0x200
push edi
push ebx
call fcn.0047edd0
add esp, 0x10
mov ebx, eax
mov esi, edx
call fcn.0047e9f0
jmp 0x4600a4
jne 0x46005a
cmp dword [0x55a77c], 0
je 0x46003b
mov ecx, ebx
call fcn.0045f560
mov dword [ebp - 4], eax
test eax, eax
je 0x460014
push eax
push 0x200
push 1
push edi
mov byte [0x5a3056], 1
call fcn.004e7dcd
push dword [ebp - 4]
mov ebx, eax
xor esi, esi
call fcn.004d1662
add esp, 0x14
lea eax, [edi + 4]
push 0xc
push str.SignedImage
push eax
call fcn.004e1a20
add esp, 0xc
test eax, eax
jne 0x4600a4
mov word [edi + 0x1fe], 0xaa55
jmp 0x4600a4
call fcn.004eba05
push dword [eax]
push ebx
push str.Could_not_open__s:__d
call fcn.0044b0b0
add esp, 0xc
push edi
call fcn.004d1211
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.__An_FFU_image_was_selected__but_this_system_does_not_have_FFU_support_
call fcn.0044b0b0
add esp, 4
push edi
call fcn.004d1211
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004627b0
test eax, eax
je 0x460099
mov ecx, eax
mov byte [0x5a3056], 1
call fcn.0045f560
mov dword [ebp - 4], eax
test eax, eax
je 0x460099
push eax
push 0x200
push 1
push edi
call fcn.004e7dcd
push dword [ebp - 4]
mov ebx, eax
xor esi, esi
call fcn.004d1662
add esp, 0x14
jmp 0x46009f
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
call fcn.00462b10
cmp ebx, 0x200
jne 0x460029
test esi, esi
jne 0x460029
cmp byte [edi + 0x1fe], 0x55
jne 0x4600df
cmp byte [edi + 0x1ff], 0xaa
jne 0x4600df
push edi
lea ebx, [esi + 1]
call fcn.004d1211
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x55a7dc], 0
mov eax, 2
mov ebx, 0
push edi
cmovne ebx, eax
call fcn.004d1211
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov esi, edx
mov edi, ecx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], esi
call fcn.004611d0
mov ebx, eax
test ebx, ebx
je 0x460d5b
push ebx
push esi
push edi
push str.WARNING:_Found_stale__s___d__image_mounted_on__s___Attempting_to_unmount_it...
call fcn.0044b0b0
add esp, 0x10
push 0x104
push 0x59fec0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov edx, esi
push eax
mov ecx, edi
mov word [0x59f9a8], ax
call fcn.00461130
add esp, 4
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4608a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x55b228], eax
test eax, eax
jne 0x460d91
push str.Unable_to_start_mount_image_thread
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x553320]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [0x55b228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x55b228]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x460dc5
mov dword [ebp - 4], eax
jmp 0x460dc8
mov eax, dword [ebp - 4]
mov dword [0x55b228], 0
test eax, eax
je 0x460e4e
cmp word [0x59fec0], 0
jne 0x460df5
push 1
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x59fec0
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x460e4e
push 1
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x460e4e
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push 0x59fec0
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x460e50
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x460e60
push 0
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x55b228], eax
test eax, eax
jne 0x461183
push str.Unable_to_start_unmount_image_thread
call fcn.0044b0b0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [0x553320]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [0x55b228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [0x55b228]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4611bb
mov dword [0x55b228], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [0x55b228], 0
mov esp, ebp
pop ebp
ret
Function at 0x4611d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x23f]
mov byte [ebp - 0x240], 0
push 0
push eax
mov edi, edx
mov ebx, ecx
call fcn.004ab0f0
add esp, 0xc
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWIMMountMounted_Images
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x461250
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x274]
mov dword [ebp - 0x250], 0x104
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x244]
push eax
push 0
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor esi, esi
cmp dword [ebp - 0x244], esi
jbe 0x4613f5
nop dword [eax]
lea eax, [ebp - 0x274]
mov dword [ebp - 0x24c], 0x28
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4613de
lea eax, [ebp - 0x2c]
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sWIM_Path
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.004050d0
push 0x104
push 0x59fbb8
push 1
lea edx, [ebp - 0x138]
mov byte [ebp - 0x35], 0
mov ecx, 0x80000002
call fcn.0045f8b0
add esp, 0x1c
test eax, eax
je 0x46134e
push ebx
push 0x59fbb8
call fcn.004e7afe
add esp, 8
test eax, eax
jne 0x4613de
lea eax, [ebp - 0x2c]
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sImage_Index
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.004050d0
push 4
lea eax, [ebp - 0x254]
mov byte [ebp - 0x35], 0
push eax
push 4
lea edx, [ebp - 0x138]
mov ecx, 0x80000002
call fcn.0045f8b0
add esp, 0x1c
test eax, eax
je 0x461396
cmp dword [ebp - 0x254], edi
jne 0x4613de
lea eax, [ebp - 0x2c]
mov byte [0x59fbb8], 0
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sMount_Path
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.004050d0
push 0x104
push 0x59fbb8
push 1
lea edx, [ebp - 0x138]
mov byte [ebp - 0x35], 0
mov ecx, 0x80000002
call fcn.0045f8b0
add esp, 0x1c
test eax, eax
jne 0x4613ed
inc esi
cmp esi, dword [ebp - 0x244]
jb 0x4612c0
jmp 0x4613f5
cmp esi, dword [ebp - 0x244]
jb 0x4613fc
mov byte [0x59fbb8], 0
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov eax, 0x59fbb8
cmp byte [0x59fbb8], cl
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x463660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], ecx
push 0
push eax
mov edi, edx
call fcn.004ab0f0
push 0x1ff
push 0
push 0x5a00c8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x11c], 0x1ff
call fcn.004ab0f0
add esp, 0x18
test edi, edi
je 0x4638b0
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4636e3
sub esi, ecx
je 0x4636fb
nop
cmp byte [edi + esi], 0x5c
je 0x463731
sub esi, 1
jne 0x4636f0
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 0x4637f6
mov dword [ebp - 0x110], 0
jmp 0x463889
cmp esi, 0x104
jae 0x4638b0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463742
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x46376c
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463760
sub ecx, edx
inc ecx
jmp 0x463771
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004aab70
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463787
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4637ac
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4637a0
sub ecx, edx
inc ecx
jmp 0x4637b1
mov ecx, 0x104
lea eax, [ebp - 0x10c]
mov byte [ebp + ecx - 0x109], 0
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 0x46382f
mov dword [ebp - 0x10c], 0
jmp 0x463878
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 0x46382f
mov dword [ebp - 0x10c], 0
jmp 0x463878
lea eax, [ebp - 0x11c]
push eax
push 0x5a00c8
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 0x46386e
test eax, eax
jne 0x463878
cmp dword [ebp - 0x118], 1
jne 0x463878
cmp dword [ebp - 0x11c], eax
jbe 0x463878
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x463889
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x46389a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x463b60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
jne 0x463b78
xor edi, edi
jmp 0x463be0
cmp byte [esi], 0
jne 0x463b8d
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x463bdb
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x463bd9
push 2
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x463be0
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x463bdb
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test ebx, ebx
je 0x463c45
cmp byte [ebx], 0
jne 0x463bf9
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x463c47
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x463c45
push 2
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x463c45
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x463c47
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x463c69
push edi
call fcn.004d1211
add esp, 4
test esi, esi
je 0x463c76
push esi
call fcn.004d1211
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463c90
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x463cb5
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
cmp byte [edi], 0
push esi
jne 0x463ce4
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x463d67
jmp 0x463d5e
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 0x463d2f
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x463d2f
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 0x463d4e
call fcn.004d1211
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004d1211
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret