joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
imul edx, ebx, 0x4058
mov esi, ecx
mov ecx, dword [ebp + 0xc]
add edx, esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edx
lea eax, [edx + 0x14]
imul edi, ebx, 0x4058
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ecx
push dword [edx + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, esi
test eax, eax
je 0x414ee2
xor al, al
jmp 0x414ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x414f2e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x2d], al
cmp byte [edi + 0x2d], 0
jne 0x414f19
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x414f19
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
mov ecx, esi
call fcn.00414350
test al, al
jne 0x414f19
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54c730]
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, ecx
mov dword [ebp - 0x24], edi
test edi, edi
je 0x416f4b
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
call fcn.0049b604
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x416f9b
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8CPluginMgr__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x416f9d
xor esi, esi
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x416fb6
lock inc dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x416fd8
push 1
lea ecx, [edi + 0x20]
call fcn.004186e0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x417015
push 0x28
call fcn.0049b604
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_7bf46d6d2cfed262ad4f012bdb85772d___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x417054
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x4183d0
push 0
push 0
call fcn.004e471d
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x417058
mov byte [ebp - 0x19], 0
test esi, esi
je 0x41707d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41707d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41707d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
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.0049b5d0
mov esp, ebp
pop ebp
ret 4
Function at 0x4178f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505a61
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x54c730]
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, ecx
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x417acc
lea eax, [ebp - 0x22c]
push eax
call fcn.0040f7e0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x228]
mov byte [ebp - 0x221], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x417995
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x41798f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x417989
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x221]
mov edi, dword [ebp - 0x220]
test al, al
je 0x417a17
push 1
push 2
lea ecx, [ebp - 0x2cc]
call fcn.00406290
lea eax, [ebp - 0x2cc]
mov dword [ebp - 4], 1
push str._Load_plugin_item:
push eax
call fcn.00407570
mov eax, dword [ebx]
mov ecx, 0x50ebe4
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x2cc]
push ecx
push eax
call fcn.004058e0
lea eax, [ebp - 0x234]
push eax
call fcn.0040f7e0
add esp, 0x14
mov ecx, dword [eax]
lea edx, [ebp - 0x2cc]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x234]
call fcn.00407070
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 4], 0xffffffff
call fcn.00407730
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dbca0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417acc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x417acc
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417acc
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 1
call eax
mov ecx, eax
mov dword [ebp - 0x220], ecx
test ecx, ecx
je 0x417acc
push dword [edi + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00417630
mov eax, 1
jmp 0x417ace
xor eax, eax
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.0049b5d0
mov esp, ebp
pop ebp
ret 4
Function at 0x419430
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x541408
push 0x4dbfd0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54c730]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x2c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4194aa
cmp dword [ebp - 0x2c], edi
je 0x4194aa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4194e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x4195c4
lea eax, [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4195c4
cmp dword [ebp - 0x2c], 0
je 0x4195c4
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x4195c4
cmp dword [ebp - 0x30], eax
jbe 0x4195c4
call esi
cmp eax, 0x7a
jne 0x4195c4
push dword [ebp - 0x30]
call fcn.004e453c
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4195c4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
push edi
push 2
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x4195c4
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x4195c4
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4195c4
cmp dword [ebp - 0x34], 0
je 0x4195c4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x4195c4
lea ebx, [edi + esi*8]
push dword [ebp - 0x34]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4195ad
inc esi
jmp 0x419590
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.004195f1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 8
Function at 0x419cb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004dbca0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419d10
cmp dword [ebp - 0x114], 6
jb 0x419d10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret

Function at 0x419e60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505d3f
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
lea ecx, [edi + 0x28]
call fcn.00419620
push 0
push 0x6ddd00
push 0x304
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [0x552888]
test ecx, ecx
jne 0x419f2b
push 0x54c03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x552888], 0
jne 0x419f1a
push 0x20
call fcn.0049b604
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x419f04
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.0040e6a0
jmp 0x419f06
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x552888], eax
push 0x54c03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x552888]
push 0
call fcn.0040e760
call fcn.00416410
mov ecx, eax
call fcn.00416520
mov ecx, edi
call fcn.0041bac0
call fcn.00419850
mov ecx, eax
call fcn.0040d100
test eax, eax
jne 0x419f6f
call fcn.00419850
mov ecx, eax
call fcn.0040d120
call fcn.00419850
push 1
mov ecx, eax
call fcn.0040d1d0
push 1
mov ecx, edi
call fcn.0041b740
call fcn.00416410
push 0
push 0
sub esp, 0x28
mov ecx, esp
push 0x61a8
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8Tray__AEXXZPAV3__std__XPAX_std__.0
mov dword [ecx + 8], 0x41a0d0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x24], ecx
mov ecx, eax
call fcn.00416020
call fcn.00416410
push 0
push 0
sub esp, 0x28
mov ecx, esp
push 0x3e8
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8Tray__AEXXZPAV3__std__XPAX_std__.0
mov dword [ecx + 8], 0x41a020
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x24], ecx
mov ecx, eax
call fcn.00416020
push 0
lea ecx, [edi + 0x4c8]
call fcn.00417690
lea ecx, [edi + 0x4c8]
call fcn.004180b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 4
Function at 0x41b4d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5413c8
push 0x4dbfd0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x54c730]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004dbca0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x438]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b5e9
mov dword [ebp - 0x434], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004dbca0
add esp, 0xc
mov dword [ebp - 0x430], 0x210
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b5e9
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x41b5e9
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041b61b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41cd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
push 0
mov dword [ebp - 8], esi
push 0
mov dword [ebp - 8], esi
push 0
mov dword [esi], vtable.CTrayPos.0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x41d000
push 0
push 0
call fcn.004e471d
mov dword [esi + 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x41d080
push 0
push 0
call fcn.004e471d
add esp, 0x30
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi], vtable.CMsgTrayPos.0
xor ecx, ebp
pop esi
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ce40
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xc], 0
mov dword [esi], vtable.CTrayPos.0
je 0x41ce91
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ce80
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xc], 0
cmp dword [esi + 0x10], 0
je 0x41cec8
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41cebc
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ced9
push eax
call edi
mov dword [esi + 0x14], 0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret
Function at 0x41d800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x41d8e8
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x41d8e8
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
je 0x41d8e8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d8e8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dbca0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
push dword [edi + 4]
call fcn.0041d910
test eax, eax
je 0x41d8e8
push esi
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041dbd0
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0041dbd0
mov ecx, dword [ebp - 0x218]
mov edx, ecx
mov esi, dword [ebp - 0x210]
sub esi, dword [ebp - 0x214]
sub edx, dword [ebp - 0x21c]
cmp ecx, dword [ebp - 0x21c]
cmove edx, esi
xor eax, eax
test edx, edx
pop esi
sete al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret

Function at 0x41d910
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0049b650
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x41da09
test edi, edi
je 0x41da09
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x41da09
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004dbca0
add esp, 0xc
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41da09
cmp eax, 0x3fff
ja 0x41da09
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41da09
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x50e9b0
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41da09
push ebx
push 0
push edi
call fcn.004dbca0
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebx - 1]
push eax
push edi
call fcn.0041db50
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420710
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0049b650
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp dword [esi - 0xc], 0
jne 0x420746
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 4
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.004dbca0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004e25b5
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret 4
Function at 0x4207e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50676b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dbca0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x50f3d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4209b3
mov dword [ebp - 4], 0
call fcn.00405150
mov ecx, eax
test ecx, ecx
je 0x4209ce
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 1
jge 0x4208c0
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00405630
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
lea edi, [esi - 0x10]
jl 0x4209d8
xor eax, eax
mov dword [edi + 4], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
push 0x50ff28
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi + 8]
push esi
call fcn.004df238
add esp, 8
test eax, eax
js 0x4209d8
cmp eax, dword [edi + 8]
jg 0x4209d8
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov ecx, str.ADBlockMasterUpdate
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420956
test dx, dx
je 0x420952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420956
add eax, 4
add ecx, 4
test dx, dx
jne 0x420930
xor eax, eax
jmp 0x42095b
sbb eax, eax
or eax, 1
test eax, eax
je 0x420997
mov eax, str.bigupdate
mov cx, word [esi]
cmp cx, word [eax]
jne 0x42098a
test cx, cx
je 0x420986
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x42098a
add esi, 4
add eax, 4
test cx, cx
jne 0x420964
xor eax, eax
jmp 0x42098f
sbb eax, eax
or eax, 1
test eax, eax
je 0x420997
xor esi, esi
jmp 0x42099c
mov esi, 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4209b1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d00
push 0x80070057
call fcn.00404d00
int3
Function at 0x421500
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c730]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.004dbca0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421576
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421592
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040ab80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049b5d0
mov esp, ebp
pop ebp
ret