joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a9f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x4832e4]
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.00401f80
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.00401f80
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.00401f80
add esp, 0x24
cmp edi, ebx
je 0x457be5
cmp byte [edi], bl
je 0x457be5
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.00428a08
push eax
lea eax, [esp + 0x158]
push eax
call fcn.00401ba0
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.004288d0
mov ecx, dword [0x49b3b8]
mov eax, dword [0x49b3b4]
add ecx, 0xf
cmp eax, ecx
jle 0x457b5d
mov dword [0x49b3b8], eax
inc eax
mov dword [0x49b3b4], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x49b3b4]
mov esi, eax
cmp esi, 0xffffffff
je 0x457be5
cmp byte [esp + 0x3c], 0x2e
je 0x457bce
lea edx, [esp + 0x3c]
call fcn.00429ac3
test eax, eax
jne 0x457bce
cmp byte [esp + 0x150], 0x2a
jne 0x457bfe
cmp byte [esp + 0x152], 0x2a
jne 0x457bfe
cmp byte [esp + 0x151], 0x3f
je 0x457bfe
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00403b30
pop ecx
pop ecx
test eax, eax
jne 0x457bfe
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x457b83
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.00401317
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x457be7

Function at 0x457c0a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
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.00429ac3
test eax, eax
je 0x457c35
xor eax, eax
jmp 0x457caf
push esi
push edi
call fcn.00401a80
push edi
call fcn.00401a80
add eax, 0xa
push eax
push 1
call fcn.00401a3a
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x457c5a
xor eax, eax
jmp 0x457cae
push edi
push esi
call fcn.00401ba0
push esi
call fcn.00401a80
mov byte [eax + esi + 1], bl
mov eax, 0x614
mov word [ebp - 0x10], ax
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 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.00401a00
xor eax, eax
cmp edi, ebx
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret
Function at 0x45866f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x107]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x108], bl
call fcn.00401f80
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00401f80
add esp, 0x18
mov edx, edi
call fcn.00429ac3
test eax, eax
jne 0x4587a7
mov edx, dword [ebp - 0x214]
call fcn.00429ac3
test eax, eax
jne 0x4587a7
push dword [ebp - 0x214]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.00428a08
mov edx, eax
call fcn.004296d6
mov esi, edx
call fcn.0042962d
mov eax, esi
push eax
call fcn.00401a80
pop ecx
pop ecx
jmp 0x458728
lea ecx, [ebp + eax - 0x108]
cmp byte [ecx], 0x5c
jne 0x45872d
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x45871a
lea esi, [ebp - 0x108]
call fcn.004288d0
push dword [ebp - 0x210]
mov ecx, edi
lea eax, [ebp - 0x20c]
call fcn.00428a08
mov edx, eax
call fcn.004296d6
mov esi, edx
call fcn.0042962d
mov eax, esi
push eax
call fcn.00401a80
pop ecx
pop ecx
jmp 0x458773
lea ecx, [ebp + eax - 0x20c]
cmp byte [ecx], 0x5c
jne 0x458778
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x458765
lea eax, [ebp - 0x20c]
call fcn.0042888f
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.0042a78c
push 0xb
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x4587a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x458b73
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [0x49cf48]
xor ebx, ebx
call fcn.0042efdc
xor esi, esi
jmp 0x458ba9
cmp esi, 0x56ce
jge 0x458bb1
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xa8]
je 0x458baf
mov edi, dword [0x49cf48]
call fcn.0042ef8f
inc esi
test eax, eax
jne 0x458b8a
jmp 0x458bb1
mov ebx, eax
mov eax, ebx
call fcn.00458065
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x458f94
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
push 0x103
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x107]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x110], esi
mov byte [ebp - 0x108], 0
call fcn.00401f80
push 0x1c8
push 1
call fcn.00401a3a
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x459001
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4590f2
mov eax, dword [0x49cf48]
test eax, eax
jne 0x459014
call fcn.0042edb6
mov dword [0x49cf48], eax
push ebx
push edi
mov ebx, eax
call fcn.0042ed65
xor ebx, ebx
pop ecx
cmp dword [0x49cf48], ebx
jne 0x45903c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call fcn.00401a00
pop ecx
jmp 0x4590ef
push 0xc
lea eax, [edi + 4]
push ebx
push eax
mov dword [edi], ebx
call fcn.00401f80
mov eax, dword [ebp + 8]
push dword [ebp - 0x114]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x18], eax
push 0x40
lea eax, [edi + 0x24]
pop ecx
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.00428a08
push dword [ebp - 0x10c]
mov ecx, 0x104
lea eax, [ebp - 0x108]
call fcn.00428a08
mov esi, eax
call fcn.004288d0
mov eax, esi
push eax
push 0x40
lea eax, [edi + 0x64]
pop ecx
call fcn.00428a08
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [edi + 0xa4], eax
mov dword [edi + 0xb0], ebx
call fcn.004182de
mov dword [edi + 0xb4], eax
lea eax, [edi + 0xb8]
call fcn.00428a82
push ebx
push ebx
push edi
push 0x458bca
push dword [ebp - 0x110]
mov dword [edi + 0xac], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xa8], eax
cmp eax, ebx
jne 0x4590f1
mov eax, edi
call fcn.00458065
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret 0x14
Function at 0x459102
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], ebx
cmp edi, ebx
je 0x459257
cmp byte [edi], 0x30
je 0x459257
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00401f80
push edi
mov ecx, esi
lea eax, [ebp - 0x108]
call fcn.00428a08
push 0x22
mov edi, eax
call fcn.00428829
add esp, 0x14
cmp dword [ebp + 8], ebx
jbe 0x45918d
push 0xf7f
push str.File.c
push str.CreateDirectorySuper
mov eax, edi
push eax
push 0x45776d
xor ecx, ecx
call fcn.00458f94
mov esi, eax
jmp 0x45918f
xor esi, esi
cmp esi, ebx
jne 0x4591cc
push ebx
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x4591c4
cmp eax, 0x50
je 0x4591c4
cmp eax, 0xb7
je 0x4591c4
cmp eax, 0x4c7
je 0x4591c4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x459257
xor eax, eax
inc eax
jmp 0x459259
call fcn.004182de
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], ebx
jmp 0x459209
cmp dword [ebp - 0x10c], 0x103
jne 0x459229
call fcn.004182de
sub eax, dword [ebp - 0x114]
cmp eax, dword [ebp + 8]
ja 0x459219
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c]
push eax
push esi
call edi
test eax, eax
jne 0x4591e5
jmp 0x459229
mov dword [ebp - 0x10c], ebx
mov dword [0x49b3b0], 0x5b4
call fcn.00458011
push dword [0x49b3b0]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x10c], ebx
jne 0x4591c4
mov eax, dword [ebp - 0x110]
call fcn.00457a70
push dword [0x49b3b0]
call esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

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

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.00429ac3
test eax, eax
je 0x45947e
xor eax, eax
jmp 0x4594ba
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x4594b7
call fcn.004593b9
test eax, eax
je 0x4594b7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x45947a
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 0x4594ba
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x4594be
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4832e4]
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.00429ac3
test eax, eax
jne 0x459626
mov edx, edi
call fcn.00429ac3
test eax, eax
jne 0x459626
push ebx
call fcn.00401a80
mov esi, 0x104
pop ecx
cmp eax, esi
jae 0x4595db
push edi
call fcn.00401a80
pop ecx
cmp eax, esi
jae 0x4595db
push dword [ebp + 0x10]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
test eax, eax
jne 0x4595d6
push edi
call fcn.00457831
pop ecx
test eax, eax
je 0x4595a4
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00401f80
add esp, 0xc
push dword [ebp - 0x114]
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.00428a08
pop ecx
mov esi, eax
call fcn.004288d0
mov edx, esi
call fcn.00429ac3
test eax, eax
jne 0x459626
mov edx, edi
mov ecx, esi
call fcn.0042a78c
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp - 0x114]
call ebx
jmp 0x459628
cmp dword [ebp + 0x10], 0
jne 0x459626
call fcn.004593b9
test eax, eax
je 0x459626
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x459626
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 0x459597
xor eax, eax
inc eax
jmp 0x459628
mov eax, ebx
call fcn.00429c8e
mov esi, eax
mov eax, edi
call fcn.00429c8e
mov edi, eax
test esi, esi
je 0x45961b
test edi, edi
je 0x459614
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov ebx, eax
call fcn.00401a00
pop ecx
push edi
call fcn.00401a00
pop ecx
mov eax, ebx
jmp 0x459628
push esi
call fcn.00401a00
pop ecx
test edi, edi
je 0x459626
push edi
call fcn.00401a00
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x459714
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
call fcn.00429ac3
test eax, eax
jne 0x459808
mov edx, dword [ebp + 0xc]
call fcn.00429ac3
test eax, eax
jne 0x459808
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 - 4], ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4597ab
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x459798
mov dword [ebp - 4], 1
jmp 0x4597a6
cmp dword [0x491758], ebx
je 0x4597a6
mov dword [0x491758], ebx
call fcn.00458011
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004594be
add esp, 0xc
test eax, eax
je 0x459808
cmp dword [ebp - 4], ebx
jne 0x4597c8
xor eax, eax
inc eax
jmp 0x45980a
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 0x4597c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x459801
inc dword [0x49b3c4]
call fcn.00458011
jmp 0x4597c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x459add
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4832e4]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, ecx
push edi
mov edx, esi
mov dword [esp + 0x10], esi
call fcn.00429ac3
test eax, eax
je 0x459b22
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
call fcn.004182de
xor ebx, ebx
push ebx
mov edi, 0x80
push edi
push 3
push closesocket
mov eax, esi
call fcn.00459828
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x459b88
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov eax, dword [esp + 0x10]
push 0
push edi
push 3
push 0x2000000
call fcn.00459828
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x459b86
call ebx
mov ecx, dword [esp + 0x10]
push 0
mov esi, eax
call fcn.00459268
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x459b0b
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x459ba3
call fcn.00458011
jmp 0x459b0b
cmp eax, ebx
jbe 0x459bd4
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 0x459bc8
cmp dword [esp + 0x10], ebx
jne 0x459bd4
call fcn.00458011
mov eax, ebx
jmp 0x459b0d
mov ebx, dword [esp + 0x14]
jmp 0x459bc8
Function at 0x459bda
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4832e4]
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.00401f80
add esp, 0xc
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x11c], ebx
cmp esi, ebx
je 0x459c66
cmp byte [esi], bl
je 0x459c66
cmp edi, ebx
je 0x459c66
cmp byte [edi], bl
je 0x459c66
mov edi, 0x61a8
push edi
push 0x20
push 3
push 1
mov eax, esi
call fcn.00459828
add esp, 0x10
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
jne 0x459c77
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.00401317
leave
ret
push dword [ebp - 0x114]
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00428a08
pop ecx
mov esi, eax
call fcn.0042962d
mov edx, esi
call fcn.00429ac3
test eax, eax
jne 0x459cd1
mov eax, esi
push eax
call fcn.00401a80
pop ecx
mov ecx, esi
cmp byte [eax + ecx - 1], 0x5c
jne 0x459cd1
push dword [ebp - 0x120]
mov ecx, 0x104
mov eax, esi
call fcn.00428a08
pop ecx
push dword [ebp - 0x114]
call fcn.0042ab13
pop ecx
push edi
push 0x80000020
push 2
push 6
lea eax, [ebp - 0x110]
call fcn.00459828
add esp, 0x10
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
jne 0x459d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x124]
call fcn.00458011
jmp 0x459c66
mov esi, 0x100000
push esi
call fcn.004028f8
mov edi, eax
pop ecx
cmp edi, ebx
je 0x459da2
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 0x459d58
inc dword [0x49b684]
inc dword [ebp - 0x11c]
cmp dword [ebp - 0x118], ebx
jbe 0x459d99
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 0x459d91
inc dword [0x49b684]
inc dword [ebp - 0x114]
cmp dword [ebp - 0x118], ebx
ja 0x459d2c
push edi
call fcn.00401a00
pop ecx
jmp 0x459dac
mov dword [ebp - 0x114], 1
mov esi, dword [ebp - 0x120]
call fcn.00458011
mov esi, dword [ebp - 0x124]
call fcn.00458011
cmp dword [ebp - 0x11c], ebx
jne 0x459c66
cmp dword [ebp - 0x114], ebx
jne 0x459c66
xor eax, eax
inc eax
jmp 0x459c68
Function at 0x459dff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4832e4]
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.00401f80
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00428a08
pop ecx
mov esi, eax
call fcn.0042962d
push 0
push 0x5c
call fcn.0042954d
pop ecx
pop ecx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x459ea0
test al, 0x10
je 0x459ea0
mov eax, esi
push eax
call fcn.00459de2
pop ecx
mov eax, esi
push eax
call fcn.00457c0a
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
test esi, esi
jne 0x459e98
lea edi, [ebp - 0x110]
call fcn.004593b9
push dword [ebp - 0x114]
jmp 0x459eb9
xor esi, esi
cmp eax, 0xffffffff
je 0x459eb7
call fcn.004593b9
test eax, eax
je 0x459eb7
push edi
call fcn.00457831
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.00401317
leave
ret

