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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0xb4], 0
je 0x49c1bb
mov eax, dword [ebx + 0xbc]
test eax, eax
je 0x49c0b8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push 0x18
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push eax
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x34]
je 0x49c19c
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x30]
je 0x49c19c
push dword [ebx + 0xbc]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xbc], 0
push dword [ebx + 0xb8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x49c1bb
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebx + 0xb8]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 4]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
push edx
push 0
push dword [ebp - 8]
mov dword [ebp - 0x20], vtable.Gdiplus::Bitmap.0
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
mov esi, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov eax, dword [ebp - 4]
push 7
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
push esi
mov esi, dword [ebp - 8]
push edi
mov edi, dword [ebp - 0x10]
push 0
push 0
push edi
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
push ecx
mov edx, 1
lea ecx, [ebp - 0x20]
call fcn.00496f70
add esp, 4
mov dword [ebx + 0xbc], eax
push esi
test eax, eax
je 0x49c1a7
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.gdiplus.dll_GdipDisposeImage]
call esi
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a1e20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4a1e3a
mov eax, dword [ecx]
push edi
call dword [eax + 0x104]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
cmp dword [esi + 0xe4], 0
je 0x4a1ead
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4a1ead
test edi, edi
je 0x4a1e6d
push 5
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push ebx
push 0
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x38]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
mov ebx, eax
test ebx, ebx
je 0x4a1eac
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1eac
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1eac
push dword [esi + 0x38]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4a1ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c4104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4a1ee3
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [esi + 0xe4], 0
je 0x4a1f99
cmp dword [esi + 0xe0], 0
je 0x4a1f99
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4a1f75
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1f75
mov eax, dword [esi + 0xe0]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1f99
mov eax, dword [esi + 0xe0]
push 5
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [esi + 0x38]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0xe0]
lea eax, [ebp - 0x14]
sub dword [ebp - 0x14], 5
add ecx, 0x38
sub dword [ebp - 0x10], 3
add dword [ebp - 0xc], 5
add dword [ebp - 8], 7
push 1
push eax
call fcn.004a6170
jmp 0x4a1f99
mov eax, dword [esi + 0xe0]
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1f99
mov eax, dword [esi + 0xe0]
push 0
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov eax, dword [eax + 0x58]
cmp eax, method.CMainFrame.virtual_88
jne 0x4a1fbb
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
call fcn.0051ac8e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call eax
jmp 0x4a1fa5
Function at 0x4b4390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580a98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5c993c]
test eax, eax
je 0x4b43e1
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b43e1
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005533d7
add esp, 4
call fcn.005533b6
mov esi, eax
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4b440c
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4b4421
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4b4423
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str.x_GeneralNotify_lu
push eax
call fcn.0041f560
mov esi, dword [ebp - 0x10]
mov ecx, 0x5c9940
mov edi, esi
add esp, 0xc
mov edx, 0x104
sub edi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4b4471
movzx eax, word [edi + ecx]
test ax, ax
je 0x4b4471
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4b4453
lea eax, [ecx - 2]
mov dword [ebp - 0x40], 0x30
test edx, edx
push 0x2c
cmovne eax, ecx
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
push eax
call fcn.0051edd0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x5c9940
mov dword [ebp - 0x38], 0x4b4370
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x2c]
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.CGeneralObserverMgrWnd
push dword [ebp - 0x18]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x5c993c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b4548
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4b4546
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4b4546
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bc440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x2c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x30
push 0
push eax
call fcn.0051edd0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
call fcn.004bcc30
test eax, eax
mov dword [ebp - 0x28], 0x4bc0d0
mov ecx, 0x5c9bb0
cmove ecx, dword [ebp - 8]
push 0
mov dword [ebp - 8], ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0x1c]
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push 0x5a39fc
push dword [ebp - 8]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x5c9db8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5c9f7c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x5c9f78]
imul ecx
mov dword [0x5c4a94], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4bc50d
push 0
push 0x32
push 1
push dword [0x5c9db8]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5c4a94], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4c1e00
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581778
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or ebx, 0xffffffff
cmp dword [0x5c4cc4], ebx
jne 0x4c1e90
push ecx
mov edx, 0x5a22b4
lea ecx, [ebp - 0x10]
call fcn.00435920
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov dword [0x5c4cc4], eax
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4c1e90
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c1e8c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4c1e8c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4c1e90
mov ecx, edx
call esi
cmp dword [0x5c4cc4], 1
mov edi, dword [ebp + 8]
jne 0x4c1f36
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4c1eb5
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c1eca
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4c1ecc
call edx
add eax, 0x10
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push str.ClientText:_s
push eax
call fcn.0041f560
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c1f36
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4c1f34
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4c1f34
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4c1f36
call edx
mov esi, dword [0x5c9fb0]
test esi, esi
je 0x4c1fc5
mov ebx, dword [0x5c9fb8]
test ebx, ebx
je 0x4c1fc5
cmp ebx, esi
je 0x4c1fc5
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c1f60
mov ecx, edi
call fcn.004c2c20
mov dword [ebp + 8], eax
lea ecx, [esi + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004c31f0
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
je 0x4c1fc5
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0xc], ecx
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4c1fae
push ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 8]
call fcn.004c31a0
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 8]
je 0x4c1fc5
mov ecx, dword [ebp + 0xc]
lea esi, [eax + 0x14]
push esi
lea ecx, [ecx + 8]
call fcn.004c3340
mov eax, dword [esi]
mov eax, dword [eax + 4]
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
mov eax, edi
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 0x4d1f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5c4104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp dword [eax + 0x10], 0
je 0x4d1f88
call fcn.004d20b0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d1fa7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051ac8e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
push esi
call fcn.004d2840
test eax, eax
je 0x4d1f93
push esi
lea eax, [ebp - 0x20c]
push 0x5a41f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x4d200c
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d200c
lea eax, [ebp - 0x224]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d2085
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004d2690
test eax, eax
je 0x4d2085
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x218]
jne 0x4d2085
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jne 0x4d2085
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x228]
jne 0x4d2085
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x22c]
jne 0x4d2085
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2f80
test al, al
jne 0x4d2095
mov eax, dword [edi + 4]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.004d22a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051ac8e
mov esp, ebp
pop ebp
ret 8

Function at 0x4d2150
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x4d2161
mov dword [edi], ecx
pop edi
xor eax, eax
pop esi
ret
push 2
push 0
push esi
call fcn.005528ec
push esi
call fcn.00552f22
push 0
push 0
push esi
mov dword [edi], eax
call fcn.005528ec
mov eax, dword [edi]
add esp, 0x1c
test eax, eax
jle 0x4d215c
push ebx
push eax
call fcn.0053b895
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d21ae
push esi
push 1
push dword [edi]
push ebx
call fcn.0055313d
push 0
push 0
push esi
call fcn.005528ec
add esp, 0x1c
mov eax, ebx
pop ebx
pop edi
pop esi
ret
Function at 0x4d2840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d2864
cmp dword [esi + 4], 0
je 0x4d285d
push eax
call fcn.00529806
add esp, 4
mov dword [esi + 0x10], 0
push 0x5a2f08
push dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.00552487
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d288e
pop edi
pop esi
pop ebp
ret 4
push ebx
push 2
push 0
push edi
call fcn.005528ec
push edi
call fcn.00552f22
push 0
push 0
push edi
mov ebx, eax
call fcn.005528ec
add esp, 0x1c
test ebx, ebx
jle 0x4d28ce
push ebx
mov ecx, esi
call fcn.004d2950
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4d28ce
push edi
push 1
push ebx
push eax
call fcn.0055313d
add esp, 0x10
push edi
call fcn.005532e4
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d2f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582896
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004d3970
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x4d303a
push 0x5a2f08
push eax
call fcn.00552487
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4d303a
push edi
call fcn.00554b37
push eax
call fcn.00554b21
push edi
push 1
mov esi, eax
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.0055313d
add esp, 0x18
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x20], 0x78646972
jne 0x4d30c3
cmp dword [ebp - 0x1c], 0x8000
jb 0x4d3050
push edi
call fcn.005532e4
add esp, 4
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
add esi, 0xfffffff8
push esi
call fcn.0053b895
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4d30c3
push edi
push 1
push esi
push ebx
call fcn.0055313d
lea edx, [ebx + esi]
mov ecx, ebx
xor ebx, ebx
mov dword [ebp + 8], edx
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
jle 0x4d30b1
mov edi, dword [ebp - 0x10]
mov esi, dword [ecx + 0xc]
add esi, 0x12
add esi, ecx
cmp esi, edx
ja 0x4d30ae
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push eax
call fcn.004d2bd0
mov edx, dword [ebp + 8]
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x1c]
jl 0x4d3084
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00529806
add esp, 4
cmp ebx, dword [ebp - 0x1c]
sete byte [ebp + 0xb]
push edi
call fcn.005532e4
mov al, byte [ebp + 0xb]
add esp, 4
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 0x4d4fd0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582a56
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.0051aff0
mov eax, dword [0x5c4104]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 8], 0
jne 0x4d5018
cmp dword [edi + 4], 0
je 0x4d5176
lea ebx, [edi + 0x14]
push ebx
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2018], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
jle 0x4d506e
test esi, esi
je 0x4d516f
cmp dword [eax - 0xc], 0
jl 0x4d516f
push esi
push eax
call fcn.0051ef2a
add esp, 8
test eax, eax
je 0x4d516f
sub eax, dword [edi + 0x10]
sar eax, 1
js 0x4d516f
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.0051edd0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2010]
call fcn.0042dd40
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x4d50ac
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d50c1
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4d50c3
call edx
add eax, 0x10
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2010]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x2014]
push str.__s___s_r_n
push eax
call fcn.0041f560
mov esi, dword [ebp - 0x2014]
add esp, 0x10
cmp dword [edi + 8], 0
je 0x4d50ff
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 4], 0
je 0x4d512e
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x4d512e
push 0
mov dword [ebp - 0x2014], 0
lea edx, [ebp - 0x2014]
mov eax, dword [esi - 0xc]
push edx
add eax, eax
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d516f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d516d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4d516d
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d516f
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.0051ac8e
mov esp, ebp
pop ebp
ret
Function at 0x4d5510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582ae8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x140], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [edi + 0x144]
sub ebx, 0x10
lea ecx, [eax - 0x10]
cmp ecx, ebx
je 0x4d559e
cmp dword [ebx + 0xc], 0
jl 0x4d558c
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x4d558c
push ecx
call fcn.00405650
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00407070
lea eax, [esi + 0x10]
mov dword [edi + 0x144], eax
jmp 0x4d559b
push dword [eax - 0xc]
lea ecx, [edi + 0x144]
push eax
call fcn.00405730
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x164], 0
movups xmm0, xmmword [ebp + 0x14]
mov ecx, dword [ebp + 0x2c]
movups xmmword [edi + 0x148], xmm0
movq xmm0, qword [ebp + 0x24]
movq qword [edi + 0x158], xmm0
mov dword [edi + 0x160], ecx
jne 0x4d55e5
push 0
push 0
push edi
push 0x4d54a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x164], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4d562b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4d5627
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4d5627
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d562b
mov ecx, edx
call esi
xor eax, 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 0x28
Function at 0x4d6ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c4104]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x30], 8
lea eax, [ecx + 0x1c]
jb 0x4d6cfb
mov eax, dword [eax]
push esi
push eax
lea eax, [ecx + 0x124]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004dc3b0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp ecx, 8
jb 0x4d6d3c
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.0041ecb0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051ac8e
mov esp, ebp
pop ebp
ret