joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a32
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push str.Not_Installed
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x110]
push eax
call fcn.00430f56
test eax, eax
je 0x404abd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x404abd
push edi
push dword [0x45a2fc]
call fcn.00430c23
mov esi, eax
test esi, esi
je 0x404abd
push esi
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x110]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404abd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x45a4d4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x404ac1
xor eax, eax
jmp 0x404af0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x14]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 0x10]
mov eax, dword [eax + 0x10]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x40548a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x45a9c8
push 0x45a9c4
push dword [0x45ffcc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405553
push eax
push dword [0x45ffcc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405553
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push 4
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00442b50
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x14]
push 4
push eax
push edi
call fcn.00442b50
mov eax, dword [ebp - 4]
add esp, 0x18
cmp word [edi + 2], 0x100
jne 0x405508
add eax, 0xfffffffc
add esi, 0x18
push eax
push esi
lea eax, [edi + 4]
jmp 0x40551e
lea ecx, [eax - 4]
mov eax, 0x3b0
cmp ecx, eax
ja 0x405516
mov eax, ecx
add esi, 0x18
push eax
push esi
lea eax, [edi + 0x2c]
push eax
call fcn.00442b50
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
cmp dword [eax + 0x60], ecx
jle 0x405545
lea edx, [edi + 0x2c]
mov esi, dword [eax + 0x70]
mov edi, dword [edx]
add edx, 4
mov dword [esi + ecx*4], edi
inc ecx
cmp ecx, dword [eax + 0x60]
jl 0x405534
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
pop eax
pop edi
pop esi
jmp 0x405555
xor eax, eax
pop ebx
leave
ret
Function at 0x405558
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push dword [esi + 4]
call fcn.0040d9ec
mov edi, eax
and byte [ebp - 0x110], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x12
push esi
call fcn.004064d0
cmp byte [ebp - 0x110], 0
je 0x4055f0
push 0
push 0x2c
push 0x15
lea eax, [ebp - 0x110]
push 0x28
push eax
push edi
call fcn.0042e84b
add esp, 0x18
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push str.File
push eax
call fcn.0042fb8b
test eax, eax
je 0x4055f0
lea eax, [ebp - 0x198]
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00430034
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4055f7
xor eax, eax
jmp 0x4056aa
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push 4
push eax
push ebx
call esi
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push 0x45a9d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405638
xor esi, esi
jmp 0x4056a1
lea eax, [ebp - 0x110]
push 0xc
push eax
push ebx
call esi
lea eax, [ebp - 4]
push 4
push eax
push ebx
call esi
mov edi, dword [ebp + 0xc]
push 4
push edi
push ebx
call esi
cmp word [edi + 2], 0x100
mov eax, dword [ebp - 4]
jne 0x40566a
add eax, 0xfffffffc
push eax
lea eax, [edi + 4]
jmp 0x40567c
lea ecx, [eax - 4]
mov eax, 0x3b0
cmp ecx, eax
ja 0x405678
mov eax, ecx
push eax
lea eax, [edi + 0x2c]
push eax
push ebx
call esi
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [edx + 0x60], eax
jle 0x40569e
lea ecx, [edi + 0x2c]
mov esi, dword [edx + 0x70]
mov edi, dword [ecx]
add ecx, 4
mov dword [esi + eax*4], edi
inc eax
cmp eax, dword [edx + 0x60]
jl 0x40568d
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406cf9
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, 0x105
push edi
push esi
push dword [0x45a2fc]
call fcn.00430c23
mov edi, eax
test edi, edi
je 0x406d51
cmp dword [esp + 0x14], 0
jne 0x406d26
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406d2e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push edi
call fcn.004305c9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esp + 0x10]
push edi
call esi
push edi
call fcn.00430786
push str..INI
push edi
call esi
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x406e33
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x406f53
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push 0x45aa08
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
call esi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
mov esi, 0x4601f4
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Type
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push str.String
push eax
call edi
test eax, eax
jne 0x406efe
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Data
push eax
call ebx
lea eax, [ebp - 0x108]
push esi
push eax
call edi
test eax, eax
je 0x406f53
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x406f4e
lea eax, [ebp - 0x108]
push str.Number
push eax
call edi
test eax, eax
jne 0x406f53
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0xff
push eax
push esi
lea eax, [ebp - 0x208]
push str.Data
push eax
call ebx
lea eax, [ebp - 0x108]
push esi
push eax
call edi
test eax, eax
je 0x406f53
lea eax, [ebp - 0x108]
push eax
call fcn.00442958
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 1
pop eax
jmp 0x406f55
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40f9fd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push edi
xor edi, edi
lea eax, [ebp - 0x88]
push edi
push eax
push dword [ebp + 8]
call fcn.00430034
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40fa25
xor eax, eax
jmp 0x40fa67
lea eax, [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0x3d0900
mov dword [esi], eax
jbe 0x40fa41
mov dword [esi], edi
jmp 0x40fa5d
shr eax, 6
inc eax
inc eax
push eax
push 0x7ffe
call fcn.00430c23
push dword [esi]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__hread]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x41f703
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
lea eax, [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x17
push dword [ebx + 4]
call fcn.0040bd38
cmp byte [ebp - 0x208], 0
jne 0x41f735
xor eax, eax
jmp 0x41f826
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push edi
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x390]
push 0x4000
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00430034
test eax, eax
ja 0x41f79e
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push str.File
push eax
call fcn.0042fb8b
test eax, eax
jne 0x41f79e
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x308]
push eax
push 0x3c
push dword [ebx + 4]
call fcn.0040bd38
cmp byte [ebp - 0x208], 0
je 0x41f7e9
cmp byte [ebp - 0x308], 0
je 0x41f7e9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x100]
push 0x45af54
push eax
call esi
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
call fcn.0041f9c4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call esi
mov edi, eax
add edi, 0x1388
call esi
cmp eax, edi
jae 0x41f821
push ebx
call fcn.0041f829
test eax, eax
pop ecx
jne 0x41f821
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41f806
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f9c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00442900
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x41
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov word [ebp - 0x24], 0xa
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41fa27
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop eax
pop esi
leave
ret
Function at 0x4265c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x4266ae
mov eax, dword [esi]
cmp eax, edi
je 0x4266ae
push edi
push 0x2e
push 0x1b
push 0x28
push dword [ebp + 0xc]
push eax
call fcn.0042e84b
add esp, 0x18
cmp eax, edi
mov dword [ebp + 8], eax
je 0x426638
cmp eax, 0xffffffff
je 0x426638
lea eax, [ebp + 8]
push ebx
push eax
push 0x1b
push dword [ebp + 0xc]
push dword [esi]
call fcn.0042e73d
push dword [ebp + 8]
mov ebx, eax
push ebx
push esi
call fcn.00426d6a
push edi
push edi
push ebx
mov dword [ebp + 0xc], eax
push dword [esi]
call fcn.0042e83e
add esp, 0x2c
pop ebx
jmp 0x4266c8
push edi
push 0x2c
push 0x1b
push 0x28
push dword [ebp + 0xc]
push dword [esi]
call fcn.0042e84b
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4266ae
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push str.Auto
push eax
call fcn.0042fb8b
test eax, eax
je 0x4266ae
lea eax, [ebp - 0x190]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00430034
mov edi, eax
cmp edi, 0xffffffff
je 0x4266ae
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x989680
mov dword [ebp + 8], eax
push edi
jbe 0x4266b6
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
leave
ret 8
push esi
call fcn.004271a2
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 0xc]
jmp 0x4266b0
Function at 0x427aeb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0xb
push dword [esi + 4]
call fcn.00405a34
push 5
push eax
call fcn.00403526
push 0xd
push 0xe
push eax
mov dword [ebp - 0xc], eax
call fcn.00402a21
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + 0xc]
movsx eax, word [eax + 0xe]
add eax, dword [ebp + 0x14]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [ebp - 0x14], ecx
je 0x427b4e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427b4e
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], edi
call esi
push ebx
mov dword [ebp + 0xc], eax
call fcn.00443ff7
cmp eax, 0x64
pop ecx
jg 0x427b91
push edi
call fcn.00443ff7
cmp eax, 0x64
pop ecx
mov dword [ebp + 8], 0x190
jle 0x427b98
mov dword [ebp + 8], 0x320
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [ecx + eax]
mov dword [ebp - 8], edi
call esi
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
jae 0x427bef
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x64
mov dword [ebp + 0xc], ecx
jmp 0x427bbe
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x64
sub eax, ecx
xor edx, edx
div dword [ebp + 8]
push 0x64
pop ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0x14]
cdq
idiv ecx
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
imul eax, ebx
cdq
idiv ecx
add eax, dword [ebp - 0x1c]
push eax
call edi
call esi
cmp eax, dword [ebp - 8]
jb 0x427bbb
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call edi
push 1
push 0xe
push dword [ebp - 0xc]
call fcn.00402a21
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42bf6e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4520be
call fcn.004435ac
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov word [esi + 8], di
mov word [esi + 0xa], di
mov word [esi + 0xc], di
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.0042bff8
lea ecx, [esi + 0x60]
mov dword [ebp - 4], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call fcn.0042c047
lea eax, [esi + 0x84]
mov byte [ebp - 4], 1
lea ecx, [eax + 8]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0042c096
push 8
push edi
push esi
call fcn.00442900
push 0x14
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00442900
push 0xa
lea eax, [esi + 0x22]
push edi
push eax
call fcn.00442900
mov ecx, dword [ebp - 0xc]
add esp, 0x24
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret
Function at 0x42cef6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x13
push dword [ebp + 8]
mov esi, ecx
call fcn.0042d54f
xor ebx, ebx
cmp eax, ebx
je 0x42cfe9
cmp dword [eax], ebx
jne 0x42cfd2
push dword [eax + 0x1c]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push str.Text
push eax
call fcn.0042fb8b
test eax, eax
je 0x42cfe9
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x108]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x42cf77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42cfe9
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov eax, dword [eax]
push dword [ebp + 8]
lea esi, [eax - 1]
call edi
cmp eax, esi
jae 0x42cf97
push ebx
push dword [ebp + 8]
call edi
mov esi, eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], esi
je 0x42cfb9
cmp dword [ebp + 8], ebx
je 0x42cfe9
push dword [ebp + 8]
jmp 0x42cf6f
mov eax, dword [ebp + 0x10]
mov byte [esi + edi], bl
inc esi
cmp dword [ebp + 8], ebx
mov dword [eax], esi
je 0x42d017
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d017
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0042ce53
cmp eax, ebx
jne 0x42cfed
xor al, al
jmp 0x42d019
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
dec ecx
cmp dword [ebp - 4], ecx
jb 0x42cffb
mov dword [ebp - 4], ecx
push dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push eax
push edi
call fcn.00442b50
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [eax + edi], bl
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42d8a3
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x42d91b
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42d91b
test byte [esi + 0x10], 8
lea eax, [ebp - 0x108]
push 0x104
push eax
je 0x42d8de
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x42d8f1
call fcn.0042fff3
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004305c9
push dword [esi + 0x1c]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp + 0xc], 0
je 0x42d978
lea eax, [ebp + 8]
push 1
push eax
push esi
mov ecx, edi
call fcn.0042d603
mov edi, eax
test edi, edi
jne 0x42d91f
xor al, al
jmp 0x42d987
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d970
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
sete byte [ebp + 0xf]
test esi, esi
je 0x42d96b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xf]
jmp 0x42d987
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
leave
ret 8
Function at 0x42d98d
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x452240
call fcn.004435ac
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
cmp edi, esi
mov dword [ebp - 0x10], ebx
je 0x42dab1
cmp dword [edi + 0x18], esi
jne 0x42db06
cmp word [ebx + 0x10e], 2
jne 0x42daf3
movsx eax, word [edi + 0xc]
push eax
lea eax, [ebp - 0x21c]
push str._u.sce
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00430531
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.004305c9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0x80
push 3
push esi
push 1
lea eax, [ebp - 0x118]
push SysReAllocStringLen
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
mov dword [ebp - 4], esi
jne 0x42da8b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
movsx eax, word [edi + 0xc]
push eax
call fcn.0042decb
push esi
push 0x80
push 3
push esi
push 1
lea eax, [ebp - 0x118]
push SysReAllocStringLen
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
push 0xffffffffffffffff
je 0x42da83
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
jmp 0x42da91
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42dab1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x42dab5
cmp dword [ebp + 8], esi
je 0x42dab1
push dword [ebp + 8]
call ebx
xor eax, eax
jmp 0x42db11
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0042db22
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call ebx
cmp dword [ebp + 8], esi
je 0x42db06
push dword [ebp + 8]
call ebx
jmp 0x42db06
mov eax, dword [ebx + 0x1c8]
push dword [edi]
add eax, dword [edi + 8]
mov ecx, edi
push eax
call fcn.0042db22
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42dc7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x42dcf1
cmp dword [esi + 0x14], 0
jne 0x42dd07
mov eax, dword [edi + 0x1c0]
cmp eax, 0xffffffff
je 0x42dcf1
push 0
push 0
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42dcf1
mov eax, dword [esi]
inc eax
push eax
call fcn.00442e85
pop ecx
mov dword [esi + 0x14], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [esi]
push eax
push dword [edi + 0x1c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
cmp dword [ebp - 4], eax
jne 0x42dcf1
push dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0x14]
call fcn.0042e90e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x42dcf5
xor eax, eax
jmp 0x42dd12
mov eax, dword [ebp + 8]
push dword [esi + 0x14]
mov dword [esi + 4], eax
call fcn.00442b3f
pop ecx
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
pop edi
pop esi
leave
ret 8

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

Disassembly:
mov eax, 0x452268
call fcn.004435ac
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x42dea8
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
push dword [esi + 0x1c]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push str.Image
push eax
call fcn.0042fb8b
test eax, eax
je 0x42deb7
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x110]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
mov dword [ebp - 4], edi
jne 0x42de44
push eax
jmp 0x42dea2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42de5c
push eax
call fcn.00442b3f
pop ecx
lea eax, [edi + 1]
push eax
call fcn.00442e85
mov dword [esi + 0x24], eax
pop ecx
movzx eax, byte [esi + 0xf]
dec eax
dec eax
je 0x42de86
sub eax, 5
je 0x42de86
push 0
push 0
push 0xe
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, 0xe
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x42deac
test ebx, ebx
je 0x42dea8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42deba
test ebx, ebx
je 0x42deb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8