joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418002
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5005d0]
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.004a7110
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004a7110
add esp, 0x18
mov edx, edi
call fcn.00475851
test eax, eax
jne 0x418130
mov edx, dword [ebp - 0x80]
call fcn.00475851
test eax, eax
jne 0x418130
push dword [ebp - 0x80]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp + 0x8c]
call fcn.00475883
mov edx, eax
call fcn.00476270
mov esi, edx
call fcn.00476311
mov eax, esi
push eax
call fcn.004a63c0
pop ecx
pop ecx
jmp 0x4180b4
lea ecx, [ebp + eax + 0x8c]
cmp byte [ecx], 0x5c
jne 0x4180b9
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x4180a6
lea esi, [ebp + 0x8c]
call fcn.00475b80
push dword [ebp - 0x7c]
mov ecx, edi
lea eax, [ebp - 0x78]
call fcn.00475883
mov edx, eax
call fcn.00476270
mov esi, edx
call fcn.00476311
mov eax, esi
push eax
call fcn.004a63c0
pop ecx
pop ecx
jmp 0x4180f6
lea ecx, [ebp + eax - 0x78]
cmp byte [ecx], 0x5c
jne 0x4180fb
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x4180eb
lea eax, [ebp - 0x78]
call fcn.00475bc3
mov edx, eax
lea ecx, [ebp + 0x8c]
call fcn.00475e0d
cmp dword [ebp + 0x1a0], ebx
lea eax, [ebp + 0x8c]
je 0x41812c
push 0xb
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x418132
push 0xa
jmp 0x418120
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x194
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5005d0]
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.004a7110
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00476311
push 0
push 0x5c
call fcn.004763bc
pop ecx
pop ecx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4181f0
test al, 0x10
je 0x4181f0
mov eax, esi
push 1
push eax
call fcn.00418237
mov eax, esi
push 1
push eax
call fcn.00418253
add esp, 0x10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [ebp - 0x114], eax
jne 0x4181e8
lea edi, [ebp - 0x110]
call fcn.00418e6b
push dword [ebp - 0x114]
jmp 0x418209
xor esi, esi
cmp eax, 0xffffffff
je 0x418207
call fcn.00418e6b
test eax, eax
je 0x418207
push edi
call fcn.00418f1c
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.004a69f5
leave
ret
Function at 0x418307
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.00475851
test eax, eax
jne 0x4183ef
mov edx, dword [ebp + 0xc]
call fcn.00475851
test eax, eax
jne 0x4183ef
push dword [ebp + 8]
call fcn.004a63c0
push dword [ebp + 8]
call fcn.004a63c0
add eax, 0xa
push eax
push 1
call fcn.004a5f90
push dword [ebp + 0xc]
mov esi, eax
call fcn.004a63c0
add eax, 0xa
push eax
push 1
call fcn.004a5f90
add esp, 0x1c
cmp esi, ebx
mov edi, eax
je 0x4183ef
cmp edi, ebx
je 0x4183ef
push dword [ebp + 8]
push esi
call fcn.004a64e0
push dword [ebp + 0xc]
push edi
call fcn.004a64e0
push esi
call fcn.004a63c0
push edi
mov byte [eax + esi + 1], bl
call fcn.004a63c0
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.004a5de4
push edi
call fcn.004a5de4
xor eax, eax
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
sete al
jmp 0x4183f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4183f6
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.00475851
test eax, eax
jne 0x4184ec
mov edx, dword [ebp + 0xc]
call fcn.00475851
test eax, eax
jne 0x4184ec
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 0x41848d
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 0x41847a
mov dword [ebp - 8], 1
jmp 0x418488
cmp dword [0x50eb48], ebx
je 0x418488
mov dword [0x50eb48], ebx
call fcn.0041b138
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041887a
add esp, 0xc
test eax, eax
je 0x4184ec
cmp dword [ebp - 8], ebx
jne 0x4184ac
xor eax, eax
inc eax
jmp 0x4184ee
push ebx
push 0x80000020
push 3
push ebx
push 7
push pe_nt_image_headers32
push dword [ebp + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4184a7
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 0x4184e5
inc dword [0x51809c]
call fcn.0041b138
jmp 0x4184a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41887a
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5005d0]
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.00475851
test eax, eax
jne 0x4189e2
mov edx, edi
call fcn.00475851
test eax, eax
jne 0x4189e2
push ebx
call fcn.004a63c0
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x418997
push edi
call fcn.004a63c0
cmp eax, esi
pop ecx
jae 0x418997
push dword [ebp + 0x10]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
test eax, eax
jne 0x418992
push edi
call fcn.00418f1c
test eax, eax
pop ecx
je 0x418960
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
push dword [ebp - 0x114]
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov edx, esi
call fcn.00475851
test eax, eax
jne 0x4189e2
mov edx, edi
mov ecx, esi
call fcn.00475e0d
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp - 0x114]
call ebx
jmp 0x4189e4
cmp dword [ebp + 0x10], 0
jne 0x4189e2
call fcn.00418e6b
test eax, eax
je 0x4189e2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x4189e2
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 0x418953
xor eax, eax
inc eax
jmp 0x4189e4
mov eax, ebx
call fcn.004780a1
mov esi, eax
mov eax, edi
call fcn.004780a1
test esi, esi
mov edi, eax
je 0x4189d7
test edi, edi
je 0x4189d0
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov ebx, eax
call fcn.004a5de4
pop ecx
push edi
call fcn.004a5de4
pop ecx
mov eax, ebx
jmp 0x4189e4
push esi
call fcn.004a5de4
pop ecx
test edi, edi
je 0x4189e2
push edi
call fcn.004a5de4
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret

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

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.00475851
test eax, eax
je 0x418a07
xor eax, eax
jmp 0x418a43
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x418a40
call fcn.00418e6b
test eax, eax
je 0x418a40
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x418a03
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 0x418a43
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x418a9e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x110], bl
call fcn.004a7110
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x11c], ebx
je 0x418b2a
cmp byte [esi], bl
je 0x418b2a
cmp edi, ebx
je 0x418b2a
cmp byte [edi], bl
je 0x418b2a
mov edi, 0x61a8
push edi
push 0x20
push 3
push 1
mov eax, esi
call fcn.004179ab
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x124], eax
jne 0x418b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
push dword [ebp - 0x114]
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00476311
mov edx, esi
call fcn.00475851
test eax, eax
jne 0x418b95
mov eax, esi
push eax
call fcn.004a63c0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x418b95
push dword [ebp - 0x120]
mov ecx, 0x104
mov eax, esi
call fcn.00475883
pop ecx
push dword [ebp - 0x114]
call fcn.00475f63
pop ecx
push edi
push 0x80000020
push 2
push 6
lea eax, [ebp - 0x110]
call fcn.004179ab
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x120], eax
jne 0x418bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x124]
call fcn.0041b138
jmp 0x418b2a
mov esi, 0x100000
push esi
call fcn.004a76c7
mov edi, eax
cmp edi, ebx
pop ecx
je 0x418c66
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push esi
push edi
push dword [ebp - 0x124]
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418c1c
inc dword [0x5180a0]
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x118], ebx
jbe 0x418c5d
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x128], ebx
push edi
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418c55
inc dword [0x5180a0]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x118], ebx
ja 0x418bf0
push edi
call fcn.004a5de4
pop ecx
jmp 0x418c70
mov dword [ebp - 0x114], 1
mov esi, dword [ebp - 0x120]
call fcn.0041b138
mov esi, dword [ebp - 0x124]
call fcn.0041b138
cmp dword [ebp - 0x11c], ebx
jne 0x418b2a
cmp dword [ebp - 0x114], ebx
jne 0x418b2a
xor eax, eax
inc eax
jmp 0x418b2c

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418f33
test al, 0x10
je 0x418f33
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x41908f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x5005d0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.004a7110
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.004a7110
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004a7110
add esp, 0x24
cmp edi, ebx
je 0x4191d4
cmp byte [edi], bl
je 0x4191d4
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.00475883
push eax
lea eax, [esp + 0x158]
push eax
call fcn.004a64e0
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.00475b80
mov eax, dword [0x517dd4]
lea ecx, [eax + 0xf]
mov eax, dword [0x517dd0]
cmp eax, ecx
jle 0x41914c
mov dword [0x517dd4], eax
inc eax
mov dword [0x517dd0], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x517dd0]
mov esi, eax
cmp esi, 0xffffffff
je 0x4191d4
cmp byte [esp + 0x3c], 0x2e
je 0x4191bd
lea edx, [esp + 0x3c]
call fcn.00475851
test eax, eax
jne 0x4191bd
cmp byte [esp + 0x150], 0x2a
jne 0x4191ed
cmp byte [esp + 0x152], 0x2a
jne 0x4191ed
cmp byte [esp + 0x151], 0x3f
je 0x4191ed
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004a8cb0
test eax, eax
pop ecx
pop ecx
jne 0x4191ed
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419172
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x4191d6
Function at 0x4191f9
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
je 0x41932d
cmp byte [edi], 0x30
je 0x41932d
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004a7110
push edi
mov ecx, esi
lea eax, [ebp - 0x74]
call fcn.00475883
push 0x22
mov edi, eax
call fcn.004761a3
add esp, 0x14
cmp dword [ebp + 0x9c], ebx
jbe 0x419281
push 0xf7b
push str..File.c
mov eax, edi
push eax
push 0x419376
mov ecx, str.CreateDirectorySuper
call fcn.0041af8d
mov esi, eax
jmp 0x419283
xor esi, esi
cmp esi, ebx
jne 0x4192b7
push ebx
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x4192b2
cmp eax, 0x50
je 0x4192b2
cmp eax, 0xb7
je 0x4192b2
cmp eax, 0x4c7
je 0x4192b2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41932d
xor eax, eax
inc eax
jmp 0x41932f
call fcn.00498efc
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
jmp 0x4192eb
cmp dword [ebp - 0x78], 0x103
jne 0x419305
call fcn.00498efc
sub eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0x9c]
ja 0x4192f8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x78]
push eax
push esi
call edi
test eax, eax
jne 0x4192ca
jmp 0x419305
mov dword [ebp - 0x78], ebx
mov dword [0x517dcc], 0x5b4
call fcn.0041b138
push dword [0x517dcc]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x78], ebx
jne 0x4192b2
mov eax, dword [ebp - 0x7c]
call fcn.00419347
push dword [0x517dcc]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x94
leave
ret
Function at 0x419439
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x5005d0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, edx
push edi
mov ebx, ecx
mov dword [esp + 0x10], esi
call fcn.00475851
test eax, eax
je 0x41947e
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret
call fcn.00498efc
push ebx
mov edi, 0x80
push edi
mov dword [esp + 0x1c], eax
push 3
push 0x80000000
mov eax, esi
call fcn.004179ab
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x41950b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
je 0x4194bf
call fcn.00498efc
sub eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x4194ff
mov eax, dword [esp + 0x10]
push ebx
push edi
push 3
push 0x2000000
call fcn.004179ab
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x41950b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov esi, eax
je 0x4194f4
call fcn.00498efc
sub eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x4194ff
mov ecx, dword [esp + 0x10]
push ebx
call fcn.00418f36
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x419467
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x419528
call fcn.0041b138
jmp 0x419467
cmp eax, ebx
jbe 0x419559
push ebx
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41954d
cmp dword [esp + 0x10], ebx
jne 0x419559
call fcn.0041b138
mov eax, ebx
jmp 0x419469
mov ebx, dword [esp + 0x14]
jmp 0x41954d
Function at 0x419ea1
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.00475851
test eax, eax
je 0x419eb9
xor eax, eax
jmp 0x419f3d
xor ecx, ecx
mov edx, edi
call fcn.00419439
mov esi, eax
test esi, esi
je 0x419eb2
push 0x1385
push str..File.c
mov edx, 0x4c520c
mov ecx, edi
call fcn.0041a89d
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x419eb2
lea eax, [esi + 0xe]
push eax
call fcn.004a76c7
mov edi, eax
test edi, edi
pop ecx
jne 0x419eff
mov ecx, ebp
call fcn.0041acca
jmp 0x419eb2
push ebp
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.004a7455
mov ebx, eax
add esp, 0x10
cmp ebx, esi
jae 0x419f22
push ebp
call fcn.004a718a
test eax, eax
pop ecx
jne 0x419f22
xor ebx, ebx
mov ecx, ebp
call fcn.0041acca
test ebx, ebx
jne 0x419f39
push edi
call fcn.004a5de4
pop ecx
jmp 0x419eb2
mov dword [edi], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x419fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
mov esi, edx
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x114], esi
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
test esi, esi
je 0x41a0c1
mov edx, edi
call fcn.00475851
test eax, eax
jne 0x41a0c1
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
mov esi, eax
call fcn.00475b80
mov eax, esi
push edi
push eax
call fcn.004a75f0
add esp, 0xc
test eax, eax
jne 0x41a07d
push edi
push eax
push eax
call fcn.00459ede
pop ecx
pop ecx
push eax
push 0x4c64d0
mov eax, esi
push 0x104
push eax
call fcn.00476e0a
add esp, 0x14
mov edi, esi
push 0x14c4
push str..File.c
mov edx, 0x4c520c
mov ecx, edi
call fcn.0041a89d
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41a0c1
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004a7455
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0041acca
mov eax, esi
jmp 0x41a0c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a69f5
leave
ret
Function at 0x41a0d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x110], 0
call fcn.004a7110
add esp, 0xc
mov edx, edi
call fcn.00475851
test eax, eax
je 0x41a120
xor eax, eax
jmp 0x41a1c0
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov eax, esi
push edi
push eax
call fcn.004a75f0
test eax, eax
pop ecx
pop ecx
jne 0x41a16a
push edi
push eax
push eax
call fcn.00459ede
pop ecx
pop ecx
push eax
push 0x4c64d0
mov eax, esi
push 0x104
push eax
call fcn.00476e0a
add esp, 0x14
mov edi, esi
cmp dword [ebp - 0x114], 0
je 0x41a1b5
push 0x14e4
push str..File.c
mov edx, 0x4c5348
mov ecx, edi
call fcn.0041a89d
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41a119
push edi
push 1
push 0x64
push dword [ebp - 0x114]
call fcn.004a612e
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
mov ecx, edi
neg esi
call fcn.0041acca
jmp 0x41a1be
mov eax, edi
call fcn.004189f3
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a69f5
leave
ret

