joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4548c0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov ecx, dword [ebp + 0xc]
push esi
push 0
lea eax, [ebp - 0x88]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4548eb
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x454901
xor eax, eax
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push edi
mov edi, dword [ebp + 8]
je 0x454921
push edi
push 1
lea edx, [ebp + 0xc]
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [ebp + 0xc]
add esp, 0x10
push eax
push esi
push edi
call fcn.00454940
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x454940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.00474530
push ebx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
mov dword [ebp + 0x10], esi
jg 0x454963
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x4000
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
jle 0x4549ae
mov ecx, dword [ebp + 0xc]
push 0x4000
lea eax, [ebp - 0x4000]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x4000
jne 0x45495a
push edi
push eax
lea edx, [ebp - 0x4000]
push 1
push edx
call ebx
add esp, 0x10
cmp eax, 0x4000
jne 0x45495a
sub esi, eax
cmp esi, eax
jg 0x454974
mov ecx, dword [ebp + 0xc]
and esi, 0xffff
push esi
lea eax, [ebp - 0x4000]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
je 0x4549d3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
lea edx, [ebp - 0x4000]
push 1
push edx
call ebx
mov ecx, dword [ebp + 0x10]
sub eax, esi
add esp, 0x10
neg eax
sbb eax, eax
pop edi
not eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454a00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4a6bb0]
test eax, eax
push ebx
push edi
jne 0x454a1c
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
push 2
push 0x4a6ba8
call ebx
add esp, 0x10
test eax, eax
jne 0x454a3e
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [0x4a6ba8], 0
jne 0x454a53
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4a6bb0]
push esi
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
xor esi, esi
add esp, 0xc
cmp word [0x4a6ba8], si
jle 0x454ab4
mov ecx, dword [0x4a6bb0]
push ecx
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
mov byte [ebp - 0x104], 0
call dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea eax, [ebp - 0x104]
push 0x104
push eax
call ebx
movsx ecx, word [0x4a6ba8]
add esp, 0x20
inc esi
cmp esi, ecx
jl 0x454a72
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a6bb0]
test eax, eax
push ebx
push edi
je 0x454b85
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea eax, [ebp + 0xa]
push 2
push eax
call ebx
add esp, 0x10
test eax, eax
je 0x454b85
movsx eax, word [0x4a6ba8]
mov edx, dword [0x4a6bb0]
mov ecx, eax
shl ecx, 6
push esi
add ecx, eax
push 0
shl ecx, 2
push ecx
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_fseek]
xor esi, esi
add esp, 0xc
cmp word [ebp + 0xa], si
jle 0x454b78
push edi
push 1
lea eax, [ebp - 0x108]
push 0x104
push eax
mov byte [ebp - 0x108], 0
call ebx
mov ecx, dword [0x4a6bb0]
push ecx
push 1
lea edx, [ebp - 0x108]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x4a6bac]
add esp, 0x20
inc word [0x4a6ba8]
inc eax
mov dword [0x4a6bac], eax
movsx eax, word [ebp + 0xa]
inc esi
cmp esi, eax
jl 0x454b27
mov ecx, dword [ebp - 4]
pop esi
pop edi
lea eax, [ecx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454e60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov dword [ebp - 0x58], 0
mov ecx, 0x15
lea edi, [ebp - 0x54]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov edi, eax
push 0
push edi
push esi
call ebx
push esi
push 1
lea eax, [ebp - 0x58]
push 0x58
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
test eax, eax
je 0x454ec8
mov cl, byte [ebp + 0xc]
push 0
push edi
push esi
mov byte [ebp - 2], cl
call ebx
push esi
push 1
lea edx, [ebp - 0x58]
push 0x58
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push 0
push edi
push esi
call ebx
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4556f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
xor eax, eax
mov byte [ebp - 0x104], 0
mov ecx, 0x40
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ecx], 0
je 0x455735
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x455735
lea edx, [ebp - 0x104]
push edx
push eax
push ecx
call fcn.004384d0
add esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
mov byte [ebp + 0xf], 1
mov byte [ebp + 0x13], 0xff
call edi
push esi
push 1
lea ecx, [ebp + 0x13]
push 1
push ecx
call edi
push esi
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
call edi
push esi
push 1
lea eax, [ebp + 0xf]
push 1
push eax
mov byte [ebp + 0xf], 0
mov byte [ebp + 0x13], 0
call edi
add esp, 0x40
push esi
push 1
lea ecx, [ebp + 0x13]
push 1
push ecx
call edi
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4557a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
xor eax, eax
mov byte [ebp - 0x104], 0
mov ecx, 0x40
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax

Function at 0x455850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCRT.dll_memset
lea ecx, [ebp - 0x108]
push 0x47ea64
push ecx
call sub.MSVCRT.dll_strcat
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp eax, 0x102
jle 0x45588f
mov eax, 0x102
mov edx, dword [ebp + 0xc]
push esi
push edi
push eax
push edx
lea eax, [ebp - 0x106]
push eax
call sub.MSVCRT.dll_memcpy
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea ecx, [ebp - 2]
push 1
push ecx
mov byte [ebp - 2], 1
mov byte [ebp - 1], 0xff
call edi
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call edi
push esi
push 1
lea eax, [ebp - 0x108]
push 0x104
push eax
call edi
push esi
push 1
lea ecx, [ebp - 2]
push 1
push ecx
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call edi
add esp, 0x4c
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call edi
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
xor eax, eax
push edi
mov ecx, 0x15
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x6a]
test al, 0x80
je 0x456000
mov esi, 0x20
jmp 0x456011
not al
and eax, 0xff
and eax, 2
or eax, 0x10
shr eax, 1
mov esi, eax
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push ebx
push ecx
lea edx, [edi + 0x1ca]
push edx
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
test esi, esi
mov dword [eax], ebx
jle 0x456142
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x3f]
mov dword [ebp + 0x14], eax
lea edi, [ecx + 0x270]
mov dword [ebp + 0x10], esi
mov cl, byte [edi]
xor ebx, ebx
test cl, cl
mov dword [ebp + 0xc], 0xffffffff
mov dword [ebp + 8], ebx
je 0x456114
lea edx, [ebp + 8]
push edi
push edx
call fcn.00458680
lea eax, [ebp - 0x1d4]
push eax
push edi
push 0x479954
call fcn.004107c0
lea ecx, [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x1d4]
push 0x4c7cc0
push edx
call fcn.00411fd0
push 0x20
lea eax, [ebp - 0x1d4]
push 0x47ea68
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x456111
push esi
push 1
lea ecx, [ebp - 0x58]
push 0x58
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebp - 0x58]
add esp, 0x10
cmp eax, 0x2a269a
jl 0x456107
cmp eax, 0x2a269c
jg 0x456107
mov edx, dword [0x49ec78]
mov ecx, dword [edx + 0x11]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
sub ecx, edx
sub ecx, 0x1ca
cmp eax, ecx
jg 0x456107
push 0
push eax
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call fcn.00454ac0
add esp, 0x10
mov dword [ebp + 0xc], eax
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp + 0x14]
mov dx, word [ebp + 8]
mov word [eax], bx
mov word [eax + 0x40], dx
cmp word [eax], 0
je 0x45612c
mov cx, word [ebp + 0xc]
mov word [eax], cx
mov ecx, dword [ebp + 0x10]
add eax, 2
add edi, 0x21
dec ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
jne 0x45604a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458680
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
mov word [eax], 0xffff
mov eax, dword [0x4c603c]
test eax, eax
push esi
push edi
je 0x458766
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ax, word [0x4c6038]
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
test ax, ax
jle 0x458706
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c603c]
push ecx
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
mov byte [ebp - 0x104], 0
call ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 0x18
test eax, eax
je 0x458757
mov ax, word [0x4c6038]
movsx ecx, ax
inc edi
cmp edi, ecx
jl 0x4586c5
mov ecx, dword [ebp + 8]
mov word [ecx], ax
movsx eax, word [0x4c6038]
mov edx, eax
shl edx, 6
add edx, eax
mov eax, dword [0x4c603c]
push 0
shl edx, 2
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x4c603c]
push ecx
push 1
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
inc word [0x4c6038]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx], di
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458770
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push esi
push edi
xor esi, esi
xor eax, eax
mov ecx, 0x15
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], esi
rep stosd dword es:[edi], eax
cmp dword [0x4c603c], esi
jne 0x45879c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push edi
push 1
push 2
push 0x4c6038
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x4587bc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [0x4c6038], si
je 0x45890a
mov eax, dword [0x4c603c]
push esi
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp word [0x4c6038], si
mov dword [ebp - 4], esi
jle 0x45890a
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c603c]
push ecx
push 1
lea edx, [ebp - 0x160]
push 0x104
push edx
mov byte [ebp - 0x160], 0
call ebx
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x160]
push ecx
push 0x479954
call fcn.004107c0
lea edx, [ebp - 0x2dc]
push edx
lea eax, [ebp - 0x2dc]
push 0x4c7cc0
push eax
call fcn.00411fd0
push 0x20
lea ecx, [ebp - 0x2dc]
push 0x47eae4
push ecx
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0x34
test esi, esi
je 0x4588da
push esi
push 1
lea edx, [ebp - 0x5c]
push 0x58
push edx
call ebx
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp eax, 0x2a269a
jl 0x4588b5
cmp eax, 0x2a269c
jg 0x4588b5
mov eax, dword [ebp - 0xc]
push 0
push 0
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [ebp + 8]
push edx
push esi
push edi
call fcn.00458920
add esp, 0x28
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4588f3
push edi
push 1
lea eax, [ebp + 8]
push 4
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4588f3
push edi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 4]
movsx edx, word [0x4c6038]
inc eax
cmp eax, edx
mov dword [ebp - 4], eax
jl 0x4587f1
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458920
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.00474530
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0x4000
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
jle 0x458986
push edi
push 0x4000
lea eax, [ebp - 0x4000]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 0x4000
jne 0x4589a0
mov ecx, dword [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x4000]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0x4000
jne 0x4589a0
sub esi, eax
cmp esi, eax
jg 0x458947
push edi
and esi, 0xffff
push esi
lea eax, [ebp - 0x4000]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, esi
je 0x4589a9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push esi
lea edx, [ebp - 0x4000]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp + 0x10]
sub eax, esi
add esp, 0x10
neg eax
sbb eax, eax
pop edi
not eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4589e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push edi
xor eax, eax
mov ecx, 0x15
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x4c603c]
test eax, eax
jne 0x458a0d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ax, word [0x4c6038]
test ax, ax
je 0x458b5d
movsx eax, ax
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
test eax, eax
mov dword [0x4a6c1c], eax
jne 0x458a3a
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c603c]
push 0
push 0
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
xor edi, edi
add esp, 0xc
cmp word [0x4c6038], di
jle 0x458b5d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
mov edx, dword [0x4a6c1c]
mov dword [edx + edi*4], 0
mov eax, dword [0x4c603c]
push eax
push 1
lea ecx, [ebp - 0x160]
push 0x104
push ecx
mov byte [ebp - 0x160], 0
call ebx
lea edx, [ebp - 0x2dc]
push edx
lea eax, [ebp - 0x160]
push eax
push 0x479954
call fcn.004107c0
lea ecx, [ebp - 0x2dc]
push ecx
lea edx, [ebp - 0x2dc]
push 0x4c7cc0
push edx
call fcn.00411fd0
push 0x20
lea eax, [ebp - 0x2dc]
push 0x47eae8
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
mov esi, eax
add esp, 0x34
test esi, esi
je 0x458b4b
push esi
push 1
lea ecx, [ebp - 0x5c]
push 0x58
push ecx
call ebx
mov eax, dword [ebp - 0x5c]
add esp, 0x10
cmp eax, 0x2a269a
jl 0x458b41
cmp eax, 0x2a269c
jg 0x458b41
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [0x4a6c1c]
mov dword [edx + edi*4], eax
mov eax, dword [0x4a6c1c]
mov ecx, dword [eax + edi*4]
add esp, 4
test ecx, ecx
je 0x458b41
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [ebp - 4]
mov edx, dword [0x4a6c1c]
mov eax, dword [edx + edi*4]
push esi
push 1
push ecx
push eax
call ebx
add esp, 0x1c
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
movsx ecx, word [0x4c6038]
inc edi
cmp edi, ecx
jl 0x458a65
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x458cb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
mov word [eax], 0xffff
mov eax, dword [0x4c6044]
test eax, eax
push esi
push edi
je 0x458d96
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ax, word [0x4c6040]
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
test ax, ax
jle 0x458d36
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c6044]
push ecx
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
mov byte [ebp - 0x104], 0
call ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 0x18
test eax, eax
je 0x458d87
mov ax, word [0x4c6040]
movsx ecx, ax
inc edi
cmp edi, ecx
jl 0x458cf5
mov ecx, dword [ebp + 8]
mov word [ecx], ax
movsx eax, word [0x4c6040]
mov edx, eax
shl edx, 6
add edx, eax
mov eax, dword [0x4c6044]
push 0
shl edx, 2
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x4c6044]
push ecx
push 1
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
inc word [0x4c6040]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx], di
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458da0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4c6044]
test eax, eax
push esi
push edi
jne 0x458dbc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
push 2
push 0x4c6040
call edi
add esp, 0x10
test eax, eax
jne 0x458dde
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [0x4c6040], 0
je 0x458eb0
mov eax, dword [0x4c6044]
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp word [0x4c6040], 0
mov dword [ebp - 4], 0
jle 0x458eb0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c6044]
push ecx
push 1
lea edx, [ebp - 0x108]
push 0x104
push edx
mov byte [ebp - 0x108], 0
call ebx
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x479850
call fcn.004127c0
lea edx, [ebp - 0x284]
push edx
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
mov dword [ebp + 8], eax
je 0x458e8b
push esi
inc eax
push 1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
call edi
mov ecx, dword [ebp + 8]
push esi
push 1
push ecx
lea edx, [ebp - 0x284]
push edx
call edi
add esp, 0x20
jmp 0x458e99
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call edi
add esp, 0x10
mov eax, dword [ebp - 4]
movsx ecx, word [0x4c6040]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x458e1b
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
mov word [eax], 0xffff
mov eax, dword [0x4c604c]
test eax, eax
push esi
push edi
je 0x459036
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ax, word [0x4c6048]
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
test ax, ax
jle 0x458fd6
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c604c]
push ecx
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
mov byte [ebp - 0x104], 0
call ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 0x18
test eax, eax
je 0x459027
mov ax, word [0x4c6048]
movsx ecx, ax
inc edi
cmp edi, ecx
jl 0x458f95
mov ecx, dword [ebp + 8]
mov word [ecx], ax
movsx eax, word [0x4c6048]
mov edx, eax
shl edx, 6
add edx, eax
mov eax, dword [0x4c604c]
push 0
shl edx, 2
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x4c604c]
push ecx
push 1
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
inc word [0x4c6048]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx], di
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4c604c]
test eax, eax
push esi
push edi
jne 0x45905c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
push 2
push 0x4c6048
call edi
add esp, 0x10
test eax, eax
jne 0x45907e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [0x4c6048], 0
je 0x459150
mov eax, dword [0x4c604c]
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp word [0x4c6048], 0
mov dword [ebp - 4], 0
jle 0x459150
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4c604c]
push ecx
push 1
lea edx, [ebp - 0x108]
push 0x104
push edx
mov byte [ebp - 0x108], 0
call ebx
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x479850
call fcn.004127c0
lea edx, [ebp - 0x284]
push edx
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
mov dword [ebp + 8], eax
je 0x45912b
push esi
inc eax
push 1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
call edi
mov ecx, dword [ebp + 8]
push esi
push 1
push ecx
lea edx, [ebp - 0x284]
push edx
call edi
add esp, 0x20
jmp 0x459139
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call edi
add esp, 0x10
mov eax, dword [ebp - 4]
movsx ecx, word [0x4c6048]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x4590bb
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret