joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ec9d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x509500]
and dword [ebp - 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 4
add ebx, 4
pop ecx
mov eax, ebx
call fcn.00406de1
lea edi, [ebp - 4]
call fcn.0042454d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
call fcn.0042536b
push 0x4ed118
mov eax, edi
push eax
call fcn.0040f2c5
test eax, eax
mov esi, 0x50b3f4
jne 0x46ed7e
push dword [ebx]
lea edi, [ebp - 0x10]
call fcn.00429008
pop ecx
lea edi, [ebp - 0xc]
call fcn.0042a13a
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x46ed6b
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.0040103b
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.00483a77
test eax, eax
pop ecx
pop ecx
jne 0x46ed6b
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
push eax
push dword [ebp - 0xc]
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00445464
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x46ed6b
mov dword [ebp - 8], 1
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebx]
push 0
push eax
call fcn.00483a77
test eax, eax
pop ecx
pop ecx
jne 0x46edb6
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebx]
push eax
push edi
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.00445464
add esp, 0x10
test edi, edi
jne 0x46edb6
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x46eea2
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 4], ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x46ef49
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
lea ecx, [ebp - 8]
call fcn.00414f25
mov edi, dword [ebp - 8]
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0xffffffff
jne 0x46eef3
lea eax, [edi - 0x10]
call fcn.00401023
jmp 0x46f000
test byte [ebp - 8], 0x10
je 0x46ef21
push ebx
push ebx
push ebx
push ebx
push edi
call fcn.0042a0f4
push edi
push eax
push str.KExecLink_DeleteFolder_return:_d__path:_ws
mov esi, 0x50b3f4
mov dword [ebp - 4], eax
call fcn.00445464
add esp, 0x20
cmp dword [ebp - 4], ebx
jne 0x46ef41
jmp 0x46eee6
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
mov ebx, eax
call esi
push eax
push ebx
push str.KExecLink_DeleteFile_return:_d__error:_d__path:_ws
mov esi, 0x50b3f4
call fcn.00445464
add esp, 0x10
lea eax, [edi - 0x10]
jmp 0x46eff4
lea eax, [esi + 0x1c]
push eax
call fcn.0043764a
test eax, eax
pop ecx
je 0x46eff9
lea edi, [esi + 0x10]
lea ebx, [esi + 0x14]
push edi
mov eax, ebx
lea ecx, [ebp - 8]
call fcn.00414f25
lea eax, [ebp - 8]
call fcn.00428fc6
push dword [ebp - 8]
call fcn.00429065
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
push edi
mov eax, ebx
lea ecx, [ebp - 0x10]
call fcn.00414f25
push dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call fcn.0042a9bb
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add esp, 0x1c
add eax, 0xfffffff0
call fcn.00401023
push edi
mov eax, ebx
lea ecx, [ebp - 0x14]
call fcn.00414f25
push dword [eax]
push dword [esi + 8]
push dword [esi + 0xc]
mov esi, 0x50b3f4
push dword [ebp - 4]
push str.KExecLink_CreateLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.00445464
mov eax, dword [ebp - 0x14]
add esp, 0x18
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
cmp dword [ebp - 4], 0
je 0x46eee9
call fcn.00401023
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46f072
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46f087
xor eax, eax
pop esi
ret
test al, 0x10
je 0x46f0a1
mov esi, dword [esi + 4]
push 0
push 0
push 1
push 1
push esi
call fcn.0042a0f4
add esp, 0x14
pop esi
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
Function at 0x46f754
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x509500]
push ebx
push esi
push edi
mov edi, 0x509500
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x509500]
add esi, 0x10
mov ecx, edi
mov dword [ebp - 4], esi
call dword [eax + 0xc]
add eax, 0x10
push str.rootpath
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
call fcn.004413b5
test eax, eax
mov ebx, dword [ebp - 8]
je 0x46f813
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x4f2000
push ebx
call fcn.0048b4f5
add esp, 0xc
cmp eax, 1
jne 0x46f8a4
push 0
push dword [ebp - 0xc]
lea esi, [ebp - 4]
push 0x104
call fcn.004010cd
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x46f7e7
push dword [ebp - 4]
call fcn.00483779
pop ecx
lea edx, [ebp - 4]
call fcn.004010ac
push 0x5c
lea eax, [ebp - 4]
call fcn.00434e5a
test esi, esi
jne 0x46f810
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x46f8af
mov esi, dword [ebp - 4]
mov eax, dword [0x509500]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push str.path
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
call fcn.004413b5
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x46f89c
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x46f89c
push ecx
push eax
lea eax, [ebp - 4]
call fcn.0040103b
push 8
call fcn.0045c795
mov ebx, eax
test ebx, ebx
pop ecx
je 0x46f86b
lea esi, [ebx + 4]
mov ecx, edi
mov dword [ebx], vtable.KExecPublicData.0
call fcn.0040f32d
jmp 0x46f86d
xor ebx, ebx
mov esi, dword [ebp - 4]
push esi
lea eax, [ebx + 4]
push eax
call fcn.00414fa4
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, ebx
jmp 0x46f8b6
add eax, 0xfffffff0
call fcn.00401023
lea eax, [ebx - 0x10]
call fcn.00401023
lea eax, [esi - 0x10]
call fcn.00401023
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x470d9d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebx + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.00471785
test al, al
je 0x470e51
call fcn.0046bb89
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push eax
push fcn.00470ee2
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, dword [ebx + 0x74]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push esi
call fcn.004717a2
mov ecx, dword [ebx + 0x78]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x470e23
inc ecx
mov dword [ebx + 0x78], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0xc]
mov dword [ecx], eax
call fcn.00471757
jmp 0x470db6
push str.list_T__too_long
lea ecx, [ebp - 0x38]
call fcn.00414c46
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040cce4
push 0x4fbc68
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::length_error.0
call fcn.0048bcd5
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x47146a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x509500]
push ebx
push esi
push edi
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x50b1c0]
add eax, 0xfffffff0
call fcn.004244f5
mov esi, eax
add esi, 0x10
lea eax, [ebp - 8]
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0042454d
lea eax, [esi - 0x10]
call fcn.00401023
mov esi, str.desktop.ini
push esi
mov eax, edi
lea ecx, [ebp - 8]
call fcn.00415037
mov eax, dword [eax]
mov dword [esp], 0x4efb34
push eax
call fcn.004899cb
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401023
test edi, edi
mov ebx, dword [ebp - 4]
jne 0x4714fc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ModifyFolderIcon__tfopen_fail__error:_d
mov esi, 0x50b3f4
call fcn.00445464
pop ecx
jmp 0x47154e
push str._.ShellClassInfo__n
push edi
call fcn.0048b514
push str.IconIndex0_n
push edi
call fcn.0048b514
push str.IconFilekxetray.exe_n
push edi
call fcn.0048b514
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00415037
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
add esp, 0x1c
push 2
push dword [eax]
call esi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
push 1
push ebx
call esi
push edi
call fcn.00489d07
pop ecx
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4718c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, eax
push edi
mov eax, str.configinstall_serviceitem
call fcn.0044129b
jmp 0x47190a
push esi
call fcn.0046f22c
test eax, eax
pop ecx
je 0x47191a
mov edi, dword [ebp + 8]
mov dword [eax + 4], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x4718e2
mov eax, str.configinstall_regitem
call fcn.0044129b
jmp 0x47194c
push str.CreateExecService_fail
jmp 0x471aa3
push esi
call fcn.0046f0ac
test eax, eax
pop ecx
je 0x47195c
mov edi, dword [ebp + 8]
mov dword [eax + 0x1c], 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471924
mov eax, str.configinstall_fileitem
call fcn.0044129b
jmp 0x47198b
push str.CreateExecReg_fail
jmp 0x471aa3
push esi
call fcn.0046f6a0
test eax, eax
pop ecx
je 0x471a97
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471966
mov eax, str.configinstalldesktopitem
call fcn.0044129b
test eax, eax
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x471a0f
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push 0x10
push edi
call ebx
push esi
call fcn.0046f8e3
mov edi, eax
test edi, edi
pop ecx
je 0x471a9e
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.0046fb0d
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x4719cf
mov eax, str.configinstall_startmenuitem
call fcn.0044129b
test eax, eax
je 0x471a86
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 1
push edi
push 0x17
push edi
call ebx
push esi
call fcn.0046f8e3
mov edi, eax
test edi, edi
pop ecx
je 0x471a9e
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.0046fb0d
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471a4a
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
push str.CreateExecFile_fail
jmp 0x471aa3
push str.CreateExecLink_fail
mov esi, 0x50b3f4
call fcn.00445464
pop ecx
jmp 0x471a8d
Function at 0x471ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 8], 0
push esi
mov esi, eax
push edi
mov eax, str.configcoverinstall_serviceitem
call fcn.0044129b
jmp 0x471af5
push esi
call fcn.0046f22c
test eax, eax
pop ecx
je 0x471b05
mov dword [eax + 4], 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471acd
mov eax, str.configcoverinstall_regitem
call fcn.0044129b
jmp 0x471b37
push str.CreateExecService_fail
jmp 0x471cc8
push esi
call fcn.0046f0ac
test eax, eax
pop ecx
je 0x471b47
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471b0f
mov eax, str.configcoverinstall_fileitem
call fcn.0044129b
jmp 0x471b72
push str.CreateExecReg_fail
jmp 0x471cc8
push esi
call fcn.0046f6a0
test eax, eax
pop ecx
je 0x471b82
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471b51
mov eax, str.configcoverinstallpublicdataitem
call fcn.0044129b
jmp 0x471bb1
push str.CreateExecFile_fail
jmp 0x471cc8
push esi
call fcn.0046f754
test eax, eax
pop ecx
je 0x471cbc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471b8c
mov eax, str.configinstalldesktopitem
call fcn.0044129b
test eax, eax
je 0x471c33
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x10
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call fcn.0046f8e3
mov edi, eax
test edi, edi
pop ecx
je 0x471cc3
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.0046fb0d
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471bf3
mov eax, str.configinstall_startmenuitem
call fcn.0044129b
test eax, eax
je 0x471cae
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push edi
push 0x17
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call fcn.0046f8e3
mov edi, eax
test edi, edi
pop ecx
je 0x471cc3
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.0046fb0d
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.004716ca
xor ecx, ecx
call fcn.00441447
test eax, eax
jne 0x471c72
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
push str.CreateExecPublicData_fail
jmp 0x471cc8
push str.CreateExecLink_fail
mov esi, 0x50b3f4
call fcn.00445464
pop ecx
jmp 0x471cb5
Function at 0x472a5a
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x472a88
push dword [esp + 0xc]
call fcn.00483779
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x472a88
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x472b05
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50b500]
sub esp, 0x204
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x472b2d
add eax, 0xfffffff0
call fcn.004244f5
add eax, 0x10
mov dword [esi], eax
jmp 0x472bcc
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00404fa7
lea eax, [ebp - 4]
push eax
call fcn.00472a8e
pop ecx
pop ecx
push str.oem.ini
lea eax, [ebp - 4]
push eax
call fcn.00401000
push 0x1fe
lea eax, [ebp - 0x202]
push edi
push eax
mov word [ebp - 0x204], di
call fcn.004857c0
mov edi, dword [ebp - 4]
add esp, 0xc
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push 0x4e9bdc
push str.installkey
push 0x4e27bc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x204]
push eax
call fcn.00483779
pop ecx
lea ecx, [ebp - 0x204]
mov ebx, eax
push ecx
mov eax, 0x50b500
call fcn.00414fca
mov eax, dword [0x50b500]
add eax, 0xfffffff0
call fcn.004244f5
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
call fcn.00401023
pop ebx
mov eax, esi
pop edi
leave
ret
Function at 0x472bd1
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
call fcn.00423484
mov esi, dword [ebp - 0xc]
mov eax, dword [esi - 0xc]
cmp eax, edi
jne 0x472c0a
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
jmp 0x472dd3
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.00435114
cmp ax, 0x5c
je 0x472c40
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.00435114
cmp ax, 0x2f
je 0x472c40
push 0x4e26ac
lea eax, [ebp - 0xc]
push eax
call fcn.00401000
mov esi, dword [ebp - 0xc]
push 0x24c
lea eax, [ebp - 0x270]
push edi
push eax
mov dword [ebp - 0x274], edi
call fcn.004857c0
lea eax, [ebp + 0x14]
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
call fcn.00414f25
mov eax, dword [eax]
pop ecx
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00401023
cmp dword [ebp - 0x14], 0xffffffff
je 0x472bf7
mov edi, dword [ebp + 0x14]
or dword [ebp - 8], 1
push 0x4ecd0c
lea eax, [ebp - 0x1c]
call fcn.00423484
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.00483df2
test eax, eax
pop ecx
pop ecx
je 0x472ce6
or dword [ebp - 8], 2
push 0x4ecd10
lea eax, [ebp - 0x18]
call fcn.00423484
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.00483df2
test eax, eax
pop ecx
pop ecx
je 0x472ce6
xor bl, bl
jmp 0x472ce8
mov bl, 1
test byte [ebp - 8], 2
je 0x472cfd
mov eax, dword [ebp - 0x18]
and dword [ebp - 8], 0xfffffffd
add eax, 0xfffffff0
call fcn.00401023
test byte [ebp - 8], 1
je 0x472d12
mov eax, dword [ebp - 0x1c]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.00401023
test bl, bl
jne 0x472da2
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00415037
test byte [ebp - 0x274], 0x10
pop ecx
je 0x472d85
test byte [ebp + 0x10], 1
je 0x472d56
push 0x4e26ac
lea eax, [ebp - 0x10]
push eax
call fcn.00401000
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00406ef0
cmp dword [ebp + 0x18], 0
je 0x472d97
push dword [ebp + 0x18]
lea eax, [edi - 0x10]
push ecx
mov esi, esp
call fcn.004244f5
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp - 0x10]
call fcn.00472bd1
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x472d97
test byte [ebp + 0x10], 2
je 0x472d97
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00406ef0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x472c96
cmp dword [ebp - 0x14], eax
je 0x472dc8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esi - 0x10]
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47301e
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00473095
push 0x3c
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004857c0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x64]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x68]
shrd eax, ecx, 0x14
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
shr ecx, 0x14
mov dword [esi + 4], eax
leave
ret
Function at 0x473095
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x509500]
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x509500
mov ecx, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x509500]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.004010cd
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push eax
push edi
push edi
push 0x19
push edi
call ebx
push 0x104
lea esi, [ebp - 0xc]
call fcn.004010cd
push eax
push edi
push edi
push 0x10
push edi
call ebx
cmp dword [ebp - 8], edi
jne 0x473107
xor eax, eax
jmp 0x473110
push dword [ebp - 8]
call fcn.00483779
pop ecx
lea edx, [ebp - 8]
call fcn.004010ac
mov ebx, dword [ebp - 0xc]
cmp ebx, edi
jne 0x473123
xor eax, eax
jmp 0x47312a
push ebx
call fcn.00483779
pop ecx
lea edx, [ebp - 0xc]
call fcn.004010ac
push edi
push ecx
mov eax, esp
mov esi, 0x4f16c8
push esi
call fcn.00423484
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00472bd1
add esp, 0x14
push edi
push ecx
mov eax, esp
push esi
call fcn.00423484
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.00472bd1
add esp, 0x14
call fcn.00436b14
mov dword [ebp - 0x20], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], edi
call fcn.00472e9b
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jbe 0x4731a0
call fcn.00484b94
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
jbe 0x4731b9
call fcn.00484b94
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x10]
call fcn.00471785
test al, al
je 0x473214
call fcn.00475541
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47320a
test al, 6
jne 0x47320a
call fcn.00475541
push dword [eax]
lea eax, [ebp - 0x24]
call fcn.00472ddd
sub eax, 4
je 0x473200
dec eax
je 0x473205
dec eax
je 0x473205
mov eax, dword [ebp + 0xc]
jmp 0x473203
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [ebp + 8]
inc dword [eax]
lea esi, [ebp - 0x10]
call fcn.00406f77
jmp 0x4731ac
lea eax, [ebp - 0x24]
call fcn.0047323e
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
lea esi, [ebp - 0x34]
call fcn.00406e9e
pop edi
pop esi
pop ebx
leave
ret 0xc