joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c353
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002c385
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x19e
push 0x25aa
push 0x10dc
push 0x1134
push 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
jmp 0x1002c38d
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
ret

Function at 0x10031722
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.100312e7
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031752
xor eax, eax
jmp 0x100318ce
lea eax, [ebp + 8]
push eax
push 0x5ccf
push 0
lea eax, [ebp - 0x10]
push eax
push 0x1736
push 0x11cd
lea eax, [ebp - 8]
push eax
call fcn.100318d2
add esp, 0x1c
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031789
xor eax, eax
jmp 0x100318ce
lea eax, [ebp - 0xc]
push eax
push 0x5ea5
push 0x5bc0
push 1
push dword [ebp - 8]
call fcn.10031028
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x100317b1
xor eax, eax
jmp 0x100318ce
lea eax, [ebp - 0xc]
push eax
push 0x6684
push 0x415c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.10031338
add esp, 0x20
push dword [ebp - 8]
push 0x1307
push 0x54b0
push 1
push 0x6b23
push dword [ebp + 8]
push dword [ebp - 4]
push 0x5da6
call fcn.1002868e
add esp, 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 1
call fcn.100313fa
add esp, 0x10
push 0x38a3
push 0x6665
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x3e4f
push 0x53c0
push 0x6fb3
push 1
call fcn.1003144f
add esp, 0x20
push dword [ebp - 4]
call fcn.10030f00
pop ecx
test eax, eax
jne 0x10031852
xor eax, eax
jmp 0x100318ce
push 0x240e
push 1
push 0x5a45
push 0x5080
lea eax, [ebp - 4]
push eax
push 0x264c
call fcn.100315c5
add esp, 0x18
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100318b6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10031893
xor eax, eax
jmp 0x100318ce
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100318ac
xor eax, eax
jmp 0x100318ce
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100318c7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x100318cb
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10046c8b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10046cad
push 0x2563
push 0x90f
push 0x1fda
call dword [sym.imp.KERNEL32.dll_HeapCreate]
jmp 0x10046cb5
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ebp
ret

Function at 0x10047d52
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10047d9c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
shl eax, 1
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax + 0x24], ecx
jmp 0x10047da6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x1007ec50
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10089330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006e3ea
mov dword [ebp - 0x14], eax
cmp dword [0x106762b4], esi
jne 0x1007ed43
push 0x800
push esi
push 0x10007b2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007ecd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007ee23
push esi
push esi
push 0x10007b2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007ee23
push 0x10007b44
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007ee23
push eax
call ebx
push 0x10007b50
push edi
mov dword [0x106762b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b60
push edi
mov dword [0x106762b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b74
push edi
mov dword [0x106762bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106762c4], eax
test eax, eax
je 0x1007ed40
push 0x10007b90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106762c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007ed68
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007ed5b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007ed7d
push 4
pop eax
jmp 0x1007ee25
cmp dword [ebp - 0x14], esi
je 0x1007ed7d
push dword [0x106762b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007ed62
mov eax, dword [0x106762c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007eddb
cmp dword [0x106762c4], edi
je 0x1007eddb
push eax
call ebx
push dword [0x106762c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007eddb
test eax, eax
je 0x1007eddb
call ecx
test eax, eax
je 0x1007edd0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007edd0
test byte [ebp - 8], 1
jne 0x1007eddb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007ee0b
mov eax, dword [0x106762b8]
cmp eax, edi
je 0x1007ee08
push eax
call ebx
test eax, eax
je 0x1007ee08
call eax
mov esi, eax
test esi, esi
je 0x1007ee08
mov eax, dword [0x106762bc]
cmp eax, edi
je 0x1007ee08
push eax
call ebx
test eax, eax
je 0x1007ee08
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106762b4]
call ebx
test eax, eax
je 0x1007ee23
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007ee25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006a7a2
mov esp, ebp
pop ebp
ret
Function at 0x40141d
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004068be
test eax, eax
jne 0x40152f
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401492
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150b
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e0
test esi, esi
jne 0x40150b
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141d
test eax, eax
jne 0x4014e0
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040718d
test eax, eax
jne 0x40151c
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152f
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403608
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x435d40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403650
mov eax, dword [0x47a298]
add eax, ecx
push eax
call fcn.004035f1
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40c010]
call fcn.004071ef
test eax, eax
je 0x403839
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4037db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x4206ac], esi
and dword [0x4206a8], esi
mov dword [esp + 0x14], eax
mov eax, 0x421d30
mov dword [0x429d38], eax
mov dword [0x429d34], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov dword [0x420190], 8
mov ecx, eax
mov dword [0x429d30], 0x429d30
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4037d3
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x431d40
call fcn.004035db
test eax, eax
je 0x403839
sub dword [esp + 0x10], ebp
mov dword [0x420184], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x420180], 0x431d40
push 0x420180
mov dword [0x420188], ebp
mov dword [0x42018c], ebx
call fcn.00407b27
mov dword [esp + 0x28], eax
test eax, eax
js 0x4037d7
mov eax, dword [0x420188]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x47a334], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x40378c
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x403750
test ecx, ecx
jne 0x40378c
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00406335
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4037cb
test edi, edi
jne 0x4037b0
push eax
push ebp
push dword [esp + 0xbc]
call fcn.004072b2
test eax, eax
je 0x40381e
mov eax, dword [esp + 0x18]
jmp 0x4037bc
mov ebp, dword [0x420188]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x4036fd
jmp 0x4037d3
test ecx, ecx
jg 0x4036c8
mov eax, esi
jmp 0x40383c
push 0xfffffffffffffffc
jmp 0x40383b
test edi, edi
jne 0x403822
test eax, eax
jle 0x4037d3
mov ebp, 0x431d40
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.004035db
test eax, eax
je 0x403839
push edi
push ebp
push dword [esp + 0xbc]
call fcn.004072b2
test eax, eax
je 0x40381e
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4037e8
jmp 0x4037d3
push 0xfffffffffffffffe
jmp 0x40383b
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.004035db
test eax, eax
jne 0x4037d3
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403849
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403868
mov eax, dword [0x420178]
test eax, eax
je 0x403860
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420178], 0
ret
cmp dword [0x420178], 0
je 0x403879
push 0
call fcn.004067f5
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x47a240]
jbe 0x4038ac
push 0
push 0x403b0f
push 0
push 0x6f
push dword [0x472234]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420178], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4038ad
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2000
mov esi, 0x4e7000
add eax, 0x3e8
push esi
push ebx
mov dword [0x47a240], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.004071c2
mov ebp, eax
mov dword [0x40c010], ebp
cmp ebp, 0xffffffff
jne 0x403906
mov eax, 0x409cb0
jmp 0x403b05
push esi
mov esi, 0x4d7000
push esi
call fcn.004073c1
push esi
call fcn.004075b6
push eax
push 0x4eb000
call fcn.004073c1
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x420170], esi
test esi, esi
je 0x403a32
mov ebx, dword [esp + 0x38]
cmp dword [0x47a248], 0
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push 0x429d40
call fcn.004035db
test eax, eax
je 0x403af8
cmp dword [0x47a248], 0
jne 0x4039f4
push 0x1c
push 0x429d40
lea eax, [esp + 0x20]
push eax
call fcn.00406f01
test dword [esp + 0x18], 0xfffffff0
jne 0x403a01
cmp dword [esp + 0x1c], 0xdeadbeef
jne 0x403a01
cmp dword [esp + 0x28], 0x74736e49
jne 0x403a01
cmp dword [esp + 0x24], 0x74666f73
jne 0x403a01
cmp dword [esp + 0x20], 0x6c6c754e
jne 0x403a01
mov eax, dword [0x420174]
or ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [0x47a248], eax
mov eax, ebx
and eax, 2
or dword [0x47a320], eax
cmp ecx, esi
ja 0x403b00
mov eax, ebx
and al, 0xc
cmp al, 4
je 0x403a2a
inc dword [esp + 0x10]
lea esi, [ecx - 4]
cmp edi, esi
jbe 0x403a01
mov edi, esi
jmp 0x403a01
test bl, 2
jne 0x403a01
push 0
call fcn.00403849
pop ecx
cmp esi, dword [0x420170]
jae 0x403a1c
push edi
push 0x429d40
push dword [esp + 0x1c]
call fcn.004076e0
mov dword [esp + 0x14], eax
add dword [0x420174], edi
sub esi, edi
jne 0x403940
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 1
call fcn.00403849
cmp dword [0x47a248], 0
pop ecx
je 0x403b00
test ebx, ebx
je 0x403a7a
push dword [0x420174]
call fcn.004035f1
push 4
lea eax, [esp + 0x3c]
push eax
push dword [0x40c010]
call fcn.004071ef
test eax, eax
je 0x403b00
cmp edi, dword [esp + 0x38]
jne 0x403b00
push dword [esp + 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x47a248]
mov esi, eax
add ecx, 0x1c
push ecx
call fcn.004035f1
push dword [esp + 0x2c]
xor ebx, ebx
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403608
cmp eax, dword [esp + 0x2c]
jne 0x403b00
test byte [esp + 0x18], 1
mov dword [0x47a250], esi
mov eax, dword [esi]
mov dword [0x47a24c], eax
je 0x403ac6
inc dword [0x47a244]
push 8
pop ecx
lea eax, [esi + 0x44]
lea eax, [eax - 8]
add dword [eax], esi
sub ecx, 1
jne 0x403acc
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x47a260
call fcn.00406f01
xor eax, eax
jmp 0x403b05
push 1
call fcn.00403849
pop ecx
mov eax, 0x409cc8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x406419
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406433
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40678a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmovbe ecx, eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
test ecx, ecx
je 0x4067c8
cmp word [eax - 2], 0x5c
mov ecx, 0x4098b4
jne 0x4067cd
mov ecx, 0x4098b6
push dword [ebp + 8]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406823
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406846
push dword [esp + 8]
push dword [esp + 8]
call fcn.004068ec
pop ecx
pop ecx
inc dword [0x47a310]
ret 8

Function at 0x4068ec
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x4669c8], 0x55004e
mov ebp, 0x4669c8
mov dword [0x4669cc], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406942
push 1
push 0
push esi
call fcn.004071c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406a22
cmp eax, ebx
jg 0x406a22
push ebx
mov esi, 0x4661c8
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406a22
cmp eax, ebx
jg 0x406a22
push esi
push ebp
push str._ls_ls_r_n
push 0x465dc8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x47a250]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406494
push 4
push 0xc0000000
push esi
call fcn.004071c2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406a22
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406a1b
push esi
push edi
push ebx
call fcn.004071ef
test eax, eax
je 0x406a1b
push str._Rename__r_n
push edi
call fcn.004073dd
test eax, eax
jne 0x406a27
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x465dc8
lea eax, [ecx + edi]
push eax
call fcn.00406f01
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004072b2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a35c
add eax, 0xa
push eax
call fcn.004073dd
mov ecx, eax
test ecx, ecx
je 0x4069ec
lea edx, [edi + esi]
jmp 0x406a46
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406a40
sub ecx, edi
inc ecx
jmp 0x4069ee
Function at 0x406d03
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00407443
mov edi, eax
cmp edi, 0xffffffff
je 0x406d39
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406d40
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406d48
test byte [ebp + 0xc], 4
jne 0x406d39
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406d25
xor eax, eax
inc eax
jmp 0x406d3b

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x461dc8
push ebx
call fcn.004073c1
push ebx
call fcn.0040746b
mov esi, eax
test esi, esi
je 0x406e2d
push esi
call fcn.004075e3
test byte [0x47a24c], 0x80
je 0x406def
movzx eax, word [esi]
test ax, ax
je 0x406e2d
cmp eax, 0x5c
je 0x406e2d
sub esi, ebx
sar esi, 1
jmp 0x406e09
call fcn.00406d4d
test eax, eax
je 0x406e03
test byte [eax], 0x10
je 0x406e2d
push ebx
call fcn.004075b6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406df5
call fcn.00406cd4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x406e2f
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406f23
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x45dd80], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x45dd80
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406f62
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406f66
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406db6
mov dword [esp + 0x14], eax
test bl, 8
je 0x406fa8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47a308], eax
jmp 0x407181
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406fc5
test eax, eax
je 0x40710c
test bl, 2
je 0x407114
push esi
push 0x45ddc8
call fcn.004073c1
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406fe8
push str..
push 0x45ddc8
call ebp
jmp 0x406fee
push esi
call fcn.004075b6
xor eax, eax
cmp word [esi], ax
jne 0x406fff
cmp word [0x45ddc8], 0x5c
jne 0x407007
push 0x4098b4
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x45ddc8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4070f1
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x407055
cmp word [esp + 0x4a], 0
je 0x4070d3
cmp word [esp + 0x4a], ax
jne 0x407055
cmp word [esp + 0x4c], 0
je 0x4070d3
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.004073c1
test byte [esp + 0x1c], 0x10
je 0x40707c
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4070d3
push ebx
push esi
call fcn.00406f66
jmp 0x4070d3
push esi
push 0x40a224
call fcn.00406e34
pop ecx
pop ecx
push edi
push esi
call fcn.00406d03
push esi
test eax, eax
jne 0x4070cc
test edi, edi
je 0x4070b8
push 0x40a248
call fcn.00406e34
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406335
xor eax, eax
push eax
push esi
call fcn.00406823
jmp 0x4070d3
push str.Delete:
call fcn.00406e34
inc dword [0x47a308]
pop ecx
pop ecx
jmp 0x4070d3
push 0xfffffffffffffff2
call fcn.00406335
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407033
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x407180
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x407114
push esi
push 0x40a2a0
jmp 0x40716a
push esi
call fcn.00406d4d
test eax, eax
je 0x407180
push esi
call fcn.00406cd4
push esi
push 0x40a2cc
call fcn.00406e34
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406d03
push esi
test eax, eax
jne 0x407179
test edi, edi
je 0x407165
push 0x40a2f0
call fcn.00406e34
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406335
xor eax, eax
push eax
push esi
call fcn.00406823
jmp 0x407180
push str.RMDir:
call fcn.00406e34
inc dword [0x47a308]
pop ecx
pop ecx
jmp 0x407180
push 0xffffffffffffffe5
call fcn.00406335
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8