joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412bb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50367b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x549394]
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 esi, ecx
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
lea ebx, [esi + 0x24]
jb 0x412bee
mov edi, dword [edi]
push 0x180
push 0x40
push 0x8101
push edi
push ebx
call fcn.004e2748
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x412d17
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004d9120
add esp, 4
lea ecx, [ebp - 0xa8]
call fcn.00407a20
push str._error.__
push ecx
push edi
push ecx
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str.open
push eax
call fcn.00409510
add esp, 0xc
push eax
call fcn.00409510
add esp, 0xc
push eax
call fcn.00409510
add esp, 8
push 0x53331c
push ecx
push dword [ebp - 0xc4]
mov ecx, eax
call fcn.004138e0
add esp, 4
push eax
call fcn.00409510
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.00413820
cmp dword [eax + 0x14], 8
jb 0x412ca1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x412ce8
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412cde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412df4
push edx
push ecx
call fcn.00497977
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x412d2d
push 2
push 0
push eax
call fcn.004e29a9
add esp, 0xc
jmp 0x412d30
or eax, 0xffffffff
mov dword [esi + 4], eax
test eax, eax
jne 0x412dd8
push 3
push 0x533344
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.00408c90
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc0]
cmp eax, 0x10
mov edi, dword [ebx]
cmovae edx, ecx
cmp edi, 0xffffffff
je 0x412da2
push dword [ebp - 0xb0]
push edx
push edi
call fcn.004e1b64
mov ecx, dword [ebp - 0xc0]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
jmp 0x412da5
or edi, 0xffffffff
cmp eax, 0x10
jb 0x412dd1
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x412dc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412df9
push edx
push ecx
call fcn.00497977
add esp, 8
test edi, edi
jle 0x412dd8
add dword [esi + 4], edi
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.0049742c
mov esp, ebp
pop ebp
ret
call fcn.004dca8d
call fcn.004dca8d
int3
Function at 0x414ce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5039b0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x549394]
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
call fcn.00414630
call fcn.004151b0
call fcn.00407410
push dword [eax]
push 0
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x414e33
call fcn.00407410
mov esi, eax
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x414eaf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push 0x532cbc
push eax
call fcn.0040c820
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push str.first_run
push str.Default
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414db1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407410
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x414eb9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push 0x532cbc
push eax
call fcn.0040c820
add esp, 0xc
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push 0x532e50
push str.auto_run
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 5
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414e2c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00415450
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x61a8
push 0x402
push dword [edi + 4]
call esi
push 0
push 0x3e8
push 0x403
push dword [edi + 4]
call esi
push 0
push 0x6ddd00
push 0x401
push dword [edi + 4]
call esi
mov esi, dword [edi + 0x35c]
push 0x6c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push dword [edi + 4]
mov ecx, esi
call fcn.0041aa50
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.0049742c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x415c40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503b50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x549394]
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
push 0
call fcn.004df950
add esp, 4
mov edi, eax
mov esi, edx
call fcn.00407410
push dword [eax]
push 1
push str.protect_time
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cdq
sub edi, eax
sbb esi, edx
mov dword [ebp - 0x14], esi
js 0x415dc2
jg 0x415cae
cmp edi, 0x5265c00
jbe 0x415dc2
call fcn.00407410
push 0
mov esi, eax
call fcn.004df950
add esp, 4
mov edi, eax
mov ebx, edx
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x415dde
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push 0x532cbc
push eax
call fcn.0040c820
add esp, 0x10
push dword [esi]
mov esi, dword [ebp - 0x14]
push esi
push str.protect_time
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 4], 2
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x415d35
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407410
mov edi, eax
push dword [edi]
push 1
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x415de8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
inc esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 0x14]
push 0x532cbc
push eax
call fcn.0040c820
mov esi, dword [ebp - 0x14]
add esp, 0xc
push dword [edi]
push esi
push str.protect_days
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
mov dword [ebp - 4], 5
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415dc2
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80004005
call fcn.00404780
int3
Function at 0x416750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503c96
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x549394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004d9120
lea eax, [ebp - 0x444]
push eax
push 0x35
lea eax, [ebp - 0x410]
push str._d__s
push eax
call fcn.00411880
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x418], 0
add esp, 0x1c
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4167f5
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.00408c90
mov byte [ebp - 4], 1
lea edx, [ebp - 0x42c]
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x428]
push 0
inc ecx
mov dword [ebp - 0x42c], 0
add esi, 0x320
cmp dword [ebp - 0x414], 0x10
push edx
cmovae eax, dword [ebp - 0x428]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41685c
xor bl, bl
jmp 0x41686d
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41686b
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov bl, 1
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x4168a3
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x416899
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416911
push edx
push ecx
call fcn.00497977
add esp, 8
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
cmp edx, 0x10
jb 0x4168f4
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4168ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416916
push edx
push ecx
call fcn.00497977
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret
call fcn.004dca8d
call fcn.004dca8d
int3
Function at 0x416a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503d0e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x549394]
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0x3d4
mov dword [ebp - 0x18], ebx
call fcn.004976ca
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x3d4
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004d9120
mov eax, dword [esi]
add esp, 0x10
mov byte [edi + 0x3c4], 0
mov dword [ebp - 0x18], eax
mov dword [edi + 0x3c8], 0
mov byte [ebp - 4], 2
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x416bd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x3cc], eax
mov byte [ebp - 4], 3
push 0x44
mov dword [edi + 0x3d0], 0
call fcn.004976ca
push 0x44
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call fcn.004d9120
add esp, 0x10
mov dword [esi], vtable.CTrayPos.0
mov dword [esi + 0x34], 0
mov dword [esi + 0x18], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x41afb0
push 0
push 0
call fcn.004e2b60
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x41af20
push 0
push 0
call fcn.004e2b60
add esp, 0x30
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x20]
mov dword [esi], vtable.CMsgTrayPos.0
lea eax, [edi + 0x3c8]
cmp eax, ecx
je 0x416b92
mov ecx, dword [eax]
mov dword [eax], esi
test ecx, ecx
je 0x416b9f
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x416b9f
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041b040
push 0x3bc
push 0
push edi
call fcn.004d9120
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0x3d0], eax
mov eax, ebx
mov dword [ebx], edi
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.0049742c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
int3
Function at 0x416fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x549394]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], 0xffffffff
je 0x417007
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x416fe3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call edi
mov dword [esi], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x416ff5
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x417007
push eax
call edi
mov dword [esi + 8], 0xffffffff
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x417046
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
mov ecx, str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417050
sub ecx, edx
sar ecx, 1
push ecx
push str..PIPE4C6B6BDC_A47D_6B44_E687_2CB6CE2F0F59
lea ecx, [esi + 0x10]
call fcn.00408b30
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x417093
mov eax, dword [ecx]
push 0
push esi
call dword [eax]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp byte [esi + 0x28], 0
mov dword [esi + 8], eax
jne 0x4170ee
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0x417110
push 0
push 0
call fcn.004e2b60
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4170ee
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4170da
push eax
call edi
mov dword [esi + 4], 0xffffffff
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
Function at 0x4175d0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
imul esi, ebx, 0x4058
push edi
mov edi, ecx
add esi, edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
push dword [esi + 0x28]
mov dword [esi + 0x4038], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x417624
mov byte [esi + 0x2c], 0
mov dword [esi + 0x4038], 1
mov ecx, dword [edi + 0x80ec]
test ecx, ecx
je 0x417624
mov eax, dword [ecx]
push 0
push ebx
push edi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x417652
cmp eax, 0x3e5
je 0x417641
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
pop edi
mov byte [esi + 0x2c], 1
mov al, 1
mov byte [esi + 0x2d], 0
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov byte [esi + 0x2d], 0
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x417670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x549394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
imul edi, ebx, 0x4058
mov esi, ecx
mov dword [ebp - 8], 0
add edi, esi
cmp byte [edi + 0x2c], 0
je 0x417745
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [edi + 0x4038]
sub ecx, 0
je 0x417721
sub ecx, 1
jne 0x417745
test eax, eax
je 0x4176ed
mov eax, dword [ebp - 8]
test eax, eax
je 0x4176ed
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x417745
mov edx, dword [ecx]
push 0
push eax
lea eax, [edi + 0x38]
push eax
push ebx
push esi
call dword [edx + 8]
jmp 0x417745
push ebx
mov ecx, esi
call fcn.004175d0
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x4177a7
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x4177d7
mov dword [edi + 0x4038], 1
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x417745
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax]
push 0x2000
lea eax, [edi + 0x38]
push 0
push eax
call fcn.004d9120
add esp, 0xc
lea eax, [edi + 0x30]
push edi
push eax
push 0x2000
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417777
xor al, al
jmp 0x417786
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4177bc
mov al, 1
mov byte [edi + 0x2c], al
test al, al
jne 0x4177a7
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x4177a7
mov eax, dword [ecx]
lea edx, [edi + 0x38]
push 0
push dword [edi + 0x30]
push edx
push ebx
push esi
call dword [eax + 8]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
push ebx
mov ecx, esi
call fcn.004175d0
mov ecx, dword [esi + 0x80ec]
test ecx, ecx
je 0x4177d7
mov eax, dword [ecx]
push 0
push ebx
push esi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049742c
mov esp, ebp
pop ebp
ret 4
Function at 0x41ae70
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 0x41aec1
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41aeb0
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 0x41aef8
push dword [esi + 0x14]
call eax
push 0x1388
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41aeec
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 0x41af09
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 0x41b1d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00497fd0
mov eax, dword [0x549394]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x41b2c0
test edi, edi
je 0x41b2c0
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004d9120
add esp, 0xc
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x41b2c0
cmp eax, 0x3fff
ja 0x41b2c0
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41b2c0
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x53252c
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41b2c0
push 0x104
push 0
push edi
call fcn.004d9120
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
push 0x103
push edi
call fcn.0041b0d0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049742c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e5e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5045fb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x549394]
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.004d9120
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 0x41e7ba
mov dword [ebp - 4], 0
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x41e7d5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x41e6c0
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.004093a0
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 8], 0x104
lea edi, [esi - 0x10]
jl 0x41e7df
xor eax, eax
mov dword [edi + 4], 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
push 0x532e34
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [edi + 8]
push esi
call fcn.004e2d15
add esp, 8
test eax, eax
js 0x41e7df
cmp eax, dword [edi + 8]
jg 0x41e7df
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 0x41e756
test dx, dx
je 0x41e752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e756
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e730
xor eax, eax
jmp 0x41e75b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41e797
mov eax, str.bigupdate
mov cx, word [esi]
cmp cx, word [eax]
jne 0x41e78a
test cx, cx
je 0x41e786
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x41e78a
add esi, 4
add eax, 4
test cx, cx
jne 0x41e764
xor eax, eax
jmp 0x41e78f
sbb eax, eax
or eax, 1
test eax, eax
je 0x41e797
xor esi, esi
jmp 0x41e79c
mov esi, 1
mov dword [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41e7b8
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.0049742c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404780
push 0x80070057
call fcn.00404780
int3
Function at 0x41ed00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00497fd0
mov eax, dword [0x549394]
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 0x41ed36
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049742c
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.004d9120
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004e3280
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.0049742c
mov esp, ebp
pop ebp
ret 4