joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dd40
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 0x40dd93
push esi
push dword [ebp + 8]
call fcn.0040df2d
mov edi, eax
test edi, edi
jne 0x40dd63
mov eax, dword [ebp + 0x10]
jmp 0x40dda5
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 0x40dd5e
mov eax, dword [ebp - 8]
jmp 0x40dda5
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 0x41528a
Capabilities:
Get disk information

Disassembly:
push 0x268
mov eax, 0x5680fc
call fcn.005463f3
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x415498
test edi, edi
je 0x415498
lea ecx, [ebp - 0x268]
mov esi, 0x104
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x415319
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 0x264]
call fcn.0054e897
add esp, 0x10
test eax, eax
je 0x41530b
cmp eax, 0xc
je 0x41549d
cmp eax, 0x16
je 0x415498
cmp eax, 0x22
je 0x415498
cmp eax, 0x50
jne 0x415498
push edi
push ebx
call fcn.00415248
xor eax, eax
jmp 0x415463
cmp eax, esi
jb 0x415343
test ebx, ebx
je 0x415312
mov dword [ebx + 8], 3
test edi, edi
jne 0x415330
xor eax, eax
jmp 0x415337
push edi
call fcn.0054e4f7
pop ecx
push eax
push edi
lea ecx, [ebx + 0x10]
call fcn.004050c0
jmp 0x415312
call fcn.004076d1
push eax
lea ecx, [ebp - 0x26c]
call fcn.00404e70
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x264]
call fcn.00414b5e
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x415458
push eax
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x274]
push ecx
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4153b2
push edi
push ebx
call fcn.00415248
lea ecx, [esi - 0x10]
call fcn.00405370
jmp 0x415312
mov eax, dword [ebp - 0x270]
test al, 2
jne 0x4153ce
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [ebp - 0x270]
test al, 4
jne 0x415458
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x415458
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x41539e
cmp eax, dword [ebp - 0x264]
jbe 0x41539e
lea eax, [ebp - 0x234]
push eax
call fcn.0054e4f7
mov edx, dword [ebp - 0x268]
sub edx, dword [ebp - 0x264]
sar edx, 1
pop ecx
add eax, edx
mov ecx, 0x104
cmp eax, ecx
jge 0x41546b
lea eax, [ebp - 0x234]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x268]
call fcn.0054ead1
add esp, 0xc
test eax, eax
je 0x415458
cmp eax, 0xc
je 0x41549d
cmp eax, 0x16
je 0x415498
cmp eax, 0x22
je 0x415498
cmp eax, 0x50
jne 0x415498
lea ecx, [esi - 0x10]
call fcn.00405370
xor eax, eax
inc eax
call fcn.0054639d
ret 0xc
test ebx, ebx
je 0x4153a5
mov dword [ebx + 8], 3
test edi, edi
jne 0x415482
xor eax, eax
jmp 0x415489
push edi
call fcn.0054e4f7
pop ecx
push eax
push edi
lea ecx, [ebx + 0x10]
call fcn.004050c0
jmp 0x4153a5
call fcn.0040718d
call fcn.004071a7
int3
Function at 0x415aaf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00415fba
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.00415cea
cmp esi, 3
je 0x415aed
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x415b43
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov ecx, edi
test ebx, ebx
jle 0x415b1e
push ebx
call fcn.00405050
push ebx
mov ecx, edi
mov esi, eax
call fcn.00405090
lea ecx, [ebx + 1]
push ecx
push esi
jmp 0x415b2e
push 0xff
call fcn.00405050
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00405ef0
pop ebx
jmp 0x415b67
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 0x415b67
push dword [esi]
push dword [ebp - 4]
call fcn.0040f648
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415c30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00415cea
cmp dword [esi], 0
mov ebx, eax
mov dword [esi + 0xc], 1
je 0x415c87
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [ebp + 0x10]
mov edi, eax
push edi
call fcn.00405050
mov ecx, dword [ebp + 0x10]
mov esi, eax
push edi
call fcn.00405090
lea edx, [edi + 1]
push edx
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405ef0
pop edi
jmp 0x415c92
mov eax, dword [ebp + 0x10]
push dword [eax]
push ebx
call fcn.0040f648
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x416070
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x567732
call fcn.005463bf
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x416096
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x416107
call fcn.004076d1
push eax
lea ecx, [ebp - 0x10]
call fcn.00404e70
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00546382
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0054e897
add esp, 0x10
test eax, eax
je 0x4160ed
cmp eax, 0xc
je 0x416114
cmp eax, 0x16
je 0x41610f
cmp eax, 0x22
je 0x41610f
cmp eax, 0x50
jne 0x41610f
test esi, esi
je 0x4160fa
push esi
call fcn.0054e4f7
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405370
mov eax, ebx
call fcn.00546388
ret 8
call fcn.0040718d
call fcn.004071a7
int3
Function at 0x4184d5
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 0x41851a
call fcn.0040a1f9
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41851a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418536
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420f84
mov ebx, eax
test edi, edi
je 0x418534
test esi, esi
je 0x418534
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 0x418f31
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 0x418fef
cmp dword [esi + 0x20], 0
je 0x418fef
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418fef
cmp dword [ebp + 8], 0
je 0x418fef
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0040a1f9
push 0x57a830
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 0x418fc0
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 0x418fef
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.00421abd
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x418fe0
test edi, edi
je 0x418fe0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x418feb
mov ecx, esi
call fcn.00418cd4
mov eax, ebx
jmp 0x418ff1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42216c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebx + 0x8c]
mov dword [ebp - 4], ecx
je 0x4221b1
call fcn.0040a1f9
push 5
push dword [ebx + 0x84]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4221c1
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov edi, eax
xor esi, esi
inc esi
test edi, edi
je 0x42220d
mov edx, dword [edi]
mov eax, edx
shr eax, 0x10
mov dword [ebp - 4], 0xffff
cmp ax, word [ebp - 4]
jne 0x4221ec
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0xc]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x14]
jmp 0x4221f7
movzx eax, word [edi + 0xa]
mov dword [ebp - 4], eax
movzx eax, word [edi + 0xc]
test edx, 0x1801
jne 0x42220b
cmp word [ebp - 4], 0
jne 0x42220b
test ax, ax
je 0x42220d
xor esi, esi
cmp dword [ebx + 0x84], 0
je 0x42221d
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422226
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x422251
cmp dword [ebx + 0x80], 0
jne 0x422251
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0040a1f9
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.004224e4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42228b
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.0040a1f9
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 0x4222c2
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.004222e3
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 0x4225de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x5687e7
call fcn.0054642a
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
call fcn.0040a1f9
xor ebx, ebx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x84], ebx
je 0x42263d
call fcn.0040a1f9
push 5
push dword [edi + 0x84]
mov esi, dword [eax + 0xc]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x42264d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
jmp 0x422650
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42265c
or eax, 0xffffffff
jmp 0x4227e0
mov ecx, edi
call fcn.00422c32
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.004171e4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
test esi, esi
je 0x422704
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x422704
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422704
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x30], 1
call fcn.0040d40f
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4226c6
mov ecx, dword [eax]
mov esi, dword [ecx + 0x74]
mov ecx, esi
call fcn.00546382
mov ecx, dword [ebp - 0x14]
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x4226cb
mov esi, ebx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x422704
mov eax, dword [esi]
mov esi, dword [eax + 0x150]
mov ecx, esi
call fcn.00546382
mov ecx, dword [ebp - 0x14]
call esi
test eax, eax
je 0x422704
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.0041615a
test eax, eax
je 0x422704
push ebx
mov ecx, esi
call fcn.00415f15
mov dword [ebp - 0x2c], 1
push edi
mov dword [ebp - 4], ebx
call fcn.00416e85
mov esi, dword [ebp - 0x28]
push esi
call fcn.0041855d
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00422581
test eax, eax
jne 0x42274f
cmp dword [edi + 0x9c], ebx
jne 0x42274f
call fcn.0040a1f9
push esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0041855d
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00422581
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x9c], ebx
jmp 0x422780
cmp dword [ebp - 0x2c], 0
je 0x422790
mov ecx, dword [ebp - 0x14]
push 1
call fcn.00415f15
cmp dword [ebp - 0x30], 0
je 0x42279f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x4227b5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x4227b5
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call fcn.00546382
mov ecx, edi
call esi
mov ecx, edi
call fcn.00422be9
cmp dword [edi + 0x84], ebx
je 0x4227dd
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [edi + 0x68]
call fcn.00546388
ret
Function at 0x424456
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
mov edi, dword [esi + 0xc]
jne 0x4244ac
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x424485
call fcn.00413360
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x42449a
call fcn.00413360
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4244ac
call fcn.00413360
call fcn.0040a1f9
cmp dword [eax + 0x3c], 0
je 0x4244c1
push edi
mov ecx, ebx
call fcn.00423b8f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004246b2
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4244ea
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4244f6
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 0x427ed1
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x428031
mov ecx, 0x5cb4f8
call fcn.0040ac73
mov esi, eax
test esi, esi
je 0x428026
xor eax, eax
cmp word [esi + 8], ax
jne 0x427ff0
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x427f92
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x427f58
push 0x57be88
call fcn.00428071
pop ecx
test eax, eax
je 0x427f58
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x427f73
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x427f92
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x427f98
push ebx
push edi
push eax
call fcn.00427a84
add esp, 0xc
jmp 0x427f98
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00407550
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
mov dword [esi + 4], edx
test edx, edx
je 0x42802b
mov eax, dword [edi]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push edx
call fcn.0054ead1
add esp, 0xc
test eax, eax
je 0x427fe5
cmp eax, 0xc
je 0x42802b
cmp eax, 0x16
je 0x428026
cmp eax, 0x22
je 0x428026
cmp eax, 0x50
jne 0x428026
mov ax, word [ebx]
mov word [esi + 8], ax
xor eax, eax
jmp 0x427ff3
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x428001
push edi
call fcn.0054e4f7
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.004050c0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.0040718d
call fcn.004071a7
int3
Function at 0x436eab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5ccf74], 0
push edi
mov edi, ecx
jne 0x436ec4
xor eax, eax
jmp 0x436f5e
push ebx
push esi
xor ebx, ebx
push ebx
push 0x40
push ebx
call fcn.00416184
push ebx
push 1
mov ecx, edi
call fcn.00436e47
push eax
call fcn.0043b4f0
push eax
mov ecx, edi
call fcn.00437beb
push 1
push ebx
mov ecx, edi
call fcn.00436e47
push eax
call fcn.0043b4f0
push eax
mov ecx, edi
call fcn.00437beb
mov eax, dword [edi]
mov esi, dword [eax + 0x194]
mov ecx, esi
call fcn.00546382
mov ecx, edi
call esi
cmp dword [edi + 0x154], ebx
jne 0x436f59
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 0x436f59
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
mov esi, dword [eax + 0x188]
mov ecx, esi
call fcn.00546382
mov ecx, edi
call esi
push dword [ebp - 8]
mov ecx, dword [0x5ccf74]
call fcn.0048396f
xor eax, eax
pop esi
inc eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x436fec
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x5c4fe8]
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 0x437224
test ebx, ebx
je 0x437224
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 0x4371ed
sub eax, 1
je 0x437084
sub eax, 1
je 0x437155
sub eax, 1
jne 0x43720f
lea eax, [ebp - 0x20c]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4371e8
push edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041eaf9
test eax, eax
je 0x4371e8
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4371e3
push edi
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0041eaf9
test eax, eax
je 0x4371e3
xor edx, edx
inc edx
cmp dword [ebp + 0x10], edx
jne 0x4371ac
test byte [ebp - 0x624], 0x10
jne 0x4371e8
test byte [ebp - 0x854], 0x10
jne 0x43714e
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x85c]
cmp dword [ebp - 0x628], ecx
ja 0x43714e
jb 0x4371e8
cmp dword [ebp - 0x62c], eax
jb 0x4371e8
cmp dword [ebp - 0x628], ecx
jb 0x43720f
ja 0x43714e
cmp dword [ebp - 0x62c], eax
jbe 0x43720f
mov edi, edx
jmp 0x43720f
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 0x43720f
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 0x43720f
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
jmp 0x43720f
mov ecx, dword [ebp - 0x868]
mov eax, dword [ebp - 0x86c]
cmp dword [ebp - 0x638], ecx
jg 0x43714e
jl 0x4371e8
cmp dword [ebp - 0x63c], eax
jb 0x4371e8
cmp dword [ebp - 0x638], ecx
jl 0x43720f
jg 0x43714e
cmp dword [ebp - 0x63c], eax
jmp 0x437148
xor edi, edi
inc edi
jmp 0x43720f
or edi, 0xffffffff
jmp 0x43720f
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.00546382
call dword [esi + 0x1c]
test eax, eax
jns 0x43720c
xor eax, eax
jmp 0x437211
movsx edi, ax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545a0d
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040718d
int3

Function at 0x437b73
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00489723
call fcn.0040a24d
cmp dword [eax + 0x14], 0
jne 0x437b8e
mov ecx, esi
pop esi
jmp fcn.00436eab
pop esi
ret