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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x188], eax
and word [ebp - 0x80], 0
push ebx
push esi
push edi
push 0x206
lea eax, [ebp - 0x7e]
push 0
push eax
mov esi, ecx
call fcn.00456900
add esp, 0xc
cmp dword [esi + 0x3c], 8
jb 0x40c9d1
mov eax, dword [esi + 0x28]
jmp 0x40c9d4
lea eax, [esi + 0x28]
push 0x4b7df8
push eax
mov ebx, 0x4b7dd0
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004567da
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x40ca07
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x3c], 8
jb 0x40ca12
mov esi, dword [esi + 0x28]
jmp 0x40ca15
add esi, 0x28
push str.Dict
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x40ca40
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.004562c9
add ebp, 0x18c
leave
ret

Function at 0x40cabe
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp + 0x396]
push ebx
push eax
mov esi, ecx
mov word [ebp + 0x394], bx
call fcn.00456900
lea eax, [ebp + 0x394]
push str.SOFTWARE_
push eax
call fcn.004568d5
lea eax, [ebp + 0x394]
push str.DongFangInput
push eax
call fcn.004568ab
add esp, 0x1c
cmp dword [esi + 0x58], 8
jb 0x40cb28
mov eax, dword [esi + 0x44]
jmp 0x40cb2b
lea eax, [esi + 0x44]
push eax
lea eax, [ebp + 0x18c]
push eax
call fcn.004568d5
cmp dword [esi + 0x3c], 8
pop ecx
pop ecx
jb 0x40cb45
mov esi, dword [esi + 0x28]
jmp 0x40cb48
add esi, 0x28
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004568d5
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push 2
push ebx
lea eax, [ebp + 0x394]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cba5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x18c]
push eax
push 1
push ebx
push str.CfgRootPath
push dword [ebp - 0x80]
call esi
push edi
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.CfgUserPath
push dword [ebp - 0x80]
call esi
pop edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x59c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0x5a0
leave
ret
Function at 0x40d40e
Capabilities:
Check if file exists

Disassembly:
push esi
push 0xffffffffffffffff
lea esi, [ecx + 0x78]
add ecx, 0x40
push 0
push ecx
mov ecx, esi
call fcn.00401db0
push str.Skin_
mov ecx, esi
call fcn.004037a0
cmp dword [esi + 0x18], 8
jb 0x40d438
mov eax, dword [esi + 4]
jmp 0x40d43b
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d45b
cmp dword [esi + 0x18], 8
jb 0x40d451
mov esi, dword [esi + 4]
jmp 0x40d454
add esi, 4
push esi
call fcn.0040e61e
pop ecx
pop esi
ret

Function at 0x40d45d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40d47e
mov eax, dword [esi + 0x44]
jmp 0x40d481
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4b7dd0
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d4b9
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.004568ab
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x5c]
call fcn.00401810
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004562c9
leave
ret

Function at 0x40d4e8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40d509
mov eax, dword [esi + 0x44]
jmp 0x40d50c
lea eax, [esi + 0x44]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x4b7dd0
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d544
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.004568ab
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xe8]
call fcn.00401810
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004562c9
leave
ret

Function at 0x40d63a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 8
jb 0x40d65b
mov eax, dword [esi + 0x44]
jmp 0x40d65e
lea eax, [esi + 0x44]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push 0x4b7dd0
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d696
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x158]
call fcn.00401810
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004562c9
leave
ret
Function at 0x40db95
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp + 0x1ae]
push esi
push eax
mov edi, ecx
mov word [ebp + 0x1ac], si
call fcn.00456900
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], esi
call fcn.00456900
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40dc59
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40dc21
cmp dword [ebp - 0x78], ebx
je 0x40dc27
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40dc12
jmp 0x40dc39
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call fcn.004568d5
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1ac]
push eax
call fcn.00458d5b
pop ecx
push eax
lea ecx, [edi + 0x174]
call fcn.00401810
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0x3b8
leave
ret

Function at 0x40dca6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x80], si
call fcn.00456900
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040c8d7
test al, al
jne 0x40dd0d
push esi
push 0x1a
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x80]
push eax
call fcn.0045697a
test eax, eax
pop ecx
je 0x40dd5b
mov esi, 0x4de160
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004568ab
lea eax, [ebp - 0x80]
push str.DongFangIME
push eax
call fcn.004568ab
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004568ab
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd4f
lea eax, [ebp - 0x80]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x40]
call fcn.00401810
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x18c
leave
ret
Function at 0x40dd72
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x80], si
call fcn.00456900
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.0040c8d7
test al, al
jne 0x40ddd9
push esi
push 0x1a
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x80]
push eax
call fcn.0045697a
test eax, eax
pop ecx
je 0x40de27
mov esi, 0x4de160
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004568ab
lea eax, [ebp - 0x80]
push str.DongFangIME.users
push eax
call fcn.004568ab
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004568ab
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40de1b
lea eax, [ebp - 0x80]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x24]
call fcn.00401810
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x18c
leave
ret
Function at 0x40e10d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xbbc], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x74], di
call fcn.00456900
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00456900
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.00456900
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.00456900
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.00456900
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.00456900
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.004568d5
lea eax, [ebp + 0x9b4]
push eax
call fcn.0045697a
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.004567aa
add esp, 0x14
cmp eax, edi
je 0x40e316
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.004568d5
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.004568ab
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40e239
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.004568d5
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.004568ab
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40e274
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.004568d5
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.004568ab
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40e2af
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40e316
cmp dword [ebp - 0x80], edi
je 0x40e316
cmp dword [ebp - 0x7c], edi
je 0x40e316
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.0040c79f
test eax, eax
je 0x40e316
push str.DongFangIME
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40e305
lea eax, [ebp + 0x5a4]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x40]
call fcn.00401810
jmp 0x40e31e
mov ecx, dword [ebp - 0x78]
call fcn.0040dca6
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0xbc0
leave
ret
Function at 0x40e336
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xbc0]
sub esp, 0xc40
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0xbbc], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x74], di
call fcn.00456900
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00456900
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.00456900
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.00456900
push esi
lea eax, [ebp + 0x9b6]
push edi
push eax
mov word [ebp + 0x9b4], di
call fcn.00456900
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov word [ebp + 0x5a4], di
call fcn.00456900
add esp, 0x48
push edi
push 0x1a
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x9b4]
push eax
call fcn.004568d5
lea eax, [ebp + 0x9b4]
push eax
call fcn.0045697a
lea eax, [ebp + 0x9b4]
push 0x5c
push eax
call fcn.004567aa
add esp, 0x14
cmp eax, edi
je 0x40e53f
mov word [eax], di
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x39c]
push eax
call fcn.004568d5
lea eax, [ebp + 0x39c]
push str.Local
push eax
call fcn.004568ab
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call esi
test eax, eax
je 0x40e462
inc ebx
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x7ac]
push eax
call fcn.004568d5
lea eax, [ebp + 0x7ac]
push str.LocalLow
push eax
call fcn.004568ab
add esp, 0x10
lea eax, [ebp + 0x7ac]
push eax
call esi
test eax, eax
je 0x40e49d
mov dword [ebp - 0x80], 1
lea eax, [ebp + 0x9b4]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.004568d5
lea eax, [ebp + 0x194]
push str.Roaming
push eax
call fcn.004568ab
add esp, 0x10
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x40e4d8
mov dword [ebp - 0x7c], 1
cmp ebx, edi
je 0x40e53f
cmp dword [ebp - 0x80], edi
je 0x40e53f
cmp dword [ebp - 0x7c], edi
je 0x40e53f
mov edi, dword [ebp - 0x78]
mov ecx, edi
call fcn.0040c79f
test eax, eax
je 0x40e53f
push str.DongFangIME.users
lea eax, [ebp + 0x7ac]
push eax
lea eax, [ebp + 0x5a4]
push str._s_s_
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp + 0x5a4]
push eax
call esi
test eax, eax
jne 0x40e52e
lea eax, [ebp + 0x5a4]
push eax
call fcn.0040e61e
pop ecx
lea eax, [ebp + 0x5a4]
push eax
lea ecx, [edi + 0x24]
call fcn.00401810
jmp 0x40e547
mov ecx, dword [ebp - 0x78]
call fcn.0040dd72
mov ecx, dword [ebp + 0xbbc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0xbc0
leave
ret
Function at 0x40e61e
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0045697a
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043a762
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.004568d5
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x40e68d
cmp word [esi + ebp*2], 0x5c
jne 0x40e684
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e67e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40e68b
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x40e65b
jmp 0x40e68d
xor bl, bl
push esi
call fcn.0043a767
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret

Function at 0x40e7e9
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00456900
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.00456900
push edi
lea eax, [ebp - 0x2c]
push 0x4b6eb4
push eax
call fcn.004567da
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e86d
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x7a8
leave
ret

Function at 0x40e884
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00456900
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.00456900
push edi
lea eax, [ebp - 0x28]
push 0x4b6eb4
push eax
call fcn.004567da
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e920
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x7ac
leave
ret
Function at 0x40ea47
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ecx
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp], eax
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ea71
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ea87
cmp ebx, 0xa
jge 0x40ea8c
inc ebx
jmp 0x40ea5f
xor eax, eax
inc eax
jmp 0x40ea8e
xor eax, eax
mov ecx, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004562c9
pop ecx
ret

Function at 0x40ea9e
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov esi, dword [ebp + 0x5ac]
push esi
mov dword [ebp - 0x80], esi
call ebx
test eax, eax
je 0x40ec01
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ec01
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.00456900
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.00456900
add esp, 0x18
lea eax, [ebp + 0x190]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call fcn.0040e937
pop ecx
pop ecx
mov dword [ebp - 0x7c], edi
push esi
lea eax, [ebp + 0x39a]
push edi
push eax
mov word [ebp + 0x398], di
call fcn.00456900
add esp, 0xc
cmp dword [ebp - 0x7c], edi
lea eax, [ebp - 0x78]
jne 0x40eb74
push eax
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x398]
push str._s_s.del
push eax
call fcn.004567da
add esp, 0x10
jmp 0x40eb93
push dword [ebp - 0x7c]
push eax
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x398]
push str._s_s.del_d
push eax
call fcn.004567da
add esp, 0x14
lea eax, [ebp + 0x398]
push eax
call ebx
test eax, eax
je 0x40ebbf
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x40ebbf
cmp dword [ebp - 0x7c], 0xa
jge 0x40ec00
inc dword [ebp - 0x7c]
jmp 0x40eb36
lea eax, [ebp + 0x398]
push eax
push dword [ebp - 0x80]
call fcn.00459a0c
pop ecx
pop ecx
lea eax, [ebp + 0x398]
push eax
call ebx
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
je 0x40ebef
push 5
push edi
lea eax, [ebp + 0x398]
push eax
call esi
push dword [ebp - 0x80]
call ebx
test eax, eax
je 0x40ec00
push 5
push edi
push dword [ebp - 0x80]
call esi
pop edi
mov ecx, dword [ebp + 0x5a0]
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0x5a4
leave
ret
Function at 0x40ed52
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x1588]
mov eax, 0x1608
call fcn.00458500
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x1584], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1590]
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x137e]
push ebx
push eax
mov word [ebp + 0x137c], bx
call fcn.00456900
push edi
lea eax, [ebp + 0x137c]
push 0x4b6eb4
push eax
call fcn.004567da
lea eax, [ebp + 0x137c]
push eax
call fcn.0045697a
lea ecx, [eax - 1]
add esp, 0x1c
test ecx, ecx
jle 0x40edd1
lea eax, [ebp + eax*2 + 0x137c]
cmp word [eax - 2], 0x5c
je 0x40edd1
mov word [eax], 0x5c
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call fcn.004567da
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40eeaf
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40eeaf
cmp word [ebp - 0x50], 0x2e
je 0x40ee09
cmp word [ebp - 0x4e], bx
je 0x40ee09
cmp word [ebp - 0x4e], 0x2e
jne 0x40ee38
cmp word [ebp - 0x4c], bx
je 0x40ee09
test byte [ebp - 0x7c], 0x10
je 0x40ee7e
push esi
lea eax, [ebp + 0x1176]
push ebx
push eax
mov word [ebp + 0x1174], bx
call fcn.00456900
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1174]
push 0x4b7dd0
push eax
call fcn.004567da
lea eax, [ebp + 0x1174]
push eax
call fcn.0040ed52
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x9a4]
push 0x4b70c8
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40ee09
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x1584]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
add ebp, 0x1588
leave
ret