joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5626f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5fb490]
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.0055577e
mov dword [ebp - 0x14], eax
cmp dword [0x608aa8], esi
jne 0x5627e8
push 0x800
push esi
push 0x5c8e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x562775
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5628c8
push esi
push esi
push 0x5c8e50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5628c8
push 0x5c8e68
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5628c8
push eax
call ebx
push 0x5c8e74
push edi
mov dword [0x608aa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c8e84
push edi
mov dword [0x608aac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c8e98
push edi
mov dword [0x608ab0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x608ab8], eax
test eax, eax
je 0x5627e5
push 0x5c8eb4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x608ab4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x56280d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x562800
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x562822
push 4
pop eax
jmp 0x5628ca
cmp dword [ebp - 0x14], esi
je 0x562822
push dword [0x608aa8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x562807
mov eax, dword [0x608ab4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x562880
cmp dword [0x608ab8], edi
je 0x562880
push eax
call ebx
push dword [0x608ab8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x562880
test eax, eax
je 0x562880
call ecx
test eax, eax
je 0x562875
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 0x562875
test byte [ebp - 8], 1
jne 0x562880
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5628b0
mov eax, dword [0x608aac]
cmp eax, edi
je 0x5628ad
push eax
call ebx
test eax, eax
je 0x5628ad
call eax
mov esi, eax
test esi, esi
je 0x5628ad
mov eax, dword [0x608ab0]
cmp eax, edi
je 0x5628ad
push eax
call ebx
test eax, eax
je 0x5628ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x608aa8]
call ebx
test eax, eax
je 0x5628c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5628ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054b0f5
mov esp, ebp
pop ebp
ret
Function at 0x571cf4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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 [0x4232a0], eax
mov eax, dword [0x4232a0]
mov dword [0x4232b0], eax
mov dword [0x423298], 0
mov dword [0x4232b8], 0
mov dword [0x423180], 0
mov dword [0x4232b4], 0
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0040b9b6
push 0x105
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
push 0x423190
lea eax, [ebp - 0x218]
push eax
call fcn.0040b314
push 0x423190
call fcn.0040b975
call fcn.004022a3
call fcn.00402117
push dword [ebp + 0x10]
call fcn.0040152c
add esp, 4
call fcn.004025a4
test eax, eax
jne 0x4010d2
lea eax, [ebp - 0x110]
push eax
call fcn.0040b975
call fcn.00402241
xor eax, eax
jmp 0x4011ee
cmp dword [0x4235dc], 0
je 0x401131
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.00401d71
add esp, 4
test eax, eax
jne 0x401113
call fcn.00402241
lea eax, [ebp - 0x110]
push eax
call fcn.0040b975
xor eax, eax
jmp 0x4011ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7d0
jae 0x40112c
jmp 0x401113
call fcn.00401d13
call fcn.00401451
test eax, eax
jne 0x401156
call fcn.00402241
lea eax, [ebp - 0x110]
push eax
call fcn.0040b975
xor eax, eax
jmp 0x4011ee
cmp dword [0x4235d4], 0
jne 0x401195
cmp dword [0x4235d0], 0
jne 0x401195
cmp dword [0x4235d8], 0
jne 0x401195
call fcn.00402241
lea eax, [ebp - 0x110]
push eax
call fcn.0040b975
xor eax, eax
jmp 0x4011ee
cmp dword [0x42329c], 0
jne 0x4011b3
push dword [0x423184]
push dword [0x4232ac]
call fcn.004137e8
call fcn.00402a07
call fcn.00401347
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00402a8b
add esp, 4
call fcn.004138f4
call fcn.004014f6
call fcn.00402241
lea eax, [ebp - 0x110]
push eax
call fcn.0040b975
mov eax, dword [ebp - 4]
jmp 0x4011ee
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401d13
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push dword [0x421034]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x421034]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x421038], 0
je 0x401d4c
push dword [0x421038]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x42103c], 0
je 0x401d65
push dword [0x42103c]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
jmp 0x401d6c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d71
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [0x42103c], 0
push 0x1d4c
push dword [0x4232a0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [0x421038], eax
cmp dword [0x421038], 0
jne 0x401de1
push 0x42103c
call fcn.0040235f
add esp, 4
mov dword [0x421038], eax
cmp dword [0x421038], 0
jne 0x401de1
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 0x401f18
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 0x401f1d
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [0x4232a0]
mov dword [ebp - 0x18], eax
push 0x3e8
push dword [0x4232a0]
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], 0x421068
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x401e5a
xor eax, eax
jmp 0x401f18
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [0x421038]
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 [0x4232a0]
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 0x401edd
xor eax, eax
jmp 0x401f18
mov eax, dword [ebp - 0x4c]
mov dword [0x421034], 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 0x401f18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40235f
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.004028a3
test eax, eax
je 0x4023a9
push 0x3e8
push 0x3e9
push dword [0x4232a0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
jmp 0x4023c5
push 0x3e8
push 0x3e8
push dword [0x4232a0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x4023d9
xor eax, eax
jmp 0x40259f
push dword [ebp - 0x9c]
push dword [0x4232a0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c0], eax
push dword [ebp - 0x9c]
push dword [0x4232a0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402423
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x40259f
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 0x40245e
xor eax, eax
jmp 0x40259f
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1bc], 0
jmp 0x402482
inc dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1bc]
cmp dword [ebp - 4], eax
jle 0x4024b1
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 0x40247c
push 1
push 0xaf325de9
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00410616
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.0040b3f6
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.00414b0a
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00408983
cmp dword [ebp - 0xc], 0
je 0x402589
xor eax, eax
jmp 0x40259f
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xac]
jmp 0x40259f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40272d
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 [0x4232a4], 0
je 0x402756
mov dword [ebp - 0x2c], 1
jmp 0x402896
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402657
test eax, eax
je 0x402777
mov dword [ebp - 0x2c], 7
jmp 0x402896
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 0x4027d4
mov dword [ebp - 0x2c], 2
jmp 0x402896
mov dword [ebp - 0x2c], 2
jmp 0x402896
mov dword [ebp - 0x2c], 4
jmp 0x402896
mov dword [ebp - 0x2c], 3
jmp 0x402896
mov dword [ebp - 0x2c], 5
jmp 0x402896
cmp dword [ebp - 0x34], 0x1e6
ja 0x4027f9
je 0x402793
cmp dword [ebp - 0x34], 0x182
je 0x402793
jmp 0x402896
cmp dword [ebp - 0x34], 0x259
ja 0x40281e
je 0x4027c3
cmp dword [ebp - 0x34], 0x24a
je 0x402793
jmp 0x402896
cmp dword [ebp - 0x34], 0x26c
ja 0x402850
je 0x4027c3
cmp dword [ebp - 0x34], 0x25b
jb 0x402896
cmp dword [ebp - 0x34], 0x25c
jbe 0x4027c3
jmp 0x402896
cmp dword [ebp - 0x34], 0x35c
je 0x40279f
cmp dword [ebp - 0x34], 0x7d0
je 0x4027ab
cmp dword [ebp - 0x34], 0xbb8
je 0x4027ab
cmp dword [ebp - 0x34], 0xfa0
je 0x4027ab
cmp dword [ebp - 0x34], 0x5248
je 0x4027b7
jmp 0x402896
mov eax, dword [ebp - 0x2c]
jmp 0x40289e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403954
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.0040b3f6
mov dword [ebp - 4], 1
push dword [ebp - 4]
push 0x421240
lea eax, [ebp - 0x10c]
push eax
push 0x421248
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 8]
call fcn.0040a006
test eax, eax
je 0x4039df
inc dword [ebp - 4]
push dword [ebp - 4]
push str._detmp
lea eax, [ebp - 0x10c]
push eax
push 0x421258
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4039a7
mov eax, 1
jmp 0x4039e9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403e28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
test eax, eax
jne 0x403e49
xor eax, eax
jmp 0x403f59
push dword [ebp + 8]
call fcn.00403bfc
add esp, 4
push 0x421288
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b3f6
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x2a6
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [ebp - 0x418]
test eax, eax
jne 0x403f03
push 0x105
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x418]
push eax
call fcn.0040b3f6
push str.uninst.exe
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4212cc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x13d
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push 1
push str.UninstallString
lea eax, [ebp - 0x108]
push eax
push dword [0x4211e0]
call fcn.004117b0
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 8]
add eax, 0x242
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x108]
push eax
push dword [0x4211e0]
call fcn.004117b0
mov eax, 1
jmp 0x403f59
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4062dc
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.0040b3f6
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4063c8
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push pe_nt_image_headers32
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063af
jmp 0x4063c8
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40635f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4063db
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x88], 0
lea edi, [ebp - 0x87]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x190], 0
lea edi, [ebp - 0x18f]
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov dword [ebp - 0x198], 0x17
cmp dword [0x4232a4], 0
jne 0x406505
cmp dword [ebp + 0x18], 0
jne 0x40650f
mov dword [ebp - 0x198], 2
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x198]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40654c
push 0x4212f0
push dword [ebp - 0x194]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDList]
test eax, eax
jl 0x40654c
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x406575
push 0x105
push 0x4212f0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push 0x4212f0
call fcn.0040d180
push dword [ebp + 8]
call fcn.0040c5f7
test eax, eax
jne 0x4065b3
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x4065b3
push dword [ebp + 8]
push 0x4212f0
push dword [ebp + 0x10]
call fcn.0040d1ad
push 1
push dword [ebp + 0x10]
call fcn.0040b3f6
jmp 0x4065c9
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0x10]
call fcn.0040b3f6
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.0040d1ad
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
call fcn.0040c8a7
push 0x4216b0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40660e
push str..lnk
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x406618
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
cmp dword [0x423180], 0
je 0x407e27
mov eax, 1
jmp 0x407f27
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.0040b461
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 8]
call fcn.0040b314
push 0x105
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
lea eax, [ebp - 0x428]
push eax
call fcn.0040b3f6
push 1
lea eax, [ebp - 0x31c]
push eax
call fcn.0040b3f6
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407e99
mov eax, 1
jmp 0x407f27
mov dword [ebp - 0x320], 0x579
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x4232a0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407f1d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407ef1
xor eax, eax
jmp 0x407f27
inc dword [ebp - 0x320]
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x4232a0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
jmp 0x407ec4
mov eax, 1
jmp 0x407f27
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa17
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
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 0x40aa4f
xor eax, eax
jmp 0x40aa61
shl dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40aa61
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40abe1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ac26
mov eax, 0xffffffff
jmp 0x40ac36
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
jmp 0x40ac36
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ac3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ac82
mov eax, 0xffffffff
jmp 0x40ac92
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
jmp 0x40ac92
pop edi
pop esi
pop ebx
leave
ret 0xc