joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x403b41
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403b41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b41
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403ae3
cmp esi, ecx
jae 0x403b41
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403ad1
cmp esi, ecx
jae 0x403b41
movzx eax, word [esi]
test ax, ax
je 0x403b41
mov edi, eax
mov ecx, 1
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x403b0c
push edi
mov ecx, ebx
call fcn.00403dc0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.0054d68a
push eax
call fcn.004039e0
mov ecx, dword [ebx]
add esp, 0x14
cmp edi, dword [ecx - 8]
jg 0x403b4a
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.004041d0
int3

Function at 0x403b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.004070a6
mov ebx, eax
test ebx, ebx
jne 0x403b80
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403c47
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403c47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403c47
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403be4
cmp esi, ecx
jae 0x403c47
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403bd2
cmp esi, ecx
jae 0x403c47
movzx eax, word [esi]
test ax, ax
je 0x403c47
mov ebx, dword [ebp - 4]
mov edi, eax
mov ecx, 1
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x403c10
push edi
mov ecx, ebx
call fcn.00403dc0
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.0054d68a
push eax
call fcn.004039e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x403c52
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004041d0
int3
Function at 0x404e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [0x5e15cc], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], edi
je 0x404f9f
test edi, edi
je 0x404f9f
mov al, byte [0x5d6cc0]
xor edx, edx
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x14], edx
test al, al
je 0x404f96
cmp edx, 1
jge 0x404f96
test edx, edx
je 0x404efa
mov eax, dword [ebp + 0xc]
neg ecx
push 1
adc eax, 0
mov dword [esp + 0x1c], ecx
neg eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [0x5d6cc0]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
test al, al
je 0x404f85
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
nop
cmp edi, dword [ebp + 0xc]
ja 0x404f81
jb 0x404f1b
cmp esi, ecx
jae 0x404f81
mov eax, ecx
mov ecx, 0x10000
sub eax, esi
cmp eax, 0x10000
push 0
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push dword [edx*4 + 0x5e15cc]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f9f
add esi, dword [esp + 0x10]
adc edi, 0
test ebx, ebx
je 0x404f71
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404f71
push dword [esp + 0x10]
push 0
push 0x8066
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [0x5d6cc0]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
test al, al
jne 0x404f10
mov edi, dword [esp + 0xc]
inc edx
mov dword [esp + 0x14], edx
test al, al
je 0x404f96
mov ecx, dword [ebp + 8]
jmp 0x404ec0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ba0
Capabilities:
Identify system language via api

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.0056a730
test si, si
je 0x405bdd
cmp eax, 2
jl 0x405bd5
mov eax, esi
push eax
push str.UI_Default_Language_is:__d
push str.CResourceHelper::GetResourceFile
push str.SBAM.Common
push 2
call fcn.0056a6b0
add esp, 0x14
mov ecx, esi
pop esi
jmp fcn.00405640
cmp eax, 1
jl 0x405bfb
push str.Could_not_read_UI_Default_Language._Will_try_en_US
push str.CResourceHelper::GetResourceFile
push str.SBAM.Common
push 1
call fcn.0056a6b0
add esp, 0x10
mov ecx, 0x409
pop esi
jmp fcn.00405640

Function at 0x407452
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00413820
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407489
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004074aa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40aa48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40aa8d
call fcn.00413820
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40aa8d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40aaa9
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411f00
mov ebx, eax
test edi, edi
je 0x40aaa7
test esi, esi
je 0x40aaa7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b589
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40b647
cmp dword [esi + 0x20], 0
je 0x40b647
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b647
cmp dword [ebp + 8], 0
je 0x40b647
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00413820
push 0x57f960
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40b618
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b647
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0041c4f1
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x40b638
test edi, edi
je 0x40b638
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x40b643
mov ecx, esi
call fcn.0040b32c
mov eax, ebx
jmp 0x40b649
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410003
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5796d1
call fcn.005485eb
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x410029
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410088
call fcn.00406373
push eax
lea ecx, [ebp - 0x10]
call fcn.004041f0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
pop es
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.005485ae
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00553347
push eax
call fcn.004039e0
add esp, 0x14
test esi, esi
je 0x41007b
push esi
call fcn.0054df5b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404220
mov eax, ebx
call fcn.005485b4
ret 8
Function at 0x41419f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4141e9
call fcn.00413820
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4141e6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414237
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x414215
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.005485ae
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x414215
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x414235
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.005485ae
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41517d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x56f4a7
call fcn.005485eb
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x415227
push dword [ebp + 8]
mov ecx, eax
call fcn.004154ae
mov esi, eax
test esi, esi
je 0x4152b9
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x415210
push edx
call fcn.0040605d
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415210
xor edi, edi
inc edi
jmp 0x41521a
push dword [ebx]
call fcn.00406058
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00415042
jmp 0x4152b7
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.005485ae
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4152af
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.0040605d
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x4152a9
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403300
push edi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.00403300
shl bl, 4
sub bl, 0x51
add al, bl
mov edx, edi
test edx, edx
jns 0x41529a
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x415272
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00404220
mov eax, edi
call fcn.005485b4
ret 0x10

Function at 0x4152c1
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x415314
push esi
push dword [ebp + 8]
call fcn.004154ae
mov edi, eax
test edi, edi
jne 0x4152e4
mov eax, dword [ebp + 0x10]
jmp 0x415326
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4152df
mov eax, dword [ebp - 8]
jmp 0x415326
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41efad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x41efc7
mov edi, dword [esi + 0xc]
jmp 0x41f007
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41efe0
call fcn.004192f7
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x41eff5
call fcn.004192f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41f007
call fcn.004192f7
call fcn.00413820
cmp dword [eax + 0x3c], 0
je 0x41f01c
push edi
mov ecx, ebx
call fcn.0041e6e6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0041f1f9
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x41f045
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x41f051
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4205e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0040fbe0
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x420620
call fcn.00420806
mov dword [esi + 0xc], 1
jmp 0x420625
call fcn.00420806
cmp dword [esi], 0
je 0x42066e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x420648
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00407118
jmp 0x420659
push 0xff
mov ecx, esi
call fcn.00403e20
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040713b
jmp 0x420692
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x420692
push dword [esi]
push dword [ebp - 4]
call fcn.0041a5bb
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42075b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00420806
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4207a3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407118
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040713b
jmp 0x4207ae
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a5bb
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42f4ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5de3d4], 0
push edi
mov edi, ecx
jne 0x42f507
xor eax, eax
jmp 0x42f5a1
push ebx
push esi
xor ebx, ebx
push ebx
push 0x40
push ebx
call fcn.0041016e
push ebx
push 1
mov ecx, edi
call fcn.0042f48a
push eax
call fcn.00411617
push eax
mov ecx, edi
call fcn.00430259
push 1
push ebx
mov ecx, edi
call fcn.0042f48a
push eax
call fcn.00411617
push eax
mov ecx, edi
call fcn.00430259
mov eax, dword [edi]
mov esi, dword [eax + 0x194]
mov ecx, esi
call fcn.005485ae
mov ecx, edi
call esi
cmp dword [edi + 0x154], ebx
jne 0x42f59c
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x42f59c
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
mov esi, dword [eax + 0x188]
mov ecx, esi
call fcn.005485ae
mov ecx, edi
call esi
push dword [ebp - 8]
mov ecx, dword [0x5de3d4]
call fcn.0047b051
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42f65c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x5d5ff0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ecx, ecx
je 0x42f894
test ebx, ebx
je 0x42f894
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x644], edi
mov dword [ebp - 0x640], edi
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x874], edi
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x868], edi
mov dword [ebp - 0x864], edi
mov dword [ebp - 0x860], edi
sub eax, edi
je 0x42f85d
sub eax, 1
je 0x42f6f4
sub eax, 1
je 0x42f7c5
sub eax, 1
jne 0x42f87f
lea eax, [ebp - 0x20c]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42f858
push edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00471ca4
test eax, eax
je 0x42f858
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42f853
push edi
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00471ca4
test eax, eax
je 0x42f853
xor edx, edx
inc edx
cmp dword [ebp + 0x10], edx
jne 0x42f81c
test byte [ebp - 0x624], 0x10
jne 0x42f858
test byte [ebp - 0x854], 0x10
jne 0x42f7be
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x85c]
cmp dword [ebp - 0x628], ecx
ja 0x42f7be
jb 0x42f858
cmp dword [ebp - 0x62c], eax
jb 0x42f858
cmp dword [ebp - 0x628], ecx
jb 0x42f87f
ja 0x42f7be
cmp dword [ebp - 0x62c], eax
jbe 0x42f87f
mov edi, edx
jmp 0x42f87f
mov esi, 0x408
lea eax, [ebp - 0xddc]
push esi
push 0x2b4
push eax
push edi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x42f87f
push esi
push 0x2b4
lea eax, [ebp - 0xb28]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x42f87f
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
jmp 0x42f87f
mov ecx, dword [ebp - 0x868]
mov eax, dword [ebp - 0x86c]
cmp dword [ebp - 0x638], ecx
jg 0x42f7be
jl 0x42f858
cmp dword [ebp - 0x63c], eax
jb 0x42f858
cmp dword [ebp - 0x638], ecx
jl 0x42f87f
jg 0x42f7be
cmp dword [ebp - 0x63c], eax
jmp 0x42f7b8
xor edi, edi
inc edi
jmp 0x42f87f
or edi, 0xffffffff
jmp 0x42f87f
mov eax, dword [ecx]
push dword [ebx + 8]
push dword [ecx + 8]
mov esi, dword [eax]
push edi
push eax
mov ecx, dword [esi + 0x1c]
call fcn.005485ae
call dword [esi + 0x1c]
test eax, eax
jns 0x42f87c
xor eax, eax
jmp 0x42f881
movsx edi, ax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00547faa
mov esp, ebp
pop ebp
ret 0xc
call fcn.00406e42
int3
Function at 0x42fe87
Capabilities:
Get file system object information

Disassembly:
push 0x6f4
mov eax, 0x570645
call fcn.0054861f
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x42fea7
call fcn.00406e42
mov eax, dword [ebp + 0x10]
xor esi, esi
sub eax, esi
je 0x42ffe9
sub eax, 1
je 0x42ff01
sub eax, 1
je 0x42fed9
sub eax, 1
je 0x42ff01
push 0x5b66e8
mov ecx, edi
call fcn.00404100
mov eax, edi
call fcn.005485c9
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x42fec3
lea eax, [ebp - 0x4e8]
push eax
jmp 0x42fec8
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42fec3
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.00471ca4
test eax, eax
je 0x42fec3
call fcn.00406373
push eax
lea ecx, [ebp - 0x700]
call fcn.004041f0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x42ffa0
test byte [ebp - 0x428], 0x18
jne 0x42ffc1
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call fcn.005485ae
mov ecx, ebx
call esi
jmp 0x42ffc1
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call fcn.005485ae
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00403800
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00404220
jmp 0x42fecf
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x42fec3
lea eax, [ebp - 0x6f0]
jmp 0x42fefe

Function at 0x4301e1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0047b763
call fcn.00413874
cmp dword [eax + 0x14], 0
jne 0x4301fc
mov ecx, esi
pop esi
jmp fcn.0042f4ee
pop esi
ret