joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd15
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x134], ebx
call fcn.004a8c80
add esp, 0xc
cmp esi, ebx
je 0x40bde3
cmp byte [esi], bl
je 0x40bde3
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40bde5
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40bd92
mov esi, edi
call fcn.0041c426
or eax, 0xffffffff
jmp 0x40bde5
mov dword [ebp - 0x138], ebx
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x40bdb2
call fcn.004a8a6f
test eax, eax
pop ecx
pop ecx
je 0x40bdbd
jmp 0x40bdc3
call fcn.004785e7
test eax, eax
pop ecx
pop ecx
je 0x40bdc3
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bd98
mov esi, edi
call fcn.0041c426
mov eax, dword [ebp - 0x138]
jmp 0x40bde5
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x40bdf4
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004a8c80
push esi
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call fcn.004a8c80
inc esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, esi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
call fcn.00477a48
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x1c
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
push SysStringLen
call edi
test eax, eax
je 0x40be98
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x80000001
call edi
test eax, eax
je 0x40be98
xor eax, eax
jmp 0x40bf46
push str.PAULA.exe
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
push eax
push str._s_s__InitServer
lea eax, [ebp + 0x8c]
push esi
push eax
call fcn.00478fcf
lea eax, [ebp + 0x8c]
push eax
call fcn.004a7f30
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x18
inc eax
push eax
lea eax, [ebp + 0x8c]
push eax
push 1
push ebx
push str.PAULA_Server
push dword [ebp - 0x7c]
call edi
push str.PAULA_Updt.exe
push 0x4c9b18
push ebx
push ebx
mov dword [ebp - 0x80], eax
call fcn.0045ba18
pop ecx
pop ecx
push eax
push str._s_s_s__StartupLGUProc__Spawned
lea eax, [ebp + 0x8c]
push esi
push eax
call fcn.00478fcf
lea eax, [ebp + 0x8c]
push eax
call fcn.004a7f30
add esp, 0x1c
inc eax
push eax
lea eax, [ebp + 0x8c]
push eax
push 1
push ebx
push str.PAULA_Update
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
or dword [ebp - 0x80], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x80], ebx
sete al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x194
leave
ret
Function at 0x40c52c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a4]
xor ebx, ebx
push 0x207
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.004a8c80
push 0x208
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004a8c80
mov eax, dword [ebp - 0x78]
add esp, 0x18
call fcn.00477999
mov edx, edi
call fcn.00477a16
test eax, eax
je 0x40c59a
xor eax, eax
jmp 0x40c5d4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x207
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40c5c2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40c596
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
mov ecx, 0x102
call fcn.00477a48
pop ecx
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x198
leave
ret
Function at 0x40ccb7
Capabilities:
Manipulate console buffer

Disassembly:
call fcn.0040fd38
test eax, eax
je 0x40ccc4
xor eax, eax
inc eax
ret
jmp fcn.0040ccc9

