joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40153d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x10000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3f], eax
jne 0x401578
mov dword [esi], str.Error_opening_reading_file.
xor al, al
jmp 0x4016a3
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push eax
call edi
lea ecx, [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi + 0x23]
push ecx
push 4
push eax
push dword [esi + 0x3f]
call ebx
push 0
push 0
push dword [esi + 0x23]
push dword [esi + 0x3f]
call edi
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x18]
push 0x16
push eax
push dword [esi + 0x3f]
call ebx
mov ax, word [ebp - 0x17]
mov word [esi + 0x17], ax
mov ax, word [ebp - 0x15]
mov word [esi + 0x19], ax
mov eax, dword [ebp - 0x13]
mov dword [esi + 0x11], eax
mov al, byte [ebp - 0xf]
mov cl, al
shr eax, 1
and al, 1
and cl, 1
movzx edi, byte [ebp - 0x18]
mov byte [esi + 0x16], al
mov eax, dword [ebp - 0xe]
mov dword [esi + 0x27], eax
mov eax, dword [ebp - 0xa]
test eax, eax
mov dword [esi + 0x2b], eax
mov byte [esi + 0x15], cl
mov ecx, dword [ebp - 6]
setne al
mov byte [esi + 4], al
mov dword [esi + 0x33], ecx
lea eax, [edi + 1]
lea ecx, [edi + 0x16]
push eax
mov dword [esi + 0x2f], ecx
call fcn.00401dbb
pop ecx
mov dword [esi + 0xd], eax
lea ecx, [ebp + 8]
push 0
push ecx
push edi
push eax
push dword [esi + 0x3f]
call ebx
mov eax, dword [esi + 0xd]
and byte [edi + eax], 0
movzx eax, word [esi + 0x17]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.00401dbb
mov dword [esi + 0x1b], eax
movzx eax, word [esi + 0x19]
imul eax, eax, 0xe
push eax
call fcn.00401dbb
pop ecx
mov dword [esi + 0x1f], eax
pop ecx
xor ebx, ebx
xor edi, edi
cmp word [esi + 0x17], bx
jbe 0x401676
mov eax, ebx
mov ecx, esi
add eax, dword [esi + 0x1b]
push eax
call fcn.00401920
test al, al
je 0x401571
movzx eax, word [esi + 0x17]
inc edi
add ebx, 0xc
cmp edi, eax
jl 0x401655
xor edi, edi
xor ebx, ebx
cmp word [esi + 0x19], di
jbe 0x4016a1
mov eax, dword [esi + 0x1f]
mov ecx, esi
add eax, edi
push eax
call fcn.0040197b
test al, al
je 0x401571
movzx eax, word [esi + 0x19]
inc ebx
add edi, 0xe
cmp ebx, eax
jl 0x401680
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
lea eax, [ebp - 0xc]
mov ebx, ecx
push 8
push eax
push dword [ebx + 0x3f]
call edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
push eax
mov dword [esi + 4], eax
call fcn.00401dbb
pop ecx
mov dword [esi + 8], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [esi + 4]
push eax
push dword [ebx + 0x3f]
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [esi + 4]
pop edi
pop esi
pop ebx
sete al
leave
ret 4

Function at 0x40197b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
lea eax, [ebp - 0xc]
mov ebx, ecx
push 5
push eax
push dword [ebx + 0x3f]
call edi
mov al, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov dl, al
shr al, 1
and dl, 1
and al, 1
push ecx
mov dword [esi], ecx
mov byte [esi + 4], dl
mov byte [esi + 5], al
call fcn.00401dbb
pop ecx
mov dword [esi + 6], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [esi]
push eax
push dword [ebx + 0x3f]
call edi
mov eax, dword [esi]
cmp dword [ebp - 4], eax
je 0x4019da
xor al, al
jmp 0x4019fc
push eax
call fcn.00401dbb
pop ecx
mov dword [esi + 0xa], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [esi]
push eax
push dword [ebx + 0x3f]
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [esi]
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403c85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4075f8
cmp edx, dword [eax]
je 0x403ca7
add eax, 8
inc ecx
cmp eax, 0x407688
jl 0x403c98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4075f8]
jne 0x403dd5
mov eax, dword [0x4079b0]
cmp eax, 1
je 0x403daf
test eax, eax
jne 0x403cd8
cmp dword [0x4073e4], 1
je 0x403daf
cmp edx, 0xfc
je 0x403dd5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403d0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401c50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401d40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403d52
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401d40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4072b8
push edi
call fcn.00404ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401c50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401c60
lea eax, [ebp - 0xa0]
push 0x406434
push eax
call fcn.00401c60
push dword [esi + 0x4075fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401c60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404e5e
add esp, 0x2c
pop edi
jmp 0x403dd5
lea eax, [ebp + 8]
lea esi, [esi + 0x4075fc]
push 0
push eax
push dword [esi]
call fcn.00401d40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4251c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
lea edi, [ebp - 0x240]
mov ecx, 0x90
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push str..Model_s.MOD
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x200]
push eax
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x240
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x47a900
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
lea edi, [ebp - 0x240]
mov ecx, 0x90
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push str..Model_s.MOD
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x200]
push eax
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x240
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x47fab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
push str..Operation.ini
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x140
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x4a5240
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_492
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push 0x100
lea edx, [ebp - 0x100]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_684
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x4d15b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_492
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push 0x100
lea edx, [ebp - 0x100]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_684
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x4da7a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
push str..Operation.ini
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x140
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x515560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
push str..Operation.ini
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x140
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x52c2f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x144]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_492
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
push 0x100
lea edx, [ebp - 0x100]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x104]
call sub.MFC42D.DLL_Ordinal_684
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x56e160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov esi, esp
push str..Operation.ini
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x140
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x78303b79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x78303b90
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x78303bc5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x78303bc1
cmp edi, eax
jae 0x78303bc5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x78303bb3
cmp edi, eax
jb 0x78303bc9
xor eax, eax
jmp 0x78303bd3
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x78309c35
Capabilities:
Clear file content

Disassembly:
push esi
push 0
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x10]
mov eax, dword [esi]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x78309c63
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MFC80U.DLL_Ordinal_6131
pop esi
ret 8
Function at 0x7830a0aa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x783ab5ef
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x783c8018]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x783c8018]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor eax, eax
mov esi, edx
test esi, esi
setne al
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x7830a0ff
jmp sym.MFC80U.DLL_Ordinal_1176
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x7830a0fa
lea eax, [esp + 0x18]
push eax
push esi
mov edi, 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x7830a141
push dword [esp + 0x10]
push edi
push esi
call fcn.78307759
add esp, 0xc
push dword [esp + 0x10]
mov esi, ebx
call fcn.783095e8
xor eax, eax
jmp 0x7830a243
cmp eax, edi
jb 0x7830a15e
test ebx, ebx
je 0x7830a13a
push dword [esp + 0x10]
lea ecx, [ebx + 0x10]
mov dword [ebx + 8], 3
call sym.MFC80U.DLL_Ordinal_6014
jmp 0x7830a13a
push 0x783c8d10
lea ecx, [esp + 0x18]
call sym.MFC80U.DLL_Ordinal_269
and dword [esp + 0x288], 0
lea eax, [esp + 0x14]
push eax
push esi
call sym.MFC80U.DLL_Ordinal_1084
push dword [esp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x7830a234
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push eax
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x7830a1ca
push dword [esp + 0x10]
mov esi, ebx
call fcn.783095e8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.78303c47
jmp 0x7830a13a
test byte [esp + 0x1c], 2
jne 0x7830a1d8
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [esp + 0x1c], 4
jne 0x7830a234
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x7830a234
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x7830a1ae
cmp dword [esp + 0x18], esi
jbe 0x7830a1ae
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
sub ecx, esi
sar ecx, 1
add eax, ecx
cmp eax, edi
jge 0x7830a266
lea eax, [esp + 0x50]
push eax
sub edi, ecx
push edi
push dword [esp + 0x20]
call fcn.7830a4ba
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.78303c47
xor eax, eax
inc eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.783a505e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x7830a1b9
push dword [esp + 0x10]
lea ecx, [ebx + 0x10]
mov dword [ebx + 8], 3
call sym.MFC80U.DLL_Ordinal_6014
jmp 0x7830a1b9
Function at 0x7830a8cc
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x7830a8da
xor eax, eax
jmp 0x7830a946
cmp dword [esp + 8], 0
jne 0x7830a8e6
call sym.MFC80U.DLL_Ordinal_1176
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x7830a924
push dword [esi + 0x10]
call dword [sym.imp.MSVCR80.dll_feof]
test eax, eax
pop ecx
jne 0x7830a924
mov esi, dword [esi + 0xc]
call dword [sym.imp.MSVCR80.dll___doserrno]
push esi
push dword [eax]
push 1
call sym.MFC80U.DLL_Ordinal_1174
push dword [esi + 0x10]
call dword [sym.imp.MSVCR80.dll_ferror]
test eax, eax
pop ecx
je 0x7830a943
push dword [esi + 0x10]
call dword [sym.imp.MSVCR80.dll_clearerr_s]
pop ecx
call fcn.78303ae0
jmp 0x7830a911
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x7830a94a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x7830a959
call sym.MFC80U.DLL_Ordinal_1176
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x7830a988
mov esi, dword [esi + 0xc]
call dword [sym.imp.MSVCR80.dll___doserrno]
push esi
push dword [eax]
push 1
call sym.MFC80U.DLL_Ordinal_1174
pop esi
ret 8
Function at 0x7830b7f3
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push 0x104
push eax
call fcn.78307759
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x7830b985
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x7830b856
xor eax, eax
jmp 0x7830b988
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x7830b86f
cmp ebx, ebx
je 0x7830b84f
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x7830b87c
mov byte [esi + 0x20], bl
jmp 0x7830b890
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7830b8cc
lea eax, [esp + 0x28]
push eax
call fcn.7830bf57
cmp eax, ebx
je 0x7830b8cc
lea eax, [esp + 0x10]
push eax
lea edi, [esp + 0x2c]
call fcn.7830be2e
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x7830b8d1
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7830b90e
lea eax, [esp + 0x28]
push eax
call fcn.7830bf57
cmp eax, ebx
je 0x7830b90e
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x2c]
call fcn.7830be2e
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x7830b918
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7830b955
lea eax, [esp + 0x28]
push eax
call fcn.7830bf57
cmp eax, ebx
je 0x7830b955
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x2c]
call fcn.7830be2e
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x7830b95f
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x7830b971
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x7830b985
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4