joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f83c
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x565ebc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x40f883
mov dword [0x565ec0], ebx
test eax, eax
je 0x40f86a
push 0x19
call edi
mov eax, dword [0x565ebc]
test esi, esi
je 0x40f874
test eax, eax
jne 0x40f857
jmp 0x40f88b
test eax, eax
je 0x40f999
mov eax, ebx
jmp 0x40f99b
test esi, esi
je 0x40f999
push 0x104
push esi
push 0x565ec8
call fcn.0048dd2a
push esi
call fcn.0048b21b
xor ecx, ecx
add esp, 0x10
xor esi, esi
cmp byte [0x565ec8], cl
je 0x40f8f5
mov dl, byte [ecx + 0x565ec8]
test esi, esi
je 0x40f8c8
xor eax, eax
mov bl, 0x20
cmp dl, 0x29
cmovne eax, esi
mov esi, eax
jmp 0x40f8d5
cmp dl, 0x28
jne 0x40f8d3
mov esi, ebx
mov bl, 0x20
jmp 0x40f8d5
mov bl, dl
mov byte [ecx + 0x565fd0], bl
inc ecx
push 1
mov eax, ecx
pop ebx
cmp byte [ecx + 0x565ec8], 0
jne 0x40f8b0
cmp eax, 0x104
jae 0x40f9a2
push 0x565fd0
mov esi, 0x565ec8
mov byte [ecx + 0x565fd0], 0
push esi
call fcn.004cd060
pop ecx
pop ecx
test eax, eax
je 0x40f97e
call fcn.0040cedb
test eax, eax
jne 0x40f97e
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor edi, edi
and dword [0x565ec0], edi
cmp dword [0x56379c], 0
jne 0x40f96e
mov dword [0x565ebc], ebx
test edi, edi
je 0x40f94a
push 0x565fd0
call esi
mov eax, 0x2ee
jmp 0x40f956
push 0x565ec8
call esi
mov eax, 0x5dc
push 0x565ec0
push eax
call fcn.004b795e
pop ecx
xor edi, ebx
cmp dword [0x565ec0], 0
pop ecx
je 0x40f929
push 0x565ec8
call esi
and dword [0x565ebc], 0
jmp 0x40f999
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x565ebc], 0
push 0x3e8
mov dword [0x565ec0], ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call fcn.004c22cb
int3