Function at 0x41a1eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x114], esi
mov edi, edx
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x110], bl
call fcn.004a7110
add esp, 0xc
cmp edi, ebx
jne 0x41a238
lea edi, [ebp - 0x118]
mov edx, esi
call fcn.00475851
test eax, eax
je 0x41a24c
mov dword [edi], ebx
xor eax, eax
jmp 0x41a2e7
push esi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
mov esi, eax
call fcn.00475b80
push dword [ebp - 0x114]
mov eax, esi
push eax
call fcn.004a75f0
add esp, 0xc
test eax, eax
jne 0x41a2a6
push dword [ebp - 0x114]
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
push 0x4c64d0
mov eax, esi
push 0x104
push eax
call fcn.00476e0a
mov eax, esi
add esp, 0x14
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push 0x151c
push str..File.c
mov edx, 0x4c520c
call fcn.0041a89d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x41a245
push esi
push 1
push 4
push edi
call fcn.004a7455
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0041acca
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
Function at 0x41a2f6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5005d0]
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.004a7110
add esp, 0xc
mov edx, edi
call fcn.00475851
test eax, eax
je 0x41a33c
xor eax, eax
jmp 0x41a3c0
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00475883
mov esi, eax
call fcn.00475b80
mov eax, esi
push edi
push eax
call fcn.004a75f0
add esp, 0xc
test eax, eax
jne 0x41a386
push edi
push eax
push eax
call fcn.00459ede
pop ecx
pop ecx
push eax
push 0x4c64d0
mov eax, esi
push 0x104
push eax
call fcn.00476e0a
add esp, 0x14
mov edi, esi
push 0x1542
push str..File.c
mov edx, 0x4c5348
mov ecx, edi
call fcn.0041a89d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41a335
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call fcn.004a612e
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0041acca
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a69f5
leave
ret