joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a74e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5512c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
lea ebx, [edi + 0x258]
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4a7633
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
lea eax, [edi + 0x230]
lea esi, [ebp - 0x24]
call fcn.0045cb40
mov ecx, 1
mov byte [ebp - 4], cl
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], 0
jne 0x4a75ac
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4a7572
mov eax, 0x104
lea ecx, [ebp - 0x24]
call fcn.00459610
mov esi, dword [ebp - 0x24]
mov edx, dword [edi + 0x1a0]
push 0x104
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e68a0
add esp, 8
test eax, eax
js 0x4a7651
cmp eax, dword [esi - 8]
jg 0x4a7651
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4a7620
mov edx, dword [0x559ec8]
mov eax, dword [ebp - 0x28]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x244]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x190]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [edi + 0x22c], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jne 0x4a7602
sub dword [ebp - 0x20], 0x10
push 0x24
lea ecx, [ebp - 0x20]
push ecx
push 0xffffffffffffffff
push esi
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004590c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3e00
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0045a310
int3
Function at 0x4aee30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d078
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5512c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ebx
push edx
mov edx, dword [ebp + 8]
push edi
push eax
push edx
call fcn.004ac8e0
lea esi, [esp + 0x10]
call fcn.004590a0
xor eax, eax
mov dword [esp + 0x30], eax
push 0x528c8c
push edi
mov edi, esi
mov dword [ebx + 0x1a4], eax
call fcn.004b1840
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x528ca8
push esi
call edi
test eax, eax
je 0x4aeebf
or dword [ebx + 0x1a4], 0x20000
push 0x528cb0
push esi
call edi
test eax, eax
je 0x4aeed5
or dword [ebx + 0x1a4], 0x10000
mov esi, dword [ebp + 0x10]
push str.position
lea edi, [ebx + 0x58]
push esi
call fcn.004b1840
mov edi, dword [edi]
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.004b1c40
mov ecx, dword [eax]
mov dword [ebx + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x50], ecx
mov edx, dword [eax + 0xc]
lea eax, [ebx + 0x70]
push eax
push str.BackColor
push esi
mov dword [ebx + 0x54], edx
call fcn.004b1900
push 1
push str.Hide
push str.visible
push esi
call fcn.004b1680
test al, al
sete cl
xor eax, eax
mov byte [ebx + 0x19], cl
push esi
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.004b19c0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x198], edx
mov dword [eax + 0x19c], ecx
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004590c0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4af6f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
jne 0x4af703
xor al, al
pop edi
pop ebp
ret 4
mov al, byte [ebp + 8]
push ebx
push esi
mov byte [edi + 0x26], al
mov esi, dword [edi + 0x78]
sub esi, dword [edi + 0x74]
xor ebx, ebx
sar esi, 2
test al, al
jne 0x4af750
test esi, esi
jle 0x4af77b
mov edi, edi
mov eax, dword [edi + 0x74]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x4af742
cmp byte [eax + 0x24], 0
je 0x4af742
cmp dword [eax + 0x64], 0
je 0x4af742
mov ecx, dword [eax + 0x60]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, esi
jl 0x4af720
pop esi
pop ebx
mov al, 1
pop edi
pop ebp
ret 4
test esi, esi
jle 0x4af77b
mov edx, dword [edi + 0x74]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x4af776
cmp byte [eax + 0x24], 0
je 0x4af776
cmp dword [eax + 0x64], 0
je 0x4af776
mov eax, dword [eax + 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, esi
jl 0x4af754
pop esi
pop ebx
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x4b0270
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5512c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [esi + 4], 0
mov al, byte [ebp + 8]
push ebx
push edi
mov ebx, ecx
mov byte [ebp - 0x119], al
mov edi, edx
jne 0x4b02c0
lea ecx, [ebp - 0x118]
push ecx
mov byte [esi + 4], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x4b02c0
mov byte [esi + 5], 1
test edi, edi
je 0x4b02ca
cmp word [edi], 0
jne 0x4b02cf
mov edi, 0x528eb0
test ebx, ebx
jne 0x4b02d8
mov ebx, 0xd
movzx edx, byte [ebp - 0x119]
push edi
push 0
push 2
push 0
push 0
push 0x86
push 0
push 0
neg edx
push 0
sbb edx, edx
and edx, 0x2bc
push edx
push 0
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e3e00
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 8
push edi
xor edi, edi
cmp eax, edi
je 0x4b3dcc
push eax
call fcn.004e3e60
add esp, 4
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4b3e02
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004e3d18
mov edx, dword [ebp - 4]
add esp, 4
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
mov edi, eax
push edi
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b3e85
cmp dword [edi], 0x2e66622e
jne 0x4b3e85
cmp dword [edi + 0x3c], 0x10000
jne 0x4b3e85
cmp dword [edi + 0x40], 1
jne 0x4b3e85
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
cmp dword [edi + 0xfc], 0
je 0x4b3e7f
mov eax, dword [edi + 0xf8]
lea eax, [eax + edi + 0x100]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 4]
lea eax, [ecx + eax + 8]
mov dword [esi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x4b3e92
test edi, edi
je 0x4b3e92
push edi
call fcn.004e3e60
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6a80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x4b6ad0
mov al, byte [ebp + 8]
mov byte [esi + 0x26], al
test al, al
jne 0x4b6aa1
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
push esi
call edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 0xe
push 1
call edx
mov eax, dword [esi + 0x78]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4b6ad0
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4

Function at 0x4b75a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5512c0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov byte [eax], 1
mov eax, dword [esi + 0x78]
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esi + 0x27], 0
jne 0x4b763e
cmp byte [esi + 0x24], 0
mov dword [esi + 0xc0], 9
je 0x4b7712
cmp byte [esi + 0x25], 0
je 0x4b7712
cmp byte [esi + 0x26], 0
je 0x4b7712
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4b7712
mov eax, dword [esi + 4]
test eax, eax
je 0x4b7712
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e3e00
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esp + 0xc], eax
sub eax, dword [esi + 0xb4]
inc ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0xb8]
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], eax
movsx eax, di
mov dword [esp + 8], ecx
shr edi, 0x10
movsx ecx, di
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4b76a2
mov dword [esi + 0xc0], 2
mov dword [esi + 0xbc], 1
jmp 0x4b76b6
mov dword [esi + 0xc0], 6
mov dword [esi + 0xbc], 0
cmp byte [esi + 0x24], 0
je 0x4b76ee
cmp byte [esi + 0x25], 0
je 0x4b76ee
cmp byte [esi + 0x26], 0
je 0x4b76ee
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4b76ee
mov eax, dword [esi + 4]
test eax, eax
je 0x4b76ee
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esi + 0xbc]
push eax
mov eax, esi
call fcn.004b7a10
mov ecx, dword [esi + 0x78]
push 0
push 0xc8
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004e3e00
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5512c0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x78]
push edi
push 0x3e9
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0x27], 0
jne 0x4b7768
mov dword [esi + 0xc0], 9
jmp 0x4b77c2
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x3c]
dec eax
mov dword [esp + 0xc], eax
sub eax, dword [esi + 0xb4]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xb8]
inc ecx
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], eax
movsx eax, di
mov dword [esp + 8], ecx
shr edi, 0x10
movsx ecx, di
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
mov dword [esi + 0xc0], eax
cmp byte [esi + 0x24], 0
je 0x4b77fa
cmp byte [esi + 0x25], 0
je 0x4b77fa
cmp byte [esi + 0x26], 0
je 0x4b77fa
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4b77fa
mov eax, dword [esi + 4]
test eax, eax
je 0x4b77fa
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004e3e00
mov esp, ebp
pop ebp
ret

Function at 0x4bc280
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0xc8]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4bc2fb
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x559f28]
cmp eax, 0x1388
jbe 0x4bc2fb
call edi
mov ecx, dword [esi + 0x1c]
mov dword [0x559f28], eax
test ecx, ecx
je 0x4bc2fb
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push esi
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x6c]
cmp dword [ecx - 0xc], 0
je 0x4bc2fb
mov ecx, dword [esi + 0x1c]
movzx eax, word [ebp + 0xc]
movzx esi, word [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push 1
shl eax, 0x10
or eax, esi
push eax
push 0
push 0x200
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4bc720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push edi
mov edi, ecx
mov byte [edi + 0x28], al
test al, al
je 0x4bc767
mov eax, dword [edi + 4]
mov word [edi + 0x29], 0
test eax, eax
je 0x4bc74f
push esi
lea esi, [eax + 0x6c]
call fcn.00459350
mov eax, dword [edi + 4]
call fcn.0049f9d0
pop esi
mov edi, dword [edi + 0xf0]
test edi, edi
je 0x4bc762
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
ret 4
mov word [edi + 0x29], 0x101
pop edi
pop ebp
ret 4
Function at 0x4bd580
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4bd593
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x18c], 0
ret
Function at 0x4c4380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe683
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 1
mov dword [eax], vtable.CDrawImage.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 0x18], dl
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [eax], vtable.CDrawImageBMP.0
mov dword [eax + 0x28], vtable.CHSL.0
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [ebp - 4], dl
mov dword [eax + 8], edx
mov dword [eax + 0x24], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c4850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe648
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 1
mov dword [eax], vtable.CDrawImage.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 0x18], dl
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [eax], vtable.CDrawImageGIF.0
mov dword [eax + 8], 2
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [eax + 0x38], cl
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6a10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5079e3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x4c6a93
lea esi, [ebp - 0x10]
call fcn.004590a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x14]
push eax
push ecx
push str._s_s
mov edi, esi
call fcn.004596f0
mov edx, dword [ebp - 0x10]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c6aa9
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.004590c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4c6b40
push edi
call fcn.004e3d18
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c6b37
cmp dword [ebp - 0x14], edi
jne 0x4c6b37
push 0x14
call fcn.004471c0
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4c6b27
mov ecx, dword [ebp - 0x14]
mov dword [eax], vtable.CImageData.0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x4c6b40
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp + 0xb], 1
jmp 0x4c6b40
push esi
call fcn.004e3e60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004590c0
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c6d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503382
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c6e2e
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x52adac
push 0x17
push 0
push 0x518848
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c6e18
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c6e18
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push 0
push eax
call edx
lea esi, [ebp - 0x2c]
call fcn.00462620
mov byte [ebp - 4], 3
mov edi, dword [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [edx]
lea ecx, [ebp - 0x14]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xe8]
push edx
call ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [ebp - 0x14], 0
jne 0x4c6dde
jmp 0x4c6e18
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c6e03
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c6e2e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505bd0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5512c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4c728f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x4c728f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x4c728f
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x14]
cmp ecx, ebx
je 0x4c728f
cmp dword [eax], 0x2e66622e
jne 0x4c728f
mov edx, 0x10000
cmp dword [eax + 0x3c], edx
jne 0x4c728f
cmp dword [eax + 0x40], edx
jne 0x4c728f
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
call fcn.004c7a90
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push ecx
push eax
mov edx, edi
call fcn.004c7be0
test al, al
je 0x4c7275
mov ecx, dword [esi + 0xc]
cmp dword [ecx - 0xc], ebx
je 0x4c7217
lea edx, [esi + 0x6c]
push edx
push ecx
mov edx, edi
call fcn.004c7be0
test al, al
je 0x4c7275
mov ecx, dword [esi + 8]
cmp dword [ecx - 0xc], ebx
je 0x4c722f
lea eax, [esi + 0x70]
push eax
push ecx
mov edx, edi
call fcn.004c7be0
test al, al
je 0x4c7275
add esi, 0x60
cmp esi, ebx
je 0x4c7275
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.004c6e50
test al, al
je 0x4c7278
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c79a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, esi
je 0x4c79bf
push eax
call fcn.004e4321
add esp, 4
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4c79f3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004e3d18
mov edx, dword [ebp - 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
push esi
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c7a61
cmp dword [ebp - 4], ebx
jne 0x4c7a61
cmp dword [esi], 0x2e66622e
jne 0x4c7a61
mov eax, 0x10000
cmp dword [esi + 0x3c], eax
jne 0x4c7a61
cmp dword [esi + 0x40], eax
jne 0x4c7a61
cmp dword [esi + 0x64], 0
je 0x4c7a61
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [edi + 0x20], esi
call fcn.004c7a90
mov bl, 1
jmp 0x4c7a64
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4c7a7b
push esi
call fcn.004e3e60
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4