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

Disassembly:
sub esp, 0x23c
lea eax, [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xe8]
mov edi, dword [esp + 0x250]
test eax, eax
je 0x4c2992
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
push eax
call ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [esp + 0x18]
sub ecx, edx
add ecx, ebp
add eax, ebx
push ecx
mov ecx, dword [esi + 0xe8]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004ba250
mov eax, dword [esi + 0x914]
test eax, eax
jne 0x4c2b05
mov ecx, dword [esi + 0x11c]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push 2
sub eax, ecx
mov dword [esi + 0x918], 3
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esi + 8]
sar ebx, 1
push eax
add ebx, ecx
lea ebp, [edx + 6]
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4c29fb
add ebp, dword [esi + 0x91c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c2a17
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi + 0x918]
lea eax, [ecx + ebp + 0x10]
mov ecx, dword [esp + 0x1c]
sub ecx, 0x10
mov dword [esp + 0x14], eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jge 0x4c2a38
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11c]
lea edx, [esp + 0x44]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 2
mov ecx, esi
call fcn.004bfb00
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x46c]
test eax, eax
je 0x4c2abb
mov ecx, dword [esi + 0x468]
push ecx
push edi
call ebp
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push 1
lea edx, [esp + 0x18]
push 1
push edx
call ebx
lea eax, [esp + 0x14]
push 0x48824
push eax
lea ecx, [esp + 0x4c]
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
call ebx
mov ecx, dword [esi + 0x910]
test ecx, ecx
je 0x4c2ad7
call fcn.004b2a10
test eax, eax
je 0x4c2ad7
mov eax, dword [esi + 0x434]
push eax
jmp 0x4c2ade
mov ecx, dword [esi + 0x920]
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0x48824
push edx
lea eax, [esp + 0x4c]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret 4
Function at 0x4c4cd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.004c56f0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c4d2a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4c4d06
push 2
call edi
shr eax, 8
test al, al
je 0x4c4d2a
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [esi + 8]
je 0x4c4dac
mov eax, dword [esi + 0xfc]
mov dword [esi + 0x100], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xfc], 0xffffffff
mov dword [esi + 0x104], 0
je 0x4c4d5b
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e4], 4
call dword [eax + 0x28]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4c4da6
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.004c8a00
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.004c89b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x11c]
push eax
push 0xffffffffffffffff
push 0x37ea
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
add esp, 8
ret
Function at 0x4c8720
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xa20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x205
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa34]
test eax, eax
jne 0x4c8794
mov eax, dword [esp + 0xa30]
lea ecx, [esp + 0x10]
push eax
push 0x4e99a8
push ecx
mov dword [esp + 0x18], 0x814
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esi + 0x478]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x228]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push str.ToolBar
call fcn.0048cc50
add esp, 0x20
test eax, eax
je 0x4c8899
mov ecx, 0x205
xor eax, eax
lea edi, [esp + 0x218]
push str.ToolbarEx
rep stosd dword es:[edi], eax
push 0x4e923c
lea eax, [esp + 0x220]
push 9
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 0xf4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x4c8830
push ebp
lea edi, [esp + 0x230]
push ebx
mov ecx, esi
call fcn.004c6bf0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4c8821
mov ecx, dword [esi + 0xf0]
push ebp
mov dl, byte [ecx + ebx*4]
lea ecx, [ecx + ebx*4]
mov byte [edi + 4], dl
mov ecx, dword [ecx]
mov eax, ecx
shl eax, 7
add eax, ecx
mov ecx, dword [esi + 0xec]
mov dl, byte [ecx + eax*4 + 0x44]
mov ecx, esi
mov byte [edi + 5], dl
call fcn.004c65a0
test eax, eax
je 0x4c881b
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x4c8821
mov dword [edi], 0
mov eax, dword [esi + 0xf4]
inc ebx
add edi, 8
cmp ebx, eax
jl 0x4c87d5
pop ebp
lea ebx, [esi + 0x478]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c8899
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xa30]
lea edx, [esp + 0x10]
push ecx
push 0x4e99a8
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esi + 0xf4]
add esp, 0xc
lea edx, [esp + 0x218]
lea ecx, [eax*8 + 0x14]
push ebx
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.ToolBar
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
pop edi
pop esi
pop ebx
add esp, 0xa20
ret 8

Function at 0x4c8a50
Capabilities:
Hide graphical window

Disassembly:
call fcn.004ae2f0
mov ecx, eax
jmp 0x4c8d00
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4cbd40
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
xor ebx, ebx
mov dword [esi + 0x17dfc], ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov dword [esi + 0x17de4], eax
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi + 0x1784]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
cmp dword [edx + 0x30], ebx
je 0x4cbdce
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esi + 0x1714]
push ecx
push edx
call edi
test eax, eax
je 0x4cbdce
mov ecx, esi
mov dword [esi + 0x17de8], 1
mov dword [esi + 0x17de4], ebx
call fcn.004cc030
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esi + 0x1724]
push ecx
push edx
call edi
test eax, eax
je 0x4cbe0b
mov ecx, esi
mov dword [esi + 0x17e00], ebx
mov dword [esi + 0x17df0], 1
mov dword [esi + 0x17de4], ebx
call fcn.004cc030
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x17dc4]
mov dword [esi + 0x17df8], 1
push 0x11
mov ebx, dword [esi + eax*4 + 0x177a8]
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4cbe53
cmp dword [esi + 0x17dc0], 1
jle 0x4cbe53
mov ecx, dword [esi + 0x1784]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x4cbe53
mov ecx, esi
call fcn.004cca60
jmp 0x4cbf20
lea edx, [esi + 0x13d0]
mov ecx, esi
push edx
call fcn.004cb5b0
mov edi, eax
cmp edi, 0xffffffff
je 0x4cbefc
cmp edi, ebx
je 0x4cbe96
push 0
push edi
mov ecx, esi
mov dword [esi + 0x17dfc], 1
call fcn.004cbb10
lea eax, [esi + 0x13c8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4cbf20
mov eax, dword [esi + 0x1784]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4cbed7
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4cbed7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004cd5f0
test eax, eax
je 0x4cbed7
push edi
mov ecx, esi
call fcn.004cc3b0
lea eax, [esi + 0x13c8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4cbf20
mov edx, dword [esi + 0x1738]
push 0
push 5
push 0xfc7
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x13c8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4cbf20
mov dword [esi + 0x17df8], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x17f64]
push ecx
push edx
call fcn.004cf690
add esp, 8
xor eax, eax
pop edi
mov dword [esi + 0x17e00], eax
mov dword [esi + 0x17e04], eax
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4cde40
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x17e0c], edi
je 0x4cdf21
push edi
call fcn.004cb5b0
cmp eax, 0xffffffff
jne 0x4cdeac
cmp dword [esi + 0x17df0], edi
je 0x4cde95
cmp dword [esi + 0x17df4], edi
je 0x4cde95
mov eax, dword [esi + 0x1738]
push 1
push 1
push 0xfc7
push eax
mov dword [esi + 0x17df0], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.004cc030
jmp 0x4cdf21
mov ecx, dword [esi + 0x1738]
push edi
push 1
push 0xfc7
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4cdf21
cmp dword [esi + 0x17e10], edi
jne 0x4cdeff
mov edx, dword [esi + 0x1784]
cmp dword [edx], edi
je 0x4cdeff
cmp dword [esi + 0x13dc], 0xffffffff
je 0x4cdeff
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne 0x4cdeff
cmp dword [esi + 0x1788], edi
jne 0x4cdf21
push 1
mov ecx, esi
call fcn.004ccfc0
test eax, eax
je 0x4cdef7
mov dword [esi + 0x178c], 1
jmp 0x4cdf21
mov dword [esi + 0x178c], edi
jmp 0x4cdf21
mov eax, dword [esi + 0x1738]
push edi
push 2
push 0xfc7
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004ca250
mov dword [esi + 0x17e0c], edi
mov dword [esi + 0x1788], edi
mov dword [esi + 0x13dc], 0xffffffff
pop edi
pop esi
ret 4

Function at 0x4cf0d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d7d4b
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004d0e10
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x502598
mov edi, ecx
push esi
call fcn.004339d0
add esp, 8
test eax, eax
je 0x4cf238
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.00433a10
add esp, 0x10
test eax, eax
je 0x4cf1d1
lea ecx, [esp + 0x220]
push str.iexplore.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4cf188
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.00433a10
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
test eax, eax
jne 0x4cf188
lea ecx, [esp + 0x220]
push 0x824
push ecx
push eax
push esi
call fcn.00433a10
add esp, 0x10
lea edx, [esp + 0x220]
push edx
push 0x4e923c
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.0048bf80
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.004897b0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.00489880
mov esi, eax
test esi, esi
je 0x4cf21f
push esi
lea ecx, [esp + 0xc]
call fcn.00489990
test eax, eax
je 0x4cf215
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004899d0
push esi
lea ecx, [esp + 0xc]
call fcn.00489900
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.00489800
jmp 0x4cf1ad
push 0x4e9344
push esi
call fcn.004339d0
add esp, 8
test eax, eax
push esi
je 0x4cf190
push 0x824
push edi
push 0x503fd0
push 0x4fe240
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4cf1ad
Function at 0x4cf7c0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret
Function at 0x4cff3e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db0f0
push 0x4d0e84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x4cffc4
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4cff9c
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4cffca
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4cff94
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4cff94
mov al, 1
jmp 0x4cff96
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d0029
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x5e38a8]
test esi, esi
je 0x4d004d
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x4d0031
pop esi
pop ecx
ret

Function at 0x4d0050
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5e38b4], eax
je 0x4d0066
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5e38c4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4d00b3
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4d00a4
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4d00a4
push eax
call fcn.004d011a
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d0de9
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d0075
mov dword [0x5e38c4], ebx
call fcn.004d00f3
mov esi, dword [0x5e38c0]
cmp esi, ebx
je 0x4d00e0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d0de9
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d00c8
pop edi
mov dword [0x5e38c0], ebx
mov dword [0x5e38b4], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d039d
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5e38b8]
push esi
test eax, eax
push edi
jne 0x4d0407
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4d0405
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d03c9
push 8
pop edi
jmp 0x4d03e4
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4d03f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d0de9
pop ecx
and dword [0x5e38bc], 0
mov dword [0x5e38b8], edi
mov eax, edi
jmp 0x4d0407
mov dword [esi + 4], edi
mov eax, dword [0x5e38c0]
mov dword [esi], eax
mov dword [0x5e38c0], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4d06c4
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x4d06e8
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4d06eb
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4d06fe
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4d0705
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5e38ac]
mov ecx, dword [0x5e38a8]
test eax, eax
jne 0x4d071f
test ecx, ecx
je 0x4d0734
mov eax, ecx
mov dword [0x5e38ac], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4d0734
cmp edx, dword [ebp + 8]
jb 0x4d0734
cmp edx, dword [ebp - 4]
jbe 0x4d088d
mov eax, ecx
test ecx, ecx
mov dword [0x5e38ac], eax
je 0x4d0764
test eax, eax
je 0x4d0758
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d0758
cmp ecx, dword [ebp + 8]
jb 0x4d0758
cmp ecx, dword [ebp - 4]
jbe 0x4d088d
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5e38ac], eax
jne 0x4d0743
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4d07cc
cmp edi, 0x70000000
jb 0x4d0789
cmp edi, 0x80000000
ja 0x4d0789
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d07cc
cmp dword [ebp - 0x10], ebx
jne 0x4d07a4
cmp dword [ebp - 0x14], ebx
jae 0x4d07b4
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4d0774
jmp 0x4d07cc
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5e38ac], eax
jne 0x4d0843
cmp esi, dword [ebp - 4]
jae 0x4d08b4
cmp esi, 0x70000000
jb 0x4d07ea
cmp esi, 0x80000000
ja 0x4d07ea
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d08b4
cmp dword [ebp - 0x10], ebx
jne 0x4d0838
cmp dword [ebp - 0x14], ebx
jb 0x4d0838
mov ecx, esi
and ecx, 0xffff
je 0x4d0820
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5e38ac], eax
jne 0x4d0843
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4d07cc
mov dword [eax], 0x52727464
mov eax, dword [0x5e38ac]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5e38ac]
mov edx, dword [0x5e38a8]
mov dword [eax + 4], edx
mov eax, dword [0x5e38ac]
mov dword [0x5e38a8], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4d0875
mov eax, dword [0x5e38ac]
mov dword [eax + 8], ecx
mov eax, dword [0x5e38ac]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4d08b4
cmp esi, dword [ebp - 4]
ja 0x4d08b4
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4d08b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d08bb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db100
push 0x4d0e84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d0930
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4d092c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4d092c
cmp word [eax + 0x14], 0
jne 0x4d0921
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4d0932
mov eax, ecx
jmp 0x4d091b
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x402c29
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c32
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x402c69
push 0x5af97c
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00550326
add esp, 0xc
test eax, eax
jne 0x402c19
push str.dwmapi.dll
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.00550326
add esp, 0xc
test eax, eax
jne 0x402c19
lea eax, [ebp - 0x210]
push eax
call fcn.004024b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.0054f72c
mov esp, ebp
pop ebp
ret
Function at 0x404760
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x5af980
mov esi, ecx
call fcn.004024b0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
add esp, 4
mov dword [esi + 0x1ec], eax
cmp eax, ebx
je 0x4047d0
push str.DrawThemeParentBackground
push eax
call edi
mov dword [esi + 0x1f4], eax
mov eax, dword [esi + 0x1ec]
push str.DrawThemeTextEx
push eax
call edi
mov ecx, dword [esi + 0x1ec]
push str.BeginBufferedPaint
push ecx
mov dword [esi + 0x1f8], eax
call edi
mov edx, dword [esi + 0x1ec]
push str.EndBufferedPaint
push edx
mov dword [esi + 0x204], eax
call edi
mov dword [esi + 0x208], eax
jmp 0x4047e8
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
cmp dword [esi + 0x1f0], ebx
je 0x40483a
call fcn.00402bf0
mov dword [esi + 0x1f0], eax
cmp eax, ebx
jne 0x404804
call fcn.0046358a
push str.DwmExtendFrameIntoClientArea
push eax
call edi
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x1f0]
push str.DwmDefWindowProc
push eax
call edi
mov ecx, dword [esi + 0x1f0]
push str.DwmIsCompositionEnabled
push ecx
mov dword [esi + 0x210], eax
call edi
mov dword [esi + 0x214], eax
mov eax, 1
cmp dword [esi + 0x19c], ebx
je 0x40484d
mov dword [esi + 0x19c], eax
pop edi
pop esi
pop ebx
ret