Function at 0x40f9a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40f9b5
xor eax, eax
pop ebp
ret
push edi
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 edi, eax
test edi, edi
je 0x40f9f6
push edi
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.:4:SetRegDword___s____ld__FAILED:_RegSetValueEx___FAILED:__s_ld
call fcn.0041cce9
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40f9f9
xor eax, eax
inc eax
pop edi
pop ebp
ret
Function at 0x41054c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x128]
push edi
push 0x124
push 0
push eax
call fcn.004c37f0
add esp, 0xc
test esi, esi
je 0x4106e0
cmp byte [esi], 0
je 0x4106e0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
jne 0x4105bb
push str._GetLastError_
push dword [ebp + 0xc]
push esi
push str.:5:TerminateProcessByName__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED:__s
call fcn.0041c80a
add esp, 0x10
mov eax, ebx
jmp 0x4106e3
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x410603
push str._GetLastError_
push dword [ebp + 0xc]
push esi
push str.:5:TerminateProcessByName__s___d__FAILED:_Process32First___FAILED:__s
call fcn.0041c80a
add esp, 0x10
push 0x770
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push edi
call fcn.0041dd98
jmp 0x4105b4
mov dword [ebp - 0x130], ebx
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x108]
push esi
push eax
je 0x410636
cmp dword [ebp + 0x10], 0
je 0x410624
call fcn.004cd060
jmp 0x410629
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
jne 0x410632
inc eax
jmp 0x41064a
xor eax, eax
jmp 0x41064a
cmp dword [ebp + 0x10], 0
je 0x410643
call fcn.004c3950
jmp 0x410648
call fcn.0048dada
pop ecx
pop ecx
test eax, eax
je 0x4106a6
push dword [ebp - 0x124]
and dword [ebp - 0x130], 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4106a6
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x410691
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:1:TerminateProcessByName___encountered_a_problem:_TerminateProcess___FAILED_to_terminate__s:__s:_trying_once_more_with_higher_privilege...
call fcn.0041cce9
add esp, 0xc
push 0x7a1
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push ebx
call fcn.0041dd98
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x410609
push 0x7fa
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push edi
call fcn.0041dd98
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x130]
jmp 0x4106e3
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x410c5f
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, 0x100
mov dword [ebp - 0x10c], eax
push edi
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004c37f0
push ebx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], esi
call fcn.0048c473
add esp, 0x10
test eax, eax
jne 0x410d80
push dword [ebp - 0x10c]
lea esi, [ebp - 0x104]
push eax
push ebx
push 0xff
mov eax, esi
push eax
jmp 0x410d03
lea eax, [ebp - 0x104]
cmp esi, eax
je 0x410cdc
push esi
call fcn.004cceff
pop ecx
add edi, edi
lea eax, [edi + 0xa]
push eax
push 1
call fcn.004ccef4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x410d80
push dword [ebp - 0x10c]
lea ecx, [edi - 1]
push 0
push ebx
push ecx
push esi
call fcn.00403d86
add esp, 0x14
cmp eax, 0xffffffff
je 0x410ccb
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x110]
mov ebx, dword [ebp + 0xc]
push ecx
mov word [ebp - 0x108], di
mov word [ebp - 0x106], bx
push dword [ebp - 0x108]
push eax
push esi
call fcn.0040cabf
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x410d67
cmp byte [0x5647dd], al
jne 0x410d67
push str._GetLastError_
push esi
push ebx
push edi
push str.:3:OutConsole__d___d___s__FAILED:_WriteConsoleOutputCharacter___FAILED:__s
call fcn.0041cce9
add esp, 0x14
mov byte [0x5647dd], 1
lea eax, [ebp - 0x104]
cmp esi, eax
je 0x410d78
push esi
call fcn.004cceff
pop ecx
mov eax, dword [ebp - 0x110]
jmp 0x410d82
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x41e5fe
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xc], xmm0
movlpd qword [ebp - 0x14], xmm0
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x41e74c
mov esi, dword [ebp + 0xc]
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x41e74c
push eax
push 0x20
push 3
push eax
push 7
push 0x80
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e6b7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41e67b
mov dword [ebp - 4], 1
jmp 0x41e6a2
cmp dword [0x5524ac], 0
je 0x41e6a2
and dword [0x5524ac], 0
push str._GetLastError_
push dword [ebp + 0x10]
push esi
push edi
push str.:6:CopyFileWithDates___s_____s____d__encountered_a_problem:_GetFileTime___FAILED:__s
call fcn.0041c80a
add esp, 0x14
push 0x9df
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push str.CopyFileWithDates
push ebx
call fcn.0041dd98
push dword [ebp + 0x10]
push esi
push edi
call fcn.0042078a
add esp, 0xc
test eax, eax
je 0x41e74c
cmp dword [ebp - 4], 0
jne 0x41e6d7
xor eax, eax
inc eax
jmp 0x41e74e
push 0
push SQLGetDiagRec
push 3
push 0
push 7
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e6d2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41e735
mov eax, dword [0x568ad4]
inc eax
mov dword [0x568ad4], eax
cmp eax, 0xa
jge 0x41e735
push str._GetLastError_
push dword [ebp + 0x10]
push esi
push edi
push str.:6:_1_of_10:_CopyFileWithDates___s_____s____d__encountered_a_problem:_SetFileTime___FAILED:__s
call fcn.0041c80a
add esp, 0x14
push 0xa05
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push str.CopyFileWithDates
push ebx
call fcn.0041dd98
jmp 0x41e6d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41edcd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
xor ebx, ebx
push edi
push ebx
push eax
call fcn.004c37f0
add esp, 0xc
mov dword [ebp - 0x10c], ebx
test esi, esi
je 0x41eeca
cmp byte [esi], 0x30
je 0x41eeca
mov eax, ebx
cmp eax, edi
jae 0x41efb0
mov byte [ebp + eax - 0x108], bl
inc eax
cmp eax, edi
jl 0x41ee19
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x108]
push 0x22
push eax
call fcn.0048cb43
mov ebx, dword [ebp + 0xc]
add esp, 0x14
test ebx, ebx
je 0x41ee91
push 0xf83
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push str.CreateDirectorySuper
xor ecx, ecx
lea eax, [ebp - 0x108]
push ecx
push ecx
push eax
push 0x41efb6
push ecx
push ecx
call fcn.0041f6c0
mov edi, eax
test edi, edi
jne 0x41eedb
push str._GetLastError_
push eax
push esi
push str.:8:CreateDirectorySuper___FAILED_to_create_thread_to_create_directory___s_._NumThreads_d:__s
call fcn.0041c80a
add esp, 0x10
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x41efa8
cmp eax, 0x50
je 0x41efa8
cmp eax, 0xb7
je 0x41efa8
cmp eax, 0x4c7
je 0x41efa8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
call fcn.004b729a
mov dword [ebp - 0x110], eax
jmp 0x41ef0b
cmp dword [ebp - 0x10c], 0x103
jne 0x41ef4a
call fcn.004b729a
sub eax, dword [ebp - 0x110]
cmp eax, ebx
ja 0x41ef1f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x41eee8
jmp 0x41ef4a
push esi
call fcn.004b729a
sub eax, dword [ebp - 0x110]
push eax
push str.:5:CreateDirectorySuper___timed_out_after__ldms_while_creating___s_
call fcn.0041cce9
add esp, 0xc
mov dword [0x568808], 0x5b4
and dword [ebp - 0x10c], 0
push 0xfb7
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push str.CreateDirectorySuper
push edi
call fcn.0041dd98
push dword [0x568808]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [ebp - 0x10c], 0
jne 0x41efa8
push esi
call fcn.00421421
pop ecx
test eax, eax
jne 0x41ef9b
push dword [0x568808]
push str._GetLastError_
push ebx
push esi
push str.:3:FYI:_CreateDirectorySuper__s___lu___FAILED:__s_ld
call fcn.0041cce9
add esp, 0x14
push dword [0x568808]
call edi
jmp 0x41eeca
xor eax, eax
inc eax
jmp 0x41eecc
call fcn.004c22cb
int3
Function at 0x41f59d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x148]
push 0x104
push 0
push eax
call fcn.004c37f0
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004c37f0
add esp, 0x18
test esi, esi
je 0x41f664
push esi
call fcn.0048b21b
mov dword [esp], 0x21e88e
push 0xde
call fcn.00448d1e
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0048d960
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41f62c
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempPath___FAILED:__s
jmp 0x41f65d
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41f653
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x41f653
mov eax, esi
jmp 0x41f666
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempFileName___FAILED:__s
call fcn.0041c80a
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2120
leave
ret
Function at 0x41f6c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x24]
push 0x104
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], edi
call fcn.004c37f0
push 0x1c8
push 1
call fcn.004ccef4
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x41f741
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41f865
mov eax, dword [0x56a3b0]
test eax, eax
jne 0x41f754
call fcn.0047bcca
mov dword [0x56a3b0], eax
push ebx
push eax
call fcn.0047c17c
cmp dword [0x56a3b0], 0
pop ecx
pop ecx
jne 0x41f779
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.004cceff
jmp 0x41f864
mov dword [ebx], esi
lea eax, [ebx + 4]
test esi, esi
je 0x41f795
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
jmp 0x41f7a2
push 0xc
push 0
push eax
call fcn.004c37f0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x110]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x10c]
push 0x40
push dword [ebp - 0x11c]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
push eax
mov dword [ebx + 0x10], edi
call fcn.0048dd2a
push 0x104
push dword [ebp - 0x120]
lea eax, [ebp - 0x108]
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x108]
push eax
call fcn.0048ce46
push 0x40
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.0048dd2a
mov eax, dword [ebp + 0x28]
and dword [ebx + 0xb0], 0
mov dword [ebx + 0xa4], eax
call fcn.004b729a
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0xb8]
push eax
call fcn.0048b21b
and dword [ebx + 0xac], 0
add esp, 0x2c
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
push 0x41f673
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xa8], eax
test eax, eax
jne 0x41f867
push ebx
call fcn.0041f878
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret 0x24
Function at 0x41f8c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov ebx, 0x104
xor edi, edi
push ebx
push edi
push eax
call fcn.004c37f0
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x108]
push eax
call fcn.0048cf12
push edi
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0048ce98
add esp, 0x28
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41f9c8
test al, 0x10
je 0x41f9a0
push edi
push 0x420972
push 1
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00422458
push edi
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0041fb07
add esp, 0x20
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x41f99d
lea eax, [ebp - 0x108]
push eax
call fcn.0041fc00
pop ecx
test eax, eax
je 0x41f99d
push ebx
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push esi
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.0041c80a
add esp, 0x14
push ebx
jmp 0x41f9ca
cmp eax, 0xffffffff
je 0x41f9c8
push esi
call fcn.0041fc00
pop ecx
test eax, eax
je 0x41f9c8
push esi
call fcn.0041fbe3
pop ecx
test eax, eax
jne 0x41f9c8
push esi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.0041c80a
pop ecx
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x41f9e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 5
pop ecx
mov esi, str.ThisIsAFileLockxxxx
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
call fcn.004b729a
push ebx
mov dword [ebp - 0x1c], eax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x41faf6
push ebx
call fcn.0041fc00
pop ecx
test eax, eax
je 0x41faf1
push 0x1493
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push 0x4e75e0
push ebx
call fcn.00422a3e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fa6c
push 0x64
call edi
push 0x1497
push str.C:UsersOfficeDocumentsVisual_StudioPAULAFile.c
push 0x4e75e0
push ebx
call fcn.00422a3e
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.0048b21b
pop ecx
test esi, esi
je 0x41fa91
push esi
push 1
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004c7617
push esi
call fcn.004228b3
add esp, 0x14
lea eax, [ebp - 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004cd060
pop ecx
pop ecx
test eax, eax
jne 0x41faf6
push ebx
call fcn.004208fc
pop ecx
test eax, eax
jne 0x41faf1
push 0x64
call edi
call fcn.004b729a
mov esi, dword [ebp - 0x1c]
sub eax, esi
cmp eax, 0x2710
jae 0x41fad0
push ebx
call fcn.004208fc
pop ecx
test eax, eax
jne 0x41faf1
push 0x64
call edi
call fcn.004b729a
sub eax, esi
cmp eax, 0x2710
jae 0x41faf6
push ebx
call fcn.004208fc
neg eax
pop ecx
sbb eax, eax
neg eax
jmp 0x41faf8
xor eax, eax
inc eax
jmp 0x41faf8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41fbfc
shr eax, 4
and eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41fe69
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push 0
push eax
call fcn.004c37f0
push ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004c37f0
push 0x140
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.004c37f0
add esp, 0x24
test esi, esi
je 0x41ff4e
cmp byte [esi], 0
je 0x41ff4e
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004ccf60
lea eax, [ebp - 0x108]
push eax
call fcn.0048ce46
mov eax, dword [0x568810]
add esp, 0x18
mov ecx, dword [0x56880c]
add eax, 0xf
cmp ecx, eax
jle 0x41ff26
push ecx
push str.:8:DoesFileExist_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
mov dword [0x568810], ecx
call fcn.0041cce9
pop ecx
pop ecx
mov ecx, dword [0x56880c]
lea eax, [ebp - 0x34c]
inc ecx
push eax
lea eax, [ebp - 0x20c]
mov dword [0x56880c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x56880c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ffbe
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret 4
cmp byte [ebp - 0x320], 0x2e
je 0x41ffac
lea eax, [ebp - 0x320]
push eax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x41ffac
cmp byte [ebp - 0x108], 0x2a
jne 0x41ffc7
cmp byte [ebp - 0x106], 0x2a
jne 0x41ffc7
mov al, byte [ebp - 0x107]
cmp al, 0x3f
je 0x41ffc7
movsx eax, al
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.004c3d60
pop ecx
pop ecx
test eax, eax
jne 0x41ffc7
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41ffd6
cmp dword [0x53e324], 0
jne 0x41ff60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x41ff50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41ff4e
Function at 0x42078a
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4208eb
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4208eb
push edi
call fcn.004cd280
mov ebx, 0x104
pop ecx
cmp eax, ebx
jae 0x4208a4
push esi
call fcn.004cd280
pop ecx
cmp eax, ebx
jae 0x4208a4
mov ebx, dword [ebp + 0x10]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42089f
push esi
call fcn.0041fbe3
pop ecx
test eax, eax
je 0x42086e
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x108]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x108]
push eax
call fcn.0048c30a
add esp, 0x20
test eax, eax
jne 0x4208eb
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0048c896
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4208ed
test ebx, ebx
jne 0x4208eb
push esi
call fcn.0041fc00
pop ecx
test eax, eax
je 0x4208eb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x4208eb
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
jmp 0x420865
xor eax, eax
inc eax
jmp 0x4208ed
push edi
call fcn.0048abbd
push esi
mov ebx, eax
call fcn.0048abbd
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4208e0
test edi, edi
je 0x4208dd
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.004cceff
push edi
call fcn.004cceff
pop ecx
pop ecx
mov eax, esi
jmp 0x4208ed
push ebx
jmp 0x4208e5
test edi, edi
je 0x4208eb
push edi
call fcn.004cceff
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x420950
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42094b
push esi
call fcn.0041fc00
pop ecx
test eax, eax
je 0x42094b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x420950
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x420952
xor eax, eax
inc eax
jmp 0x420952
xor eax, eax
pop esi
pop ebp
ret