joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c9d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp - 4], ecx
call edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ca32
push esi
call edi
cmp eax, 4
jl 0x44ca26
cmp word [esi + eax*2 - 2], 0x65
jne 0x44ca26
cmp word [esi + eax*2 - 4], 0x78
jne 0x44ca26
cmp word [esi + eax*2 - 6], 0x65
jne 0x44ca26
cmp word [esi + eax*2 - 8], 0x2e
jne 0x44ca26
xor eax, eax
mov word [0x508190], ax
jmp 0x44ca32
push esi
push 0x508190
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp ebx, 4
jl 0x44cb57
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x6d
jne 0x44ca81
cmp word [esi + 2], 0x61
jne 0x44cb57
cmp word [esi + 4], 0x70
jne 0x44cb57
mov ecx, esi
call fcn.0044c980
lea ecx, [esi + 0xc]
mov dword [0x508188], 1
push ecx
mov edi, eax
call fcn.0044cb70
mov dword [0x508180], eax
jmp 0x44cb4d
cmp ecx, 0x65
jne 0x44cac2
cmp word [esi + 2], 0x76
jne 0x44cb57
cmp word [esi + 4], 0x74
jne 0x44cb57
mov ecx, esi
call fcn.0044c980
mov edi, eax
mov dword [0x508188], 2
lea eax, [esi + 0xc]
push eax
call fcn.0044cb70
mov dword [0x508180], eax
jmp 0x44cb4d
cmp ecx, 0x72
jne 0x44cb1d
cmp word [esi + 2], 0x73
jne 0x44cb57
cmp word [esi + 4], 0x74
jne 0x44cafc
mov ecx, esi
call fcn.0044c980
mov edi, eax
mov dword [0x508188], 3
lea eax, [esi + 0xc]
push eax
call fcn.0044cb70
mov dword [0x508180], eax
jmp 0x44cb4d
cmp word [esi + 2], 0x73
jne 0x44cb57
cmp word [esi + 4], 0x63
jne 0x44cb57
mov ecx, esi
call fcn.0044c980
mov dword [0x508188], 3
jmp 0x44cb41
cmp ecx, 0x74
jne 0x44cb57
cmp word [esi + 2], 0x65
jne 0x44cb57
cmp word [esi + 4], 0x73
jne 0x44cb57
mov ecx, esi
call fcn.0044c980
mov dword [0x508188], 0
mov dword [0x508180], 0xffffffff
mov edi, eax
cmp edi, 0xffffffff
je 0x44cb57
mov eax, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44cbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x508184], 0
mov eax, dword [0x4fb114]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, ecx
push edi
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x820], ebx
je 0x44cc29
cmp dword [eax + 0x604], 0
jne 0x44cc29
push dword [eax + 0x608]
jmp 0x44cc2f
add eax, 0x9a0
push eax
lea eax, [ebp - 0x40c]
push eax
call esi
push ebx
lea eax, [ebp - 0x204]
push eax
call esi
push str..png
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov esi, dword [ebp - 0x820]
xor edi, edi
mov word [ebp - 0x204], ax
nop dword [eax + eax]
lea eax, [edi + 1]
push eax
push esi
mov edi, eax
lea eax, [ebp - 0x204]
push 0x4da714
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x204]
push str..png
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x614]
push 0x4d4c98
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ccd3
cmp edi, 0x270f
jl 0x44cc70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x81c]
push eax
call esi
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0x4d4c98
push dword [ebp - 0x824]
call ebx
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x452c00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x452c2d
xor eax, eax
pop ebx
pop ebp
ret 0xc
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shl ecx, 4
add ecx, dword [0x5083e8]
mov dword [ecx + 8], edi
pop edi
mov dword [ecx + 4], esi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x458560
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4585a8
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, esi
div dword [ebp + 0x10]
mov ebx, edx
sub esi, ebx
lea eax, [ebx + edi]
push eax
push esi
push 0
push 4
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4585a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4585a8
pop edi
lea eax, [esi + ebx]
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x469560
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x4f3008]
xor eax, esp
mov dword [esp + 0x14c], eax
push esi
push edi
push str.RtlGetVersion
push str.ntdll.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4695c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x11c
push ecx
call eax
xor eax, eax
cmp dword [esp + 0x34], 0xa
setge al
test eax, eax
je 0x4695c0
mov esi, 0x4d91a0
jmp 0x4696d9
push 0x11c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00499ca0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], 3
mov dword [esp + 0x144], eax
push 3
push 2
push eax
push eax
mov dword [esp + 0x40], 0x11c
call esi
push 3
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x469628
mov esi, 0x4d91a8
jmp 0x4696d9
push 0x11c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00499ca0
add esp, 0xc
mov dword [esp + 0x34], 6
xor eax, eax
mov dword [esp + 0x38], 2
mov dword [esp + 0x144], eax
mov dword [esp + 0x30], 0x11c
push 3
push 2
push eax
push eax
call esi
push 3
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x469687
mov esi, 0x4d56d0
jmp 0x4696d9
push ecx
push 1
mov edx, 1
call fcn.004694b0
add esp, 8
test eax, eax
je 0x4696a2
mov esi, 0x4d91b0
jmp 0x4696d9
push ecx
push 0
mov edx, 1
call fcn.004694b0
add esp, 8
test eax, eax
je 0x4696bd
mov esi, 0x4d56cc
jmp 0x4696d9
push ecx
push 2
xor edx, edx
call fcn.004694b0
add esp, 8
mov esi, 0x4d91b8
test eax, eax
mov ecx, 0x4c4424
cmove esi, ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0xc], 0
mov ecx, 0x20
mov eax, 0x40
cmove eax, ecx
push eax
push esi
push str._s__d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x164]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x46eaa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
je 0x46eb04
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x46eade
lea eax, [ebp - 4]
mov dword [esi + 0x18], 1
push eax
push 0
push esi
push 0x46ef10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x46eb09
mov dword [esi + 0x18], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x46ed70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0046ebb0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
push 0x4da2ac
lea eax, [ebp - 0x204]
mov esi, ecx
push str._s___d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push 0x30
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x471240
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x471279
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x1b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x1b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x471289
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor ebx, ebx
lea edi, [esi + 0x1fc]
mov ecx, dword [edi]
test ecx, ecx
je 0x4712b2
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4712a7
cmp eax, 1
jne 0x471449
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [edi], 0
inc ebx
add edi, 4
cmp ebx, 0x14
jl 0x471291
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x4712ca
call fcn.00490fd0
mov dword [esi + 0x1f8], 0
mov ecx, dword [esi + 0x24c]
test ecx, ecx
je 0x4712e3
call fcn.00490fd0
mov dword [esi + 0x24c], 0
mov ecx, dword [esi + 0x250]
test ecx, ecx
je 0x4712fc
call fcn.00490fd0
mov dword [esi + 0x250], 0
mov ecx, dword [esi + 0x254]
test ecx, ecx
je 0x471315
call fcn.00490fd0
mov dword [esi + 0x254], 0
mov ecx, dword [esi + 0x288]
test ecx, ecx
je 0x47132e
call fcn.00490fd0
mov dword [esi + 0x288], 0
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x471347
call fcn.00490fd0
mov dword [esi + 0x258], 0
mov ecx, dword [esi + 0x25c]
test ecx, ecx
je 0x471360
call fcn.00490fd0
mov dword [esi + 0x25c], 0
mov ecx, dword [esi + 0x260]
test ecx, ecx
je 0x471379
call fcn.00490fd0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esi + 0x260], 0
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x4713ab
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x2b0], 0
mov ecx, dword [esi + 0x2bc]
test ecx, ecx
je 0x4713ba
call fcn.00490fd0
mov dword [esi + 0x2bc], 0
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x4713d3
call fcn.00490fd0
mov dword [esi + 0x144], 0
mov eax, dword [esi + 0x134]
test eax, eax
je 0x4713ef
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x134], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x471408
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x47141e
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x471437
push eax
push 0
call ebx
push eax
call edi
push 0x320
push esi
call fcn.004954e0
add esp, 8
pop edi
pop esi
pop ebx
ret
call fcn.00447070
mov ecx, str.Unexpected_error._You_may_have_used_the_item_in_root.duplicateItem_without_duplicating_it.
call fcn.0044aaf0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x473090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd9b4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x3c
call fcn.004954b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x38]
mov dword [edi], vtable.CScriptParameter.0
mov dword [edi + 0x34], 1
mov dword [ecx], 0
mov edx, dword [0x4fb0e0]
push ecx
push 0x4dc498
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x30]
mov dword [ebx + 0x11c], edi
push 0x3c
mov dword [edi + 4], eax
call fcn.004954b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
lea ecx, [edi + 0x38]
mov dword [edi], vtable.CScriptParameter.0
mov dword [edi + 0x34], 1
mov dword [ecx], 0
mov edx, dword [0x4fb0e0]
push ecx
push 0x4dc498
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x5c]
mov dword [ebx + 0x120], edi
push 0x248
mov dword [edi + 4], eax
call fcn.004954b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea ecx, [edi + 0x244]
mov dword [edi], vtable.CScriptReferenceList.0
mov dword [edi + 0x240], 1
mov dword [ecx], 0
mov edx, dword [0x4fb0e0]
push ecx
push 0x4dc288
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4fb114]
mov ecx, dword [ebx + 0x98]
mov dword [ebx + 0x124], edi
push 0x18
mov eax, dword [eax + 0x200]
mov dword [edi + 0x234], eax
mov dword [edi + 0x238], ecx
mov dword [edi + 0x23c], 4
call fcn.004954b0
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 3
lea ecx, [edi + 0x14]
mov dword [edi], vtable.CScriptAggregation.0
mov dword [edi + 0x10], 1
mov dword [ecx], 0
mov edx, dword [0x4fb0e0]
push ecx
mov esi, dword [edx]
push 0x4dcac8
push edx
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x9c]
mov ecx, dword [0x4fb0d8]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebx + 0x128], edi
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
mov ecx, dword [ecx + 8]
push eax
push dword [ebx + 0x108]
call fcn.0046ace0
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x12c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push esi
push edi
mov edi, ecx
push dword [edi + 8]
push str._04d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x4fb114]
add esp, 0xc
mov esi, dword [edi + 0x24]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
mov edx, ebx
push 0x4da39c
push eax
push 0
push esi
lea ecx, [ebp - 0x20c]
call fcn.00489d50
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x478fad
mov eax, dword [0x4fb114]
mov esi, dword [edi + 0x24]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x20c]
mov dword [0x4fb100], 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
mov edx, ebx
push 0x4da39c
push eax
push 0
push esi
lea ecx, [ebp - 0x20c]
call fcn.00489d50
add esp, 0x14
mov dword [0x4fb100], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 8
Function at 0x479380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
push ebx
mov dword [ebp - 4], esi
call fcn.004792d0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4793df
push edi
push dword [esi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov edi, eax
call esi
add edi, eax
cmp edi, 0xfa
pop edi
jge 0x4793df
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ebx
mov dword [0x4fb100], 1
call fcn.004792d0
mov dword [0x4fb100], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x488fe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50839c]
cmp dword [eax + 0xc], 0
je 0x48902d
push ecx
mov ecx, 0xb1d
call fcn.004909b0
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x404]
call fcn.0044aaf0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret

Function at 0x48a120
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x508184], 0
push esi
push edi
mov edi, ecx
je 0x48a14d
lea ecx, [ebp - 0x20c]
call fcn.0048be80
jmp 0x48a165
mov eax, dword [0x4fb114]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48a186
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.error_log.txt
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48a239
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, edi
call fcn.0048a070
mov edi, eax
lea eax, [ebp - 0x814]
push edi
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x818]
push 0
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x48a232
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x48a3b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
mov eax, ecx
mov edi, edx
push SysReAllocString
push eax
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48a407
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea esi, [eax + 1]
cmp esi, 1
jne 0x48a423
mov dword [edi], 0
xor esi, esi
jmp 0x48a48f
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov byte [edi + esi - 1], 0
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov edx, dword [ebp - 0x408]
test eax, eax
je 0x48a46e
mov dword [edx], edi
mov esi, 1
jmp 0x48a4d5
mov ecx, edi
call fcn.0048a250
mov esi, eax
test edi, edi
je 0x48a48b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48a4d5
mov ecx, dword [0x4fb118]
push dword [ebp - 0x410]
push 0x83d
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x404]
push str._s_n_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x404]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4fafbc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x48a530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push str.info.ini
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], ebx
push 0x4d4c98
push eax
mov dword [ebp - 0x81c], edi
call esi
add esp, 0x10
lea eax, [ebp - 0x404]
cmp dword [ebx], 0
je 0x48a589
push str.RuntimeOrder
jmp 0x48a58e
push str.OriginalOrder
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x204]
xor ebx, ebx
push 0x4c4404
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 0x100
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48a6b6
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov esi, eax
mov dword [esi + 8], ebx
mov edx, dword [edi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x48a5fe
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x48a5f5
mov eax, dword [ebp - 0x818]
mov dword [edx + 4], esi
mov eax, dword [eax]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x60c]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x48a66b
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 0x60c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48a662
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x81c]
inc ebx
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x204]
push 0x4c4404
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 0x100
lea eax, [ebp - 0x60c]
push eax
push 0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x48a5e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 8