joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553c71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
mov edx, dword [0x5c74b0]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov ebx, 4
push edi
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40b85c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x40b8f6
mov ecx, dword [0x5c74b0]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0
push edi
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40b8de
lea ecx, [ebp - 0x124]
call fcn.0045eaa0
mov edx, dword [0x5c2a74]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.RegSetValueEx_err__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], 2
call fcn.0053afda
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0045eb70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x124]
call fcn.0045eaa0
mov edx, dword [0x5c2a74]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.Error__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], bl
call fcn.0053afda
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005421be
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
jmp 0x40b8d9

Function at 0x40b980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553c9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x5c74b0]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40b9e6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x11c]
call fcn.0045eaa0
mov ecx, dword [0x5c2a74]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push str.RegSetValueEx_err__ld_in_CBrInt:SaveIntToReg_n
push edx
mov byte [ebp - 4], 2
call fcn.0053afda
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x11c]
push 1
push eax
call fcn.0045eb80
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], bl
call fcn.0045eb70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ba90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553cbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x5c6ff0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00542347
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARENetscapeNetscape_6
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40bc59
lea ecx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x48]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp + 8]
push str.CurrentVersion
push eax
mov dword [ebp - 0x14], 0x32
call edi
test eax, eax
jne 0x40bc59
lea ecx, [ebp + 8]
lea edx, [ebp - 0x48]
push ecx
push 0xf003f
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call esi
test eax, eax
jne 0x40bc59
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push eax
push str.Main
push edx
call esi
test eax, eax
jne 0x40bc59
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
push ecx
push 0
push 0
push str.Install_Directory
push edx
mov dword [ebp - 0x14], 0x104
call edi
test eax, eax
jne 0x40bc59
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x14d], 0x5c
je 0x40bbc3
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Plugins_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00542347
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bd10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
push 0x5c6ff0
mov ecx, ebx
call fcn.00542347
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareOpera_Software
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bd5a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
mov edi, 0x104
push str.Last_Directory
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40be0e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_CommandLine
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40bddd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_Directory2
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40be0e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
lea ecx, [esp + 0x14]
push 0x5a50f4
push ecx
call fcn.005271a0
add esp, 8
test eax, eax
je 0x40be87
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00526d20
add esp, 8
test eax, eax
je 0x40be0e
mov byte [eax + 1], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x13], 0x5c
je 0x40be53
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00542347
push str.ProgramPlugins_
mov ecx, ebx
call fcn.0054259a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.Last_Directory2
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40be0e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
Function at 0x40c230
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7d0
mov eax, dword [esp + 0x7d4]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push edi
push 5
push eax
mov byte [esp + 0x10], 0
call esi
push 2
push eax
call esi
push 2
push eax
call esi
push 2
push eax
call esi
push 5
push eax
call esi
push 5
push eax
call esi
push 2
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x2755
push eax
call esi
push 0x3e9
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0x7d0
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x7e0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x7d0
ret

Function at 0x40c2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [esi + 0x44], eax
je 0x40c32c
mov edi, 1
mov dword [ebp + 8], edi
call fcn.0040bee0
test eax, eax
jne 0x40c338
mov ecx, esi
call fcn.0040bec0
test eax, eax
jne 0x40c338
mov ecx, esi
mov dword [esi + 0x44], ebx
call fcn.0040bed0
xor edi, edi
jmp 0x40c335
mov ecx, esi
call fcn.0040bed0
mov edi, eax
mov dword [ebp + 8], edi
cmp dword [ebp + 0xc], ebx
je 0x40c351
cmp edi, ebx
je 0x40c351
mov eax, dword [esi + 0x44]
mov ecx, esi
push eax
push str.IntegrateOpera
call fcn.0040b980
cmp dword [esi + 0x44], ebx
je 0x40c40b
cmp dword [esi + 0x48], ebx
jne 0x40c40b
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], ebx
push ecx
push ebx
push ebx
push 0x40bef0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x48], eax
jne 0x40c40b
lea ecx, [ebp - 0x198]
call fcn.0045eaa0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x90]
push str.CreateThread___failed_during_CBrowsersIntegrator::Set_Opera_integration____errCode___ld_n
push edx
call fcn.00527718
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x198]
push 1
push eax
call fcn.0045eb80
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], bl
call fcn.0045eb70
jmp 0x40c40b
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c600
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553d63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x40c672
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40c73b
cmp eax, dword [ecx + 0x58]
jge 0x40c73b
mov ecx, dword [ecx + 0x54]
lea edx, [ecx + eax*4]
lea ecx, [ebp - 0x14]
push edx
call fcn.005422f7
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [eax - 8]
test eax, eax
setg cl
mov eax, ecx
jmp case.default.0x40c67d
mov edx, dword [ebp + 8]
xor eax, eax
dec edx
cmp edx, 3
ja case.default.0x40c67d
jmp dword [edx*4 + 0x40c7c4]
lea eax, [ebp - 0x14]
push eax
call fcn.0040bd10
jmp case.default.0x40c67d
lea edx, [ebp - 0x14]
push edx
call fcn.0040ba90
jmp case.default.0x40c67d
lea eax, [ebp - 0x14]
push eax
call fcn.0040ccd0
jmp case.default.0x40c67d
lea edx, [ebp - 0x14]
push edx
call fcn.0040caf0
test eax, eax
je 0x40c73b
lea eax, [ebp - 0x14]
push str.NPIDMan1.dll
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.00542453
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call esi
test eax, eax
jne 0x40c6ec
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c72f
lea ecx, [ebp - 0x14]
push str.NPIDMan2.dll
lea edx, [ebp + 0xc]
push ecx
push edx
call fcn.00542453
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005422f7
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.005421be
mov eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x40c75c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c75c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40caf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x5c6ff0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00542347
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREmozilla.orgMozilla
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40ccb9
lea ecx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x48]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp + 8]
push str.CurrentVersion
push eax
mov dword [ebp - 0x14], 0x32
call edi
test eax, eax
jne 0x40ccb9
lea ecx, [ebp + 8]
lea edx, [ebp - 0x48]
push ecx
push 0xf003f
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call esi
test eax, eax
jne 0x40ccb9
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push eax
push str.Main
push edx
call esi
test eax, eax
jne 0x40ccb9
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
push ecx
push 0
push 0
push str.Install_Directory
push edx
mov dword [ebp - 0x14], 0x104
call edi
test eax, eax
jne 0x40ccb9
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x14d], 0x5c
je 0x40cc23
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Plugins_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00542347
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ccd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x5c6ff0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00542347
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARENetscapeNetscape
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40ce99
lea ecx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x48]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp + 8]
push str.CurrentVersion
push eax
mov dword [ebp - 0x14], 0x32
call edi
test eax, eax
jne 0x40ce99
lea ecx, [ebp + 8]
lea edx, [ebp - 0x48]
push ecx
push 0xf003f
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call esi
test eax, eax
jne 0x40ce99
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push eax
push str.Main
push edx
call esi
test eax, eax
jne 0x40ce99
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
push ecx
push 0
push 0
push str.Install_Directory
push edx
mov dword [ebp - 0x14], 0x104
call edi
test eax, eax
jne 0x40ce99
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x14d], 0x5c
je 0x40ce03
mov edi, 0x5a5080
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Plugins_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00542347
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d4a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x11c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
mov ebx, ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d503
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x40d59e
lea edx, [esp + 0x28]
push str.IEExt.htm
push edx
mov ecx, ebx
call fcn.0040d730
test eax, eax
je 0x40d591
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Download_with_IDM
push ecx
call esi
test eax, eax
jne 0x40d584
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x28]
push ecx
push edx
push 1
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push str.contexts
push edx
mov dword [esp + 0x3c], 0xf3
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d5ab
push eax
push str.Error__ld_creating_MenuExt_key_during_CBIr::IntIE___r_n
mov ecx, ebx
call fcn.0040d680
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d5ab
push eax
push str.Error__ld_opening_IEMenuKey_during_CBIr::IntIE___r_n
mov ecx, ebx
call fcn.0040d680
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40d5f5
lea edx, [esp + 0x10]
push eax
push edx
push eax
push 0xf003f
push eax
push 0x5c6ff0
push eax
mov eax, dword [esp + 0x30]
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push eax
call esi
test eax, eax
je 0x40d60d
push eax
push str.Err__ld_opening_IDMBHO_KEY_in_CBIr::IntIE_n
mov ecx, ebx
call fcn.0040d680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
mov ecx, dword [str.IDM_Helper]
mov ax, word [0x5a54d0]
mov edx, dword [0x5a54cc]
mov dword [esp + 0x18], ecx
mov cl, byte [0x5a54d2]
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
Function at 0x40e580
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x5c74b0]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.intAOFRWE
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e5c0
mov eax, dword [esp + 4]
test eax, eax
je 0x40e5c0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x40ea50
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x553f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [esp + 0x18c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
push str.shlwapi
mov dword [eax], 0
mov dword [esp + 0x1c], 0x168
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40eab3
push str.shlwapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ebp, 1
test esi, esi
je 0x40eb23
push str.AssocQueryStringA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eb10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push str.open
push 0x5a407c
push 2
push 0
call eax
test eax, eax
jl 0x40eb10
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40eb10
mov ecx, dword [esp + 0x198]
lea eax, [esp + 0x20]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov ebx, 1
test ebp, ebp
je 0x40eb1b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x40ebf6
mov edx, dword [0x5c2a74]
mov dword [esp + 0x10], edx
mov eax, dword [0x5c7498]
lea ecx, [esp + 0x10]
push eax
push str._stmp_test.html
push ecx
mov dword [esp + 0x19c], 0
call fcn.0053afda
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ebde
lea eax, [esp + 0x14]
push 0
push eax
push 0xd
push str._HTML___HTML_
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jle 0x40ebd3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ebd3
mov ecx, dword [esp + 0x198]
lea eax, [esp + 0x20]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov ebx, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x190], 0xffffffff
call fcn.005421be
test ebx, ebx
je 0x40ec6f
mov esi, dword [esp + 0x198]
push 0x7e
mov eax, dword [esi]
push eax
call fcn.00526d60
add esp, 8
test eax, eax
je 0x40ec5a
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push esi
call fcn.00541f33
lea eax, [esp + 0x18]
push eax
call fcn.00429630
add esp, 8
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x190], 1
push ecx
push 0x5a3e24
push esi
call fcn.0053afda
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x190], 0xffffffff
call fcn.005421be
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040ec90
mov edx, dword [esp + 0x19c]
mov dword [edx], eax
mov ecx, dword [esp + 0x188]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x184
ret 8