joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447c00
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 0x447c18
xor edi, edi
jmp 0x447c80
cmp byte [esi], 0
jne 0x447c2d
push 2
push 1
call fcn.0049570f
add esp, 8
mov edi, eax
jmp 0x447c7b
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x447c79
push 2
push eax
call fcn.0049570f
mov edi, eax
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x447c80
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x447c7b
push edi
call fcn.004998ec
add esp, 4
xor edi, edi
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test ebx, ebx
je 0x447ce5
cmp byte [ebx], 0
jne 0x447c99
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x447ce7
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x447ce5
push 2
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x447ce5
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 0x447ce7
push esi
call fcn.004998ec
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 0x447d09
push edi
call fcn.004998ec
add esp, 4
test esi, esi
je 0x447d16
push esi
call fcn.004998ec
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 0x44eb80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x53fdbc]
sub esi, dword [0x53ffb4]
sub esi, dword [0x53fb9c]
push edi
push 0x3fa
push dword [0x5430c4]
mov edi, ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fb
push dword [0x5430c4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffffffffffffffec
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or eax, 0x1000
and ecx, 0xffffefff
test edi, edi
cmove eax, ecx
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
test edi, edi
je 0x44ec2f
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x18]
call eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [0x5430c4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x14]
sub eax, dword [0x53ffb4]
sub eax, dword [ebp - 0xc]
add esi, eax
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push ebx
call eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [0x5430c4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
push 0
push eax
mov eax, dword [0x53fba4]
add eax, dword [0x53ffb4]
add eax, dword [0x53fb9c]
push esi
push ecx
push eax
push 0x403
push dword [0x5430c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor ebx, ebx
test edi, edi
setne bl
push ebx
push dword [ebp - 0x1c]
call esi
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
call esi
neg edi
sbb edi, edi
and edi, 5
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x44ecc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5430c0], 3
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
jne 0x44ed03
mov esi, dword [ebp + 8]
mov eax, esi
or eax, dword [ebp + 0xc]
je 0x44ed03
mov ecx, 1
call fcn.0044eb80
lea edi, [ebp - 0x48]
mov eax, 0x4d9b2c
jmp 0x44edd8
mov esi, dword [0x53fdbc]
sub esi, dword [0x53ffb4]
sub esi, dword [0x53fb9c]
push 0x3fa
push dword [0x5430c4]
call ebx
push 0x3fb
push dword [0x5430c4]
mov edi, eax
call ebx
push 0xffffffffffffffec
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffefff
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x58]
push eax
push dword [0x5430c4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0
push eax
mov eax, dword [0x53fba4]
add eax, dword [0x53ffb4]
add eax, dword [0x53fb9c]
push esi
push ecx
push eax
push 0x403
push dword [0x5430c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edi
call esi
push 0
push ebx
call esi
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc34
lea edi, [ebp - 0x48]
call fcn.0041afe0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
add esp, 4
mov eax, str.0___s_
push esi
push eax
push 0x40
push edi
call fcn.00403820
add esp, 0x10
mov byte [ebp - 9], 0
mov dword [0x4fae18], 1
push 0x3fa
push dword [0x5430c4]
call ebx
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.0041a5b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x452220
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 0x452239
xor esi, esi
jmp 0x45229d
cmp byte [edi], 0
jne 0x45224e
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x452298
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
mov ebx, eax
cmp ebx, 1
jle 0x452296
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
je 0x45229d
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, ebx
je 0x452298
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4522b5
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45236e
cmp byte [edi], 0
jne 0x4522e1
push 2
push 1
call fcn.0049570f
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 0x45236e
jmp 0x452365
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jg 0x452308
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45236e
push 2
push eax
call fcn.0049570f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x452327
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45236e
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 0x452359
push ebx
call fcn.004998ec
add esp, 4
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
jmp 0x45236e
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
push ebx
call fcn.004998ec
add esp, 4
test esi, esi
je 0x45237b
push esi
call fcn.004998ec
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor edx, edx
mov ebx, ecx
mov dword [ebp - 4], edx
mov byte [0x543653], dl
push esi
push edi
test ebx, ebx
je 0x4523e0
lea esi, [ecx + 1]
jmp 0x4523b0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4523b0
sub ecx, esi
cmp ecx, 4
jbe 0x4523e0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4523c3
sub ecx, edx
lea edx, [ebx - 1]
add edx, ecx
cmp byte [edx], 0x2e
je 0x4523e0
cmp edx, ebx
je 0x4523e0
dec edx
cmp byte [edx], 0x2e
jne 0x4523d6
xor esi, esi
mov edi, str._NULL_
test edx, edx
cmovne edi, edx
lea esp, [esp]
mov eax, dword [esi*8 + 0x4f9a60]
mov ecx, str._NULL_
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.004a2750
add esp, 8
test eax, eax
je 0x45241e
inc esi
cmp esi, 0xa
jb 0x4523f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi*8 + 0x4f9a64]
push 0x200
mov byte [0x543653], al
call fcn.00499907
mov edi, eax
add esp, 4
test edi, edi
je 0x452521
mov al, byte [0x543653]
mov dword [0x4fa958], 0
cmp al, 9
jae 0x452497
push 0x4fa958
push 0
push 0
push 0
push 0
push fcn.004407e0
push 0
call fcn.0046c9f0
movzx eax, byte [esi*8 + 0x4f9a64]
add esp, 0x1c
push eax
push 0x200
push edi
push ebx
call fcn.0046cb60
add esp, 0x10
mov dword [ebp - 4], eax
mov ebx, edx
call fcn.0046c9a0
jmp 0x45258d
jne 0x452549
cmp dword [0x4fadbc], 0
je 0x45252a
mov ecx, ebx
call fcn.00452100
mov esi, eax
test esi, esi
je 0x452503
push esi
push 0x200
push 1
push edi
mov byte [0x543636], 1
call fcn.004a2a0d
push esi
mov dword [ebp - 4], eax
xor ebx, ebx
call fcn.00499b6b
add esp, 0x14
lea eax, [edi + 4]
push 0xc
push str.SignedImage
push eax
call fcn.0049f5e0
add esp, 0xc
test eax, eax
jne 0x45258d
mov word [edi + 0x1fe], 0xaa55
jmp 0x45258d
call fcn.004a4801
push dword [eax]
push ebx
push str.Could_not_open__s:__d
call fcn.004407e0
add esp, 0xc
push edi
call fcn.004998ec
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.004407e0
add esp, 4
push edi
call fcn.004998ec
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004549f0
test eax, eax
je 0x452586
mov ecx, eax
mov byte [0x543636], 1
call fcn.00452100
mov esi, eax
test esi, esi
je 0x452586
push esi
push 0x200
push 1
push edi
call fcn.004a2a0d
push esi
mov dword [ebp - 4], eax
xor ebx, ebx
call fcn.00499b6b
add esp, 0x14
jmp 0x452588
xor ebx, ebx
call fcn.00454d80
cmp dword [ebp - 4], 0x200
jne 0x452518
test ebx, ebx
jne 0x452518
cmp byte [edi + 0x1fe], 0x55
jne 0x4525c7
cmp byte [edi + 0x1ff], 0xaa
jne 0x4525c7
push edi
mov ebx, 1
call fcn.004998ec
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4fae1c], 0
mov eax, 2
mov ebx, 0
push edi
cmovne ebx, eax
call fcn.004998ec
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], 0
mov esi, edx
mov dword [ebp - 0x10], eax
mov edi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], esi
call fcn.004534b0
mov ebx, eax
test ebx, ebx
je 0x45302c
push ebx
push esi
push edi
push str.WARNING:_Found_stale__s___d__image_mounted_on__s___Attempting_to_unmount_it...
call fcn.004407e0
add esp, 0x10
push 0x104
push 0x5404d8
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 [0x53ffd0], ax
call fcn.00453410
add esp, 4
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x452b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52b93c], eax
test eax, eax
jne 0x453062
push str.Unable_to_start_mount_image_thread
call fcn.004407e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x4f431c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
mov dword [0x52b93c], 0
sbb eax, eax
and dword [ebp - 4], eax
je 0x453118
cmp word [0x5404d8], 0
jne 0x4530bf
push 1
push 1
call fcn.0049570f
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 0x5404d8
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x453118
push 1
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x453118
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push 0x5404d8
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x45311a
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453410
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 0x453130
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 [0x52b93c], eax
test eax, eax
jne 0x453463
push str.Unable_to_start_unmount_image_thread
call fcn.004407e0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [0x4f431c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [0x52b93c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
mov dword [0x52b93c], 0
sbb eax, eax
and eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4534b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x240]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00493600
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 0x453529
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
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 0x4536d5
jmp 0x4535a0
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 0x4536be
lea eax, [ebp - 0x2c]
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sWIM_Path
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.00403820
push 0x104
push 0x5401e0
push 1
lea edx, [ebp - 0x138]
mov byte [ebp - 0x35], 0
mov ecx, 0x80000002
call fcn.00427520
add esp, 0x1c
test eax, eax
je 0x45362e
push ebx
push 0x5401e0
call fcn.004a2750
add esp, 8
test eax, eax
jne 0x4536be
lea eax, [ebp - 0x2c]
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sImage_Index
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.00403820
push 4
lea eax, [ebp - 0x254]
mov byte [ebp - 0x35], 0
push eax
push 4
lea edx, [ebp - 0x138]
mov ecx, 0x80000002
call fcn.00427520
add esp, 0x1c
test eax, eax
je 0x453676
cmp dword [ebp - 0x254], edi
jne 0x4536be
lea eax, [ebp - 0x2c]
mov byte [0x5401e0], 0
push eax
push str.SOFTWAREMicrosoftWIMMountMounted_Images_sMount_Path
lea eax, [ebp - 0x138]
push 0x104
push eax
call fcn.00403820
push 0x104
push 0x5401e0
push 1
lea edx, [ebp - 0x138]
mov byte [ebp - 0x35], 0
mov ecx, 0x80000002
call fcn.00427520
add esp, 0x1c
test eax, eax
jne 0x4536cd
inc esi
cmp esi, dword [ebp - 0x244]
jb 0x4535a0
jmp 0x4536d5
cmp esi, dword [ebp - 0x244]
jb 0x4536dc
mov byte [0x5401e0], 0
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov eax, 0x5401e0
cmp byte [0x5401e0], cl
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x455960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4f22ec]
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.00493600
push 0x1ff
push 0
push 0x5406e0
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.00493600
add esp, 0x18
test edi, edi
je 0x455bb0
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4559e3
sub esi, ecx
je 0x4559fb
mov edi, edi
cmp byte [edi + esi], 0x5c
je 0x455a31
sub esi, 1
jne 0x4559f0
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 0x455af6
mov dword [ebp - 0x110], 0
jmp 0x455b89
cmp esi, 0x104
jae 0x455bb0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x455a42
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x455a6c
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x455a60
sub ecx, edx
inc ecx
jmp 0x455a71
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 0x455a87
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x455ab3
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x455aa0
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
jmp 0x455ab6
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 0x455b2f
mov dword [ebp - 0x10c], 0
jmp 0x455b78
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 0x455b2f
mov dword [ebp - 0x10c], 0
jmp 0x455b78
lea eax, [ebp - 0x11c]
push eax
push 0x5406e0
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 0x455b6e
test eax, eax
jne 0x455b78
cmp dword [ebp - 0x118], 1
jne 0x455b78
cmp dword [ebp - 0x11c], eax
jbe 0x455b78
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x455b89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x455b9a
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.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00491940
mov esp, ebp
pop ebp
ret
Function at 0x45d630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov dword [ebp - 8], edx
mov ebx, ecx
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00491ed0
mov edi, edx
mov esi, eax
test edi, edi
jne 0x45d736
cmp esi, 0xffffffff
ja 0x45d736
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0xc]
imul eax, ecx
push ecx
mov dword [ebp - 4], eax
call fcn.00491ed0
push edi
push edi
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x45d6b5
call fcn.00440bb0
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.read_sectors:_Could_not_access_sector_0x_08llx____s_n
call fcn.004407e0
or eax, 0xffffffff
add esp, 0x10
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d6d9
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, esi
jne 0x45d6d9
cmp ecx, edi
je 0x45d72d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45d6ea
call fcn.00440bb0
jmp 0x45d6ef
mov eax, 0x4ce59a
push eax
push str.read_sectors:_Read_error__s_n
call fcn.004407e0
push edi
push esi
push dword [ebp - 4]
push str.__Read:__d__Expected:__llu_n
call fcn.004407e0
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.__StartSector:_0x_08llx__nSectors:_0x_llx__SectorSize:_0x_llx_n
call fcn.004407e0
mov eax, dword [ebp - 4]
add esp, 0x34
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.read_sectors:_nSectors_x_SectorSize_is_too_big_n
call fcn.004407e0
add esp, 4
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x18], 0x4e204f4e
mov ecx, 0xe5
mov dword [ebp - 0x14], 0x20454d41
mov esi, str.FAT32___1
mov word [ebp - 0x10], 0x2020
lea edi, [ebp - 0x5c0]
mov byte [ebp - 0xe], 0x20
rep movsd dword es:[edi], dword [esi]
push 0
push 0xb
mov ecx, 0x80
mov dword [ebp - 0xc], 0x4d9058eb
movsw word es:[edi], word [esi]
lea edx, [ebp - 0xc]
mov esi, 0x4ebbe0
mov dword [ebp - 8], 0x4e495753
lea edi, [ebp - 0x228]
mov word [ebp - 4], 0x2e34
rep movsd dword es:[edi], dword [esi]
push 0
push 0
mov ecx, ebx
mov byte [ebp - 2], 0x31
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xaa550000
call fcn.0045d940
add esp, 0x10
test eax, eax
je 0x4616af
push 0
push 0xb
push 0
push 0x47
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0045d940
add esp, 0x10
test eax, eax
je 0x4616af
push 0
push 0x396
push 0
push 0x52
lea edx, [ebp - 0x5c0]
mov ecx, ebx
call fcn.0045d940
add esp, 0x10
test eax, eax
je 0x4616af
push 0
push 0x10
push 0
push 0x3f0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0045d940
add esp, 0x10
test eax, eax
je 0x4616af
push 0
push 0x200
push 0
push 0x1c00
lea edx, [ebp - 0x228]
mov ecx, ebx
call fcn.0045d940
add esp, 0x10
test eax, eax
je 0x4616af
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret