joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401660
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4035e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40169f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40181f
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x58]
push 0x406108
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4017fd
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
push edx
mov edi, eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x406104
push eax
mov byte [esp + 0x58], 3
call esi
add esp, 8
test eax, eax
je 0x401754
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x406100
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401756
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4017f5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
call dword [edx + 0x40]
test eax, eax
je 0x4017d5
push ecx
lea ecx, [esp + 0x30]
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x20]
call fcn.00401660
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x20]
jmp 0x4017f0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x2c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x4016f8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0
call fcn.004030d2
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4
Function at 0x402274
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
mov eax, dword [esp + 0xc]
mov dword [0x412af8], eax
mov edx, dword [0x4125d0]
xor ecx, ecx
call fcn.0040e5a0
jne 0x4022b0
mov edx, dword [0x4125d0]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [esp + 4]
push eax
call fcn.0040e520
jmp 0x40242c
push 0xc80001
push dword [0x4125cc]
push 0x6e
push 0xc8
push 0
push 0
push 0
call fcn.0040a03f
push dword [0x412538]
push 0x14
push 0x9e
push 0xf
push 0x15
push 1
call fcn.00409243
push 0x20
push 0x41101e
push 0x14
push 0x9e
push 0x28
push 0x15
push 2
call fcn.0040941c
push 0x41104e
push 0x14
push 0x4e
push 0x4b
push 0x3d
push 3
call fcn.00409729
push 4
push 0xd
push 0
call fcn.0040a062
push 2
call fcn.00409749
call fcn.0040a266
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x402390
push dword [0x4125d8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401dde
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x4023dc
call fcn.0040c67d
push eax
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4023d9
push dword [0x412af8]
push dword [0x412af8]
push 2
call fcn.00409784
lea eax, [esp + 0xc]
push eax
call fcn.0040e520
push 0
call fcn.00409c02
add esp, 8
jmp 0x40242c
pop eax
jmp 0x402426
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x402426
call fcn.0040c68c
push eax
mov ebx, 3
cmp ebx, dword [esp]
jne 0x402425
push dword [0x412af8]
push dword [0x412af8]
push 2
call fcn.00409784
lea eax, [esp + 0xc]
push eax
call fcn.0040e520
push 0
call fcn.00409c02
add esp, 8
jmp 0x40242c
pop eax
pop eax
jmp 0x402366
push dword [0x412af8]
push dword [0x412af8]
push dword [esp + 8]
call fcn.00404300
push eax
mov eax, dword [esp + 0xc]
push eax
call fcn.0040cd70
inc dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x4124e8]
push dword [0x4124d4]
call fcn.0040b6f0
pop edx
pop ecx
mov dword [0x412af8], ecx
add ecx, dword [0x411320]
add edx, dword [0x411320]
call fcn.0040e5a0
jne 0x4024b5
push 0x10
push dword [0x4125b0]
push dword [0x4125dc]
call fcn.004070d0
push dword [0x4125d8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 1
jmp 0x401dde
mov edx, dword [esp]
push dword [0x412af8]
call fcn.0040e5d0
pop eax
add eax, dword [0x411320]
jmp 0x4024da
push dword [esp]
call fcn.0040e630
add esp, 4
pop ebx
ret
Function at 0x40269a
Capabilities:
Delete directory

Disassembly:
xor eax, eax
push eax
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call fcn.0040bab2
inc dword [0x412af8]
push dword [0x4125a4]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407143
lea eax, [esp + 4]
push eax
call fcn.0040e520
mov edx, dword [esp]
xor ecx, ecx
call fcn.0040e5a0
jne 0x402758
mov edx, dword [esp]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [0x412568]
push eax
call fcn.0040e520
push dword [0x412568]
call fcn.0040ba90
mov edx, dword [0x4124f8]
xor ecx, ecx
call fcn.0040e5a0
jne 0x40272a
push dword [0x4124f8]
call fcn.00402ac4
push dword [0x412574]
push 1
call fcn.0040be10
and eax, eax
je 0x402758
push dword [0x412570]
push 1
call fcn.0040bff0
push 1
call fcn.0040bbf0
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call fcn.00407a8a
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.0040ba1a
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.0040ba90
pop dword [0x412af8]
push dword [0x4125d8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x401dde

Function at 0x402894
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040b6b0
mov dword [esp], eax
push dword [0x412af8]
push dword [0x412af8]
call fcn.0040b907
lea eax, [esp + 8]
push eax
call fcn.0040e520
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x412af8]
push dword [0x412af8]
push dword [esp + 8]
call fcn.0040b760
lea eax, [0x4125d8]
push eax
call fcn.0040e520
push dword [esp]
call fcn.0040b7b0
push dword [0x4125d8]
call fcn.0040b996
push dword [0x4125d8]
call fcn.0040b9a4
push dword [0x412af8]
push dword [0x412af8]
call fcn.0040bab2
lea eax, [0x412568]
push eax
call fcn.0040e520
push dword [esp + 0x14]
pop eax
call fcn.0040b6d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x40296d
mov edx, dword [0x4125d8]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [0x412568]
push eax
call fcn.0040e520
mov dword [esp + 0xc], 2
jmp 0x40297f
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40297f
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040b6d0
mov dword [0x41259c], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040b6d0
mov dword [0x4124d0], eax
mov eax, 1
jmp 0x4029b2
push dword [esp + 4]
call fcn.0040e630
add esp, 0xc
pop ebx
ret 4
Function at 0x4029c2
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x412af8], eax
push dword [0x412af8]
push dword [0x412af8]
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.0040b760
lea eax, [esp + 4]
push eax
call fcn.0040e520
mov edx, dword [esp]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [esp + 8]
push eax
call fcn.0040e520
mov eax, dword [esp + 4]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsA
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.00404300
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jle 0x402a7f
push dword [0x412af8]
mov edx, str.__BFINOPSX
call fcn.0040e5d0
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
mov ebx, dword [esp + 0x20]
inc ebx
push ebx
push dword [esp + 0x18]
call fcn.004043b0
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.00404190
pop eax
lea eax, [esp + 0x14]
push eax
call fcn.0040e520
mov edx, dword [esp + 0x10]
push dword [0x412af8]
call fcn.0040e5d0
pop eax
add eax, dword [0x411320]
jmp 0x402aa5
push dword [esp + 4]
call fcn.0040e630
push dword [esp]
call fcn.0040e630
push dword [esp + 0x10]
call fcn.0040e630
add esp, 0x14
pop ebx
ret
Function at 0x4031cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4031d5
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x4031fc
mov eax, 1
jmp 0x4031fe
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403203
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403209
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00404060
push 0x21
call fcn.0040b6b0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040b7d0
push 0x20
push dword [esp + 8]
mov eax, dword [0x4125f4]
push eax
call fcn.0040b7f0
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040b820
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push 0x21
push dword [esp + 0x18]
call fcn.0040cd70
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.00404b30
lea eax, [esp + 0xc]
push eax
call fcn.0040e520
push dword [esp + 4]
call fcn.0040b7b0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4033ee
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_LoadResource
mov dword [0x4124d4], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x4124e8], eax
push dword [esp]
mov edx, 0x411027
pop ecx
call fcn.0040e5a0
jne 0x403336
push dword [esp]
mov edx, 0x41102b
pop ecx
call fcn.0040e5a0
jne 0x403336
push dword [esp]
mov edx, 0x41102d
pop ecx
call fcn.0040e5a0
jne 0x403336
push dword [esp]
mov edx, 0x411035
pop ecx
call fcn.0040e5a0
jne 0x403336
jmp 0x40333d
mov eax, 1
jmp 0x40333f
xor eax, eax
and eax, eax
je 0x4033ee
push dword [0x4124e8]
call fcn.0040b6b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x4124e8]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x4033a4
mov ebx, dword [0x4124d4]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040b6d0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040b6e0
inc dword [esp + 0x14]
jno 0x40335e
push dword [0x4125f4]
push dword [0x4124e8]
push dword [esp + 0x18]
call fcn.00402000
push dword [esp + 0x10]
pop eax
mov dword [0x4124d4], eax
push dword [0x4124e8]
push dword [esp + 0x14]
call fcn.00403dc2
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x4124d4], eax
push dword [esp + 0x20]
call fcn.0040b860
mov dword [0x4124e8], eax
mov eax, dword [esp + 0xc]
jmp 0x4033f6
push dword [esp + 8]
call fcn.0040e630
push dword [esp]
call fcn.0040e630
add esp, 0x24
pop ebx
ret 8
Function at 0x40340e
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push 0x400
call fcn.0040b6b0
mov dword [esp], eax
push dword [0x412af8]
push dword [0x412af8]
call fcn.0040b907
lea eax, [esp + 8]
push eax
call fcn.0040e520
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x412af8]
push dword [0x412af8]
push dword [esp + 8]
call fcn.0040b760
lea eax, [esp + 0xc]
push eax
call fcn.0040e520
push dword [0x412af8]
push dword [0x412af8]
push 0x800
call fcn.004042c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e520
push dword [0x412af8]
push 0x800
push dword [esp + 0x14]
push dword [0x412af8]
push dword [0x412af8]
call fcn.00407a8a
inc dword [0x412af8]
mov edx, dword [0x411320]
add dword [esp], edx
call sub.KERNEL32.dll_GetShortPathNameA
pop dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call fcn.00407a8a
inc dword [0x412af8]
push dword [0x4124f4]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call fcn.00407a8a
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.0040bb9a
inc dword [0x412af8]
push dword [0x412548]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call fcn.00407a8a
mov edx, dword [0x411320]
add dword [esp], edx
call fcn.0040ba1a
inc dword [0x412af8]
push dword [0x4125e0]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [esp + 0x18]
call fcn.00404190
inc dword [0x412af8]
push dword [0x412504]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
mov edx, dword [0x412568]
push dword [0x412af8]
call fcn.0040e5d0
lea eax, [esp + 0x14]
push eax
call fcn.0040e520
push dword [esp + 0x10]
call sub.SHLWAPI.DLL_PathAddBackslashA
push dword [esp + 0x10]
push dword [0x4125f0]
call fcn.00407572
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
mov eax, dword [0x4124ec]
cdq
push edx
push eax
call fcn.004048a0
inc dword [0x412af8]
push dword [0x4125a8]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
push dword [esp + 8]
push dword [0x412550]
call fcn.00407572
xor eax, eax
push dword [esp + 0xc]
call fcn.0040e630
push dword [esp + 4]
call fcn.0040e630
push dword [esp + 8]
call fcn.0040e630
push dword [esp + 0x10]
call fcn.0040e630
add esp, 0x14
ret
Function at 0x40393d
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x41259c]
cmp ebx, 1
jne 0x4039fa
push dword [0x412608]
call fcn.00408d4b
mov ebx, eax
and ebx, ebx
jle 0x4039a1
push dword [0x412608]
call fcn.00408d55
push dword [0x412608]
call fcn.00408d6a
or eax, eax
je 0x4039a1
mov ebp, dword [0x41260c]
push dword [ebp + 8]
call fcn.0040d090
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x40399f
mov ebp, dword [0x41260c]
push dword [ebp + 8]
call fcn.0040b996
jmp 0x40396d
push dword [0x412610]
call fcn.00408d4b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x4039fa
push 5
push 0
push 1
push dword [0x412610]
call fcn.00406a00
push dword [0x412610]
call fcn.00408d55
push dword [0x412610]
call fcn.00408d6a
or eax, eax
je 0x4039fa
mov ebp, dword [0x412614]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x4039db
mov eax, 1
jmp 0x403a03
add esp, 4
pop ebx
pop ebp
ret

Function at 0x403a09
Capabilities:
Accept command line arguments
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x412574]
push 1
call fcn.0040be10
and eax, eax
je 0x403bae
push dword [0x412588]
push 1
call fcn.0040c070
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.0040b760
inc dword [0x412af8]
mov edx, dword [0x411320]
add dword [esp], edx
call sub.SHLWAPI.DLL_PathGetArgsA
pop dword [0x412af8]
push eax
call fcn.0040b760
inc dword [0x412af8]
push dword [0x4125bc]
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412af8]
push dword [0x412570]
push 1
call fcn.0040c070
mov ebx, dword [0x4124e4]
cmp ebx, 1
jne 0x403ba2
push dword [0x412af8]
push dword [0x412af8]
mov ebp, 0x411125
mov ebx, ebp
mov ebp, 0x411078
sub ebx, ebp
push ebx
mov ebp, 0x411078
push ebp
call fcn.0040b6f0
lea eax, [esp + 4]
push eax
call fcn.0040e520
push dword [esp]
call fcn.00404300
mov dword [esp + 4], eax
push dword [esp + 4]
call fcn.0040b6b0
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.0040b6b0
mov dword [esp + 0xc], eax
push dword [esp]
push dword [esp + 0xc]
call fcn.0040b8d0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jl 0x403b67
mov ebx, dword [esp + 8]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040b6d0
mov ebx, eax
imul ebx, ebx, 0xffffffff
push ebx
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040b6e0
inc dword [esp + 0x10]
jno 0x403b33
push dword [0x412af8]
push dword [0x412af8]
push dword [0x412af8]
push dword [esp + 0x18]
call fcn.0040b760
inc dword [0x412af8]
push 1
mov edx, dword [0x411320]
add dword [esp + 4], edx
call fcn.0040c070
pop dword [0x412af8]
push 1
call fcn.0040bbf0
jmp 0x403be9
push dword [0x412574]
call fcn.0040b996
call fcn.0040393d
push 0x10
push dword [0x41257c]
push dword [0x4125dc]
call fcn.004070d0
push dword [0x4125d8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 1
jmp 0x401dde
xor eax, eax
push dword [esp]
call fcn.0040e630
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40731d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40736c
push dword [esp + 0x10]
push 0x40729b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x412620]
cmp esi, ebx
je 0x4073c0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x407364
cmp byte [esi + 0x10], bl
je 0x407364
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x407341
jmp 0x4073c0
mov esi, dword [0x412620]
cmp esi, ebx
je 0x4073c0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4073b9
cmp byte [esi + 0x11], bl
je 0x407396
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4073ac
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x412620
call fcn.0040e14d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x407377
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x407bf5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x407c26
cmp byte [eax], 0
je 0x407c26
push eax
call fcn.0040f080
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.004081dd
pop ecx
pop ecx
mov esi, eax
jmp 0x407c38
cmp dword [edi + 8], esi
je 0x407d28
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x407d28
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
je 0x407c61
push dword [esi]
push 0
push dword [0x4124c8]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x407d27
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x407d27
jg 0x407c82
cmp eax, dword [esi]
jb 0x407d27
push 0
push 0
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x407cc7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x407cc7
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, ecx
cdq
cmp dword [esi], eax
jne 0x407d27
cmp dword [esi + 4], edx
jne 0x407d27
mov dword [ebp - 4], ecx
jmp 0x407d27
push dword [esi + 8]
push 0
push dword [0x4124c8]
call ebx
mov ebx, eax
test ebx, ebx
je 0x407d27
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
cdq
cmp dword [esi + 8], eax
jne 0x407d18
cmp dword [esi + 0xc], edx
jne 0x407d18
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00408341
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x407d18
cmp edx, dword [esi + 4]
jne 0x407d18
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x4124c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x407d5b
cmp dword [ebp - 4], 0xffffffff
jne 0x407d51
cmp dword [ebp + 8], edi
je 0x407d4c
push dword [ebp + 8]
push edi
push dword [0x4124c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x407d5b
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop edi
pop esi
je 0x407d6f
cmp byte [eax], 0
je 0x407d6f
push eax
call fcn.0040f130
mov eax, dword [ebp - 4]
leave
ret
Function at 0x407e25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.0040f080
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x4124c8]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x407f13
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.004083a9
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x407e80
cmp ebx, esi
jge 0x407e80
mov dword [ebp + 0xc], edi
jmp 0x407e88
mov eax, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [ebp - 0x1c], eax
pop ecx
mov dword [ebp - 0x18], edx
mov eax, ebx
cdq
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
mov dword [ebp - 0x10], edx
call esi
cmp dword [ebp - 4], 0x12
jne 0x407efb
push 0
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [edi]
call esi
movsx eax, word [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x407efb
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
cmp ebx, dword [ebp - 4]
jne 0x407efb
mov dword [ebp - 8], 1
push edi
call fcn.00408035
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x4124c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0x14]
call fcn.0040f130
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10