joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x4c9070]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov edi, ecx
mov esi, edi
neg esi
lea eax, [edi - 0x744]
sbb esi, esi
and esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d007
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d007
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40cffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x40cffc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cffc
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040ce00
push 1
push 0xffffffffffffffeb
push dword [edi + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x1c], xmm0
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp + 8], 0
lea eax, [esp + 0x10]
lea ecx, [edi + 0x14]
je 0x40cfd1
push 1
push eax
call fcn.0040cea0
push 0
push 0xffffffffffffffeb
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4
push 0x10
push eax
push dword [esi + 4]
call fcn.0040ced0
push 0
push 0xffffffffffffffeb
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4
push 0
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4

Function at 0x40d0b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40d0de
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
sub esp, 0xc
call fcn.0040cd70
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x40d0f9
mov eax, 1
pop ebp
ret 0x18
cmp eax, 0xf
jne 0x40d0ff
mov dword [ecx], 1
push 0
call fcn.0040cf00
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 3
jne 0x40d11a
push 1
call fcn.0040cf00
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 5
jne 0x40d126
cmp dword [ecx], 0
je 0x40d0f0
jmp 0x40d0e9
cmp eax, 0x18
jne 0x40d14b
cmp dword [ebp + 0x10], 1
je 0x40d0f0
push 0
push dword [ecx + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 0x86
jne 0x40d0f9
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
call fcn.0040d020
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x40d0f9
mov eax, 1
pop ebp
ret 0x18
Function at 0x40edb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x40ee3c
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0040e850
test eax, eax
jne 0x40ee00
cmp ebx, 1
je 0x40edfa
cmp ebx, 0x46
jne 0x40ee0c
push 0xffffffffffffffeb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
jne 0x40edfa
mov eax, dword [ebp + 0x14]
or dword [eax + 0x18], 3
mov dword [esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0x18
cmp ebx, 0x113
jne 0x40ee3c
cmp dword [ebp + 0x10], 0x100
jne 0x40ee36
push 0x100
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18

Function at 0x410a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x80
push 3
push 0
push 7
push Ordinal_1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410aa2
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
push ebx
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
xor bl, bl
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410b0e
cmp dword [ebp - 0x20], 0x4c
push esi
jne 0x410b0b
lea ecx, [ebp - 0x1c]
mov edx, 0x4a2188
mov esi, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x410b0b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x410af0
test byte [ebp - 8], 0x10
je 0x410b0b
mov bl, 1
jmp 0x410b0d
xor bl, bl
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop edi
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x410ce0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48efbd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c9070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov byte [edi + 8], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x410d33
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x410d5a
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x10], eax
mov byte [ebp - 4], 1
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x410d7e
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x14], eax
mov byte [ebp - 4], 2
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x410da2
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x34]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 8
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b800
mov dword [esi], eax
lea ecx, [edi + 0x10]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.00404410
push dword [ebp - 0x14]
mov edx, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.0041fb60
mov eax, dword [edi + 0x1c]
add esp, 8
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 5
mov ecx, esi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0040b7a0
mov eax, dword [esi]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
mov eax, edi
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411d30
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4d6730]
add esi, 0x10
mov dword [ebp - 0x54], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d1714]
lea eax, [ebp - 0x54]
push eax
call fcn.0040e280
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x411da0
lea ecx, [edi + 0x2c]
mov dword [ebp - 0x54], ecx
jmp 0x411da7
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 4]
call fcn.0040e320
test edi, edi
je 0x411dc2
lea eax, [edi + 0x3b8]
mov dword [ebp - 0x54], eax
jmp 0x411dc9
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 0x10]
call fcn.0040e320
test edi, edi
je 0x411de1
lea eax, [edi + 0x2c]
mov dword [ebp - 0x54], eax
jmp 0x411de8
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [edi + 0x384]
call fcn.0040e320
test edi, edi
je 0x411e06
lea eax, [edi + 0x3b8]
mov dword [ebp - 0x54], eax
jmp 0x411e0d
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [edi + 0x390]
call fcn.0040e320
mov ecx, edi
call fcn.004146c0
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00417510
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00410c60
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00418cc0
push 1
push 0x4a1b6c
lea ecx, [ebp - 0x58]
call fcn.00403730
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov dword [eax], 0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411e91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4144e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f52b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xb58], 0
je 0x414696
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push 0x2011f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerTypedPaths
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414696
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x414562
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 1
push 0x4a6194
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push str._s_d
push eax
mov dword [ebp - 0x228], 0
call fcn.00409370
push 0x208
lea eax, [ebp - 0x218]
mov edi, 2
push 0
push eax
call fcn.0046ea70
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
add esp, 0x1c
mov dword [ebp - 0x224], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414666
nop dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00414ee0
push edi
push 0x4a6194
lea eax, [ebp - 0x21c]
push str._s_d
push eax
call fcn.00409370
push 0x208
lea eax, [ebp - 0x218]
inc edi
push 0
push eax
call fcn.0046ea70
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
add esp, 0x1c
mov dword [ebp - 0x224], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4145f0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414685
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x414696
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x4155d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f756
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41560b
xor eax, eax
jmp 0x41573b
mov eax, dword [0x4d138c]
xor edi, edi
test eax, eax
jne 0x415636
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d138c], eax
test eax, eax
je 0x415642
lea ecx, [ebp - 0x5c]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x60], eax
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415651
sub ecx, edx
sar ecx, 1
je 0x415671
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4156fd
push esi
mov ecx, ebx
call fcn.004151c0
mov edi, eax
test edi, edi
je 0x4156fb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415684
sub ecx, edx
sar ecx, 1
je 0x4156e2
mov ecx, dword [ebx + 0xb64]
push 0
call dword [sym.imp.DuiLib.dll_public:_struct_DuiLib::DTV_ITEM_INFO____thiscall_DuiLib::CTreeViewExUI::GetChild_struct_DuiLib::DTV_ITEM_INFO__]
cmp edi, eax
jne 0x4156e2
lea ecx, [ebp - 0x54]
call fcn.00410b30
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00418660
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.004150f0
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.00417410
lea ecx, [ebp - 0x54]
mov edi, 1
call fcn.00418cc0
jmp 0x4156fd
mov ecx, dword [ebx + 0xb64]
add ecx, 0xe0c
push edi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, 1
jmp 0x4156fd
xor edi, edi
mov dword [ebp - 4], 2
cmp dword [ebp - 0x60], 0
je 0x415739
mov eax, dword [0x4d1388]
mov esi, dword [ebp - 0x5c]
test eax, eax
jne 0x415736
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1388], eax
test eax, eax
je 0x415739
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4
Function at 0x417260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fbb1
mov eax, dword fs:[0]
push eax
sub esp, 0xb00
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xb04]
push ebx
call fcn.00403eb0
mov dword [ebp - 4], 0
push 0x5c
push dword [ebp - 0xb04]
call fcn.0046e615
add esp, 8
test eax, eax
je 0x4173b4
sub eax, dword [ebp - 0xb04]
sar eax, 1
test eax, eax
jle 0x4173b4
push eax
lea eax, [ebp - 0xb08]
push eax
lea ecx, [ebp - 0xb04]
call fcn.00425700
push eax
lea ecx, [ebp - 0xb04]
mov byte [ebp - 4], 1
call fcn.0040a720
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0xb08]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417313
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xae0]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x417334
push dword [eax + 0x40]
push ebx
push dword [edi + 4]
call ecx
add esp, 0xc
test al, al
je 0x4173b4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41737a
mov esi, dword [edi + 4]
lea ecx, [ebp - 0xb00]
call fcn.00427170
push 0
push str.msg_file_browse_exist.xml
push esi
lea ecx, [ebp - 0xb00]
mov byte [ebp - 4], 2
call fcn.00426bd0
lea ecx, [ebp - 0xb00]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00425bd0
cmp esi, 2
je 0x4173b4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4173fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417402
push ecx
mov ecx, dword [edi + 4]
mov edx, str.msg_file_browse_saveas_deny.xml
call fcn.00425520
add esp, 4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0xb04]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4173db
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4173b6
Function at 0x417540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fbf9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c9070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00404a20
mov ecx, eax
test ecx, ecx
jne 0x41758e
push 0x80004005
call fcn.00404ad0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
mov dword [ebp - 0x10], 1
or ecx, eax
jge 0x4175c6
push 0x104
mov ecx, esi
call fcn.00404530
push dword [esi]
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esi]
test eax, eax
jne 0x4175e0
xor ecx, ecx
jmp 0x4175f2
push dword [eax - 8]
push eax
call fcn.00474f18
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x417616
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x417616
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404ad0
int3
Function at 0x417630
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fc3c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2d0], eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x417847
mov eax, dword [0x4d138c]
test eax, eax
jne 0x4176ab
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d138c], eax
test eax, eax
je 0x4176ba
lea ecx, [ebp - 0x2d8]
push ecx
call eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x2dc], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404410
mov eax, dword [ebp - 0x2d0]
push 0x2b4
push 0
mov dword [eax], 0
lea eax, [ebp - 0x2c8]
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x2c8]
push 0x4600
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
call fcn.00417870
test al, al
jne 0x41773e
lea ecx, [ebp - 0x2bc]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417720
sub ecx, edx
lea eax, [ebp - 0x2bc]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004046a0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4177cc
push esi
lea ecx, [ebp - 0x2cc]
call fcn.00403eb0
push 0x5c
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 1
call fcn.00425880
push 0x5c
push dword [ebp - 0x2cc]
call fcn.0046e615
mov edx, dword [ebp - 0x2cc]
add esp, 8
test eax, eax
lea ecx, [eax + 2]
cmovne edx, ecx
test edx, edx
jne 0x41778d
xor ecx, ecx
jmp 0x4177a1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417792
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004046a0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x2cc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4177cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0xb4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4177d5
mov ecx, dword [ebp - 0x2d4]
lea eax, [ebp - 0xb4]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.004046a0
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2c4]
mov dword [ecx], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x2dc], 0
je 0x417847
mov eax, dword [0x4d1388]
mov esi, dword [ebp - 0x2d8]
test eax, eax
jne 0x417844
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1388], eax
test eax, eax
je 0x417847
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x417870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
lea ecx, [ebp - 0x210]
call fcn.00403eb0
mov eax, dword [ebp - 0x210]
push 0x208
push 0
mov esi, dword [eax - 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.0046ea70
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x417984
mov eax, dword [ebp - 0x210]
cmp dword [eax - 0xc], 0
jl 0x417984
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.0046e738
add esp, 8
test eax, eax
je 0x417984
sub eax, dword [ebp - 0x210]
sar eax, 1
cmp eax, 0xffffffff
jle 0x417984
lea ecx, [ebp - 0x210]
call fcn.004179c0
test al, al
jne 0x417984
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417923
sub ecx, edx
sar ecx, 1
js 0x41795b
mov eax, dword [ebp - 0x210]
cmp ecx, dword [eax - 0xc]
jge 0x41795b
lea eax, [eax + ecx*2]
push 0x5c
push eax
call fcn.0046e567
add esp, 8
test eax, eax
je 0x417984
sub eax, dword [ebp - 0x210]
sar eax, 1
jmp 0x41795e
or eax, 0xffffffff
xor bl, bl
test eax, eax
jle 0x417986
inc eax
cmp esi, eax
jle 0x417986
push eax
push 0x5c
lea ecx, [ebp - 0x210]
call fcn.004254e0
test eax, eax
jle 0x417980
inc eax
cmp esi, eax
jg 0x417986
mov bl, 1
jmp 0x417986
xor bl, bl
mov eax, dword [ebp - 0x210]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4179a4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
Function at 0x417c90
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x4c9070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, ecx
mov dword [ebp - 0x2c0], 0
push edi
mov ecx, dword [eax]
mov edi, edx
mov eax, dword [0x4d6748]
mov dword [ebp - 0x2bc], esi
cmp eax, dword [ecx + 4]
jle 0x417d17
push 0x4d6748
call fcn.0046c1c1
add esp, 4
cmp dword [0x4d6748], 0xffffffff
jne 0x417d17
call fcn.00404a20
mov ecx, eax
test ecx, ecx
je 0x417da7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4952b0
mov dword [0x4d6744], eax
call fcn.0046c518
push 0x4d6748
call fcn.0046c182
add esp, 8
mov ecx, dword [0x4d6744]
cmp dword [ecx - 0xc], 0
je 0x417d28
add ecx, 0xfffffff0
jmp 0x417d8b
push 0x2b4
lea eax, [ebp - 0x2b8]
push 0
push eax
call fcn.0046ea70
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x400
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 0xa4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417d61
sub ecx, edx
lea eax, [ebp - 0xa4]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4d6744
call fcn.004046a0
mov ecx, dword [0x4d6744]
lea ecx, [ecx - 0x10]
call fcn.004091c0
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
call fcn.0046be2f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ad0
int3