joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [0x4194ec], eax
mov eax, dword [0x4194ec]
mov dword [0x419500], eax
mov dword [0x4194e8], 0
mov dword [0x419508], 0
mov dword [0x4194f8], 0
mov dword [0x419504], 0
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0040940f
push 0x105
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4193e0
lea eax, [ebp - 0x218]
push eax
call fcn.00408d66
push 0x4193e0
call fcn.004093ce
call fcn.0040217a
call fcn.00402008
push dword [ebp + 0x10]
call fcn.004014fb
add esp, 4
call fcn.0040245f
test eax, eax
jne 0x4010be
lea eax, [ebp - 0x110]
push eax
call fcn.004093ce
call fcn.00402125
xor eax, eax
jmp 0x4011bd
cmp dword [0x419624], 0
je 0x40111d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.00401c62
add esp, 4
test eax, eax
jne 0x4010ff
call fcn.00402125
lea eax, [ebp - 0x110]
push eax
call fcn.004093ce
xor eax, eax
jmp 0x4011bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7d0
jae 0x401118
jmp 0x4010ff
call fcn.00401c04
call fcn.00401420
test eax, eax
jne 0x401142
call fcn.00402125
lea eax, [ebp - 0x110]
push eax
call fcn.004093ce
xor eax, eax
jmp 0x4011bd
cmp dword [0x41961c], 0
jne 0x401181
cmp dword [0x419618], 0
jne 0x401181
cmp dword [0x419620], 0
jne 0x401181
call fcn.00402125
lea eax, [ebp - 0x110]
push eax
call fcn.004093ce
xor eax, eax
jmp 0x4011bd
push dword [0x4193d8]
push dword [0x4194fc]
call fcn.004108c6
call fcn.00401316
mov dword [ebp - 4], eax
call fcn.004109d2
call fcn.004014c5
call fcn.00402125
lea eax, [ebp - 0x110]
push eax
call fcn.004093ce
mov eax, dword [ebp - 4]
jmp 0x4011bd
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401c04
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push dword [0x41b004]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x41b004]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x41b008], 0
je 0x401c3d
push dword [0x41b008]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x41b00c], 0
je 0x401c56
push dword [0x41b00c]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
jmp 0x401c5d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c62
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [0x41b00c], 0
push 0x1d4c
push dword [0x4194ec]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x41b008], eax
cmp dword [0x41b008], 0
jne 0x401cd2
push 0x41b00c
call fcn.0040221a
add esp, 4
mov dword [0x41b008], eax
cmp dword [0x41b008], 0
jne 0x401cd2
push 0x10
push str.Error
push str.Unable_to_locate_process_internal_binary_resource.__Please_contact_your_software_vendor.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401e09
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 0x401e0e
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [0x4194ec]
mov dword [ebp - 0x18], eax
push 0x3e8
push dword [0x4194ec]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x41b030
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x401d4b
xor eax, eax
jmp 0x401e09
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [0x41b008]
call dword [sym.imp.GDI32.dll_GetObjectA]
add dword [ebp - 0x3c], 2
add dword [ebp - 0x38], 2
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x48], eax
push 0
push dword [0x4194ec]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push 0x80800000
push str.DeIsAbtWinName
push str.DeIsAbtClsName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x401dce
xor eax, eax
jmp 0x401e09
mov eax, dword [ebp - 0x4c]
mov dword [0x41b004], eax
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
jmp 0x401e09
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40221a
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 4], 0
call fcn.0040275f
test eax, eax
je 0x402264
push 0x3e8
push 0x3e9
push dword [0x4194ec]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
jmp 0x402280
push 0x3e8
push 0x3e8
push dword [0x4194ec]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x402294
xor eax, eax
jmp 0x40245a
push dword [ebp - 0x9c]
push dword [0x4194ec]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c0], eax
push dword [ebp - 0x9c]
push dword [0x4194ec]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4022de
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x40245a
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 4]
add eax, 0x64
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x402319
xor eax, eax
jmp 0x40245a
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1bc], 0
jmp 0x40233d
inc dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1bc]
cmp dword [ebp - 4], eax
jle 0x40236c
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x98]
mov al, byte [eax + ecx]
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x402337
push 1
push 0xaf325de9
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040d79d
push 0x105
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x1b4]
push eax
call fcn.00408e4a
push str._bmp23_.bm_
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1001
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x1b8], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll__hwrite]
push dword [ebp - 0x1b8]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00411a99
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040665b
cmp dword [ebp - 0xc], 0
je 0x402444
xor eax, eax
jmp 0x40245a
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xac]
jmp 0x40245a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.00408e4a
mov dword [ebp - 4], 1
push dword [ebp - 4]
push 0x41b200
lea eax, [ebp - 0x10c]
push eax
push 0x41b208
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 8]
call fcn.00407cde
test eax, eax
je 0x40362c
inc dword [ebp - 4]
push dword [ebp - 4]
push str._detmp
lea eax, [ebp - 0x10c]
push eax
push 0x41b218
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4035f4
mov eax, 1
jmp 0x403636
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403867
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
push 0xb
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
call fcn.0040bc65
movsx eax, byte [ebp - 0x108]
test eax, eax
jne 0x40389d
xor eax, eax
jmp 0x4039ae
push dword [ebp + 8]
call fcn.0040363b
add esp, 4
cmp dword [0x4194f0], 0
je 0x4038cc
push 0x41b248
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4038de
push 0x41b280
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.00408e4a
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x105
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x318]
push eax
call fcn.00408e4a
push str.uninst.exe
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41b2c4
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x135
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
push 1
push str.UninstallString
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call fcn.0040e8a5
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp + 8]
add eax, 0x23a
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call fcn.0040e8a5
mov eax, 1
jmp 0x4039ae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c89
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x2c], 1
cmp dword [0x41b158], 0
je 0x403cb2
mov dword [ebp - 0x2c], 1
jmp 0x403df5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403e02
add esp, 8
test eax, eax
je 0x403cd6
mov dword [ebp - 0x2c], 7
jmp 0x403df5
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x403d33
mov dword [ebp - 0x2c], 2
jmp 0x403df5
mov dword [ebp - 0x2c], 2
jmp 0x403df5
mov dword [ebp - 0x2c], 4
jmp 0x403df5
mov dword [ebp - 0x2c], 3
jmp 0x403df5
mov dword [ebp - 0x2c], 5
jmp 0x403df5
cmp dword [ebp - 0x34], 0x1e6
ja 0x403d58
je 0x403cf2
cmp dword [ebp - 0x34], 0x182
je 0x403cf2
jmp 0x403df5
cmp dword [ebp - 0x34], 0x259
ja 0x403d7d
je 0x403d22
cmp dword [ebp - 0x34], 0x24a
je 0x403cf2
jmp 0x403df5
cmp dword [ebp - 0x34], 0x26c
ja 0x403daf
je 0x403d22
cmp dword [ebp - 0x34], 0x25b
jb 0x403df5
cmp dword [ebp - 0x34], 0x25c
jbe 0x403d22
jmp 0x403df5
cmp dword [ebp - 0x34], 0x35c
je 0x403cfe
cmp dword [ebp - 0x34], 0x7d0
je 0x403d0a
cmp dword [ebp - 0x34], 0xbb8
je 0x403d0a
cmp dword [ebp - 0x34], 0xfa0
je 0x403d0a
cmp dword [ebp - 0x34], 0x5248
je 0x403d16
jmp 0x403df5
mov eax, dword [ebp - 0x2c]
jmp 0x403dfd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
push 0x105
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.WIN32S.INI
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040abc0
lea eax, [ebp - 0x108]
push eax
call fcn.00407cde
test eax, eax
jne 0x403e65
xor eax, eax
jmp 0x403ee8
push str.W32SYS.DLL
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040abc0
lea eax, [ebp - 0x108]
push eax
call fcn.00407cde
test eax, eax
jne 0x403e98
xor eax, eax
jmp 0x403ee8
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10c], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x10c], 0x20
jae 0x403ed2
xor eax, eax
jmp 0x403ee8
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x403ee8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40532f
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
push 0x4191c0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push eax
push str.Programs
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call fcn.0040ea0e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40538b
push 0x105
push 0x4191c0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push 0x4191c0
call fcn.0040ab93
push dword [ebp + 8]
call fcn.00409ffc
test eax, eax
jne 0x4053c9
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x4053c9
push dword [ebp + 8]
push 0x4191c0
push dword [ebp + 0x10]
call fcn.0040abc0
push 1
push dword [ebp + 0x10]
call fcn.00408e4a
jmp 0x4053df
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0x10]
call fcn.00408e4a
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.0040abc0
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0xc]
call fcn.0040a2b3
push 0x41b4a4
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405424
push str..lnk
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x40542e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40850d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408537
xor eax, eax
jmp 0x408549
shl dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x408549
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40874b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40876f
mov eax, 0xffffffff
jmp 0x408870
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4087d6
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.00405d0f
mov dword [ebp - 0xc], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc], 0xffffffff
je 0x4087cc
push dword [ebp - 0xc]
call fcn.004063ae
mov eax, 0xfffffff8
jmp 0x408870
mov eax, 0xfffffffe
jmp 0x408870
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x7ffe
call fcn.00413140
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4087fc
mov eax, 0xffffffff
jmp 0x408870
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40881f
mov eax, 0xffffffff
jmp 0x408870
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x41b700
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x408846
mov eax, 0xffffffff
jmp 0x408870
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x18]
push 0x7ffe
call fcn.00412d00
xor eax, eax
jmp 0x408870
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call fcn.0040a0c0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4088c0
xor eax, eax
jmp 0x4088c8
mov eax, dword [ebp - 4]
jmp 0x4088c8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4088cf
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a0c0
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40890c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40912d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push eax
call fcn.0040a0c0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x409176
xor eax, eax
jmp 0x409187
mov eax, dword [ebp - 8]
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x409187
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a51b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x254]
push eax
call fcn.00408e4a
push 0x41b720
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40a58b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40a611
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x40a5fe
test byte [ebp - 0x14c], 0x10
je 0x40a5c5
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x40a5c5
mov dword [ebp - 8], 1
jmp 0x40a5cc
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x40a5e6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40a611
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], eax
jmp 0x40a592
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40a611
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x40adc0
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x40adc0
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x40adc0
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a0c0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40adf0
mov eax, 0xffffffff
jmp 0x40adff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40adff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae69
cmp dword [0x41b704], 0
je 0x40ae69
push dword [ebp + 8]
call dword [0x41b704]
cmp dword [ebp - 4], 0
jne 0x40ae7d
mov eax, 1
jmp 0x40ae7f
xor eax, eax
jmp 0x40ae84
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e8a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
jmp 0x40e925
push dword [ebp + 0x1c]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x808]
push eax
call fcn.00415ff0
add esp, 4
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 8], eax
mov dword [ebp + 0x18], 4
jmp 0x40e944
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 1
je 0x40e913
cmp dword [ebp + 0x14], 2
jne 0x40e920
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
jmp 0x40e944
cmp dword [ebp - 0x814], 4
jl 0x40e8f9
cmp dword [ebp - 0x814], 5
jle 0x40e8bf
jmp 0x40e8f9
cmp dword [ebp + 0x18], 0xffffffff
jne 0x40e95b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e548
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x40e9a3
push 0x41b880
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e350
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x40e9a3
xor eax, eax
jmp 0x40ea07
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e9dd
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40ea07
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e9fd
xor eax, eax
jmp 0x40ea07
mov eax, 1
jmp 0x40ea07
pop edi
pop esi
pop ebx
leave
ret 0x18