joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x51452c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0047ce50
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x41c739
push esi
push 0x41c520
push 0
push ebx
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x41c742
mov eax, 0x100
or word [esi + 0xc], ax
movzx ecx, word [esi + 0xc]
movzx eax, cx
test ecx, 0x100
je 0x41c762
push 0x4dff34
lea ecx, [esi + 8]
call fcn.0041c840
movzx eax, word [esi + 0xc]
movzx ecx, ax
test al, 0x10
je 0x41c77a
push str.Tahoma
lea ecx, [esi + 8]
call fcn.0041c840
movzx ecx, word [esi + 0xc]
test cl, 1
je 0x41c78c
push 0x4dff18
lea ecx, [esi + 8]
call fcn.0041c840
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 8]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0046659c
mov esp, ebp
pop ebp
ret
Function at 0x41cee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41cf38
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41cf38
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41cf38
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41cf41
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41cf63
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push eax
call fcn.0047c350
add esp, 0xc
mov dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x41cf8b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41cfd0
mov ebx, dword [ebp + 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x41cfce
lea eax, [ebp - 4]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
jmp 0x41cfd0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41cfe4
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41d01a
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], 0
push dword [ebp + 0xc]
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41d12e
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x41d04e
xor esi, esi
jmp 0x41d12d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d12d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x41d085
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x41d12d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41d0a5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x41d12d
push dword [ebp + 8]
push esi
push eax
call fcn.0047c350
add esp, 0xc
mov dword [ebp + 0xc], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
xor esi, esi
test eax, eax
je 0x41d0cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d119
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 4], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41d117
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 4]
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x41d119
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d12d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov dword [edi + 4], esi
test esi, esi
jne 0x41d13f
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x41d159
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x41d17c
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.0041ce70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x421cd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d05e0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x51452c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0x30]
or eax, 0xffffffff
mov dword [ecx], vtable.CLayerControlBase.0
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421d13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x421d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0600
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x51452c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
mov dword [esi], vtable.CLayerControlBase.0
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421d76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp + 8], 1
je 0x421d87
push 0x44
push esi
call fcn.0046617e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x421fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0628
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51452c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
add ebx, 0x30
mov eax, dword [ebx]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x422032
cmp ecx, dword [esi]
jne 0x422032
lock inc dword [eax]
jmp 0x422060
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x4221c0
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi]
inc eax
push eax
push dword [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0040c970
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x422146
mov edi, ecx
lea edx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x422080
sub edi, edx
sar edi, 1
je 0x422146
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x14], eax
mov eax, ecx
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
test edi, edi
js 0x4221c5
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, edi
or eax, ecx
jge 0x4220c9
push edi
mov ecx, ebx
call fcn.0040d9a0
mov edx, dword [ebx]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
ja 0x42211e
lea ecx, [edi + edi]
lea eax, [edx + eax*2]
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x42212e
test eax, eax
jne 0x4220f4
call fcn.0048731e
mov dword [eax], 0x16
call fcn.004871f8
jmp 0x42212e
mov eax, dword [edx - 8]
add eax, eax
cmp eax, ecx
jae 0x42210f
call fcn.0048731e
mov dword [eax], 0x22
call fcn.004871f8
jmp 0x42212e
push ecx
push dword [ebp + 0xc]
push edx
call fcn.0047c8d0
add esp, 0xc
jmp 0x42212e
push edi
push dword [ebp + 0xc]
push dword [edx - 8]
push edx
call fcn.0040c970
add esp, 0x10
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4221c5
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
jmp 0x42214d
mov ecx, ebx
call fcn.00419f50
mov eax, dword [ebx]
test eax, eax
je 0x4221cf
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x42217b
test dx, dx
je 0x422177
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x42217b
add ecx, 4
add eax, 4
test dx, dx
jne 0x422155
xor eax, eax
jmp 0x422180
sbb eax, eax
or eax, 1
test eax, eax
je 0x42218d
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4221ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call 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
call fcn.0040dc10
push 0x80070057
call fcn.0040c8c0
push 0x80004005
call fcn.0040c8c0
int3
Function at 0x424e70
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0b66
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x51452c]
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 dword [ebp - 0x47c], ecx
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x474], ebx
jle 0x425073
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047ce50
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx]
push eax
call esi
push 0x4e049c
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x425073
test esi, esi
je 0x425073
mov ebx, dword [ebp + 0x14]
nop dword [eax]
nop word [eax + eax]
cmp word [ebp - 0x43c], 0x2e
mov ax, word [ebp - 0x43a]
jne 0x424f4a
test ax, ax
je 0x425056
cmp ax, 0x2e
jne 0x424f5e
cmp word [ebp - 0x438], 0
je 0x425056
push 0x4dd6ec
push dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push eax
call fcn.004245b0
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004245b0
add esp, 0x18
mov edx, dword [ebp - 0x478]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424fb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x468], 0x10
je 0x424fe3
test bl, bl
je 0x425031
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x47c]
dec eax
push eax
push ebx
push edi
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
call fcn.00424e70
jmp 0x425031
mov ecx, dword [edi]
lea eax, [ebp - 0x43c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425016
test dx, dx
je 0x425012
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425016
add eax, 4
add ecx, 4
test dx, dx
jne 0x424ff0
xor eax, eax
jmp 0x42501b
sbb eax, eax
or eax, 1
test eax, eax
je 0x425031
mov ecx, dword [ebp - 0x470]
lea eax, [ebp - 0x46c]
push eax
call fcn.00432a00
mov edx, dword [ebp - 0x46c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425056
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424f30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0046659c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x427750
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0fd3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x51452c]
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]
lea ebx, [ecx + 0x78]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebx]
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42789e
call fcn.004563e0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x427900
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb
push str.MainWnd.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00417b10
push 3
push 0x4dfdcc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00417b10
mov byte [ebp - 4], 1
call fcn.004563e0
mov edi, eax
lea ecx, [ebp - 0xe8]
push 0x2a6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411810
mov esi, eax
push str.Get_
push esi
mov byte [ebp - 4], 2
call fcn.00412e60
mov ecx, dword [ebp - 0x48]
mov edx, 0x4df984
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00410a70
push str._size_failed__error_code_
push esi
call fcn.00412e60
add esp, 0x18
mov ecx, esi
push ebx
call fcn.00419cb0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe8]
call fcn.00412fa0
lea ecx, [ebp - 0x28]
call fcn.004123e0
lea ecx, [ebp - 0x40]
call fcn.004123e0
jmp 0x427900
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4c], 0
ja 0x4278bf
cmp dword [ebp - 0x50], 0x1e00000
jbe 0x427900
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [ebp - 0x44]
call fcn.00432920
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 3
call fcn.00432dd0
test eax, eax
je 0x4278f8
push edi
lea ecx, [ebp - 0x44]
call fcn.00432a00
test eax, eax
je 0x4278f8
lea ecx, [ebp - 0x44]
call fcn.00432cc0
lea ecx, [ebp - 0x44]
call fcn.004329e0
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.0046659c
mov esp, ebp
pop ebp
ret 4
Function at 0x427920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d102c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x51452c]
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 ebx, ecx
lea eax, [ebp - 0x24c]
push 1
push eax
call fcn.004760f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0047ce50
add esp, 0x14
lea eax, [ebp - 0x218]
push dword [ebp - 0x24c]
push 0x104
push eax
push 0x4df194
push str.dumpver
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.004563e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x427b27
push 0xb
push str.MainWnd.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00417b10
push 3
push 0x4dfa84
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00417b10
mov byte [ebp - 4], 2
call fcn.004563e0
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x105
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00411810
mov esi, eax
push str.local__updated_ver_
push esi
mov byte [ebp - 4], 3
call fcn.00410a70
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00410a70
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.00412fa0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x427ab3
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x427aa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b86
push edx
push ecx
call fcn.0046617e
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x427b0c
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x427b02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b8b
push edx
push ecx
call fcn.0046617e
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x80]
call fcn.004ab06f
mov esi, dword [ebp - 0x24c]
xor ebx, ebx
add esp, 8
mov dword [ebp - 4], 0xffffffff
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427b68
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0046659c
mov esp, ebp
pop ebp
ret
call fcn.00487208
call fcn.00487208
int3
Function at 0x4299f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x429a31
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.0042b6b0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x429cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51452c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x429d61
cmp byte [esi + 0x3d], 0
je 0x429d61
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x429d17
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x429d29
sub eax, 1
je 0x429d2d
sub eax, 2
je 0x429d61
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046659c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x429d4a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004ab7b1
add esp, 0x10
cmp edi, eax
jne 0x429d17
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046659c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046659c
mov esp, ebp
pop ebp
ret
Function at 0x42cd50
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d15c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x51452c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42cd98
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0x80
push 3
push 1
push SysReAllocString
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0042ccb0
mov esi, dword [ebp - 0x20]
test eax, eax
js 0x42ced5
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x42cdf8
call fcn.00413dc0
test eax, eax
js 0x42ced5
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jb 0x42ced5
ja 0x42ced5
test ebx, ebx
je 0x42ced5
test eax, eax
ja 0x42ced5
jb 0x42ce27
cmp ebx, 0x500000
jae 0x42ced5
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
cmp ebx, edx
ja 0x42ce44
mov dword [edi + 0x10], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x42ce3e
mov eax, dword [edi]
mov byte [eax + ebx], 0
jmp 0x42ce91
mov eax, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], eax
sub eax, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x42ce7f
cmp dword [ebp - 0x10], 0x10
mov eax, edi
mov dword [edi + 0x10], ebx
jb 0x42ce64
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call fcn.0047ce50
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x20]
jmp 0x42ce91
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.0042cb40
cmp dword [edi + 0x14], 0x10
jb 0x42ce99
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42cec1
call fcn.00413dc0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x42ced7
xor esi, esi
mov eax, 0x80070026
cmp dword [ebp - 0x10], ebx
cmovne esi, eax
not esi
shr esi, 0x1f
jmp 0x42ced7
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42cee5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret