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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x50e594]
and dword [ebp - 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x50e594
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.00406fd3
lea edi, [ebp - 4]
call fcn.00424a4a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
call fcn.0042587d
push 0x4f1618
mov eax, edi
push eax
call fcn.0040f48f
test eax, eax
mov esi, 0x51049c
jne 0x46eeb2
push dword [ebx]
lea edi, [ebp - 0x10]
call fcn.004294cf
pop ecx
lea edi, [ebp - 0xc]
call fcn.0042a6ac
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x46ee9f
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.004876c4
test eax, eax
pop ecx
pop ecx
jne 0x46ee9f
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.004452e2
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x46ee9f
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.004876c4
test eax, eax
pop ecx
pop ecx
jne 0x46eeea
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.004452e2
add esp, 0x10
test edi, edi
jne 0x46eeea
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 0x46efd9
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x46f004
push str.shortcut
call fcn.00478431
call fcn.0047851a
test eax, eax
je 0x46f004
xor eax, eax
jmp 0x46f15a
cmp dword [esi + 8], ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x46f09f
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
lea ecx, [ebp - 8]
call fcn.0041525c
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 0x46f049
lea eax, [edi - 0x10]
call fcn.00401023
jmp 0x46f156
test byte [ebp - 8], 0x10
je 0x46f077
push ebx
push ebx
push ebx
push ebx
push edi
call fcn.0042a666
push edi
push eax
push str.KExecLink_DeleteFolder_return:_d__path:_ws
mov esi, 0x51049c
mov dword [ebp - 4], eax
call fcn.004452e2
add esp, 0x20
cmp dword [ebp - 4], ebx
jne 0x46f097
jmp 0x46f03c
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, 0x51049c
call fcn.004452e2
add esp, 0x10
lea eax, [edi - 0x10]
jmp 0x46f14a
lea eax, [esi + 0x20]
push eax
call fcn.0046e70f
test eax, eax
pop ecx
je 0x46f14f
lea edi, [esi + 0x14]
lea ebx, [esi + 0x18]
push edi
mov eax, ebx
lea ecx, [ebp - 8]
call fcn.0041525c
lea eax, [ebp - 8]
call fcn.0042948d
push dword [ebp - 8]
call fcn.0042952c
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
push edi
mov eax, ebx
lea ecx, [ebp - 0x10]
call fcn.0041525c
push dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call fcn.0042af2d
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.0041525c
push dword [eax]
push dword [esi + 0xc]
push dword [esi + 0x10]
mov esi, 0x51049c
push dword [ebp - 4]
push str.KExecLink_CreateLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.004452e2
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 0x46f03f
call fcn.00401023
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46f1c8
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 0x46f1dd
xor eax, eax
pop esi
ret
test al, 0x10
je 0x46f1f7
mov esi, dword [esi + 4]
push 0
push 0
push 1
push 1
push esi
call fcn.0042a666
add esp, 0x14
pop esi
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
Function at 0x46f8aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50e594]
push ebx
push esi
push edi
mov edi, 0x50e594
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x50e594]
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.004412f4
test eax, eax
mov ebx, dword [ebp - 8]
je 0x46f969
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x4f64ec
push ebx
call fcn.0048e205
add esp, 0xc
cmp eax, 1
jne 0x46f9fa
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 0x46f93d
push dword [ebp - 4]
call fcn.0048650a
pop ecx
lea edx, [ebp - 4]
call fcn.004010ac
push 0x5c
lea eax, [ebp - 4]
call fcn.00435497
test esi, esi
jne 0x46f966
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x46fa05
mov esi, dword [ebp - 4]
mov eax, dword [0x50e594]
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.004412f4
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x46f9f2
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x46f9f2
push ecx
push eax
lea eax, [ebp - 4]
call fcn.0040103b
push 8
call fcn.0045c61f
mov ebx, eax
test ebx, ebx
pop ecx
je 0x46f9c1
lea esi, [ebx + 4]
mov ecx, edi
mov dword [ebx], vtable.KExecPublicData.0
call fcn.0040f75c
jmp 0x46f9c3
xor ebx, ebx
mov esi, dword [ebp - 4]
push esi
lea eax, [ebx + 4]
push eax
call fcn.004152cd
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 0x46fa0c
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 0x470f01
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.004173ba
test al, al
je 0x470fb5
call fcn.004718bb
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push eax
push fcn.00471046
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.00471931
mov ecx, dword [ebx + 0x78]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x470f87
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.0046b713
jmp 0x470f1a
push str.list_T__too_long
lea ecx, [ebp - 0x38]
call fcn.00414f7d
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040cfd7
push 0x500490
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::length_error.0
call fcn.0048e9e5
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x4715ce
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50e594]
push ebx
push esi
push edi
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x510270]
add eax, 0xfffffff0
call fcn.004249f2
mov esi, eax
add esi, 0x10
lea eax, [ebp - 8]
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
call fcn.00424a4a
lea eax, [esi - 0x10]
call fcn.00401023
mov esi, str.desktop.ini
push esi
mov eax, edi
lea ecx, [ebp - 8]
call fcn.00415360
mov eax, dword [eax]
mov dword [esp], 0x4f402c
push eax
call fcn.0048c6ad
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 0x471660
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ModifyFolderIcon__tfopen_fail__error:_d
mov esi, 0x51049c
call fcn.004452e2
pop ecx
jmp 0x4716b2
push str._.ShellClassInfo__n
push edi
call fcn.0048e224
push str.IconIndex0_n
push edi
call fcn.0048e224
push str.IconFilekxetray.exe_n
push edi
call fcn.0048e224
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00415360
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.0048c9e9
pop ecx
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x471a53
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.004411da
jmp 0x471a99
push esi
call fcn.0046f382
test eax, eax
pop ecx
je 0x471aa9
mov edi, dword [ebp + 8]
mov dword [eax + 4], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471a71
mov eax, str.configinstall_regitem
call fcn.004411da
jmp 0x471adb
push str.CreateExecService_fail
jmp 0x471c32
push esi
call fcn.0046f202
test eax, eax
pop ecx
je 0x471aeb
mov edi, dword [ebp + 8]
mov dword [eax + 0x1c], 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471ab3
mov eax, str.configinstall_fileitem
call fcn.004411da
jmp 0x471b1a
push str.CreateExecReg_fail
jmp 0x471c32
push esi
call fcn.0046f7f6
test eax, eax
pop ecx
je 0x471c26
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471af5
mov eax, str.configinstalldesktopitem
call fcn.004411da
test eax, eax
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x471b9e
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push 0x10
push edi
call ebx
push esi
call fcn.0046fa39
mov edi, eax
test edi, edi
pop ecx
je 0x471c2d
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.0046fc63
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471b5e
mov eax, str.configinstall_startmenuitem
call fcn.004411da
test eax, eax
je 0x471c15
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 1
push edi
push 0x17
push edi
call ebx
push esi
call fcn.0046fa39
mov edi, eax
test edi, edi
pop ecx
je 0x471c2d
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.0046fc63
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471bd9
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
push str.CreateExecFile_fail
jmp 0x471c32
push str.CreateExecLink_fail
mov esi, 0x51049c
call fcn.004452e2
pop ecx
jmp 0x471c1c
Function at 0x471c3f
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.004411da
jmp 0x471c84
push esi
call fcn.0046f382
test eax, eax
pop ecx
je 0x471c94
mov dword [eax + 4], 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471c5c
mov eax, str.configcoverinstall_regitem
call fcn.004411da
jmp 0x471cc6
push str.CreateExecService_fail
jmp 0x471e57
push esi
call fcn.0046f202
test eax, eax
pop ecx
je 0x471cd6
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471c9e
mov eax, str.configcoverinstall_fileitem
call fcn.004411da
jmp 0x471d01
push str.CreateExecReg_fail
jmp 0x471e57
push esi
call fcn.0046f7f6
test eax, eax
pop ecx
je 0x471d11
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471ce0
mov eax, str.configcoverinstallpublicdataitem
call fcn.004411da
jmp 0x471d40
push str.CreateExecFile_fail
jmp 0x471e57
push esi
call fcn.0046f8aa
test eax, eax
pop ecx
je 0x471e4b
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471d1b
mov eax, str.configinstalldesktopitem
call fcn.004411da
test eax, eax
je 0x471dc2
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00486d70
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.0046fa39
mov edi, eax
test edi, edi
pop ecx
je 0x471e52
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.0046fc63
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471d82
mov eax, str.configinstall_startmenuitem
call fcn.004411da
test eax, eax
je 0x471e3d
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00486d70
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.0046fa39
mov edi, eax
test edi, edi
pop ecx
je 0x471e52
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.0046fc63
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.0047182e
xor ecx, ecx
call fcn.00441386
test eax, eax
jne 0x471e01
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
push str.CreateExecPublicData_fail
jmp 0x471e57
push str.CreateExecLink_fail
mov esi, 0x51049c
call fcn.004452e2
pop ecx
jmp 0x471e44
Function at 0x472738
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00486d70
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4f6ec4
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048ab09
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [0x510540], eax
je 0x4728df
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x510540]
mov dword [0x5104e4], eax
call esi
push str.WinHttpOpenRequest
push dword [0x510540]
mov dword [0x5104e8], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x510540]
mov dword [0x5104ec], eax
call esi
push str.WinHttpSendRequest
push dword [0x510540]
mov dword [0x5104f0], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x510540]
mov dword [0x5104f4], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x510540]
mov dword [0x5104f8], eax
call esi
push str.WinHttpReadData
push dword [0x510540]
mov dword [0x5104fc], eax
call esi
push str.WinHttpCloseHandle
push dword [0x510540]
mov dword [0x510500], eax
call esi
push str.WinHttpCrackUrl
push dword [0x510540]
mov dword [0x510504], eax
call esi
push str.WinHttpSetOption
push dword [0x510540]
mov dword [0x510508], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x510540]
mov dword [0x51050c], eax
call esi
cmp dword [0x5104e4], edi
mov dword [0x510510], eax
je 0x4728d9
cmp dword [0x5104f0], edi
je 0x4728d9
cmp dword [0x510504], edi
je 0x4728d9
cmp dword [0x5104e8], edi
je 0x4728d9
cmp dword [0x5104ec], edi
je 0x4728d9
cmp dword [0x5104fc], edi
je 0x4728d9
cmp dword [0x510500], edi
je 0x4728d9
cmp dword [0x5104f8], edi
je 0x4728d9
cmp dword [0x5104f4], edi
je 0x4728d9
cmp dword [0x510508], edi
je 0x4728d9
cmp dword [0x51050c], edi
je 0x4728d9
cmp eax, edi
je 0x4728d9
inc edi
mov dword [0x5104e0], edi
mov eax, dword [0x5104e0]
pop edi
pop esi
leave
ret

Function at 0x4730af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4730c6
test al, 0x10
jne 0x4730c6
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4730c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4730e0
test al, 0x10
je 0x4730e0
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x473533
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x473561
push dword [esp + 0xc]
call fcn.0048650a
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 0x473561
inc edi
mov eax, edi
pop edi
ret 8
Function at 0x4735de
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5105a8]
sub esp, 0x204
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x473606
add eax, 0xfffffff0
call fcn.004249f2
add eax, 0x10
mov dword [esi], eax
jmp 0x4736a5
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00404fef
lea eax, [ebp - 4]
push eax
call fcn.00473567
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.00486d70
mov edi, dword [ebp - 4]
add esp, 0xc
push edi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x4ee0dc
push str.installkey
push 0x4e67cc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x204]
push eax
call fcn.0048650a
pop ecx
lea ecx, [ebp - 0x204]
mov ebx, eax
push ecx
mov eax, 0x5105a8
call fcn.004152f3
mov eax, dword [0x5105a8]
add eax, 0xfffffff0
call fcn.004249f2
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 0x4736aa
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.00423978
mov esi, dword [ebp - 0xc]
mov eax, dword [esi - 0xc]
cmp eax, edi
je 0x47388d
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.00435751
cmp ax, 0x5c
je 0x47370a
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.00435751
cmp ax, 0x2f
je 0x47370a
push 0x4e66bc
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.00486d70
lea eax, [ebp + 0x14]
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
call fcn.0041525c
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 0x47388d
mov edi, dword [ebp + 0xc]
or dword [ebp - 8], 1
push 0x4f120c
lea eax, [ebp - 0x1c]
call fcn.00423978
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.004879bc
test eax, eax
pop ecx
pop ecx
je 0x4737b0
or dword [ebp - 8], 2
push 0x4f1210
lea eax, [ebp - 0x18]
call fcn.00423978
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.004879bc
test eax, eax
pop ecx
pop ecx
je 0x4737b0
xor bl, bl
jmp 0x4737b2
mov bl, 1
test byte [ebp - 8], 2
je 0x4737c7
mov eax, dword [ebp - 0x18]
and dword [ebp - 8], 0xfffffffd
add eax, 0xfffffff0
call fcn.00401023
test byte [ebp - 8], 1
je 0x4737dc
mov eax, dword [ebp - 0x1c]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.00401023
test bl, bl
jne 0x473867
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00415360
test byte [ebp - 0x274], 0x10
pop ecx
je 0x47384d
test byte [ebp + 0x10], 1
je 0x47381d
push 0x4e66bc
lea eax, [ebp - 0x10]
push eax
call fcn.00401000
lea eax, [ebp - 0x10]
push eax
call fcn.004070d4
cmp dword [ebp + 0x18], 0
je 0x47385c
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.004249f2
push dword [ebp + 0x10]
add eax, 0x10
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
call fcn.004736aa
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x47385c
test byte [ebp + 0x10], 2
je 0x47385c
lea eax, [ebp - 0x10]
push eax
call fcn.004070d4
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 0x473760
cmp dword [ebp - 0x14], eax
je 0x47388d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [esi - 0x10]
call fcn.00401023
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473ae6
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.00473b5d
push 0x3c
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00486d70
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