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

Disassembly:
push 0x2b8
mov eax, 0x502278
call fcn.00496990
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4149ab
lea eax, [ebp - 0x224]
push eax
call fcn.0040dae6
pop ecx
mov ecx, dword [eax]
and dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x414886
call fcn.00408755
test bl, bl
je 0x4148fe
push 1
push 2
lea ecx, [ebp - 0x2c4]
call fcn.0040620f
lea eax, [ebp - 0x2c4]
mov dword [ebp - 4], 1
push str._Load_plugin_item:
push eax
call fcn.00406c4e
push dword [esi]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00406c90
lea eax, [ebp - 0x22c]
push eax
call fcn.0040dae6
add esp, 0x14
mov ecx, dword [eax]
lea edx, [ebp - 0x2c4]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x4148ef
call fcn.00408755
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
call fcn.00406e45
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi]
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 0x4149ab
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4149ab
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4149ab
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push ecx
push 1
call eax
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4149ab
push dword [edi + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
call fcn.004145c5
xor eax, eax
inc eax
jmp 0x4149ad
xor eax, eax
call fcn.0049693a
ret 4
Function at 0x41582c
Capabilities:
Enumerate processes

Disassembly:
push 0x268
mov eax, 0x502426
call fcn.00496990
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x24c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41585c
xor eax, eax
jmp 0x4159ac
push 0x228
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.004d8620
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x415895
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415855
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00404804
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
call fcn.00415d17
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x240]
call fcn.004e11e5
pop ecx
pop ecx
test eax, eax
jne 0x415956
push dword [ebp - 0x234]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x415956
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41594f
lea eax, [ebp - 0x254]
push eax
call fcn.00415709
pop ecx
mov ecx, dword [ebp - 0x24c]
push dword [ebp - 0x240]
push ecx
mov dword [ecx], eax
lea eax, [ebp - 0x274]
push esi
push eax
lea ecx, [ebp - 0x248]
call fcn.00415429
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4158c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x244], 0
jbe 0x415991
mov eax, dword [ebp - 0x248]
xor esi, esi
mov ecx, dword [ebp - 0x24c]
inc esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x248]
call fcn.00415513
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.00405428
mov eax, esi
call fcn.0049693a
ret
Function at 0x4159b2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4159ec
xor eax, eax
jmp 0x415ab1
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004d8620
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x415a3b
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
call fcn.004e11e5
pop ecx
pop ecx
test eax, eax
je 0x415a41
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x415a1a
jmp 0x415aa8
push dword [ebp - 0x228]
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x415aa8
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
jne 0x415a89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415aa8
lea eax, [ebp - 0x23c]
push eax
call fcn.00415709
pop ecx
mov ecx, dword [ebp - 0x234]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496914
leave
ret

Function at 0x415ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
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
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
push 0x50d630
push 0x50d634
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e2608
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00496914
leave
ret
Function at 0x415b43
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x502466
call fcn.0049695c
and dword [ebp - 4], 0
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x10]
call fcn.004047db
xor edi, edi
lea ecx, [ebp - 0x10]
mov ebx, 0x400
inc edi
push ebx
mov dword [ebp - 4], edi
call fcn.00405303
push ebx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040546c
push dword [ebp + 8]
push ebx
push esi
push 0x50d0a8
push str.flag
push str.arctrl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00405440
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x415c31
mov byte [ebp - 4], 2
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x14]
call fcn.004047db
mov edi, 0x104
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x14]
call fcn.00405303
push edi
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040546c
push edi
push esi
call fcn.00498060
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00405440
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049ed60
push 0x50d698
push dword [ebp - 0x18]
call fcn.004e11e5
mov ecx, dword [ebp - 0x18]
add esp, 0x14
neg eax
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.00405428
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405428
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00405428
mov eax, edi
call fcn.00496925
ret
Function at 0x4165d1
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x53ef10
call fcn.00496ff0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x41661a
cmp dword [ebp - 0x28], ebx
jne 0x416650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x41671d
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 0x41671d
cmp dword [ebp - 0x28], 0
je 0x41671d
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41671d
cmp dword [ebp - 0x2c], eax
jbe 0x41671d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41671d
push dword [ebp - 0x2c]
call fcn.004e0f71
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x41671d
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41671d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x41671d
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41671d
cmp dword [ebp - 0x30], 0
je 0x41671d
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x41671d
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x416707
inc ebx
jmp 0x4166ec
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041673e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416be9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004d8620
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 0x416c39
cmp dword [ebp - 0x114], 6
jb 0x416c39
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00496914
leave
ret
Function at 0x417d4e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x53eed0
call fcn.00496ff0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.004d8620
push edi
push 0x50d738
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 ebx
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417e34
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.004d8620
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417e34
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x417e34
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.00417e5a
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4197ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
mov dword [esi], vtable.CTrayPos.0
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4199ed
push edi
push edi
call fcn.004e1152
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x419a3e
push edi
push edi
call fcn.004e1152
add esp, 0x30
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x419867
Capabilities:
Terminate thread

Disassembly:
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 0x4198af
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198a6
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
call edi
and dword [esi + 0xc], 0
cmp dword [esi + 0x10], 0
je 0x4198e7
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4198de
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x10]
call edi
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0
je 0x4198f6
push dword [esi + 0x14]
call edi
and dword [esi + 0x14], 0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret

Function at 0x419b1a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x419b99
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x419b99
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x419b99
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419b99
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00419c2b
test eax, eax
je 0x419b99
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00419bb4
neg eax
sbb eax, eax
inc eax
jmp 0x419b9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00496914
leave
ret
Function at 0x419c2b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00496b20
mov eax, dword [0x54a708]
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 0x419d09
test edi, edi
je 0x419d09
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x419d09
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x419d09
cmp eax, 0x3fff
ja 0x419d09
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x419d09
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x50b988
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x419d09
push ebx
push 0
push edi
call fcn.004d8620
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.00419dba
xor eax, eax
add esp, 0x28
inc eax
jmp 0x419d0b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496914
leave
ret 0xc
Function at 0x41a043
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x2c
mov eax, 0x502c5e
call fcn.00496990
mov esi, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x24], 0
lea eax, [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], str.update.exe
mov dword [ebp - 0x18], str.UtilModule.dll
mov dword [ebp - 0x14], str.curlnet.dll
mov dword [ebp - 0x28], eax
push 0x50e0d4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040c138
mov edi, dword [ebp + esi*4 - 0x1c]
and dword [ebp - 4], 0
push edi
call fcn.00404bde
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push edi
call fcn.0040bcc3
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.0040c138
add esp, 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a16b
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.0040c138
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040bb50
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00405428
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a16b
push str.Utils
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.0040c138
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040bb50
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00405428
push edi
call fcn.00404bde
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.0040bcc3
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a175
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, 3
jb 0x41a095
mov ecx, dword [ebp - 0x38]
call fcn.0041a2d7
xor eax, eax
call fcn.0049693a
ret 4
Function at 0x41a1ae
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x502ca4
call fcn.00496990
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, esi
call fcn.00411de0
test eax, eax
je 0x41a2cf
cmp dword [ebp + 0xc], 0
je 0x41a2cf
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [edi + 0x38]
push 0x103
push eax
push 0x50d630
push 0x50e180
push str.ADBlockMasterSetup_officialwebsite.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404804
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00419dae
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, esi
call fcn.00414ff6
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41a2bd
push str.update_
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040c138
push str.ADBlockMasterSetup_officialwebsite.exe
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040c138
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00419da2
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, esi
call fcn.00419b1a
test eax, eax
je 0x41a2cf
mov dword [edi + 0x28], 3
call fcn.0049693a
ret 0xc

Function at 0x41a2d7
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.adbk_update.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00496914
leave
ret
Function at 0x41b416
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x874], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00418476
push 0x50e440
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0041ba05
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b4dd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41b607
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41b5b9
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x41b56b
mov ecx, 0x50e448
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b524
test dx, dx
je 0x41b520
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b524
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b4fe
xor eax, eax
jmp 0x41b529
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b5b9
mov ecx, 0x50e44c
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b562
test dx, dx
je 0x41b55e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b562
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b53c
xor eax, eax
jmp 0x41b567
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b5b9
test esi, esi
jne 0x41b5b9
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004d8620
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x41b4e8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x870]
call fcn.00404804
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x874]
call fcn.0041b635
mov ecx, dword [ebp - 0x870]
add ecx, 0xfffffff0
call fcn.00405428
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496914
leave
ret