joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffdac
push esi
push edi
mov eax, 0x4d84bc
call fcn.004b9d54
push 0xbb8
call sub.KERNEL32.DLL_Sleep
mov byte [ebp - 0x25], 1
mov byte [ebp - 0x25], 0
lea edx, [ebp - 0x2c]
push edx
push 0x1000
lea ecx, [ebp - 0x104c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x421318
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x421473
mov ecx, dword [ebp - 0x2c]
shr ecx, 2
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x421451
mov edx, dword [ebp - 0x34]
cmp dword [ebp + edx*4 - 0x104c], 0
je 0x42144e
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + ecx*4 - 0x104c]
mov dword [ebp - 0x38], eax
mov esi, 0x4d6b30
lea edi, [ebp - 0x1254]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 0xc
push dword [ebp - 0x38]
push 0
push 0x1fffff
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x42144e
lea eax, [ebp - 0x44]
push eax
push 4
lea edx, [ebp - 0x40]
push edx
push dword [ebp - 0x3c]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4213aa
push 0x104
lea ecx, [ebp - 0x1254]
push ecx
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call sub.PSAPI.DLL_GetModuleBaseNameW
push 3
push 0x4d7d70
lea eax, [ebp - 0x1254]
push eax
call fcn.004b9d28
add esp, 0xc
test eax, eax
jne 0x4213de
push 4
push str..tmp
lea edx, [ebp - 0x1246]
push edx
call fcn.004b9d28
add esp, 0xc
test eax, eax
je 0x4213e2
xor ecx, ecx
jmp 0x4213e7
mov ecx, 1
mov byte [ebp - 0x45], cl
cmp byte [ebp - 0x45], 0
jne 0x4213fa
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x42144e
mov byte [ebp - 0x25], 1
push 0x2bf20
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x4c], 0x102
jne 0x421448
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x421473
mov word [ebp - 0x14], 0
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jb 0x42132b
cmp byte [ebp - 0x25], 0
jne 0x4212ea
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42147c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push 0x114
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.004b9850
add esp, 0xc
mov dword [ebp - 0x114], 0x114
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.DLL_GetVersionExW
cmp dword [ebp - 0x110], 5
jbe 0x4214c1
mov eax, 1
jmp 0x4214c6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4214cc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
call fcn.0042147c
test eax, eax
jne 0x4214df
xor eax, eax
jmp 0x421533
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4214f7
xor eax, eax
jmp 0x421533
push 0xf01ff
push 0x4d7db2
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x421526
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_StartServiceW
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x421538
Capabilities:
Print debug messages
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
call fcn.0042147c
test eax, eax
jne 0x42154e
xor eax, eax
jmp 0x4216b4
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421569
xor eax, eax
jmp 0x4216b4
push 0xf01ff
push str.PcaSvc
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x42159a
lea ecx, [ebp - 0x2c]
push ecx
push 1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ControlService
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x421672
lea edx, [ebp - 0x2c]
push edx
push 4
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ControlService
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x20
ja case.0x4215c7.0
mov cl, byte [ecx + 0x4215ce]
jmp dword [ecx*4 + 0x4215ef]
push str.CONTINUE_PENDING
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.PAUSE_PENDING
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.PAUSED
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.RUNNING
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.START_PENDING
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.STOP_PENDING
call sub.KERNEL32.DLL_OutputDebugStringW
jmp case.0x4215c7.0
push str.STOP
call sub.KERNEL32.DLL_OutputDebugStringW
push 0x1f4
call sub.KERNEL32.DLL_Sleep
add dword [ebp - 0x10], 0x1f4
cmp dword [ebp - 0x28], 1
je 0x421685
cmp dword [ebp - 0x10], 0x7d0
jl 0x4215a4
push str.Finish_STOP
call sub.KERNEL32.DLL_OutputDebugStringW
push 0x1f4
call sub.KERNEL32.DLL_Sleep
cmp dword [ebp - 8], 0
je 0x4216a7
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4217f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
mov eax, 0x4d857c
call fcn.004b9d54
push dword [ebp + 8]
call fcn.00421538
pop ecx
push 0x3c
push 0
lea edx, [ebp - 0xb8]
push edx
call fcn.004b9850
add esp, 0xc
mov dword [ebp - 0xb8], 0x3c
mov dword [ebp - 0xb4], 0x40
mov dword [ebp - 0xac], 0x4d7e82
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], ecx
mov word [ebp - 0x64], 0x18
push str._s__f2_
lea eax, [ebp - 0x28]
push eax
call fcn.00402448
add esp, 8
inc dword [ebp - 0x58]
mov word [ebp - 0x64], 0xc
mov word [ebp - 0x64], 0x24
lea edx, [ebp - 0x50]
push edx
call fcn.00421950
pop ecx
lea ecx, [ebp - 0x50]
push ecx
inc dword [ebp - 0x58]
lea eax, [ebp - 0x28]
push eax
call fcn.00407404
add esp, 8
dec dword [ebp - 0x58]
push 2
lea edx, [ebp - 0x50]
push edx
call fcn.00402370
add esp, 8
push 0x4d7e9c
lea ecx, [ebp - 0x28]
push ecx
call fcn.00407380
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00402628
pop ecx
mov dword [ebp - 0xa4], eax
xor edx, edx
mov dword [ebp - 0x9c], edx
lea ecx, [ebp - 0xb8]
push ecx
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [ebp - 0x78], eax
mov word [ebp - 0x64], 0xc
cmp dword [ebp - 0x78], 0
jne 0x4218fd
push 0x14c
push 0x4d7eae
push 0x4d7ea0
call fcn.004c3638
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 0x80]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x421927
push 0x14f
push 0x4d7ed6
push 0x4d7ebf
call fcn.004c3638
add esp, 0xc
push dword [ebp + 8]
call fcn.004212c0
pop ecx
dec dword [ebp - 0x58]
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.00402370
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x421950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
mov eax, 0x4d85ec
call fcn.004b9d54
cmp byte [0x4d6d39], 0
jne 0x421989
mov word [ebp - 0x18], 0x18
push 0x4e376c
call fcn.00402324
pop ecx
inc dword [ebp - 0xc]
dec dword [ebp - 0xc]
inc byte [0x4d6d39]
cmp byte [0x4d6d38], 0
jne 0x421a3b
push 1
push 0x23
lea edx, [ebp - 0x230]
push edx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
lea ecx, [ebp - 0x230]
push ecx
call sub.SHLWAPI.DLL_PathAddBackslashW
lea eax, [ebp - 0x230]
push eax
push 0x4e376c
call fcn.0040bdfc
add esp, 8
push 0x4d7ee8
push 0x4e376c
call fcn.00407380
add esp, 8
mov word [ebp - 0x18], 0x30
push 0x4e376c
call fcn.00402628
pop ecx
mov edx, eax
lea eax, [ebp - 4]
call fcn.004c7754
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x24
lea eax, [ebp - 4]
call fcn.004c7af8
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
push str.install.log
push 0x4e376c
call fcn.00407380
add esp, 8
mov byte [0x4d6d38], 1
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c7828
mov word [ebp - 0x18], 0
mov word [ebp - 0x18], 0x3c
push 0x4e376c
push dword [ebp + 8]
call fcn.00407538
add esp, 8
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x423a4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb7c
push esi
push edi
mov eax, 0x4d8f00
call fcn.004b9d54
push dword [ebp + 0x14]
call fcn.0040bca8
pop ecx
xor edx, edx
mov dword [ebp - 0x50], edx
mov word [ebp - 0x3c], 0x18
push dword [ebp + 0xc]
push 0x4d8209
lea ecx, [ebp - 0x28]
push ecx
call fcn.004147fc
add esp, 0xc
inc dword [ebp - 0x30]
mov word [ebp - 0x3c], 0xc
lea eax, [ebp - 0x50]
push eax
push 1
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.0040214c
pop ecx
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x423ad7
dec dword [ebp - 0x30]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401a2c
add esp, 8
mov eax, dword [ebp - 0x4c]
mov dword fs:[0], eax
jmp 0x423b9b
mov esi, 0x4d7456
lea edi, [ebp - 0x484]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x3c], 0x24
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x5c], 0x400
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x58]
push ecx
push 0
push dword [ebp + 0x10]
call fcn.0040214c
pop ecx
push eax
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x423b46
dec dword [ebp - 0x30]
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.00401a2c
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x423b9b
cmp dword [ebp - 0x5c], 0x400
jb 0x423b66
push 0x316
push 0x4d823b
push str.dwOutSize___MAX_BUFFER
call fcn.004c3638
add esp, 0xc
push dword [ebp - 0x50]
call sub.ADVAPI32.DLL_RegCloseKey
lea ecx, [ebp - 0x484]
push ecx
push dword [ebp + 0x14]
call fcn.0040286c
add esp, 8
dec dword [ebp - 0x30]
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.00401a2c
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424030
Capabilities:
Copy file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff9f8
push esi
push edi
mov eax, 0x4d907c
call fcn.004b9d54
mov word [ebp - 0x108], 0x18
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x1388]
push edx
call fcn.00423d24
add esp, 0xc
lea ecx, [ebp - 0x1388]
add ecx, 0xe54
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0042429c
add esp, 8
inc dword [ebp - 0xfc]
mov word [ebp - 0x108], 0xc
mov word [ebp - 0x108], 0x24
push str.Setup.ini
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00407418
add esp, 8
lea eax, [ebp - 0xa0]
push eax
inc dword [ebp - 0xfc]
lea edx, [ebp - 0x50]
push edx
call fcn.00420114
add esp, 0xc
inc dword [ebp - 0xfc]
dec dword [ebp - 0xfc]
push 2
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00402370
add esp, 8
mov word [ebp - 0x108], 0xc
mov word [ebp - 0x108], 0x30
push str.InstallShield_Installation_InformationE6931688_DA2B_4E16_8539_3D323D69C677_setup.ini
lea eax, [ebp - 0x78]
push eax
call fcn.00402448
add esp, 8
inc dword [ebp - 0xfc]
mov word [ebp - 0x108], 0xc
mov word [ebp - 0x108], 0x3c
lea edx, [ebp - 0x50]
push edx
call fcn.00402628
pop ecx
mov edx, eax
lea eax, [ebp - 0xa4]
call fcn.004c7754
inc dword [ebp - 0xfc]
mov eax, dword [eax]
call fcn.00445364
push eax
dec dword [ebp - 0xfc]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.004c7828
pop ecx
test cl, cl
je 0x42424b
mov esi, 0x4d7856
lea edi, [ebp - 0x15e0]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x108], 0x48
push 0
push 0x26
lea eax, [ebp - 0x15e0]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
test eax, eax
jl 0x424242
mov word [ebp - 0x108], 0x60
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x15e0]
push ecx
lea eax, [ebp - 0xf4]
push eax
call fcn.00424304
add esp, 8
lea edx, [ebp - 0xf4]
push edx
inc dword [ebp - 0xfc]
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0042018c
add esp, 0xc
inc dword [ebp - 0xfc]
dec dword [ebp - 0xfc]
push 2
lea eax, [ebp - 0xf4]
push eax
call fcn.00402370
add esp, 8
mov word [ebp - 0x108], 0x54
push 0
lea edx, [ebp - 0xcc]
push edx
call fcn.00402628
pop ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00402628
pop ecx
push eax
call sub.KERNEL32.DLL_CopyFileW
dec dword [ebp - 0xfc]
push 2
lea eax, [ebp - 0xcc]
push eax
call fcn.00402370
add esp, 8
mov word [ebp - 0x108], 0x48
mov word [ebp - 0x108], 0xc
dec dword [ebp - 0xfc]
push 2
lea edx, [ebp - 0x78]
push edx
call fcn.00402370
add esp, 8
dec dword [ebp - 0xfc]
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.00402370
add esp, 8
dec dword [ebp - 0xfc]
push 2
lea eax, [ebp - 0x28]
push eax
call fcn.00402370
add esp, 8
mov edx, dword [ebp - 0x118]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424c54
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegDeleteKeyA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x424c7b
mov eax, 1
jmp 0x424da6
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x424cc9
cmp dword [ebp - 8], 2
jne 0x424cb7
push str.Key_not_found._n
call fcn.004bc950
pop ecx
mov eax, 1
jmp 0x424da6
push str.Error_opening_key._n
call fcn.004bc950
pop ecx
xor eax, eax
jmp 0x424da6
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_lstrlenA
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
movsx ecx, byte [edx - 1]
cmp ecx, 0x5c
je 0x424cf2
mov eax, dword [ebp - 4]
mov byte [eax], 0x5c
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov dword [ebp - 0xc], 0x104
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x11c]
push edx
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x424d78
lea ecx, [ebp - 0x11c]
push ecx
push 0x208
push dword [ebp - 4]
call fcn.00424dac
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424c54
add esp, 8
test eax, eax
jne 0x424d49
jmp 0x424d78
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x11c]
push ecx
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x424d21
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov byte [eax], 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegDeleteKeyA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x424da4
mov eax, 1
jmp 0x424da6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x426f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov eax, 0x4da25c
call fcn.004b9d54
cmp dword [ebp + 8], 0
je 0x426fea
mov edx, dword [ebp + 8]
cmp byte [edx], 0
je 0x426fea
mov word [ebp - 0x18], 0xc
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.004c76a8
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004453ac
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c7828
pop ecx
test ecx, ecx
je 0x426ffb
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4270a7
push dword [ebp + 8]
call fcn.004b9a10
pop ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 5
push ecx
call fcn.004b4eec
pop ecx
mov dword [ebp - 0x30], eax
push dword [ebp + 8]
push dword [ebp - 0x30]
call fcn.004b99d8
add esp, 8
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov byte [edx + eax], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov byte [eax + ecx + 1], 0
push dword [ebp - 0x30]
call sub.SHLWAPI.DLL_PathRemoveBackslashA
mov word [ebp - 0x44], 0x414
xor edx, edx
mov dword [ebp - 0x3e], edx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
xor eax, eax
mov dword [ebp - 0x3a], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], 3
lea eax, [ebp - 0x54]
push eax
call sub.SHELL32.DLL_SHFileOperationA
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call fcn.004aefd0
pop ecx
cmp dword [ebp - 0x42], 0
jne 0x42709b
cmp dword [ebp - 0x34], 0
jne 0x42709b
mov eax, 1
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4270a7
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4270ac
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
mov eax, 0x4da284
call fcn.004b9d54
mov edx, 0x4d9ced
cmp edx, dword [ebp + 8]
jne 0x4270da
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42725a
mov word [ebp - 0x18], 0xc
lea eax, [ebp - 4]
mov edx, dword [ebp + 0xc]
call fcn.004c76a8
inc dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004453ac
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c7828
pop ecx
test cl, cl
je 0x427120
push 0
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_CreateDirectoryA
push 0
lea eax, [ebp - 0x130]
push eax
push 0x104
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x42714e
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42725a
push 0x4d9cee
lea ecx, [ebp - 0x130]
push ecx
call fcn.004b98f8
add esp, 8
lea eax, [ebp - 0x130]
push eax
call fcn.004b9a10
pop ecx
mov byte [ebp + eax - 0x130], 0
lea edx, [ebp - 0x130]
push edx
call fcn.004b9a10
pop ecx
mov byte [ebp + eax - 0x12f], 0
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0x104
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x102
jbe 0x4271ba
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42725a
lea ecx, [ebp - 0x234]
push ecx
call fcn.004b9a10
pop ecx
mov byte [ebp + eax - 0x234], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004b9a10
pop ecx
mov byte [ebp + eax - 0x233], 0
xor edx, edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], 2
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x24c], ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x248], eax
mov word [ebp - 0x244], 0x614
xor edx, edx
mov dword [ebp - 0x23a], edx
lea ecx, [ebp - 0x254]
push ecx
call sub.SHELL32.DLL_SHFileOperationA
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x242], 0
jne 0x42724e
cmp dword [ebp - 0x2c], 0
jne 0x42724e
mov eax, 1
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42725a
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x42a0a8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
mov eax, 0x4db840
call fcn.004b9d54
mov word [ebp - 0xb4], 0xc
lea edx, [ebp - 0x28]
push edx
call fcn.004018ec
pop ecx
inc dword [ebp - 0xa8]
mov word [ebp - 0xb4], 0x18
mov word [ebp - 0xb4], 0x24
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
push ecx
call fcn.0042a380
add esp, 8
lea eax, [ebp - 0x50]
push eax
inc dword [ebp - 0xa8]
lea edx, [ebp - 0x28]
push edx
call fcn.00401ad0
add esp, 8
dec dword [ebp - 0xa8]
push 2
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401a2c
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.0040214c
pop ecx
push eax
call fcn.00426f90
pop ecx
push 0x64
call sub.KERNEL32.DLL_Sleep
mov word [ebp - 0xb4], 0x30
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401c54
add esp, 8
lea eax, [ebp - 0x78]
push eax
inc dword [ebp - 0xa8]
lea edx, [ebp - 0xa0]
push edx
call fcn.0042a1f8
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
inc dword [ebp - 0xa8]
lea eax, [ebp - 0x28]
push eax
call fcn.00401ad0
add esp, 8
dec dword [ebp - 0xa8]
push 2
lea edx, [ebp - 0xa0]
push edx
call fcn.00401a2c
add esp, 8
dec dword [ebp - 0xa8]
push 2
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401a2c
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.0040214c
pop ecx
push eax
call sub.SHLWAPI.DLL_PathIsDirectoryEmptyA
test eax, eax
je 0x42a1d1
lea edx, [ebp - 0x28]
push edx
call fcn.0040214c
pop ecx
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
dec dword [ebp - 0xa8]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401a2c
add esp, 8
mov eax, dword [ebp - 0xc4]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret

Function at 0x42a278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
mov eax, 0x4db8cc
call fcn.004b9d54
push 0
push 0x17
lea edx, [ebp - 0x150]
push edx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
test eax, eax
jge 0x42a2e3
push 0x49
push str.ShortCut.cpp
push 0x4db5ec
call fcn.004c3638
add esp, 0xc
mov word [ebp - 0x3c], 0xc
push 0x4db5fb
push dword [ebp + 8]
call fcn.00401bdc
add esp, 8
inc dword [ebp - 0x30]
mov eax, dword [ebp + 8]
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x42a379
lea ecx, [ebp - 0x150]
push ecx
call sub.SHLWAPI.DLL_PathAddBackslashA
mov word [ebp - 0x3c], 0x24
lea eax, [ebp - 0x150]
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00401bdc
add esp, 8
inc dword [ebp - 0x30]
mov word [ebp - 0x3c], 0x18
push str.ASUS_
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402838
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.0040214c
pop ecx
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
mov word [ebp - 0x3c], 0x30
lea edx, [ebp - 0x28]
push edx
push dword [ebp + 8]
call fcn.004027cc
add esp, 8
inc dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov word [ebp - 0x3c], 0x3c
push eax
dec dword [ebp - 0x30]
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.00401a2c
add esp, 8
pop eax
mov word [ebp - 0x3c], 0x30
inc dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret