joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471406
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 0x471431
push str.shortcut
call fcn.0047abb6
call fcn.0047ac9f
test eax, eax
je 0x471431
xor eax, eax
jmp 0x471587
cmp dword [esi + 8], ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4714cc
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
lea ecx, [ebp - 8]
call fcn.00413b36
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 0x471476
lea eax, [edi - 0x10]
call fcn.00401023
jmp 0x471583
test byte [ebp - 8], 0x10
je 0x4714a4
push ebx
push ebx
push ebx
push ebx
push edi
call fcn.004290dd
push edi
push eax
push str.KExecLink_DeleteFolder_return:_d__path:_ws
mov esi, 0x514ad4
mov dword [ebp - 4], eax
call fcn.00443ae2
add esp, 0x20
cmp dword [ebp - 4], ebx
jne 0x4714c4
jmp 0x471469
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, 0x514ad4
call fcn.00443ae2
add esp, 0x10
lea eax, [edi - 0x10]
jmp 0x471577
lea eax, [esi + 0x20]
push eax
call fcn.00470b3c
test eax, eax
pop ecx
je 0x47157c
lea edi, [esi + 0x14]
lea ebx, [esi + 0x18]
push edi
mov eax, ebx
lea ecx, [ebp - 8]
call fcn.00413b36
lea eax, [ebp - 8]
call fcn.00427f61
push dword [ebp - 8]
call fcn.00427fa3
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
push edi
mov eax, ebx
lea ecx, [ebp - 0x10]
call fcn.00413b36
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.004299a4
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.00413b36
push dword [eax]
push dword [esi + 0xc]
push dword [esi + 0x10]
mov esi, 0x514ad4
push dword [ebp - 4]
push str.KExecLink_CreateLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.00443ae2
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 0x47146c
call fcn.00401023
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4715f5
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 0x47160a
xor eax, eax
pop esi
ret
test al, 0x10
je 0x471624
mov esi, dword [esi + 4]
push 0
push 0
push 1
push 1
push esi
call fcn.004290dd
add esp, 0x14
pop esi
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
Function at 0x471cd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x512bd4]
push ebx
push esi
push edi
mov edi, 0x512bd4
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [0x512bd4]
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.0043fafa
test eax, eax
mov ebx, dword [ebp - 8]
je 0x471d96
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x4f956c
push ebx
call fcn.00490995
add esp, 0xc
cmp eax, 1
jne 0x471e27
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 0x471d6a
push dword [ebp - 4]
call fcn.00488c9a
pop ecx
lea edx, [ebp - 4]
call fcn.004010ac
push 0x5c
lea eax, [ebp - 4]
call fcn.00433de3
test esi, esi
jne 0x471d93
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
jmp 0x471e32
mov esi, dword [ebp - 4]
mov eax, dword [0x512bd4]
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.0043fafa
test eax, eax
mov eax, dword [ebp - 0xc]
je 0x471e1f
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x471e1f
push ecx
push eax
lea eax, [ebp - 4]
call fcn.0040103b
push 8
call fcn.0045eb75
mov ebx, eax
test ebx, ebx
pop ecx
je 0x471dee
lea esi, [ebx + 4]
mov ecx, edi
mov dword [ebx], vtable.KExecPublicData.0
call fcn.0040de3b
jmp 0x471df0
xor ebx, ebx
mov esi, dword [ebp - 4]
push esi
lea eax, [ebx + 4]
push eax
call fcn.00413ba8
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 0x471e39
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 0x473338
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.00473de9
test al, al
je 0x4733ec
call fcn.0046de7f
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push eax
push fcn.0047347d
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.00473e06
mov ecx, dword [ebx + 0x78]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x4733be
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.00473dbb
jmp 0x473351
push str.list_T__too_long
lea ecx, [ebp - 0x38]
call fcn.00413857
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040b83c
push 0x5039b8
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::length_error.0
call fcn.00491175
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x473a05
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x512bd4]
push ebx
push esi
push edi
mov ecx, 0x512bd4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x5148a8]
add eax, 0xfffffff0
call fcn.00423492
mov esi, eax
add esi, 0x10
lea eax, [ebp - 8]
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
call fcn.004234ea
lea eax, [esi - 0x10]
call fcn.00401023
mov esi, str.desktop.ini
push esi
mov eax, edi
lea ecx, [ebp - 8]
call fcn.00413c3b
mov eax, dword [eax]
mov dword [esp], 0x4f703c
push eax
call fcn.0048ee3d
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 0x473a97
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ModifyFolderIcon__tfopen_fail__error:_d
mov esi, 0x514ad4
call fcn.00443ae2
pop ecx
jmp 0x473ae9
push str._.ShellClassInfo__n
push edi
call fcn.004909b4
push str.IconIndex0_n
push edi
call fcn.004909b4
push str.IconFilekxetray.exe_n
push edi
call fcn.004909b4
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00413c3b
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.0048f179
pop ecx
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x473f28
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.0043f9e0
jmp 0x473f6e
push esi
call fcn.004717af
test eax, eax
pop ecx
je 0x473f7e
mov edi, dword [ebp + 8]
mov dword [eax + 4], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x473f46
mov eax, str.configinstall_regitem
call fcn.0043f9e0
jmp 0x473fb0
push str.CreateExecService_fail
jmp 0x474107
push esi
call fcn.0047162f
test eax, eax
pop ecx
je 0x473fc0
mov edi, dword [ebp + 8]
mov dword [eax + 0x1c], 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x473f88
mov eax, str.configinstall_fileitem
call fcn.0043f9e0
jmp 0x473fef
push str.CreateExecReg_fail
jmp 0x474107
push esi
call fcn.00471c23
test eax, eax
pop ecx
je 0x4740fb
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x473fca
mov eax, str.configinstalldesktopitem
call fcn.0043f9e0
test eax, eax
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
je 0x474073
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push edi
push edi
push 0x10
push edi
call ebx
push esi
call fcn.00471e66
mov edi, eax
test edi, edi
pop ecx
je 0x474102
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.00472090
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x474033
mov eax, str.configinstall_startmenuitem
call fcn.0043f9e0
test eax, eax
je 0x4740ea
xor edi, edi
push 0x206
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call fcn.00489500
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 1
push edi
push 0x17
push edi
call ebx
push esi
call fcn.00471e66
mov edi, eax
test edi, edi
pop ecx
je 0x474102
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.00472090
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
push eax
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x4740ae
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
push str.CreateExecFile_fail
jmp 0x474107
push str.CreateExecLink_fail
mov esi, 0x514ad4
call fcn.00443ae2
pop ecx
jmp 0x4740f1
Function at 0x474114
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.0043f9e0
jmp 0x474159
push esi
call fcn.004717af
test eax, eax
pop ecx
je 0x474169
mov dword [eax + 4], 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x474131
mov eax, str.configcoverinstall_regitem
call fcn.0043f9e0
jmp 0x47419b
push str.CreateExecService_fail
jmp 0x47432c
push esi
call fcn.0047162f
test eax, eax
pop ecx
je 0x4741ab
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x474173
mov eax, str.configcoverinstall_fileitem
call fcn.0043f9e0
jmp 0x4741d6
push str.CreateExecReg_fail
jmp 0x47432c
push esi
call fcn.00471c23
test eax, eax
pop ecx
je 0x4741e6
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x4741b5
mov eax, str.configcoverinstallpublicdataitem
call fcn.0043f9e0
jmp 0x474215
push str.CreateExecFile_fail
jmp 0x47432c
push esi
call fcn.00471cd7
test eax, eax
pop ecx
je 0x474320
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x4741f0
mov eax, str.configinstalldesktopitem
call fcn.0043f9e0
test eax, eax
je 0x474297
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00489500
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.00471e66
mov edi, eax
test edi, edi
pop ecx
je 0x474327
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.00472090
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x474257
mov eax, str.configinstall_startmenuitem
call fcn.0043f9e0
test eax, eax
je 0x474312
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00489500
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.00471e66
mov edi, eax
test edi, edi
pop ecx
je 0x474327
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 8], 1
call fcn.00472090
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.00473d2e
xor ecx, ecx
call fcn.0043fb8c
test eax, eax
jne 0x4742d6
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
push str.CreateExecPublicData_fail
jmp 0x47432c
push str.CreateExecLink_fail
mov esi, 0x514ad4
call fcn.00443ae2
pop ecx
jmp 0x474319
Function at 0x474c0d
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.00489500
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4f9f60
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048d299
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [0x514b78], eax
je 0x474db4
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x514b78]
mov dword [0x514b1c], eax
call esi
push str.WinHttpOpenRequest
push dword [0x514b78]
mov dword [0x514b20], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x514b78]
mov dword [0x514b24], eax
call esi
push str.WinHttpSendRequest
push dword [0x514b78]
mov dword [0x514b28], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x514b78]
mov dword [0x514b2c], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x514b78]
mov dword [0x514b30], eax
call esi
push str.WinHttpReadData
push dword [0x514b78]
mov dword [0x514b34], eax
call esi
push str.WinHttpCloseHandle
push dword [0x514b78]
mov dword [0x514b38], eax
call esi
push str.WinHttpCrackUrl
push dword [0x514b78]
mov dword [0x514b3c], eax
call esi
push str.WinHttpSetOption
push dword [0x514b78]
mov dword [0x514b40], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x514b78]
mov dword [0x514b44], eax
call esi
cmp dword [0x514b1c], edi
mov dword [0x514b48], eax
je 0x474dae
cmp dword [0x514b28], edi
je 0x474dae
cmp dword [0x514b3c], edi
je 0x474dae
cmp dword [0x514b20], edi
je 0x474dae
cmp dword [0x514b24], edi
je 0x474dae
cmp dword [0x514b34], edi
je 0x474dae
cmp dword [0x514b38], edi
je 0x474dae
cmp dword [0x514b30], edi
je 0x474dae
cmp dword [0x514b2c], edi
je 0x474dae
cmp dword [0x514b40], edi
je 0x474dae
cmp dword [0x514b44], edi
je 0x474dae
cmp eax, edi
je 0x474dae
inc edi
mov dword [0x514b18], edi
mov eax, dword [0x514b18]
pop edi
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475619
test al, 0x10
je 0x475619
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x47561c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.0042241f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475651
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47563c
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x47563c
lea eax, [ebp - 4]
call fcn.0046d7c6
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x475688
xor esi, esi
jmp 0x47563f
push eax
call fcn.0047561c
test eax, eax
pop ecx
je 0x475684
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47563c
call edi
cmp eax, ebx
jne 0x475684
jmp 0x47563c
Function at 0x4756a6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x512bd4]
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
push ebx
push esi
mov esi, 0x512bd4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x512bd4]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.00413ba8
lea eax, [ebp - 4]
push eax
call fcn.00475cfc
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0x4fa078
call fcn.00421c33
pop ecx
pop ecx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x47583a
lea eax, [ebp - 0x244]
push 0x4f4314
push eax
call fcn.0048a560
test eax, eax
pop ecx
pop ecx
je 0x475812
lea eax, [ebp - 0x244]
push 0x4f4318
push eax
call fcn.0048a560
test eax, eax
pop ecx
pop ecx
je 0x475812
test byte [ebp - 0x270], 0x10
je 0x4757ac
mov eax, dword [0x512bd4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push str._s_s_
call fcn.00421c33
mov edi, dword [ebp - 0x14]
add esp, 0xc
push dword [ebp + 0xc]
push edi
call fcn.004756a6
test eax, eax
pop ecx
pop ecx
jne 0x4757a7
cmp dword [ebp + 0xc], eax
je 0x47586e
lea eax, [edi - 0x10]
jmp 0x47580d
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0042241f
lea eax, [ebp - 0xc]
call fcn.00424300
or dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.00413b36
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4757ec
cmp dword [ebp + 0xc], eax
jne 0x4757ec
mov bl, 1
jmp 0x4757ee
xor bl, bl
test byte [ebp - 8], 1
je 0x475803
mov eax, dword [ebp - 0x20]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
test bl, bl
jne 0x475871
call fcn.00401023
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x475723
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
call esi
lea eax, [ebp - 4]
call fcn.004755a4
mov edi, dword [ebp - 4]
push edi
call esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [edi - 0x10]
call fcn.00401023
jmp 0x475831

Function at 0x475cc8
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x514be0]
sub esp, 0x204
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x475d9b
add eax, 0xfffffff0
call fcn.00423492
add eax, 0x10
mov dword [esi], eax
jmp 0x475e3a
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00405077
lea eax, [ebp - 4]
push eax
call fcn.00475cfc
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.00489500
mov edi, dword [ebp - 4]
add esp, 0xc
push edi
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x4f11d4
push str.installkey
push 0x4e97cc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x204]
push eax
call fcn.00488c9a
pop ecx
lea ecx, [ebp - 0x204]
mov ebx, eax
push ecx
mov eax, 0x514be0
call fcn.00413bce
mov eax, dword [0x514be0]
add eax, 0xfffffff0
call fcn.00423492
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 0x475e3f
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.0042241f
mov esi, dword [ebp - 0xc]
mov eax, dword [esi - 0xc]
cmp eax, edi
je 0x476022
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.0043409d
cmp ax, 0x5c
je 0x475e9f
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp - 0xc]
call fcn.0043409d
cmp ax, 0x2f
je 0x475e9f
push 0x4e96bc
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.00489500
lea eax, [ebp + 0x14]
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
call fcn.00413b36
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 0x476022
mov edi, dword [ebp + 0xc]
or dword [ebp - 8], 1
push 0x4f4314
lea eax, [ebp - 0x1c]
call fcn.0042241f
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.0048a14c
test eax, eax
pop ecx
pop ecx
je 0x475f45
or dword [ebp - 8], 2
push 0x4f4318
lea eax, [ebp - 0x18]
call fcn.0042241f
mov eax, dword [eax]
lea ecx, [ebp - 0x248]
push ecx
push eax
call fcn.0048a14c
test eax, eax
pop ecx
pop ecx
je 0x475f45
xor bl, bl
jmp 0x475f47
mov bl, 1
test byte [ebp - 8], 2
je 0x475f5c
mov eax, dword [ebp - 0x18]
and dword [ebp - 8], 0xfffffffd
add eax, 0xfffffff0
call fcn.00401023
test byte [ebp - 8], 1
je 0x475f71
mov eax, dword [ebp - 0x1c]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.00401023
test bl, bl
jne 0x475ffc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00413c3b
test byte [ebp - 0x274], 0x10
pop ecx
je 0x475fe2
test byte [ebp + 0x10], 1
je 0x475fb2
push 0x4e96bc
lea eax, [ebp - 0x10]
push eax
call fcn.00401000
lea eax, [ebp - 0x10]
push eax
call fcn.00407122
cmp dword [ebp + 0x18], 0
je 0x475ff1
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.00423492
push dword [ebp + 0x10]
add eax, 0x10
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
call fcn.00475e3f
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x475ff1
test byte [ebp + 0x10], 2
je 0x475ff1
lea eax, [ebp - 0x10]
push eax
call fcn.00407122
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 0x475ef5
cmp dword [ebp - 0x14], eax
je 0x476022
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