joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4280f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x59a240]
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.004e4da0
add esp, 0xc
mov dword [ebp - 0x10c], ebx
test esi, esi
je 0x4281f5
cmp byte [esi], 0x30
je 0x4281f5
mov eax, ebx
cmp eax, edi
jae 0x4282db
mov byte [ebp + eax - 0x108], bl
inc eax
cmp eax, edi
jl 0x428144
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push 0x22
push eax
call fcn.0049ff57
mov ebx, dword [ebp + 0xc]
add esp, 0x14
test ebx, ebx
je 0x4281bc
push 0xf7c
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push str.CreateDirectorySuper
xor ecx, ecx
lea eax, [ebp - 0x108]
push ecx
push ecx
push eax
push 0x4282e1
push ecx
push ecx
call fcn.00428c2f
mov edi, eax
test edi, edi
jne 0x428206
push str._GetLastError_
push eax
push esi
push str.:8:CreateDirectorySuper___FAILED_to_create_thread_to_create_directory___s_._NumThreads_d:__s
call fcn.004255b9
add esp, 0x10
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4282d3
cmp eax, 0x50
je 0x4282d3
cmp eax, 0xb7
je 0x4282d3
cmp eax, 0x4c7
je 0x4282d3
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.004e3632
leave
ret
call fcn.004ca9ca
mov dword [ebp - 0x110], eax
jmp 0x428236
cmp dword [ebp - 0x10c], 0x103
jne 0x428275
call fcn.004ca9ca
sub eax, dword [ebp - 0x110]
cmp eax, ebx
ja 0x42824a
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 0x428213
jmp 0x428275
push esi
call fcn.004ca9ca
sub eax, dword [ebp - 0x110]
push eax
push str.:5:CreateDirectorySuper___timed_out_after__ldms_while_creating___s_
call fcn.00425c08
add esp, 0xc
mov dword [0x5a3c70], 0x5b4
and dword [ebp - 0x10c], 0
push 0xfb0
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push str.CreateDirectorySuper
push edi
call fcn.00426fac
push dword [0x5a3c70]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
cmp dword [ebp - 0x10c], 0
jne 0x4282d3
push esi
call fcn.0042b86f
pop ecx
test eax, eax
jne 0x4282c6
push dword [0x5a3c70]
push str._GetLastError_
push ebx
push esi
push str.:3:FYI:_CreateDirectorySuper__s___lu___FAILED:__s_ld
call fcn.00425c08
add esp, 0x14
push dword [0x5a3c70]
call edi
jmp 0x4281f5
xor eax, eax
inc eax
jmp 0x4281f7
call fcn.004e37db
int3
Function at 0x428b0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x59a240]
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.004e4da0
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004e4da0
add esp, 0x18
test esi, esi
je 0x428bd3
push esi
call fcn.0049e2d6
mov dword [esp], 0x21e88e
push 0xde
call fcn.0045933c
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004a0ddb
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x428b9b
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempPath___FAILED:__s
jmp 0x428bcc
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 0x428bc2
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x428bc2
mov eax, esi
jmp 0x428bd5
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempFileName___FAILED:__s
call fcn.004255b9
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e3632
leave
ret
Function at 0x428c2f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x59a240]
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.004e4da0
push 0x1c8
push 1
call fcn.004ee464
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x428cb0
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x428dd4
mov eax, dword [0x5a5820]
test eax, eax
jne 0x428cc3
call fcn.0048e640
mov dword [0x5a5820], eax
push ebx
push eax
call fcn.0048eaf2
cmp dword [0x5a5820], 0
pop ecx
pop ecx
jne 0x428ce8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.004ee46f
jmp 0x428dd3
mov dword [ebx], esi
lea eax, [ebx + 4]
test esi, esi
je 0x428d04
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 0x428d11
push 0xc
push 0
push eax
call fcn.004e4da0
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.004a11a5
push 0x104
push dword [ebp - 0x120]
lea eax, [ebp - 0x108]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
push 0x40
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.004a11a5
mov eax, dword [ebp + 0x28]
and dword [ebx + 0xb0], 0
mov dword [ebx + 0xa4], eax
call fcn.004ca9ca
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0xb8]
push eax
call fcn.0049e2d6
and dword [ebx + 0xac], 0
add esp, 0x2c
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
push 0x428be2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xa8], eax
test eax, eax
jne 0x428dd6
push ebx
call fcn.00428de7
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret 0x24
Function at 0x428e37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59a240]
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.004e4da0
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a0326
push edi
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004a02ac
add esp, 0x28
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428f37
test al, 0x10
je 0x428f0f
push edi
push 0x429edf
push 1
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042ccf8
push edi
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00429076
add esp, 0x20
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x428f0c
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
pop ecx
test eax, eax
je 0x428f0c
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.004255b9
add esp, 0x14
push ebx
jmp 0x428f39
cmp eax, 0xffffffff
je 0x428f37
push esi
call fcn.0042916f
pop ecx
test eax, eax
je 0x428f37
push esi
call fcn.00429152
pop ecx
test eax, eax
jne 0x428f37
push esi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.004255b9
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.004e3632
leave
ret
Function at 0x428f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x59a240]
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.004ca9ca
push ebx
mov dword [ebp - 0x1c], eax
call fcn.0049f486
pop ecx
test eax, eax
jne 0x429065
push ebx
call fcn.0042916f
pop ecx
test eax, eax
je 0x429060
push 0x148c
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push ebx
call fcn.0042d2de
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x428fdb
push 0x64
call edi
push 0x1490
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push ebx
call fcn.0042d2de
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049e2d6
pop ecx
test esi, esi
je 0x429000
push esi
push 1
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004e8bc6
push esi
call fcn.0042d153
add esp, 0x14
lea eax, [ebp - 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004ee5d0
pop ecx
pop ecx
test eax, eax
jne 0x429065
push ebx
call fcn.00429e69
pop ecx
test eax, eax
jne 0x429060
push 0x64
call edi
call fcn.004ca9ca
mov esi, dword [ebp - 0x1c]
sub eax, esi
cmp eax, 0x2710
jae 0x42903f
push ebx
call fcn.00429e69
pop ecx
test eax, eax
jne 0x429060
push 0x64
call edi
call fcn.004ca9ca
sub eax, esi
cmp eax, 0x2710
jae 0x429065
push ebx
call fcn.00429e69
neg eax
pop ecx
sbb eax, eax
neg eax
jmp 0x429067
xor eax, eax
inc eax
jmp 0x429067
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret

Function at 0x429152
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 0x42916b
shr eax, 4
and eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4293d8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x59a240]
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.004e4da0
push ebx
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e4da0
push 0x140
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.004e4da0
add esp, 0x24
test esi, esi
je 0x4294bd
cmp byte [esi], 0
je 0x4294bd
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004ee4d0
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
mov eax, dword [0x5a3c78]
add esp, 0x18
mov ecx, dword [0x5a3c74]
add eax, 0xf
cmp ecx, eax
jle 0x429495
push ecx
push str.:8:DoesFileExist_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
mov dword [0x5a3c78], ecx
call fcn.00425c08
pop ecx
pop ecx
mov ecx, dword [0x5a3c74]
lea eax, [ebp - 0x34c]
inc ecx
push eax
lea eax, [ebp - 0x20c]
mov dword [0x5a3c74], ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x5a3c74]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42952d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret 4
cmp byte [ebp - 0x320], 0x2e
je 0x42951b
lea eax, [ebp - 0x320]
push eax
call fcn.0049f486
pop ecx
test eax, eax
jne 0x42951b
cmp byte [ebp - 0x108], 0x2a
jne 0x429536
cmp byte [ebp - 0x106], 0x2a
jne 0x429536
mov al, byte [ebp - 0x107]
cmp al, 0x3f
je 0x429536
movsx eax, al
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.004e5310
pop ecx
pop ecx
test eax, eax
jne 0x429536
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x429545
cmp dword [0x56f164], 0
jne 0x4294cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x4294bf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4294bd
Function at 0x429cf7
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59a240]
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.0049f486
pop ecx
test eax, eax
jne 0x429e58
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x429e58
push edi
call fcn.004ee800
mov ebx, 0x104
pop ecx
cmp eax, ebx
jae 0x429e11
push esi
call fcn.004ee800
pop ecx
cmp eax, ebx
jae 0x429e11
mov ebx, dword [ebp + 0x10]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x429e0c
push esi
call fcn.00429152
pop ecx
test eax, eax
je 0x429ddb
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
lea eax, [ebp - 0x108]
push eax
call fcn.0049f486
add esp, 0x20
test eax, eax
jne 0x429e58
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0049fcaa
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x429e5a
test ebx, ebx
jne 0x429e58
push esi
call fcn.0042916f
pop ecx
test eax, eax
je 0x429e58
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x429e58
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 0x429dd2
xor eax, eax
inc eax
jmp 0x429e5a
push edi
call fcn.0049dc78
push esi
mov ebx, eax
call fcn.0049dc78
mov edi, eax
pop ecx
pop ecx
test ebx, ebx
je 0x429e4d
test edi, edi
je 0x429e4a
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.004ee46f
push edi
call fcn.004ee46f
pop ecx
pop ecx
mov eax, esi
jmp 0x429e5a
push ebx
jmp 0x429e52
test edi, edi
je 0x429e58
push edi
call fcn.004ee46f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret

Function at 0x429e69
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.0049f486
pop ecx
test eax, eax
jne 0x429ebd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x429eb8
push esi
call fcn.0042916f
pop ecx
test eax, eax
je 0x429eb8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x429ebd
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 0x429ebf
xor eax, eax
inc eax
jmp 0x429ebf
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42a8ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov esi, str.ThisIsAFileLockxxxx
push 5
pop ecx
test edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x28]
cmovne edi, edx
call fcn.004ca9ca
push 0x10
push 0
push edi
mov dword [ebp - 0x2c], eax
call fcn.004e4da0
push ebx
call fcn.0042916f
add esp, 0x10
test eax, eax
jne 0x42a949
xor eax, eax
jmp 0x42aa06
push 0x145b
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push ebx
call fcn.0042d2de
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42a9ab
call fcn.004ca9ca
sub eax, dword [ebp - 0x2c]
cmp eax, 0x2710
jae 0x42a99c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1460
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push ebx
call fcn.0042d2de
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x42a9ab
push ebx
push str.:5:GetFileLock___s___FAILED:_The_file_exists_but_cannot_be_opened.
call fcn.004255b9
pop ecx
pop ecx
jmp 0x42a942
lea eax, [ebp - 0x18]
push eax
call fcn.0049e2d6
push esi
push 1
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.004e8bc6
lea eax, [ebp - 0x18]
push str.ThisIsAFileLockxxxx
push eax
call fcn.004ee5d0
add esp, 0x1c
push esi
test eax, eax
je 0x42a9f0
call fcn.0042d153
push ebx
push str.:5:GetFileLock___s___FAILED:_The_lock_ID_could_not_be_validated.
call fcn.004255b9
add esp, 0xc
jmp 0x42a942
push 1
push 0x10
push edi
call fcn.004e8bc6
push esi
call fcn.0042d153
xor eax, eax
add esp, 0x14
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x42aa40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x90], eax
call fcn.0049f486
pop ecx
test eax, eax
je 0x42aa76
xor eax, eax
jmp 0x42ac55
push edi
call fcn.004ca9ca
push ebx
push esi
xor edi, edi
mov dword [ebp - 0x8c], eax
push edi
push 0x80
push 3
push edi
push 7
push connect
push dword [ebp - 0x90]
call fcn.004286d2
add esp, 0x24
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
jne 0x42ab7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
test ebx, ebx
je 0x42aac7
cmp dword [ebx], edi
jne 0x42aae0
test esi, esi
je 0x42aae6
call fcn.004ca9ca
sub eax, dword [ebp - 0x8c]
cmp eax, esi
jb 0x42aae6
mov eax, dword [ebp - 0x94]
push eax
jmp 0x42ab72
push ebx
push esi
push edi
push 0x80
push 3
push edi
push 7
push 0x2000000
push dword [ebp - 0x90]
call fcn.004286d2
add esp, 0x24
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
jne 0x42ab7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x42ab25
cmp dword [ebx], edi
jne 0x42ab6c
test esi, esi
je 0x42ab38
call fcn.004ca9ca
sub eax, dword [ebp - 0x8c]
cmp eax, esi
jae 0x42ab6c
mov ebx, dword [ebp - 0x90]
push esi
push ebx
call fcn.0042921e
pop ecx
pop ecx
test eax, eax
je 0x42ab6c
mov eax, dword [ebp - 0x88]
push eax
push str._GetLastError_
push eax
push dword [ebp - 0x94]
push ebx
push str.:8:GetFileSizeTimeOut___Seems_to_have_failed_because_of_an_access_rights_problem_:___s_:__u:_u:__s_ld
call fcn.004255b9
add esp, 0x18
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42ac2f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x94], eax
cmp eax, 0xffffffff
jne 0x42abbd
test ebx, ebx
je 0x42ab96
mov edi, dword [ebx]
push str._GetLastError_
push edi
push esi
push dword [ebp - 0x90]
push str.:7:GetFileSizeTimeOut___s____ld___d__FAILED:__s
call fcn.00425c08
mov edi, dword [ebp - 0x88]
add esp, 0x14
push 0x1048
jmp 0x42ac1f
test eax, eax
je 0x42ac33
push edi
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x88]
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42abf5
cmp dword [ebp - 0x8c], 0
jne 0x42ac39
push str._GetLastError_
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
push esi
push dword [ebp - 0x90]
push str.:7:GetFileSizeTimeOut___s____ld__FAILED:_GetFileSize___returned__ld_but_ReadFile_____ldBytesRead__FAILED:__s
call fcn.004255b9
add esp, 0x18
push 0x1054
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push str.GetFileSizeTimeOut
push edi
call fcn.00426fac
xor eax, eax
jmp 0x42ac54
mov edi, dword [ebp - 0x88]
push 0x1059
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push str.GetFileSizeTimeOut
push edi
call fcn.00426fac
mov eax, dword [ebp - 0x94]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
Function at 0x42b8ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x42b902
push eax
push eax
push esi
call fcn.0042aa40
mov edi, eax
add esp, 0xc
mov dword [ebp - 4], edi
test edi, edi
je 0x42b902
push 0x1386
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push esi
call fcn.0042d2de
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42b909
push esi
push str.:6:LoadFileToMemory___s___FAILED:_fopen___failed_even_after_GetFileSizeTimeOut___succeeded___
call fcn.004255b9
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [edi + 0xe]
push eax
call fcn.004ee88b
mov edi, eax
pop ecx
test edi, edi
jne 0x42b932
push dword [ebp - 4]
push esi
push str.:5:LoadFileToMemory___s___FAILED:_malloc___failed_to_allocate_over__u_bytes:_OUT_OF_MEMORY.
call fcn.004255b9
push ebx
call fcn.0042d153
add esp, 0x10
jmp 0x42b902
mov esi, dword [ebp - 4]
lea eax, [edi + 4]
push ebx
push esi
push 1
push eax
call fcn.004e8bc6
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x42b95e
push ebx
call fcn.004e8283
mov esi, dword [ebp - 4]
neg eax
pop ecx
sbb eax, eax
and esi, eax
jmp 0x42b960
mov esi, eax
push ebx
call fcn.0042d153
pop ecx
test esi, esi
jne 0x42b973
push edi
call fcn.004ee46f
jmp 0x42b901
mov dword [edi], esi
mov eax, edi
jmp 0x42b904

Function at 0x42b979
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x104
push edi
push 0
push eax
call fcn.004e4da0
add esp, 0xc
test ebx, ebx
je 0x42ba5e
cmp dword [ebp + 0x10], 0
jle 0x42ba5e
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x42ba5e
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004ee5d0
add esp, 0x18
test eax, eax
jne 0x42ba21
push esi
push eax
push eax
call fcn.0047ced0
pop ecx
pop ecx
push eax
push 0x50d2a0
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004a0ddb
add esp, 0x14
lea esi, [ebp - 0x108]
push 0x14c5
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_File.c
push 0x50965c
push esi
call fcn.0042d2de
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42ba5e
push edi
push 1
push dword [ebp + 0x10]
push ebx
call fcn.004e8bc6
neg eax
push edi
sbb esi, esi
neg esi
call fcn.0042d153
add esp, 0x14
mov eax, esi
jmp 0x42ba60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret