joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c068
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
push ebx
mov ebx, eax
jne 0x40c078
xor eax, eax
jmp 0x40c0ed
test ebx, ebx
jne 0x40c081
mov byte [esi], 0
jmp 0x40c074
jge 0x40c0a7
push edi
call fcn.0040d4f6
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004b6e24
cmp edi, eax
pop ecx
jge 0x40c09d
mov ebx, edi
jmp 0x40c0a6
push ebx
call fcn.004b6e24
pop ecx
mov ebx, eax
pop edi
mov ax, word [ebp + 8]
mov word [ebp - 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 6], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.0040d58e
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x40c0dd
cmp eax, ebx
jg 0x40c07c
mov byte [eax + esi], 0
jmp 0x40c074
cmp eax, ebx
jg 0x40c0e7
mov byte [eax + esi], 0
jmp 0x40c0ea
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x40c173
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.004b7880
add esp, 0xc
cmp esi, ebx
je 0x40c1d8
cmp byte [esi], bl
je 0x40c1d8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x13c], edi
jne 0x40c1e9
push str._GetLastError_
push dword [ebp + 8]
push esi
push str.:5:TerminateProcessByName__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED:__s
call fcn.00418e96
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c221
push str._GetLastError_
push dword [ebp + 8]
push esi
push str.:5:TerminateProcessByName__s___d__FAILED:_Process32First___FAILED:__s
call fcn.00418e96
add esp, 0x10
call fcn.0041ed31
jmp 0x40c1d8
or dword [ebp - 0x138], 0xffffffff
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x40c242
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
je 0x40c24d
jmp 0x40c293
call fcn.0047f83d
test eax, eax
pop ecx
pop ecx
je 0x40c293
push dword [ebp - 0x12c]
mov dword [ebp - 0x138], ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x40c293
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40c28e
push str._GetLastError_
lea eax, [ebp - 0x110]
push eax
push str.:1:TerminateProcessByName___encountered_a_problem:_TerminateProcess___FAILED_to_terminate__s:__s:_trying_once_more_with_higher_privilege...
call fcn.0041936e
add esp, 0xc
call fcn.0041ed31
mov edi, dword [ebp - 0x13c]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c228
call fcn.0041ed31
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x138]
jmp 0x40c1db
Function at 0x40c2c6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x134], ebx
call fcn.004b7880
add esp, 0xc
cmp esi, ebx
je 0x40c3b2
cmp byte [esi], bl
je 0x40c3b2
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c330
push dword [ebp + 8]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.00418e96
add esp, 0xc
or eax, 0xffffffff
jmp 0x40c3b4
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c363
push dword [ebp + 8]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.00418e96
add esp, 0xc
call fcn.0041ed31
jmp 0x40c328
mov dword [ebp - 0x138], ebx
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x40c383
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
je 0x40c38e
jmp 0x40c394
call fcn.0047f83d
test eax, eax
pop ecx
pop ecx
je 0x40c394
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c369
call fcn.0041ed31
mov eax, dword [ebp - 0x138]
jmp 0x40c3b4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b7140
leave
ret
Function at 0x40ca95
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5385d0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a4]
mov esi, 0x207
xor ebx, ebx
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.004b7880
add esp, 0xc
cmp dword [ebp + 0x1a8], ebx
mov dword [ebp - 0x7c], ebx
jge 0x40caed
mov dword [ebp + 0x1a8], esi
push 0x208
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004b7880
mov eax, dword [ebp - 0x78]
add esp, 0xc
call fcn.0047eb32
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x40cb16
xor eax, eax
jmp 0x40cb64
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], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x40cb50
push esi
push str._GetLastError_
push edi
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.0041936e
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cb12
mov ecx, dword [ebp + 0x1a8]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
dec ecx
call fcn.0047ebe1
pop ecx
mov ecx, dword [ebp + 0x194]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
add ebp, 0x198
leave
ret

