joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
xor eax, eax
mov cl, 0x1d
lea esp, [esp]
xor byte [eax + 0x414780], cl
inc eax
cmp eax, 0x1f9b0
jb 0x401010
mov eax, dword [esp + 0x10]
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401067
push edi
lea ecx, [esp + 0xc]
push ecx
push 0x1f9b0
push 0x414780
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401060
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x401850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401867
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401898
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401894
cmp esi, eax
jae 0x401898
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401884
cmp esi, eax
jb 0x40189e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401cdd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f020]
jne 0x401ce7
repz ret
jmp fcn.0040252c

Function at 0x4086eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004026a4
and dword [ebp - 4], 0
cmp dword [0x434cc0], 0
mov ebx, eax
jne 0x40879c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40884d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40884d
push eax
call fcn.00402632
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434cc0], eax
call esi
push eax
call fcn.00402632
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434cc4], eax
call esi
push eax
call fcn.00402632
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434cc8], eax
call esi
push eax
call fcn.00402632
pop ecx
mov dword [0x434cd0], eax
test eax, eax
je 0x40879c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402632
pop ecx
mov dword [0x434ccc], eax
mov eax, dword [0x434ccc]
cmp eax, ebx
je 0x4087f4
cmp dword [0x434cd0], ebx
je 0x4087f4
push eax
call fcn.004026ad
push dword [0x434cd0]
mov esi, eax
call fcn.004026ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087f4
test edi, edi
je 0x4087f4
call esi
test eax, eax
je 0x4087eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087eb
test byte [ebp - 0xc], 1
jne 0x4087f4
or dword [ebp + 0x10], 0x200000
jmp 0x40882d
mov eax, dword [0x434cc4]
cmp eax, ebx
je 0x40882d
push eax
call fcn.004026ad
pop ecx
test eax, eax
je 0x40882d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40882d
mov eax, dword [0x434cc8]
cmp eax, ebx
je 0x40882d
push eax
call fcn.004026ad
pop ecx
test eax, eax
je 0x40882d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434cc0]
call fcn.004026ad
pop ecx
test eax, eax
je 0x40884d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40884f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401140
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x431004]
cmp eax, 0x270
jl 0x401220
cmp eax, 0x271
jne 0x401161
mov eax, 0x1105
call fcn.00401100
xor ecx, ecx
jmp 0x401170
mov eax, dword [ecx*4 + 0x43230c]
xor eax, dword [ecx*4 + 0x432308]
add ecx, 1
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x432304]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x431008]
xor eax, dword [ecx*4 + 0x432938]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x432304], eax
jl 0x401170
cmp ecx, 0x26f
jge 0x4011f1
lea ecx, [ecx*4 + 0x432308]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x431008]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
cmp ecx, 0x432cc4
mov dword [ecx - 4], edx
jl 0x4011c0
mov ecx, dword [0x432cc4]
mov eax, dword [0x432308]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x431008]
xor eax, dword [0x432938]
mov dword [0x432cc4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x432308]
add eax, 1
mov edx, ecx
mov dword [0x431004], eax
shr edx, 0xb
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
and eax, 0xff
ret

Function at 0x401260
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x432cc8]
push esi
lea eax, [edx + 0x457f4481]
call fcn.00401100
add edx, 1
xor esi, esi
test ebx, ebx
mov dword [0x432cc8], edx
jle 0x401290
call fcn.00401140
xor byte [esi + edi], al
add esi, 1
cmp esi, ebx
jl 0x401281
mov eax, edi
pop esi
ret
Function at 0x4221b0
Capabilities:
Check mutex on windows
Enumerate gui resources
Get common file path
Move file

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x431014]
xor eax, esp
mov dword [esp + 0x2b8], eax
push edi
mov edi, dword [esp + 0x2cc]
push str.GETAMPED_NIJUUKIDOUBOUSHI_MUTEX_021002
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x422212
push 0
push 0x422160
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.0042233e
add esp, 0x2bc
ret 0x10
mov eax, edi
push ebx
xor ebx, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422220
sub eax, edx
add eax, 1
push esi
push eax
call fcn.0042285b
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x422240
mov ecx, dword [str.___t_n]
push ecx
push eax
call fcn.0042273e
add esp, 8
test eax, eax
je 0x42227c
mov edx, dword [str.___t_n]
push edx
mov dword [esp + ebx*4 + 0x30], eax
push 0
add ebx, 1
call fcn.0042273e
add esp, 8
test eax, eax
jne 0x422260
lea eax, [esp + 0x1bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x1bd], 0
lea eax, [esp + 0xc]
lea edx, [esp + 0x1bc]
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], str.distscache
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], 0x215
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push str.JRE1.3.1_binhotspotjvm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x422300
push 0x1000
push str.Keel_Launcher_Exe
push str.Error:_jvm.dll_not_found.__nPlease_reinstall_this_software.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x422324
push str.JNI_CreateJavaVM
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push eax
call fcn.004218f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x2c4]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.0042233e
add esp, 0x2bc
ret 0x10

Function at 0x42233e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431014]
jne 0x422348
repz ret
jmp fcn.00422b14
Function at 0x429d4c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004252fa
xor ebx, ebx
cmp dword [0x433694], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x429e21
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x429d8c
xor eax, eax
jmp 0x429ee5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f0a4
push edi
call esi
cmp eax, ebx
je 0x429d85
push eax
call fcn.00425297
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433694], eax
call esi
push eax
call fcn.00425297
mov dword [esp], 0x42f080
push edi
mov dword [0x433698], eax
call esi
push eax
call fcn.00425297
mov dword [0x43369c], eax
lea eax, [ebp - 8]
push eax
call fcn.0042404f
test eax, eax
pop ecx
pop ecx
je 0x429def
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423a0f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x429e21
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00425297
cmp eax, ebx
pop ecx
mov dword [0x4336a4], eax
je 0x429e21
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425297
pop ecx
mov dword [0x4336a0], eax
mov eax, dword [0x4336a0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x429e9a
cmp dword [0x4336a4], esi
je 0x429e9a
push eax
call fcn.00425303
pop ecx
call eax
cmp eax, ebx
je 0x429e67
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4336a4]
call fcn.00425303
pop ecx
call eax
test eax, eax
je 0x429e67
test byte [ebp - 0x18], 1
jne 0x429e9a
lea eax, [ebp - 0xc]
push eax
call fcn.00424086
test eax, eax
pop ecx
je 0x429e82
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423a0f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x429e91
or dword [ebp + 0x10], 0x200000
jmp 0x429ecb
or dword [ebp + 0x10], 0x40000
jmp 0x429ecb
mov eax, dword [0x433698]
cmp eax, esi
je 0x429ecb
push eax
call fcn.00425303
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429ecb
mov eax, dword [0x43369c]
cmp eax, esi
je 0x429ecb
push dword [ebp - 4]
push eax
call fcn.00425303
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x433694]
call fcn.00425303
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x593c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10f000]
push edi
or ebp, 0xffffffff
jmp 0x593c22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x593c29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593c18
mov eax, 1
add ebx, ebx
jne 0x593c3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x593c4c
jne 0x593c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593c6b
dec eax
add ebx, ebx
jne 0x593c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x593c30
add ebx, ebx
jne 0x593c67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x593cbd
xor ecx, ecx
sub eax, 3
jb 0x593c83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x593cf2
sar eax, 1
mov ebp, eax
jmp 0x593c8e
add ebx, ebx
jne 0x593c8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593c5c
inc ecx
add ebx, ebx
jne 0x593c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x593c5c
add ebx, ebx
jne 0x593ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x593c9e
jne 0x593cba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x593c9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x593cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x593cce
jmp 0x593c1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x593cdc
add edi, ecx
jmp 0x593c1e
pop esi
mov edi, esi
mov ecx, 0x5dfe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x593cfa
cmp byte [edi], 0x1c
jne 0x593cfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x593cff
lea edi, [esi + 0x190000]
mov eax, dword [edi]
or eax, eax
je 0x593d6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x195214]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x195318]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x593d2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19531c]
or eax, eax
je 0x593d68
mov dword [ebx], eax
add ebx, 4
jmp 0x593d49
call dword [esi + 0x19532c]
mov ebp, dword [esi + 0x195320]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x593da2
sub esp, 0xffffff80
jmp 0x4cdcc8
Function at 0x405470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8250
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x50], 0
cmp dword [ebx + 0x14], 8
jb 0x4054ae
mov eax, dword [ebx]
jmp 0x4054b0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40552b
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x405524
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 0x14], al
push 0x10
push str.File_not_found:
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00404c90
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402a00
lea eax, [ebp - 0x2c]
push eax
push eax
push 0x63
push str.Elements::CanLoadDll
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x18], 8
jb 0x405524
push dword [ebp - 0x2c]
call fcn.004a295f
add esp, 4
xor al, al
jmp 0x405645
push 1
call fcn.004a1849
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov edx, 0x26
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.0042d9c2
mov edi, eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
mov dword [ecx], esi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov edx, edi
mov ecx, ebx
call fcn.00401d70
add esp, 4
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x49], al
jb 0x405580
push dword [ebp - 0x28]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4055ae
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
cmp byte [ebp - 0x49], 0
jne 0x405643
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0042e7d2
test al, al
jne 0x405643
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x405524
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 0x30], al
push 0x1c
push str.Could_not_verify_signature:
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 5
call fcn.00404c90
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.00402a00
lea eax, [ebp - 0x48]
push eax
push eax
push 0x73
push str.Elements::CanLoadDll
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x34], 8
jb 0x405524
push dword [ebp - 0x48]
call fcn.004a295f
add esp, 4
xor al, al
jmp 0x405645
mov al, 1
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.004a2964
mov esp, ebp
pop ebp
ret
Function at 0x407680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x510918]
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
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 0
call fcn.00422920
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 1
xor edi, edi
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x4c]
push ecx
push 0x20019
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push edi
push eax
push SHChangeNotifyRegister
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407713
mov eax, dword [ebp - 0x4c]
mov edi, eax
test eax, eax
je 0x407713
xor edi, edi
mov esi, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0
test edi, edi
je 0x407725
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
test esi, esi
je 0x407772
push str.CheckInterval
lea ecx, [ebp - 0x30]
call fcn.00403110
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
push esi
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x407772
mov bl, 1
jmp 0x407774
xor bl, bl
test byte [ebp - 0x50], 1
je 0x40778b
cmp dword [ebp - 0x1c], 8
jb 0x40778b
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x4077eb
push str.CheckInterval
lea ecx, [ebp - 0x30]
call fcn.00403110
sub esp, 8
mov eax, esp
mov byte [ebp - 4], 4
lea ecx, [eax + 4]
mov byte [eax], 0
test ecx, ecx
je 0x4077b5
mov dword [ecx], 0
mov byte [eax], 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.00429aa9
cmp dword [ebp - 0x1c], 8
mov edi, dword [eax + 4]
jb 0x4077dc
push dword [ebp - 0x30]
call fcn.004a295f
add esp, 4
mov esi, dword [ebp - 0x64]
test edi, edi
je 0x4077eb
imul edi, edi, 0x3e8
jmp 0x4077f0
mov edi, 0xdbba00
test esi, esi
je 0x4077fb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], 8
jb 0x40780c
push dword [ebp - 0x48]
call fcn.004a295f
add esp, 4
mov eax, 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.004a2964
mov esp, ebp
pop ebp
ret
Function at 0x407be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8790
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0
call fcn.00407eb0
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push eax
mov byte [ebp - 4], 1
push SHChangeNotifyRegister
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 1
call fcn.0042931b
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], 8
jb 0x407c76
push dword [ebp - 0x44]
call fcn.004a295f
add esp, 4
mov esi, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
test esi, esi
je 0x407cd6
push str.NewInstallPromptCount
lea ecx, [ebp - 0x2c]
call fcn.00403110
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x407cd6
mov bl, 1
jmp 0x407cd8
xor bl, bl
test byte [ebp - 0x48], 1
je 0x407cef
cmp dword [ebp - 0x18], 8
jb 0x407cef
push dword [ebp - 0x2c]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x407d24
push str.NewInstallPromptCount
lea ecx, [ebp - 0x2c]
call fcn.00403110
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00429a35
cmp dword [ebp - 0x18], 8
jb 0x407d21
push dword [ebp - 0x2c]
call fcn.004a295f
add esp, 4
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x407d2f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2964
mov esp, ebp
pop ebp
ret 4
Function at 0x407d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8748
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
xor ecx, ecx
cmp word [str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions], cx
mov word [ebp - 0x2c], ax
mov eax, 0x38
cmove eax, ecx
push eax
push str.SoftwareMicrosoftInternet_ExplorerApproved_Extensions
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00402f90
xor esi, esi
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push SHChangeNotifyRegister
mov dword [ebp - 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407de3
mov eax, dword [ebp - 0x30]
test eax, eax
cmovne esi, eax
cmp dword [ebp - 0x18], 8
jb 0x407df4
push dword [ebp - 0x2c]
call fcn.004a295f
add esp, 4
test esi, esi
je 0x407e29
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], 0
jb 0x407e07
mov edi, dword [edi]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x407e2b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2964
mov esp, ebp
pop ebp
ret 4