joyce8/EMBER2024-capa huggingface dataset:
Function at 0x579180
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689920
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x60]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x6b92c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x6c68cf
call fcn.004dbd4f
mov ecx, dword [ebp - 0x18]
call fcn.004d9202
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x118]
call fcn.004d8622
mov byte [ebp - 4], 1
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x24]
call fcn.004db0c5
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
push str.Mozilla_5.0__compatible__MSIE_10.0__Windows_NT_6.2__WOW64__Trident_6.0_
lea ecx, [ebp - 0x110]
call fcn.004dbda4
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x120]
call fcn.004dbcb4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.004db29b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004db642
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x5792ac]
call fcn.004d84bf
pop eax
pop edx
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.004d6d22
add esp, 0x120
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret

Function at 0x5eadc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d210
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6b92c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6c6b3a
call fcn.004dbd4f
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004d93c9
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jae 0x5eaea9
mov esi, esp
call dword [sym.imp.ucrtbased.dll__errno]
cmp esi, esp
call fcn.004d93c9
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
sub esp, 8
mov ecx, esp
mov dword [ebp - 0xf8], esp
push str.cannot_write_to_file
call fcn.004d4bc1
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp - 0xec]
call fcn.004db7c3
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x108], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x108]
push eax
call fcn.004dd2c1
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.004d9261
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x108
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret
Function at 0x5f5ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
push ebx
push esi
push edi
lea edi, [ebp - 0x238]
mov ecx, 0x8b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6b92c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6c6b3a
call fcn.004dbd4f
push 0x208
lea ecx, [ebp - 0x21c]
call fcn.004d780d
lea ecx, [ebp - 0x3a5]
call fcn.004d459a
push eax
lea ecx, [ebp - 0x21c]
call fcn.004db98a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3b0], eax
mov esi, esp
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [ebp - 0x3b0]
add esp, 0x10
cmp esi, esp
call fcn.004d93c9
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.004d93c9
mov dword [ebp - 0x3b0], eax
lea ecx, [ebp - 0x21c]
call fcn.004d74d9
mov dword [ebp - 0x3b4], eax
lea ecx, [ebp - 0x21c]
call fcn.004db7be
mov dword [ebp - 0x3b8], eax
mov esi, esp
mov eax, dword [ebp - 0x3b0]
push eax
push 1
mov ecx, dword [ebp - 0x3b4]
push ecx
mov edx, dword [ebp - 0x3b8]
push edx
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.004d93c9
mov esi, esp
push 2
call dword [sym.imp.ucrtbased.dll___acrt_iob_func]
add esp, 4
cmp esi, esp
call fcn.004d93c9
mov esi, esp
push eax
push 0xa
call dword [sym.imp.ucrtbased.dll_fputc]
add esp, 8
cmp esi, esp
call fcn.004d93c9
lea ecx, [ebp - 0x21c]
call fcn.004dbc3c
push edx
mov ecx, ebp
push eax
lea edx, [0x5f6014]
call fcn.004d84bf
pop eax
pop edx
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.004d6d22
add esp, 0x3b8
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret

Function at 0x6546e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
lea edi, [ebp - 4]
mov ecx, 1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x6c6c6e
call fcn.004dbd4f
mov ecx, dword [ebp + 8]
call fcn.004dc489
mov esi, esp
push eax
call dword [sym.imp.ucrtbased.dll__wmkdir]
add esp, 4
cmp esi, esp
call fcn.004d93c9
test eax, eax
jne 0x654730
mov dword [ebp - 0xc4], 1
jmp 0x65473a
mov dword [ebp - 0xc4], 0
movzx eax, byte [ebp - 0xc4]
pop edi
pop esi
pop ebx
add esp, 0xc4
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret
Function at 0x6638c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693ddd
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x34]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x6b92c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x6c6e38
call fcn.004dbd4f
push 4
lea ecx, [ebp - 0x24]
call fcn.0066ae40
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00665910
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x6633b0
mov eax, dword [ebp - 0x18]
add eax, 4
mov esi, esp
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.0066c2a0
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
call dword [sym.imp.ucrtbased.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.004d93c9
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x663977
lea ecx, [ebp - 0x24]
call fcn.0066d360
jmp 0x663988
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.004d521f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00667de0
push edx
mov ecx, ebp
push eax
lea edx, [0x6639d4]
call fcn.004d84bf
pop eax
pop edx
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.004d6d22
add esp, 0xf4
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret 4

Function at 0x663a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693e2d
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x34]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x6b92c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x6c6e38
call fcn.004dbd4f
push 4
lea ecx, [ebp - 0x24]
call fcn.0066aea0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00665a30
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x6634f0
mov eax, dword [ebp - 0x18]
add eax, 4
mov esi, esp
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.0066c300
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
call dword [sym.imp.ucrtbased.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.004d93c9
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x663b07
lea ecx, [ebp - 0x24]
call fcn.0066d3e0
jmp 0x663b18
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.004d521f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00667e70
push edx
mov ecx, ebp
push eax
lea edx, [0x663b64]
call fcn.004d84bf
pop eax
pop edx
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.004d6d22
add esp, 0xf4
cmp ebp, esp
call fcn.004d93c9
mov esp, ebp
pop ebp
ret 4
Function at 0x4048f1
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x214
mov eax, 0x500ec9
call fcn.004969f0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x404911
xor eax, eax
jmp 0x404a5e
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004d8680
add esp, 0xc
call fcn.004051bc
push 0x50b8c0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x40497d
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x21c]
call fcn.004063c4
push ebx
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x21c]
call fcn.00407112
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00406938
jmp 0x404a5c
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a5c
mov dword [ebp - 4], 1
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x21c]
call fcn.004047db
mov dword [ebp - 4], 2
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x4049e9
push ebx
push eax
lea eax, [ebp - 0x21c]
push 0x50b96c
push eax
call fcn.00404e79
add esp, 0x10
jmp 0x4049fe
push eax
lea eax, [ebp - 0x21c]
push str.__s_
push eax
call fcn.00404e79
add esp, 0xc
mov esi, dword [ebp - 0x21c]
mov ebx, dword [esi - 0xc]
add ebx, ebx
cmp dword [esi - 4], 1
jle 0x404a23
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.00404e0d
mov esi, dword [ebp - 0x21c]
push ebx
push esi
push 1
push edi
push str.ADBlockMasterTray
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
mov edi, eax
call fcn.00405440
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00405428
mov eax, edi
call fcn.0049699a
ret

Function at 0x404cdb
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 8
mov eax, 0x500ef9
call fcn.004969bc
cmp dword [ebp + 8], 0
jne 0x404cf1
xor eax, eax
jmp 0x404d6a
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0040503f
pop ecx
pop ecx
test eax, eax
jne 0x404d0b
inc eax
jmp 0x404d6a
call fcn.004051bc
test al, al
je 0x404d3a
lea ecx, [ebp + 8]
call fcn.004063c4
push 1
push str.ADBlockMasterTray
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00407908
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00406938
jmp 0x404d68
lea eax, [ebp - 0x14]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404d68
push str.ADBlockMasterTray
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.00496985
ret
Function at 0x40503f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x428
mov eax, 0x500f5c
call fcn.004969f0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x40505f
xor eax, eax
jmp 0x4051b6
xor edi, edi
test ebx, ebx
je 0x405067
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004d8680
add esp, 0xc
call fcn.004051bc
push 0x50b8c0
test al, al
lea eax, [ebp - 0x218]
push esi
push eax
je 0x4050d0
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x42c]
call fcn.004063c4
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push str.ADBlockMasterTray
lea ecx, [ebp - 0x42c]
call fcn.00407ced
lea ecx, [ebp - 0x42c]
mov edi, eax
call fcn.00406938
jmp 0x4051b4
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x430]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4051b4
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push str.ADBlockMasterTray
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x430]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4051b4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404804
inc esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.00405286
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00404804
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00405286
push edi
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.00404dd3
test eax, eax
js 0x405198
mov edi, esi
test ebx, ebx
je 0x405198
mov dword [ebx], esi
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov eax, edi
call fcn.0049699a
ret
Function at 0x407b85
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x550200], 0
push esi
mov esi, 0x550200
jne 0x407bac
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00404804
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40b76b
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x5018fa
call fcn.004969bc
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40b911
push esi
call fcn.00496b6a
mov edi, eax
pop ecx
test edi, edi
je 0x40b911
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b90a
call fcn.0040b9ee
mov ebx, dword [ebp + 0xc]
test al, al
je 0x40b8be
call fcn.0040b96c
test al, al
jne 0x40b8be
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b8be
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x40b8be
and dword [ebp - 4], 0
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x18]
call fcn.004047db
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00404e79
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40b882
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00405428
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x40b80d
jmp 0x40b8be
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00405497
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.0040bad0
push 0x20
mov ecx, ebx
call fcn.0040ba50
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00405428
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40b907
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x50b988
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b907
mov ecx, dword [ebp - 0x1c]
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 ebx
call fcn.00404e79
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x40b90a
mov ebx, dword [ebp - 0x10]
push edi
call fcn.00496aeb
pop ecx
mov al, bl
call fcn.00496985
ret
Function at 0x40c245
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00496b80
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x4000
push ebx
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x4008], ebx
test esi, esi
je 0x40c31f
test edi, edi
je 0x40c31f
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40c31f
cmp eax, 0x3fff
ja 0x40c31f
lea ecx, [ebp - 0x4004]
push ecx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c31f
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x50b988
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c31f
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push ebx
push edi
call fcn.004d8680
mov ecx, dword [ebp - 0x400c]
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, [esi - 1]
push eax
push edi
call fcn.0040c051
xor eax, eax
add esp, 0x28
inc eax
jmp 0x40c321
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret

Function at 0x40c435
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40c4a0
cmp dword [ebp + 0xc], 0
je 0x40c4a0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40c4a0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40c4a0
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40c49a
push esi
push dword [ebp + 0xc]
push edi
call fcn.004d7b80
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40c49a
mov al, 1
jmp 0x40c4a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
leave
ret
Function at 0x40cd7a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x40cde5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40cdf9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CurlInit
push eax
call esi
push str.CurlUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x40cde5
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x40cdf7
cmp dword [edi + 4], ebx
je 0x40cdf7
cmp dword [edi + 0xc], ebx
je 0x40cdf7
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40cdff
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
cmp dword [esi + 0x1c], 0
je 0x40ce23
xor eax, eax
inc eax
jmp 0x40ceb0
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40ce77
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub edi, 1
jne 0x40ce65
push 0x50c96c
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]
pop edi
test eax, eax
je 0x40ceb0
lea eax, [ebp - 0x20c]
mov dword [esi + 0x1c], 1
push eax
mov ecx, esi
call fcn.0040cd7a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret 4
Function at 0x40dc5c
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x501c37
call fcn.004969f0
mov ebx, ecx
mov dword [ebp - 0x68], ebx
push ecx
push ecx
mov eax, esp
mov dword [eax], 0x50c568
mov dword [eax + 4], 6
lea eax, [ebp - 0x28]
push eax
call fcn.0041c4fb
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x60]
call fcn.004047db
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.ADBlockMaster_tray.log
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push str._s_s
push eax
call fcn.00404e79
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x64]
call fcn.004047db
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x64]
push esi
push str._s.on
push eax
mov byte [ebp - 4], 4
call fcn.00404e79
mov edi, dword [ebp - 0x64]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd03
mov byte [ebx + 4], al
jmp 0x40dd76
push 0x28
mov byte [ebx + 4], 1
call fcn.00496abb
pop ecx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40dd24
push esi
mov ecx, eax
call fcn.0040d55e
jmp 0x40dd26
xor eax, eax
mov ecx, dword [ebp - 0x68]
mov dword [ebx + 0x20], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [eax]
mov byte [ebp - 4], 4
mov ebx, dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.0040db90
push str._____________________log_start_____________________________r_n
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040d9e6
push eax
lea ecx, [ebp - 0x40]
call fcn.0040d52b
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call ebx
lea ecx, [ebp - 0x40]
call fcn.004094aa
lea ecx, [ebp - 0x58]
call fcn.004094aa
lea ecx, [edi - 0x10]
call fcn.00405428
lea ecx, [esi - 0x10]
call fcn.00405428
lea ecx, [ebp - 0x28]
call fcn.004094aa
call fcn.0049699a
ret

Function at 0x40de81
Capabilities:
Print debug messages

Disassembly:
push 0xb4
mov eax, 0x501c67
call fcn.004969f0
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x180
push 0x40
push 0x8101
push edi
push esi
call fcn.004dff1a
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40df3a
push 1
push 2
lea ecx, [ebp - 0xc0]
call fcn.0040620f
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push str._error.__
push edi
push str.open
push eax
call fcn.00405645
pop ecx
pop ecx
push eax
call fcn.00405645
pop ecx
pop ecx
push eax
call fcn.00405645
pop ecx
pop ecx
push 0x50c9f4
push ebx
mov ecx, eax
call fcn.0040d6fe
push eax
call fcn.00405645
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040dfcd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x28]
call fcn.004094aa
lea ecx, [ebp - 0xc0]
call fcn.00406e45
or eax, 0xffffffff
cmp dword [esi], eax
je 0x40df4f
push 2
push 0
push dword [esi]
call fcn.004e05bd
add esp, 0xc
call fcn.0049699a
ret 4