Function at 0x40cb7b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
jne 0x40cb89
xor eax, eax
jmp 0x40cbca
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40cbc7
push esi
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.:4:SetRegDword___s____ld__FAILED:_RegSetValueEx___FAILED:__s_ld
call fcn.0041936e
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cb85
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x40d22d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 2]
stosw word es:[edi], ax
call fcn.0040d58e
test eax, eax
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov word [ebp - 4], cx
mov word [ebp - 2], bx
mov edi, dword [ebp - 4]
je 0x40d26c
cmp eax, 0xffffffff
je 0x40d26c
push edi
push eax
call esi
mov dword [ebp - 8], eax
jmp 0x40d281
push str._GetLastError_
push eax
push ebx
push ecx
push str.:7:SetConsoleCursorPosServer__d___d_:_FAILED___x:__s
call fcn.00418e96
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call ebx
test eax, eax
je 0x40d298
cmp eax, 0xffffffff
je 0x40d298
push edi
push eax
call esi
push 0xfffffffffffffff4
call ebx
test eax, eax
je 0x40d2a9
cmp eax, 0xffffffff
je 0x40d2a9
push edi
push eax
call esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40d2cf
push edi
push eax
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40eb8b
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x54df70]
test eax, eax
push ebx
push edi
mov edi, dword [esp + 0xc]
je 0x40ebcc
xor ebx, ebx
inc ebx
test eax, eax
mov dword [0x54df74], ebx
je 0x40ebb4
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x54df70]
test edi, edi
je 0x40ebbe
test eax, eax
jne 0x40eb9a
jmp 0x40ebcf
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x40ecd8
xor ebx, ebx
inc ebx
test edi, edi
je 0x40ecd6
push esi
mov esi, 0x54df78
push edi
mov ecx, 0x104
mov eax, esi
call fcn.0047ebe1
pop ecx
mov eax, edi
call fcn.0047eb32
mov cl, byte [0x54df78]
xor edx, edx
xor eax, eax
jmp 0x40ec28
test edx, edx
je 0x40ec12
cmp cl, 0x29
jne 0x40ec09
xor edx, edx
mov byte [eax + 0x54e080], 0x20
jmp 0x40ec21
cmp cl, 0x28
jne 0x40ec1b
mov edx, ebx
jmp 0x40ec09
mov byte [eax + 0x54e080], cl
mov cl, byte [eax + 0x54df79]
inc eax
test cl, cl
jne 0x40ebfe
push ebp
mov ebp, 0x54e080
push ebp
push esi
mov byte [eax + 0x54e080], cl
call fcn.004b7d30
test eax, eax
pop ecx
pop ecx
je 0x40ecb5
call fcn.0040ea29
test eax, eax
jne 0x40ecb5
and dword [esp + 0x14], eax
and dword [0x54df74], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x54df74
call fcn.0040b94e
test eax, eax
jne 0x40eca9
cmp dword [esp + 0x14], eax
mov dword [0x54df70], 1
je 0x40ec86
push ebp
call edi
mov eax, 0x2ee
jmp 0x40ec8e
push esi
call edi
mov eax, 0x5dc
call fcn.004a6b0b
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
cmp dword [0x54df74], 0
mov dword [esp + 0x14], eax
je 0x40ec63
push esi
call edi
and dword [0x54df70], 0
jmp 0x40ecd4
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x54df70], 0
push 0x3e8
mov dword [0x54df74], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
pop esi
xor eax, eax
pop edi
pop ebx
ret 4
Function at 0x40ecdd
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and word [ebp - 4], 0
push ebx
push esi
mov ebx, eax
xor eax, eax
and dword [ebp - 8], eax
test ebx, ebx
push edi
lea edi, [ebp - 2]
mov esi, ecx
stosw word es:[edi], ax
jne 0x40ed0e
cmp esi, 0x100
mov ebx, 0x54e188
jb 0x40ed0e
mov esi, 0xff
mov eax, ebx
call fcn.0047eb32
test esi, esi
jg 0x40ed2d
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:3:GetConsoleText__d___d___d__FAILED:_iCount_is_invalid:__d
call fcn.0041936e
jmp 0x40ed78
mov ax, word [ebp + 8]
mov edi, dword [ebp + 0xc]
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 2], di
push dword [ebp - 4]
push esi
push ebx
call fcn.0040d58e
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x40ed7b
cmp byte [0x54d9aa], al
jne 0x40ed7b
push str._GetLastError_
push esi
push edi
push dword [ebp + 8]
push str.:3:GetConsoleText__d___d___d__FAILED:_ReadConsoleOutputCharacter___FAILED:__s
call fcn.0041936e
mov byte [0x54d9aa], 1
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40edcf
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5385d0]
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.004b7880
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.0047ebd1
test eax, eax
je 0x40ee3c
xor eax, eax
jmp 0x40eee8
push dword [ebp - 0x7c]
lea edi, [ebp - 0x70]
push dword [ebp - 0x78]
mov eax, edi
push esi
push eax
jmp 0x40ee79
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40ee59
push edi
call fcn.004b651e
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.004b66ca
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40ee35
push dword [ebp - 0x7c]
lea eax, [ebx - 1]
push dword [ebp - 0x78]
push eax
push edi
call fcn.004b87ae
add esp, 0x10
cmp eax, 0xffffffff
je 0x40ee4b
mov ebx, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa0]
lea ecx, [ebp - 0x80]
push ecx
mov word [ebp - 0x74], bx
mov word [ebp - 0x72], si
push dword [ebp - 0x74]
push eax
push edi
call fcn.0040d58e
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x40eed7
cmp byte [0x54d9ab], al
jne 0x40eed7
push str._GetLastError_
push edi
push esi
push ebx
push str.:3:OutConsole__d___d___s__FAILED:_WriteConsoleOutputCharacter___FAILED:__s
call fcn.0041936e
add esp, 0x14
mov byte [0x54d9ab], 1
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40eee5
push edi
call fcn.004b651e
pop ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
add ebp, 0x94
leave
ret
Function at 0x4102b3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jle 0x41030e
cmp dword [ebp + 0x10], ebx
jle 0x41030e
push 1
mov esi, 0x410
push esi
call fcn.004b66ca
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x41030e
push esi
push ebx
push edi
call fcn.004b7880
mov eax, dword [0x54f0d8]
add esp, 0xc
cmp eax, ebx
jne 0x4102f8
call fcn.00471551
mov dword [0x54f0d8], eax
push edi
call fcn.0047163a
cmp dword [0x54f0d8], ebx
pop ecx
jne 0x410315
push edi
call fcn.004b651e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x1b8]
push 0x4dba3c
push eax
call fcn.004b6c20
mov dword [edi + 0x174], ebx
mov dword [edi + 0x190], ebx
lea ebx, [edi + 0x250]
push str..ConsoleField.c
push ebx
mov dword [edi + 0x15c], 1
mov dword [edi + 0x18c], 2
call fcn.00420a71
add esp, 0x10
test eax, eax
jne 0x410369
push str.:5:CreateConField___EAP:_InitializeLock___FAILED.
call fcn.00418e96
pop ecx
mov esi, str.A_Console_Field_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.00420d70
mov eax, 0xbb8
mov ecx, ebx
call fcn.00420dad
mov eax, edi
call fcn.00415335
push 0x4da18c
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041059d
add esp, 0x14
test eax, eax
jne 0x4103b2
mov eax, edi
call fcn.004103c8
jmp 0x41030e
mov esi, edi
call fcn.00410a6d
push 0x5f
call fcn.00410aa1
pop ecx
mov eax, edi
jmp 0x410310
Function at 0x41a21e
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edx, ebp
call fcn.0047ebaf
test eax, eax
je 0x41a239
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [0x550ab8], 0
je 0x41a246
xor eax, eax
jmp 0x41a234
push 0
xor edx, edx
mov ecx, ebp
mov dword [0x550ab8], 1
call fcn.0041cc74
pop ecx
mov ebx, 0x80000
cmp eax, ebx
ja 0x41a270
xor eax, eax
and dword [0x550ab8], 0
jmp 0x41a234
push ebp
call fcn.0041d7da
mov edi, eax
test edi, edi
pop ecx
jne 0x41a282
or eax, 0xffffffff
jmp 0x41a267
mov esi, dword [edi]
cmp esi, ebx
ja 0x41a291
push edi
call fcn.004b651e
pop ecx
jmp 0x41a27d
lea ebx, [esi - 0x80000]
cmp byte [ebx + edi + 4], 0xa
je 0x41a2ab
inc ebx
lea eax, [esi - 0x20000]
cmp ebx, eax
jb 0x41a297
jmp 0x41a2ac
inc ebx
push 0x4eb
push str..Error.c
mov edx, 0x4d57c8
mov ecx, ebp
call fcn.0041e477
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x41a288
push ebp
sub esi, ebx
push esi
lea eax, [ebx + edi + 4]
push 1
push eax
call fcn.004b6868
mov ecx, ebp
call fcn.0041e8bf
push edi
call fcn.004b651e
xor eax, eax
add esp, 0x14
inc eax
jmp 0x41a267
Function at 0x41b191
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5385d0]
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.004b7880
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004b7880
add esp, 0x18
mov edx, edi
call fcn.0047ebaf
test eax, eax
jne 0x41b2b3
mov edx, dword [ebp - 0x80]
call fcn.0047ebaf
test eax, eax
jne 0x41b2b3
push dword [ebp - 0x80]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp + 0x8c]
call fcn.0047ebe1
mov edx, eax
call fcn.0047f68c
mov esi, edx
call fcn.0047f72c
mov eax, esi
push eax
call fcn.004b68f0
pop ecx
pop ecx
jmp 0x41b243
lea ecx, [ebp + eax + 0x8c]
cmp byte [ecx], 0x5c
jne 0x41b248
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x41b235
lea esi, [ebp + 0x8c]
call fcn.0047eede
push dword [ebp - 0x7c]
mov ecx, edi
lea eax, [ebp - 0x78]
call fcn.0047ebe1
mov edx, eax
call fcn.0047f68c
mov esi, edx
call fcn.0047f72c
mov eax, esi
push eax
call fcn.004b68f0
pop ecx
pop ecx
jmp 0x41b285
lea ecx, [ebp + eax - 0x78]
cmp byte [ecx], 0x5c
jne 0x41b28a
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x41b27a
lea eax, [ebp - 0x78]
call fcn.0047ef21
mov edx, eax
lea ecx, [ebp + 0x8c]
call fcn.0047f16b
push 0xb
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x41b2b5
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7140
add ebp, 0x194
leave
ret
Function at 0x41b2cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], bl
call fcn.004b7880
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047f72c
push ebx
push 0x5c
call fcn.0047f7d7
pop ecx
pop ecx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b38d
test al, 0x10
je 0x41b38d
mov eax, esi
push 1
push eax
call fcn.0041b3f0
mov eax, esi
push eax
call fcn.0041b40c
add esp, 0xc
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], ebx
mov esi, eax
jne 0x41b38a
lea edi, [esp + 0x18]
call fcn.0041c5ff
test eax, eax
je 0x41b38a
push esi
push str._GetLastError_
mov eax, edi
push eax
push dword [esp + 0x20]
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.00418e96
add esp, 0x14
push esi
jmp 0x41b3b9
cmp eax, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x41b3b7
call fcn.0041c5ff
test eax, eax
je 0x41b3b7
push edi
call fcn.0041c6ac
test eax, eax
pop ecx
jne 0x41b3b7
push edi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.00418e96
pop ecx
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret

Function at 0x41b40c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.0047ebaf
test eax, eax
je 0x41b43b
xor eax, eax
jmp 0x41b4c5
push edi
call fcn.004b68f0
cmp byte [eax + edi - 1], 0x5c
pop ecx
jne 0x41b45a
push ebx
push 1
push edi
push str.:7:DeleteFiles___s____d___d__will_produce_no_results_because_the_path_given_is_empty___Use_a__after_the_backslash_to_delete_files_or_remove_the_back_slash_to_delete_the_directory.
call fcn.0041936e
add esp, 0x10
push edi
call fcn.004b68f0
add eax, 0xa
push eax
push 1
call fcn.004b66ca
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x41b434
push edi
push esi
call fcn.004b6c20
push esi
call fcn.004b68f0
mov byte [eax + esi + 1], bl
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], 0x614
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.004b651e
xor eax, eax
cmp edi, ebx
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b94e
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.0047ebaf
test eax, eax
jne 0x41ba83
mov edx, dword [ebp + 0xc]
call fcn.0047ebaf
test eax, eax
jne 0x41ba83
mov esi, 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 esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ba00
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41b9d2
mov dword [ebp - 8], 1
jmp 0x41b9fb
cmp dword [0x546b48], ebx
je 0x41b9fb
push str._GetLastError_
push dword [ebp + 0x10]
mov dword [0x546b48], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:6:CopyFileWithDates___s_____s____d__encountered_a_problem:_GetFileTime___FAILED:__s
call fcn.00418e96
add esp, 0x14
call fcn.0041ed31
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041be47
add esp, 0xc
test eax, eax
je 0x41ba83
cmp dword [ebp - 8], ebx
jne 0x41ba1f
xor eax, eax
inc eax
jmp 0x41ba85
push ebx
push SQLGetDiagRec
push 3
push ebx
push 7
push 0x100
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ba1a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41ba7c
inc dword [0x550d8c]
cmp dword [0x550d8c], 0xa
jge 0x41ba7c
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:6:_1_of_10:_CopyFileWithDates___s_____s____d__encountered_a_problem:_SetFileTime___FAILED:__s
call fcn.00418e96
add esp, 0x14
call fcn.0041ed31
jmp 0x41ba1a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret