joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ba20
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x543678
push 0x4dd7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54e758]
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 - 0x28], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x28]
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 0x41ba9a
cmp dword [ebp - 0x28], edi
je 0x41ba9a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41bad2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x41bbb4
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41bbb4
cmp dword [ebp - 0x28], 0
je 0x41bbb4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x41bbb4
cmp dword [ebp - 0x2c], eax
jbe 0x41bbb4
call esi
cmp eax, 0x7a
jne 0x41bbb4
push dword [ebp - 0x2c]
call fcn.004e5c80
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x41bbb4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push edi
push 2
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x41bbb4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x41bbb4
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
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 0x41bbb4
cmp dword [ebp - 0x30], 0
je 0x41bbb4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x41bbb4
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41bb9d
inc esi
jmp 0x41bb80
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.0041bbe1
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.0049b994
mov esp, ebp
pop ebp
ret 8
Function at 0x41c270
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x54e758]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004dd4c0
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 0x41c2d0
cmp dword [ebp - 0x114], 6
jb 0x41c2d0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b994
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049b994
mov esp, ebp
pop ebp
ret

Function at 0x41c600
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50774f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54e758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x65
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.0041bc10
push 0
push 0x6ddd00
push 0x304
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [0x554754]
test ecx, ecx
jne 0x41c6bc
push 0x54e010
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x554754], 0
jne 0x41c6ab
push 0x20
call fcn.0049b9c8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41c695
mov ecx, eax
call fcn.0040ebe0
jmp 0x41c697
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x554754], eax
push 0x54e010
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x554754]
push 0
call fcn.0040ed20
call fcn.004176d0
mov ecx, eax
call fcn.004177c0
mov ecx, edi
call fcn.0041e010
call fcn.0041be40
mov ecx, eax
call fcn.0040cfd0
test eax, eax
jne 0x41c700
call fcn.0041be40
mov ecx, eax
call fcn.0040cff0
call fcn.0041be40
push 1
mov ecx, eax
call fcn.0040d0a0
push 1
mov ecx, edi
call fcn.0041dca0
call fcn.004176d0
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__P8AdbkTray__AEXXZPAV3__std__XPAX_std__.0
mov dword [ecx + 8], 0x41c850
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x24], ecx
mov ecx, eax
call fcn.004173b0
call fcn.004176d0
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__P8AdbkTray__AEXXZPAV3__std__XPAX_std__.0
mov dword [ecx + 8], 0x41c7a0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x24], ecx
mov ecx, eax
call fcn.004173b0
push 0
lea ecx, [edi + 0x4c8]
call fcn.00418980
lea ecx, [edi + 0x4c8]
call fcn.00419380
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 4
Function at 0x41da30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x543638
push 0x4dd7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x54e758]
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 - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004dd4c0
push edi
push 0x512560
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
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 0x41db49
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004dd4c0
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41db49
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x41db49
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041db7b
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.0049b994
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
push 0
push 0
mov dword [ebp - 4], 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 - 4]
push eax
push 0
push esi
push 0x41e610
push 0
push 0
call fcn.004e5e61
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x41e680
push 0
push 0
call fcn.004e5e61
add esp, 0x30
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.CMsgTrayPos.0
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41e450
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 0x41e4a1
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41e490
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 0x41e4d8
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41e4cc
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 0x41e4e9
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 0x41e7e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x54e758]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x41e8c8
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x41e8c8
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
je 0x41e8c8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e8c8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dd4c0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
push 0x104
push eax
push dword [edi + 4]
call fcn.0041e8f0
test eax, eax
je 0x41e8c8
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.0041ebb0
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0041ebb0
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.0049b994
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0049b994
mov esp, ebp
pop ebp
ret

Function at 0x41e8f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0049ba10
mov eax, dword [0x54e758]
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 0x41e9e9
test edi, edi
je 0x41e9e9
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x41e9e9
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004dd4c0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41e9e9
cmp eax, 0x3fff
ja 0x41e9e9
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41e9e9
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x510958
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41e9e9
push ebx
push 0
push edi
call fcn.004dd4c0
mov ecx, dword [ebp - 0x4008]
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.0041eb30
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b994
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.0049b994
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f7b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c2c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x54e758]
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 ecx, [ebx + 0x44]
call fcn.004153b0
test eax, eax
je 0x41f989
cmp dword [ebp + 0xc], 0
je 0x41f989
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dd4c0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebx + 0x38]
push 0x103
push eax
push 0x512458
push 0x512c28
push str.ADBlockMasterSetup_officialwebsite.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x41f9a7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x41f876
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.004053c0
jmp 0x41f8a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f880
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.004056b0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 0x44]
call fcn.0041eb20
mov edx, dword [ebp - 0x21c]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f8df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x44]
call fcn.00419990
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41f976
push str.update_
lea eax, [ebx + 0x34]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040e020
push str.ADBlockMasterSetup_officialwebsite.exe
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040e020
add esp, 0x18
push eax
lea ecx, [ebx + 0x44]
mov byte [ebp - 4], 3
call fcn.0041eb10
mov edx, dword [ebp - 0x224]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f954
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41f976
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x44]
call fcn.0041e7e0
test eax, eax
je 0x41f989
mov dword [ebx + 0x28], 3
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.0049b994
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404b90
int3
Function at 0x4215f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0049ba10
mov eax, dword [0x54e758]
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 0x421626
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b994
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.004dd4c0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004e3dd2
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.0049b994
mov esp, ebp
pop ebp
ret 4
Function at 0x421890
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x54e758]
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.004dd4c0
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 str.config.ini
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 0x421a63
mov dword [ebp - 4], 0
call fcn.00404ec0
mov ecx, eax
test ecx, ecx
je 0x421a7e
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 0x421970
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00405570
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
lea edi, [esi - 0x10]
jl 0x421a88
xor eax, eax
mov dword [edi + 4], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
push 0x511ed0
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi + 8]
push esi
call fcn.004e0a58
add esp, 8
test eax, eax
js 0x421a88
cmp eax, dword [edi + 8]
jg 0x421a88
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 0x421a06
test dx, dx
je 0x421a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4219e0
xor eax, eax
jmp 0x421a0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x421a47
mov eax, str.bigupdate
mov cx, word [esi]
cmp cx, word [eax]
jne 0x421a3a
test cx, cx
je 0x421a36
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x421a3a
add esi, 4
add eax, 4
test cx, cx
jne 0x421a14
xor eax, eax
jmp 0x421a3f
sbb eax, eax
or eax, 1
test eax, eax
je 0x421a47
xor esi, esi
jmp 0x421a4c
mov esi, 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x421a61
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.0049b994
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b90
push 0x80070057
call fcn.00404b90
int3
Function at 0x422870
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54e758]
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.004dd4c0
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 0x4228e6
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406690
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049b994
mov esp, ebp
pop ebp
ret

Function at 0x422b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0049ba10
mov eax, dword [0x54e758]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1058], 0x44
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1058]
push edi
mov edi, dword [ebp + 0xc]
push eax
movlpd qword [ebp - 0x1054], xmm0
movlpd qword [ebp - 0x104c], xmm0
movlpd qword [ebp - 0x1044], xmm0
movlpd qword [ebp - 0x103c], xmm0
movlpd qword [ebp - 0x1034], xmm0
movlpd qword [ebp - 0x102c], xmm0
movlpd qword [ebp - 0x1024], xmm0
movlpd qword [ebp - 0x101c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x102c], 1
mov word [ebp - 0x1028], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x1014], xmm0
test edi, edi
je 0x422c55
push 0x1000
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004dd4c0
push edi
push esi
lea eax, [ebp - 0x1004]
push str.__s___s
push eax
call fcn.00422380
add esp, 0x1c
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
jmp 0x422c70
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x422c94
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049b994
mov esp, ebp
pop ebp
ret
Function at 0x4265b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508273
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x54e758]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x426655
cmp word [esi], di
je 0x426655
test eax, eax
je 0x426611
cmp word [eax], di
je 0x426611
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x426655
jmp 0x426650
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dd4c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x426655
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4266bb
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x42667b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x4266db
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x4266a3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4266bb
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.0049b994
mov esp, ebp
pop ebp
ret 0x30
call fcn.00423aab
int3