Function at 0x40e5b2
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x517f74]
test eax, eax
push ebx
push edi
mov edi, dword [esp + 0xc]
je 0x40e5f3
xor ebx, ebx
inc ebx
test eax, eax
mov dword [0x517f78], ebx
je 0x40e5db
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x517f74]
test edi, edi
je 0x40e5e5
test eax, eax
jne 0x40e5c1
jmp 0x40e5f6
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x40e6ff
xor ebx, ebx
inc ebx
test edi, edi
je 0x40e6fd
push esi
mov esi, 0x517f80
push edi
mov ecx, 0x104
mov eax, esi
call fcn.00477a48
pop ecx
mov eax, edi
call fcn.00477999
mov cl, byte [0x517f80]
xor edx, edx
xor eax, eax
jmp 0x40e64f
test edx, edx
je 0x40e639
cmp cl, 0x29
jne 0x40e630
xor edx, edx
mov byte [eax + 0x518088], 0x20
jmp 0x40e648
cmp cl, 0x28
jne 0x40e642
mov edx, ebx
jmp 0x40e630
mov byte [eax + 0x518088], cl
mov cl, byte [eax + 0x517f81]
inc eax
test cl, cl
jne 0x40e625
push ebp
mov ebp, 0x518088
push ebp
push esi
mov byte [eax + 0x518088], cl
call fcn.004a9160
test eax, eax
pop ecx
pop ecx
je 0x40e6dc
call fcn.0040e46d
test eax, eax
jne 0x40e6dc
and dword [esp + 0x14], eax
and dword [0x517f78], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x517f78
call fcn.0040afbd
test eax, eax
jne 0x40e6d0
cmp dword [esp + 0x14], eax
mov dword [0x517f74], 1
je 0x40e6ad
push ebp
call edi
mov eax, 0x2ee
jmp 0x40e6b5
push esi
call edi
mov eax, 0x5dc
call fcn.0049a8a5
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
cmp dword [0x517f78], 0
mov dword [esp + 0x14], eax
je 0x40e68a
push esi
call edi
and dword [0x517f74], 0
jmp 0x40e6fb
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x517f74], 0
push 0x3e8
mov dword [0x517f78], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
pop esi
xor eax, eax
pop edi
pop ebx
ret 4
Function at 0x40e7c8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xa8]
mov ebx, 0x100
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.004a8c80
and word [ebp - 0x74], 0
xor eax, eax
and dword [ebp - 0x80], eax
lea edi, [ebp - 0x72]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x78]
add esp, 0xc
call fcn.00477a38
test eax, eax
je 0x40e835
xor eax, eax
jmp 0x40e8ce
push dword [ebp - 0x7c]
lea edi, [ebp - 0x70]
push dword [ebp - 0x78]
mov eax, edi
push esi
push eax
jmp 0x40e872
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40e852
push edi
call fcn.004a795c
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.004a7b08
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40e82e
push dword [ebp - 0x7c]
lea eax, [ebx - 1]
push dword [ebp - 0x78]
push eax
push edi
call fcn.004a9b76
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e844
mov cx, word [ebp + 0x9c]
mov word [ebp - 0x74], cx
mov cx, word [ebp + 0xa0]
mov word [ebp - 0x72], cx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x74]
push eax
push edi
call fcn.0040d0e1
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x40e8bd
cmp byte [0x5179ab], al
jne 0x40e8bd
mov byte [0x5179ab], 1
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40e8cb
push edi
call fcn.004a795c
pop ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x94
leave
ret
Function at 0x40f953
Capabilities:
Get disk size
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0xf0]
push 0x90
mov dword [ebp - 0xf4], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
call fcn.004a8c80
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xd4], esi
lea edi, [ebp - 0xd0]
rep stosd dword es:[edi], eax
mov edi, 0x94
push edi
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.004a8c80
push 0x24
lea eax, [ebp - 0xd4]
push esi
push eax
call fcn.004a8c80
push 0x20
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.004a8c80
add esp, 0x30
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fa0f
xor eax, eax
jmp 0x40fa84
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push esi
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
push esi
call fcn.0045ba18
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40fa0b
movzx eax, word [ebp - 0xb2]
add eax, dword [ebp - 0xa8]
movzx ecx, word [ebp - 0xd4]
add ecx, eax
add ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x9c]
add ecx, dword [ebp - 0x98]
lea eax, [ecx + eax + 0x2222]
cmp eax, esi
jne 0x40fa84
mov eax, 0x111
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8565
leave
ret
Function at 0x40fbf4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x90
lea eax, [ebp - 0x6c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], ebx
call fcn.004a8c80
mov esi, 0x94
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004a8c80
add esp, 0x18
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fc54
mov dword [ebp - 0x78], ebx
jmp 0x40fc5e
cmp dword [ebp - 0x6c], 6
sbb eax, eax
inc eax
mov dword [ebp - 0x78], eax
cmp edi, ebx
je 0x40fd06
cmp dword [ebp - 0x78], ebx
je 0x40fd01
push 0x103
lea eax, [ebp + 0x25]
push ebx
push eax
mov byte [ebp + 0x24], bl
call fcn.004a8c80
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov ecx, 0x104
lea eax, [ebp + 0x24]
mov dword [ebp - 0x74], ebx
call fcn.00477a48
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x10
push ebx
lea eax, [ebp - 0x74]
push eax
push ebx
mov edi, 0x20019
push edi
push ebx
push ebx
push ebx
lea eax, [ebp + 0x24]
push eax
push SysStringLen
call esi
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x40fce1
push ebx
lea eax, [ebp - 0x74]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp + 0x24]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40fcdc
mov dword [ebp - 0x7c], ebx
cmp dword [ebp - 0x7c], ebx
jne 0x40fd01
push str.EnableLUA
push dword [ebp - 0x74]
call fcn.0040c61e
pop ecx
pop ecx
push dword [ebp - 0x74]
xor ecx, ecx
cmp ecx, eax
sbb ebx, ebx
neg ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80]
mov dword [eax], ebx
mov ecx, dword [ebp + 0x128]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x12c
leave
ret
Function at 0x410563
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [esp + 0x14], esi
push edi
jle 0x4105bb
push 1
mov ebx, 0x410
push ebx
call fcn.004a7b08
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x4105bb
push ebx
push esi
push edi
call fcn.004a8c80
mov ebx, dword [0x5188dc]
add esp, 0xc
cmp ebx, esi
jne 0x4105a5
call fcn.0046a3c9
mov ebx, eax
mov dword [0x5188dc], ebx
push edi
call fcn.0046a47b
cmp dword [0x5188dc], esi
pop ecx
jne 0x4105c1
push edi
call fcn.004a795c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [edi + 0x1b8]
push 0x4c9e04
push eax
call fcn.004a8050
lea ebx, [edi + 0x250]
push str..ConsoleField.c
push ebx
mov dword [edi + 0x15c], 1
mov dword [edi + 0x174], esi
mov dword [edi + 0x190], esi
mov dword [edi + 0x18c], 2
call fcn.0041c68c
mov esi, str.A_Console_Field_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0041c887
mov eax, 0xbb8
mov ecx, ebx
call fcn.0041c8b0
mov eax, edi
call fcn.004152b8
push 0x4c927c
push 0xffffffffffffffff
push dword [esp + 0x30]
mov eax, edi
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.004107d3
add esp, 0x24
test eax, eax
jne 0x41064f
mov eax, edi
call fcn.00410665
jmp 0x4105bb
mov esi, edi
call fcn.00410c62
push 0x5f
call fcn.00410c8d
pop ecx
mov eax, edi
jmp 0x4105bd
Function at 0x418fb0
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x8d]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x7c], edi
mov byte [ebp + 0x8c], bl
call fcn.004a8c80
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004a8c80
add esp, 0x18
mov edx, edi
call fcn.00477a16
test eax, eax
jne 0x4190de
mov edx, dword [ebp - 0x80]
call fcn.00477a16
test eax, eax
jne 0x4190de
push dword [ebp - 0x80]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp + 0x8c]
call fcn.00477a48
mov edx, eax
call fcn.00478435
mov esi, edx
call fcn.004784d6
mov eax, esi
push eax
call fcn.004a7f30
pop ecx
pop ecx
jmp 0x419062
lea ecx, [ebp + eax + 0x8c]
cmp byte [ecx], 0x5c
jne 0x419067
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x419054
lea esi, [ebp + 0x8c]
call fcn.00477d45
push dword [ebp - 0x7c]
mov ecx, edi
lea eax, [ebp - 0x78]
call fcn.00477a48
mov edx, eax
call fcn.00478435
mov esi, edx
call fcn.004784d6
mov eax, esi
push eax
call fcn.004a7f30
pop ecx
pop ecx
jmp 0x4190a4
lea ecx, [ebp + eax - 0x78]
cmp byte [ecx], 0x5c
jne 0x4190a9
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x419099
lea eax, [ebp - 0x78]
call fcn.00477d88
mov edx, eax
lea ecx, [ebp + 0x8c]
call fcn.00477fd2
cmp dword [ebp + 0x1a0], ebx
lea eax, [ebp + 0x8c]
je 0x4190da
push 0xb
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x4190e0
push 0xa
jmp 0x4190ce
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x194
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.004a8c80
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00477a48
pop ecx
mov esi, eax
call fcn.004784d6
push 0
push 0x5c
call fcn.00478581
pop ecx
pop ecx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41919e
test al, 0x10
je 0x41919e
mov eax, esi
push 1
push eax
call fcn.004191e5
mov eax, esi
push 1
push eax
call fcn.00419201
add esp, 0x10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [ebp - 0x114], eax
jne 0x419196
lea edi, [ebp - 0x110]
call fcn.00419e19
push dword [ebp - 0x114]
jmp 0x4191b7
xor esi, esi
cmp eax, 0xffffffff
je 0x4191b5
call fcn.00419e19
test eax, eax
je 0x4191b5
push edi
call fcn.00419eca
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a8565
leave
ret
Function at 0x4192b5
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00477a16
test eax, eax
jne 0x41939d
mov edx, dword [ebp + 0xc]
call fcn.00477a16
test eax, eax
jne 0x41939d
push dword [ebp + 8]
call fcn.004a7f30
push dword [ebp + 8]
call fcn.004a7f30
add eax, 0xa
push eax
push 1
call fcn.004a7b08
push dword [ebp + 0xc]
mov esi, eax
call fcn.004a7f30
add eax, 0xa
push eax
push 1
call fcn.004a7b08
add esp, 0x1c
cmp esi, ebx
mov edi, eax
je 0x41939d
cmp edi, ebx
je 0x41939d
push dword [ebp + 8]
push esi
call fcn.004a8050
push dword [ebp + 0xc]
push edi
call fcn.004a8050
push esi
call fcn.004a7f30
push edi
mov byte [eax + esi + 1], bl
call fcn.004a7f30
mov byte [eax + edi + 1], bl
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
mov word [ebp - 0x14], 0x1694
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.004a795c
push edi
call fcn.004a795c
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
sete al
jmp 0x41939f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4193a4
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
call fcn.00477a16
test eax, eax
jne 0x41949a
mov edx, dword [ebp + 0xc]
call fcn.00477a16
test eax, eax
jne 0x41949a
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x20
push 3
push ebx
push 7
push 0x80
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41943b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x419428
mov dword [ebp - 8], 1
jmp 0x419436
cmp dword [0x510b38], ebx
je 0x419436
mov dword [0x510b38], ebx
call fcn.0041c426
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419828
add esp, 0xc
test eax, eax
je 0x41949a
cmp dword [ebp - 8], ebx
jne 0x41945a
xor eax, eax
inc eax
jmp 0x41949c
push ebx
push 0x80000020
push 3
push ebx
push 7
push 0x100
push dword [ebp + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x419455
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x419493
inc dword [0x51a09c]
call fcn.0041c426
jmp 0x419455
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419828
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov dword [ebp - 0x114], ebx
call fcn.00477a16
test eax, eax
jne 0x419990
mov edx, edi
call fcn.00477a16
test eax, eax
jne 0x419990
push ebx
call fcn.004a7f30
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x419945
push edi
call fcn.004a7f30
cmp eax, esi
pop ecx
jae 0x419945
push dword [ebp + 0x10]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
test eax, eax
jne 0x419940
push edi
call fcn.00419eca
test eax, eax
pop ecx
je 0x41990e
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004a8c80
add esp, 0xc
push dword [ebp - 0x114]
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.00477a48
pop ecx
mov esi, eax
call fcn.00477d45
mov edx, esi
call fcn.00477a16
test eax, eax
jne 0x419990
mov edx, edi
mov ecx, esi
call fcn.00477fd2
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp - 0x114]
call ebx
jmp 0x419992
cmp dword [ebp + 0x10], 0
jne 0x419990
call fcn.00419e19
test eax, eax
je 0x419990
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x419990
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
jmp 0x419901
xor eax, eax
inc eax
jmp 0x419992
mov eax, ebx
call fcn.0047a266
mov esi, eax
mov eax, edi
call fcn.0047a266
test esi, esi
mov edi, eax
je 0x419985
test edi, edi
je 0x41997e
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov ebx, eax
call fcn.004a795c
pop ecx
push edi
call fcn.004a795c
pop ecx
mov eax, ebx
jmp 0x419992
push esi
call fcn.004a795c
pop ecx
test edi, edi
je 0x419990
push edi
call fcn.004a795c
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret

Function at 0x4199a1
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.00477a16
test eax, eax
je 0x4199b5
xor eax, eax
jmp 0x4199f1
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x4199ee
call fcn.00419e19
test eax, eax
je 0x4199ee
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x4199b1
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
jmp 0x4199f1
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret