joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457eb8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b0e54]
cmp dword [eax + 0x30], 0
je 0x457f62
cmp dword [ebx + 0x94], 0
jne 0x457f5c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457e48
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457f5c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457f22
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457f5c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417cd8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457f31
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458a40
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458a75
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404d0c
jmp 0x458a82
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c70
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459a90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459ad1
mov eax, esi
call fcn.00440094
test al, al
je 0x459ad1
mov eax, dword [ebx + 0x84]
call fcn.0043fd90
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459ad1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fd90
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45a860
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a9c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404cb4
mov eax, dword [ebp - 0x10]
call fcn.0045a5f8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45a8b2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00405188
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045ad64
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45a987
xor eax, eax
push ebp
push 0x45a980
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045a738
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045a9f8
test al, al
je 0x45a95e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404d0c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45a95e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004050e8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x45a958
mov eax, dword [ebp - 0x14]
call fcn.004050e8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404e0c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045a860
dec ebx
cmp ebx, 0xffffffff
jne 0x45a911
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a987
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045a738
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004050e8
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0045a724
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a9d0
lea eax, [ebp - 0x3c]
call fcn.00404c1c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404c40
ret

Function at 0x45a9f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403404
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4acffc]
cmp byte [edx + 0xc], 0
je 0x45aa5c
mov edx, dword [0x4acff4]
cmp dword [edx], 2
jne 0x45aa5c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45aa60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45ab18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045a9f8
test al, al
je 0x45aafa
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404d0c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x45aafa
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050e8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.004050e8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404e0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x45aab3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ab1f
lea eax, [ebp - 0x2c]
call fcn.00404c1c
lea eax, [ebp - 0xc]
call fcn.00404c1c
ret

Function at 0x45ab28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45abe0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045a9f8
test al, al
je 0x45abc2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404d0c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45abc2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050e8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.004050e8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404e0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x45ab7b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45abe7
lea eax, [ebp - 0x2c]
call fcn.00404c1c
lea eax, [ebp - 0xc]
call fcn.00404c1c
ret
Function at 0x45ace0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004050e8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45ad38
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ad008]
mov dl, 1
mov eax, dword [0x45a504]
call fcn.0040da58
call fcn.004045f8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045a60c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45fb68
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45fb96
mov eax, ebx
call fcn.00460620
cmp dword [ebx + 0x3c], 0
je 0x45fb8f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45fc07
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45fbf9
cmp dword [ebx + 8], 0
je 0x45fbb8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45fbca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45fbf9
cmp dword [ebx + 8], 0
je 0x45fbab
cmp eax, 3
je 0x45fbdd
dec eax
jne 0x45fbab
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45fbab
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45fbab
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45fc25
cmp dword [ebx + 0x10], 0xcc
je 0x45fc25
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045fc30
pop ebx
ret
Function at 0x46fee8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dword [ebx + 0x24], eax
cmp word [eax], 0x5a4d
jne 0x46ffa6
mov edx, dword [eax + 0x3c]
add edx, dword [ebx + 4]
mov dword [ebx + 0x28], edx
cmp dword [edx], 0x4550
jne 0x46ffa6
mov ax, word [edx + 6]
mov word [ebx + 0x10], ax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x1c], eax
movzx eax, word [ebx + 0x10]
push eax
lea eax, [ebx + 0x2c]
mov ecx, 1
mov edx, dword [0x46fb88]
call fcn.0040641c
add esp, 4
mov eax, dword [ebx + 0x2c]
call fcn.00406268
mov edi, eax
test di, di
jb 0x46ffa4
inc edi
xor esi, esi
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x3c]
add edx, dword [ebx + 4]
add edx, 0xf8
movzx eax, si
shl eax, 3
lea eax, [eax + eax*4]
add edx, eax
movzx eax, si
lea eax, [eax + eax*4]
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + eax*8]
mov ecx, 0x28
call fcn.0040824c
inc esi
dec di
jne 0x46ff6e
mov cl, 1
mov eax, ecx
pop edi
pop esi
pop ebx
ret

Function at 0x4700a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.004050e8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x47011b
lea eax, [ebp + 0xc]
mov edx, edi
call fcn.00404c70
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
mov dword [ebp + 8], edi
mov eax, edi
call fcn.004029f0
mov dword [ebp + 4], eax
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 4]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp + 8]
cmp eax, dword [esp]
jne 0x470115
mov eax, ebp
call fcn.0046fee8
mov ebx, eax
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x470124
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, esi
call fcn.004050e8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4701ba
mov eax, edi
call fcn.0046fecc
test al, al
je 0x4701b4
mov ecx, 0x40
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 4]
call fcn.0040824c
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 0x3c]
add eax, dword [edi + 4]
mov ecx, 0xf8
mov edx, dword [edi + 0x28]
call fcn.0040824c
mov eax, edi
call fcn.0046ffac
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
mov eax, dword [edi + 8]
cmp eax, dword [esp]
jne 0x4701b4
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x471ca0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00404c70
mov eax, ebx
call fcn.00405138
mov eax, dword [ebx]
call fcn.00404ef0
test eax, eax
jle 0x471cd1
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x471cc6
pop esi
pop ebx
ret

Function at 0x475798
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47585a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.004050e8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x475844
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405274
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, ebx
call fcn.004050e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x475844
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x47586c
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x475844
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475861
lea eax, [ebp - 0x14]
call fcn.00404c1c
ret

Function at 0x4759fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x475a44
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x475a3a
cmp word [edi], 0x5a4d
jne 0x475a3a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x475a3a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475a50
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x475be0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x475c26
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x475c57
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x475cb4
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x475c82
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x475c94
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x475cae
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x478e74
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x478ef0
cmp dword [esp + 0x10], 0x1000
jne 0x478ef0
cmp dword [esp + 4], 0
je 0x478ef0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x478ef0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x478ef0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x478ef0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47b7f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b951
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x47b933
cmp word [edi + 0x1e], 2
jb 0x47b933
movzx edx, word [edi + 0x1e]
sub edx, 2
sar edx, 1
jns 0x47b844
adc edx, 0
mov eax, esi
call fcn.0040572c
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x1e]
sub eax, 2
push eax
mov eax, dword [esi]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x47b879
mov eax, dword [ebp - 8]
add eax, 2
movzx edx, word [edi + 0x1e]
cmp eax, edx
je 0x47b87d
xor ebx, ebx
jmp 0x47b87f
mov bl, 1
test bl, bl
je 0x47b933
mov eax, dword [esi]
call fcn.004054ec
mov edx, eax
mov eax, esi
call fcn.0040546c
mov edx, dword [esi]
mov eax, 0x47b968
call fcn.0047133c
test al, al
je 0x47b8ba
mov eax, esi
mov ecx, 4
mov edx, 1
call fcn.0040569c
jmp 0x47b933
mov edx, dword [esi]
mov eax, 0x47b978
call fcn.004713ac
test al, al
je 0x47b920
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi]
mov ecx, 0x7fffffff
mov edx, 0x15
call fcn.00405650
mov eax, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004054c0
mov edx, dword [ebp - 0x21c]
mov eax, esi
pop ecx
call fcn.00405568
jmp 0x47b933
mov eax, dword [esi]
call fcn.004054ec
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b958
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00405374
ret
Function at 0x47b9a4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x47bb01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004050e8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, eax
lea eax, [ebp - 0x16c]
mov edx, ebx
and dl, 0xff
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x16c]
lea eax, [ebp - 0x170]
call fcn.004032b0
lea eax, [ebp - 0x174]
mov edx, ebx
and edx, 0xff00
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x174]
lea eax, [ebp - 0x170]
mov cl, 2
call fcn.00403280
lea edx, [ebp - 0x170]
lea eax, [ebp - 8]
call fcn.00404e78
mov eax, dword [ebp - 8]
mov edx, 0x47bb18
call fcn.00405034
jne 0x47ba62
mov bl, 1
jmp 0x47badb
mov eax, dword [ebp - 8]
mov edx, 0x47bb24
call fcn.00405034
jne 0x47ba75
mov bl, 2
jmp 0x47badb
mov eax, dword [ebp - 8]
mov edx, 0x47bb30
call fcn.00405034
jne 0x47ba94
mov eax, ebx
call fcn.00408238
test ax, ax
jne 0x47ba94
mov bl, 3
jmp 0x47badb
mov eax, dword [ebp - 8]
mov edx, 0x47bb30
call fcn.00405034
jne 0x47bab3
mov eax, ebx
call fcn.00408238
test ax, ax
jbe 0x47bab3
mov bl, 4
jmp 0x47badb
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 4]
call fcn.0040aedc
mov eax, dword [ebp - 0x178]
mov edx, 0x47bb3c
call fcn.00470c40
test al, al
je 0x47bad9
mov bl, 1
jmp 0x47badb
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bb08
lea eax, [ebp - 0x178]
call fcn.00404c1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c40
ret
Function at 0x47bb4c
Capabilities:
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x47bc60
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x4010
cmp byte [ebp - 5], 0
je 0x47bb91
or esi, 1
jmp 0x47bb94
or esi, 0
test bl, bl
je 0x47bbec
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 4]
call fcn.0040af14
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0xc]
call fcn.00404cb4
mov edx, 0x47bc78
mov eax, dword [ebp - 0xc]
call fcn.00470c40
test al, al
jne 0x47bbda
mov edx, 0x47bc88
mov eax, dword [ebp - 0xc]
call fcn.00470c40
test al, al
jne 0x47bbda
xor ebx, ebx
jmp 0x47bbdc
mov bl, 1
test bl, bl
je 0x47bbec
or esi, 0x100
or esi, 0x8000
push esi
push 0x160
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 4]
call fcn.004050e8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
push eax
push edi
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x47bc1a
xor ebx, ebx
jmp 0x47bc37
test bl, bl
je 0x47bc26
mov ebx, dword [ebp - 0x16c]
jmp 0x47bc37
push 0
mov eax, dword [ebp - 0x168]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIcon
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bc67
lea eax, [ebp - 0x170]
call fcn.00404c1c
lea eax, [ebp - 0xc]
call fcn.00404c1c
lea eax, [ebp - 4]
call fcn.00404c1c
ret