Function at 0x45a47d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4832e4]
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.00401f80
add esp, 0xc
mov edx, edi
call fcn.00429ac3
test eax, eax
je 0x45a4c3
xor eax, eax
jmp 0x45a547
push edi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00428a08
mov esi, eax
call fcn.004288d0
mov eax, esi
push edi
push eax
call fcn.004023a0
add esp, 0xc
test eax, eax
jne 0x45a50d
push edi
push eax
push eax
call fcn.0043b3a3
pop ecx
pop ecx
push eax
push 0x46f748
mov eax, esi
push 0x104
push eax
call fcn.0042922b
add esp, 0x14
mov edi, esi
push 0x1546
push str.File.c
mov edx, 0x46f608
mov ecx, edi
call fcn.004580b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45a4bc
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call fcn.0040257f
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0045a2fe
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401317
leave
ret
Function at 0x45a555
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4832e4]
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.00401f80
add esp, 0xc
cmp edi, ebx
jne 0x45a5a2
lea edi, [ebp - 0x118]
mov edx, esi
call fcn.00429ac3
test eax, eax
je 0x45a5b6
mov dword [edi], ebx
xor eax, eax
jmp 0x45a651
push esi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.00428a08
mov esi, eax
call fcn.004288d0
push dword [ebp - 0x114]
mov eax, esi
push eax
call fcn.004023a0
add esp, 0xc
test eax, eax
jne 0x45a610
push dword [ebp - 0x114]
push ebx
push ebx
call fcn.0043b3a3
pop ecx
pop ecx
push eax
push 0x46f748
mov eax, esi
push 0x104
push eax
call fcn.0042922b
mov eax, esi
add esp, 0x14
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push 0x1520
push str.File.c
mov edx, 0x46f5ac
call fcn.004580b0
mov esi, eax
pop ecx
pop ecx
mov dword [edi], ebx
cmp esi, ebx
je 0x45a5af
push esi
push 1
push 4
push edi
call fcn.00402244
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.0045a2fe
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x45a67d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00429ac3
test eax, eax
je 0x45a69a
xor eax, eax
jmp 0x45a727
mov ecx, dword [ebp + 8]
call fcn.00459add
mov edi, eax
test edi, edi
je 0x45a693
mov ecx, dword [ebp + 8]
push 0x1389
push str.File.c
mov edx, 0x46f5ac
call fcn.004580b0
mov ebx, eax
pop ecx
pop ecx
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x45a693
lea eax, [edi + 0xe]
push eax
call fcn.004028f8
mov esi, eax
pop ecx
test esi, esi
jne 0x45a6e4
mov ecx, ebx
call fcn.0045a2fe
jmp 0x45a693
push ebx
push edi
lea eax, [esi + 4]
push 1
push eax
call fcn.00402244
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jae 0x45a70a
push dword [esp + 0xc]
call fcn.004019d8
pop ecx
test eax, eax
jne 0x45a70a
xor ebx, ebx
mov ecx, dword [esp + 0xc]
call fcn.0045a2fe
test ebx, ebx
jne 0x45a723
push esi
call fcn.00401a00
pop ecx
jmp 0x45a693
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b5eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00429ac3
test eax, eax
je 0x45b606
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [0x49b3a8], 0
je 0x45b613
xor eax, eax
jmp 0x45b601
mov ecx, dword [ebp + 8]
mov dword [0x49b3a8], 1
call fcn.00459add
mov ebx, 0x80000
cmp eax, ebx
ja 0x45b639
xor eax, eax
and dword [0x49b3a8], 0
jmp 0x45b601
push dword [ebp + 8]
call fcn.0045a67d
mov edi, eax
pop ecx
test edi, edi
jne 0x45b64d
or eax, 0xffffffff
jmp 0x45b630
mov esi, dword [edi]
cmp esi, ebx
ja 0x45b65c
push edi
call fcn.00401a00
pop ecx
jmp 0x45b648
lea ebx, [esi - 0x80000]
cmp byte [ebx + edi + 4], 0xa
je 0x45b676
inc ebx
lea eax, [esi - 0x20000]
cmp ebx, eax
jb 0x45b662
jmp 0x45b677
inc ebx
mov ecx, dword [ebp + 8]
push 0x4e8
push str.Error.c
mov edx, 0x46f608
call fcn.004580b0
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x45b653
push eax
sub esi, ebx
push esi
lea eax, [ebx + edi + 4]
push 1
push eax
call fcn.0040257f
mov ecx, dword [ebp - 4]
call fcn.0045a2fe
push edi
call fcn.00401a00
xor eax, eax
add esp, 0x14
inc eax
jmp 0x45b630

Function at 0x45d8f4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
test esi, esi
jne 0x45d904
xor eax, eax
jmp 0x45d979
test ebx, ebx
jne 0x45d90d
mov byte [esi], 0
jmp 0x45d900
jns 0x45d933
push edi
call fcn.0045d569
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.0040401a
pop ecx
cmp edi, eax
jge 0x45d929
mov ebx, edi
jmp 0x45d932
push ebx
call fcn.0040401a
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.0045d525
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x45d969
cmp eax, ebx
jg 0x45d908
mov byte [eax + esi], 0
jmp 0x45d900
cmp eax, ebx
jg 0x45d973
mov byte [eax + esi], 0
jmp 0x45d976
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret