joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405560
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6922b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x75d580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov byte [esi + 0x398], 1
call fcn.00414cd0
mov edi, eax
cmp byte [edi + 0x48], 0
je 0x40565e
push 0x7624b0
mov dword [ebp - 0x14], 0x7624b0
call fcn.00488d05
add esp, 4
test eax, eax
jne 0x40574e
cmp dword [0x7624dc], 0x7fffffff
je 0x40573d
mov dword [ebp - 4], eax
cmp byte [edi + 0x48], al
je 0x40564a
mov ecx, dword [edi + 0x74]
lea eax, [edi + 0x50]
test ecx, ecx
je 0x405608
mov edx, dword [ecx]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x74], 0
mov byte [edi + 0x48], 0
call fcn.00430a60
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
test ecx, ecx
je 0x40562c
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40563d
push ecx
call eax
mov dword [edi + 4], 0
cmp dword [edi + 8], 0
je 0x40564a
mov dword [edi + 8], 0
push 0x7624b0
mov dword [ebp - 4], 0xffffffff
call fcn.00488d16
add esp, 4
cmp dword [esi + 0x394], 0
je 0x4056a2
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 0x394], eax
je 0x40574e
push 0
push dword [esi + 0x394]
push dword [esi + 0x390]
call fcn.00488cb6
add esp, 0xc
test eax, eax
jne 0x405755
mov dword [esi + 0x390], eax
mov dword [esi + 0x394], eax
cmp byte [esi + 0x3cd], 0
je 0x40571d
cmp dword [esi + 0x3ac], 0
je 0x40571d
cmp dword [esi + 0x3b0], 7
lea edi, [esi + 0x39c]
mov eax, edi
jbe 0x4056c7
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40571d
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
movups xmmword [ecx], xmm0
push 0x735258
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00402060
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
push edi
call fcn.00407510
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
call fcn.004016b0
add esp, 0x30
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 6
mov dword [0x7624dc], 0x7ffffffe
call fcn.00488b72
push 5
call fcn.00488b72
push 2
call fcn.00488b72
int3
Function at 0x4060b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xffffffffffffffff
push str.img_install_finish
add ecx, 4
call fcn.004423a2
mov esi, eax
test esi, esi
je 0x4060ee
mov edx, dword [esi]
mov ecx, esi
push 0x7351d8
call dword [edx + 4]
test eax, eax
je 0x4060ee
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.004454ca
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [0x769a40]
test ecx, ecx
je 0x406101
call fcn.0043b6bb
mov esi, eax
jmp 0x406103
xor esi, esi
push 0x2800
call fcn.00549697
add esp, 4
mov edi, eax
push 0x5000
call fcn.00549697
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push str.img_install_finish
push 0x7351d8
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402530
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x406171
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.005432f0
add esp, 4
test esi, esi
je 0x4061c3
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x4061c3
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.005432f0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x2800
call fcn.00549697
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402590
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.005432f0
add esp, 4
push edi
call fcn.005432f0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4085b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004423a2
mov esi, eax
test esi, esi
je 0x4085e1
mov edx, dword [esi]
mov ecx, esi
push str.text
call dword [edx + 4]
test eax, eax
je 0x4085e1
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, dword [0x769a40]
test ecx, ecx
je 0x4085f4
call fcn.0043b6bb
mov esi, eax
jmp 0x4085f6
xor esi, esi
push 0x2800
call fcn.00549697
add esp, 4
mov edi, eax
push 0x5000
call fcn.00549697
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
push str.text
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402530
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x408662
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.005432f0
add esp, 4
test esi, esi
je 0x4086b7
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x4086b7
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.00549697
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402590
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.005432f0
add esp, 4
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x408710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004423a2
mov esi, eax
test esi, esi
je 0x408741
mov edx, dword [esi]
mov ecx, esi
push str.imgbtn
call dword [edx + 4]
test eax, eax
je 0x408741
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, dword [0x769a40]
test ecx, ecx
je 0x408754
call fcn.0043b6bb
mov esi, eax
jmp 0x408756
xor esi, esi
push 0x2800
call fcn.00549697
add esp, 4
mov edi, eax
push 0x5000
call fcn.00549697
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
push str.imgbtn
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402530
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x4087c2
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.005432f0
add esp, 4
test esi, esi
je 0x408817
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x408817
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.00549697
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402590
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.005432f0
add esp, 4
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x408870
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004423a2
mov esi, eax
test esi, esi
je 0x4088a1
mov edx, dword [esi]
mov ecx, esi
push str.check
call dword [edx + 4]
test eax, eax
je 0x4088a1
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, dword [0x769a40]
test ecx, ecx
je 0x4088b4
call fcn.0043b6bb
mov esi, eax
jmp 0x4088b6
xor esi, esi
push 0x2800
call fcn.00549697
add esp, 4
mov edi, eax
push 0x5000
call fcn.00549697
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
push str.check
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402530
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x408922
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.005432f0
add esp, 4
test esi, esi
je 0x408977
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x408977
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.00549697
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402590
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.005432f0
add esp, 4
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4089d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004423a2
mov esi, eax
test esi, esi
je 0x408a01
mov edx, dword [esi]
mov ecx, esi
push str.window
call dword [edx + 4]
test eax, eax
je 0x408a01
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, dword [0x769a40]
test ecx, ecx
je 0x408a14
call fcn.0043b6bb
mov esi, eax
jmp 0x408a16
xor esi, esi
push 0x2800
call fcn.00549697
add esp, 4
mov edi, eax
push 0x5000
call fcn.00549697
add esp, 4
mov ebx, eax
push 0xffffffffffffffff
push dword [ebp + 8]
push str.window
push str.FindChildByName2_Failed__no_window_of_class___s__with_name_of___s__was_found_within___d__levels
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00402530
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x408a82
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.005432f0
add esp, 4
test esi, esi
je 0x408ad7
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov eax, dword [eax + 0x2c]
call eax
test al, al
je 0x408ad7
mov eax, dword [ebp + 4]
mov ecx, esi
mov edx, dword [esi]
push eax
push str.SOUI::SWindow::FindChildByName2
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push edi
push str.soui
push 1
push 0
call dword [edx + 0x34]
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push 0x2800
call fcn.00549697
add esp, 4
mov esi, eax
push 0x20e
push str.D:codeworkspace_soui_libSOUIincludecoreSWnd.h
push str.SOUI::SWindow::FindChildByName2
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push 0x2800
push esi
call fcn.00402590
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.005432f0
add esp, 4
push edi
call fcn.005432f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40a710
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x75d580]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x1c], 0
mov ebx, dword [edi + 4]
or ebx, 0x2001f
mov dword [esp + 0x20], 0
push ebx
push 0
push eax
push dword [edi]
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40a851
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a78b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x24]
and ebx, 0x300
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x40a851
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x100
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x40a809
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a710
mov esi, eax
test esi, esi
jne 0x40a851
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x40a7d0
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40a822
push eax
call ebx
mov dword [esp + 0x14], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x18], 0
test esi, esi
je 0x40a88a
cmp dword [esi], 0
mov edi, dword [edi]
je 0x40a87d
push 0x735d1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40a85c
mov esi, 1
jmp 0x40a8f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a8f0
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a847
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x20]
push edi
call eax
jmp 0x40a8ee
cmp dword [esi + 4], 0
je 0x40a847
push dword [esp + 0x10]
push edi
jmp 0x40a8e8
cmp byte [0x7803a8], 0
jne 0x40a8ca
push 0x735d1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8bc
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7803ac], eax
mov byte [0x7803a8], 1
jmp 0x40a8cf
mov eax, dword [0x7803ac]
mov byte [0x7803a8], 1
jmp 0x40a8cf
mov eax, dword [0x7803ac]
test eax, eax
je 0x40a8e2
push 0
push dword [edi + 4]
push dword [esp + 0x18]
push dword [edi]
call eax
jmp 0x40a8ee
push dword [esp + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a8fb
push eax
call ebx
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048a267
mov esp, ebp
pop ebp
ret 4
Function at 0x40a920
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692975
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov byte [ebp - 0x299], 1
xor edx, edx
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], edx
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x40a9e7
cmp dword [ecx + 0x14], 7
mov eax, ecx
jbe 0x40a9ab
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00408050
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40a9e7
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov ecx, 0x5c
cmova eax, dword [ebp - 0x2c]
cmp cx, word [eax + edx*2 - 2]
je 0x40a9e7
push 1
push 0x735d18
lea ecx, [ebp - 0x2c]
call fcn.004021f0
mov edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push edx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00408050
push 3
push 0x735d78
lea ecx, [ebp - 0x44]
call fcn.004021f0
cmp dword [ebp - 0x30], 7
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov edi, eax
nop dword [eax]
test byte [ebp - 0x298], 0x10
je 0x40aa71
push 0x735d80
lea eax, [ebp - 0x26c]
push eax
call esi
test eax, eax
je 0x40aa5d
push 0x735d84
lea eax, [ebp - 0x26c]
push eax
call esi
test eax, eax
jne 0x40aa71
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40aa30
jmp 0x40aa78
mov byte [ebp - 0x299], 0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x40aab5
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aaab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab23
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x40aaff
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aaf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab23
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov al, byte [ebp - 0x299]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00543627
int3
Function at 0x40b640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692b87
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x434], esi
xorps xmm0, xmm0
mov dword [ebp - 0x430], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x410
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], 1
push eax
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40b85c
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6f1
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00408050
mov edx, dword [esi + 0x14]
mov eax, esi
mov dword [ebp - 0x42c], edx
cmp edx, 7
jbe 0x40b721
mov eax, dword [esi]
mov edi, dword [esi + 0x10]
cmp word [eax + edi*2 - 2], 0x5c
je 0x40b85c
mov eax, esi
cmp edx, 7
jbe 0x40b739
mov eax, dword [esi]
cmp word [eax + edi*2 - 2], 0x2f
je 0x40b85c
cmp edi, edx
jae 0x40b764
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40b758
mov eax, dword [esi]
mov dword [eax + edi*2], 0x5c
jmp 0x40b85c
mov eax, bind
sub eax, edi
cmp eax, 1
jb 0x40b879
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x40b789
mov ecx, bind
jmp 0x40b7b6
mov eax, edx
shr eax, 1
mov dword [ebp - 0x424], eax
mov eax, bind
sub eax, dword [ebp - 0x424]
cmp edx, eax
jbe 0x40b7a9
mov ecx, bind
jmp 0x40b7b6
mov eax, dword [ebp - 0x424]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], ecx
push eax
push esi
call fcn.00402370
mov ecx, eax
add esp, 8
cmp dword [ebp - 0x42c], 7
lea eax, [edi + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x424]
mov dword [esi + 0x14], eax
lea eax, [edi + edi]
lea edi, [ecx + edi*2]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edi
push eax
jbe 0x40b844
mov edi, dword [esi]
push edi
push ecx
call fcn.0053f540
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x42c]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x40b838
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x40b87e
mov edi, edx
push ecx
push edi
call fcn.0048a4f6
add esp, 8
jmp 0x40b854
push esi
push ecx
call fcn.0053f540
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x428]
mov dword [esi], eax
mov eax, esi
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.0048a267
mov esp, ebp
pop ebp
ret
call fcn.00401460
call fcn.00543627
int3
Function at 0x40c750
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692d30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x23c], edi
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], edi
push 0
push eax
mov dword [ebp - 0x23c], 0
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40c8da
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x40c8da
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push 0x735d18
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
call fcn.00402060
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c842
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.00410ff0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x40c8fc
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c91c
push ecx
push edx
call fcn.0048a4f6
add esp, 8
jmp 0x40c8fc
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x735258
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402060
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00543627
int3