joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478a98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a2db8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x478b72
cmp dword [0x4a2db4], 0
jne 0x478b72
cmp dword [0x4a2fb8], 0
je 0x478b2c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00478868
add esp, 8
mov ebx, eax
test eax, eax
jne 0x478b12
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00478868
add esp, 8
mov ebx, eax
test eax, eax
jne 0x478b12
lea ebx, [ebp - 0x84]
jmp 0x478b13
inc ebx
call fcn.00478a54
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x478bad
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a2dbc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00473a38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a2dbf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x478bad
cmp dword [0x4a2db4], 0
je 0x478b8c
cmp dword [0x4a2db4], 0xffffffff
je 0x478bad
push esi
call dword [0x4a2db4]
pop ecx
mov eax, dword [0x4a2db8]
test eax, eax
je 0x478bad
cmp dword [0x4a2db8], 0xffffffff
je 0x478bad
cmp byte [eax], 0
je 0x478bad
push esi
push eax
call fcn.004789b8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f40c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47f43a
mov eax, ebx
call fcn.0047feb0
cmp dword [ebx + 0x3c], 0
je 0x47f433
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47f4ab
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x47f49d
cmp dword [ebx + 8], 0
je 0x47f45c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x47f46e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47f49d
cmp dword [ebx + 8], 0
je 0x47f44f
cmp eax, 3
je 0x47f481
dec eax
jne 0x47f44f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47f44f
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x47f44f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47f4c9
cmp dword [ebx + 0x10], 0xcc
je 0x47f4c9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047f4d4
pop ebx
ret
Function at 0x40391a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
test byte [esi + 0x50], 1
je 0x40397f
test byte [esi + 0xa5], 2
lea edi, [esi + 0xa4]
je 0x40397f
call dword [sym.imp.USER32.dll_ReleaseCapture]
and byte [edi + 1], 0xfd
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
add eax, 0xfffffff2
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 0xe
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40399f
mov ecx, esi
call fcn.004035d9
jmp 0x40399f
mov eax, dword [esi + 0x70]
xor edi, edi
cmp dword [eax - 8], edi
je 0x40399f
mov ecx, esi
call fcn.004035d9
push 1
push edi
push edi
push dword [esi + 0x70]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret 0xc

Function at 0x403af5
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
jne 0x403b16
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esi + 0x20]
push 0
push eax
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 0x44], eax
pop esi
ret

Function at 0x40458e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
call fcn.00404512
test eax, eax
jne 0x4045b8
push edi
push edi
push 0xc0000000
push 2
mov ecx, esi
call fcn.00404516
test eax, eax
je 0x4045dd
cmp dword [ebp + 8], edi
je 0x4045dd
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4045d8
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
jmp 0x4045df
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x404604
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 4]
push ebx
push esi
cmp eax, 0xffffffff
push edi
mov dword [ebp - 0xc], ecx
je 0x404676
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 8]
push ebx
push ecx
lea ecx, [ebp - 1]
push 1
push ecx
push eax
mov byte [ebp - 1], bl
call esi
cmp dword [ebp - 8], ebx
jne 0x40463d
xor eax, eax
jmp 0x404679
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 8]
cmp eax, dword [ecx]
jae 0x404676
mov al, byte [ebp - 1]
cmp edi, dword [ebp + 8]
mov byte [edi], al
jbe 0x40465d
cmp al, 0xa
jne 0x40465d
cmp byte [edi - 1], 0xd
je 0x404676
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [ebp - 0xc]
inc edi
push dword [eax + 4]
call esi
cmp dword [ebp - 8], ebx
jne 0x40463d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404680
Capabilities:
Check mutex on windows

Disassembly:
push dword [esp + 4]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4046a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x40692b
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x416e30], 2
jne 0x406947
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ebp
ret
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop ebp
ret

Function at 0x407290
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 8]
lea ecx, [esi + 0x3c]
push eax
call fcn.004075af
pop esi
ret 4

Function at 0x4072b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x240]
cmp edi, eax
jne 0x4072c7
push 1
pop eax
jmp 0x407303
mov ecx, dword [esi + 0x40]
test edi, edi
jl 0x407301
cmp edi, ecx
jge 0x407301
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jl 0x4072eb
cmp eax, ecx
jge 0x4072eb
mov ecx, dword [esi + 0x3c]
push 0
push dword [ecx + eax*4]
call ebx
mov eax, dword [esi + 0x3c]
push 5
mov dword [esi + 0x240], edi
push dword [eax + edi*4]
call ebx
push 1
pop eax
pop ebx
jmp 0x407303
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x407324
Capabilities:
Create thread

Disassembly:
lea eax, [ecx + 0x12c]
push eax
xor eax, eax
push eax
push ecx
push 0x407524
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x407be8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 0x210], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
call fcn.0040caca
push dword [ebp - 8]
call fcn.0040ca9b
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push 0
push eax
call fcn.0040bf70
add esp, 0x14
lea edi, [ebp - 0x210]
mov dword [ebp - 4], 0x10
call fcn.0040caa8
cdq
mov ecx, 0x100
idiv ecx
movzx eax, dl
push eax
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc edi
inc edi
dec dword [ebp - 4]
jne 0x407c56
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040bf70
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004079a5
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push str.KwUnSelf
push str.Console
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
leave
ret
Function at 0x408eb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x1c], 1
jne 0x408ef6
call fcn.00409044
push esi
mov dword [edi + 0x20], eax
call fcn.0040caca
imul eax, eax, 0x64
push eax
call fcn.0040ca9b
pop ecx
pop ecx
call fcn.0040caa8
cmp eax, 0x3e9
mov dword [edi + 0x1c], eax
jne 0x408ef6
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x3ed
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x40903f
lea eax, [ebp - 0x1c]
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 7
push ebx
mov dword [0x41e718], eax
call dword [sym.imp.GDI32.dll_SetMapMode]
mov eax, dword [ebp - 0x10]
push esi
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push esi
push 0x1e
push 0x1e
push ebx
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
push esi
push esi
push esi
push ebx
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push esi
push esi
push esi
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push 8
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x41e718]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x20], esi
je 0x408fef
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004087df
mov edi, dword [edi + 0x24]
lea eax, [ebp - 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0xc]
push esi
push esi
push eax
call fcn.004087df
add esp, 0x30
lea ecx, [ebp - 0xc]
jmp 0x40902d
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004087df
add esp, 0x18
mov ecx, edi
push dword [edi + 0x1c]
push ebx
call fcn.00408e50
lea ecx, [ebp - 0xc]
call fcn.00403dc4
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4097c1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x416030]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
xor edx, edx
sub eax, edx
je 0x409976
dec eax
je 0x409917
dec eax
jne 0x409999
mov eax, dword [ebp - 0x98]
push 2
pop esi
push 5
mov dword [0x416e30], esi
pop ecx
cmp eax, ecx
jne 0x409867
cmp dword [ebp - 0x94], edx
jne 0x409846
lea eax, [ebp - 0x88]
mov dword [0x41e720], ecx
push eax
push str.Windows_2000_With__s
lea eax, [ebp - 4]
push eax
call fcn.00409b3e
add esp, 0xc
jmp 0x4098b5
cmp dword [ebp - 0x94], 1
jne 0x409897
lea eax, [ebp - 0x88]
mov dword [0x41e720], 6
push eax
push str.Windows_XP__s
jmp 0x409838
cmp eax, 4
ja 0x409897
lea ecx, [ebp - 0x88]
mov dword [0x41e720], 7
push ecx
push dword [ebp - 0x94]
push eax
lea eax, [ebp - 4]
push str.Windows_NT__d._d_with__s
push eax
call fcn.00409b3e
add esp, 0x14
jmp 0x4098b5
push dword [ebp - 0x94]
mov dword [0x41e720], edx
push eax
lea eax, [ebp - 4]
push str.Windows__d._d
push eax
call fcn.00409b3e
add esp, 0x10
lea eax, [ebp - 0x88]
test eax, eax
je 0x409999
lea eax, [ebp - 0x88]
lea ecx, [ebp - 8]
push eax
call fcn.00401de9
push str.Service_Pack_2
push dword [ebp - 8]
call fcn.0040ce5d
pop ecx
test eax, eax
pop ecx
jne 0x4098ed
mov dword [0x41e724], esi
jmp 0x40990a
push str.Service_Pack_4
push dword [ebp - 8]
call fcn.0040ce5d
pop ecx
test eax, eax
pop ecx
jne 0x40990a
mov dword [0x41e724], 4
lea ecx, [ebp - 8]
call fcn.00401dbd
jmp 0x409999
cmp dword [ebp - 0x94], edx
mov dword [0x416e30], 1
jne 0x40993a
mov dword [0x41e720], 2
push str.Windows_t95
jmp 0x409952
cmp dword [ebp - 0x94], 0xa
jne 0x40995c
mov dword [0x41e720], 3
push str.Windows_t98
lea ecx, [ebp - 4]
call fcn.00401f49
jmp 0x409999
cmp dword [ebp - 0x94], 0x5a
jne 0x409999
mov dword [0x41e720], 4
push str.Windows_tMe
jmp 0x409952
push dword [ebp - 0x94]
lea eax, [ebp - 4]
mov dword [0x416e30], edx
push dword [ebp - 0x98]
push 0x416e40
push eax
call fcn.00409b3e
add esp, 0x10
mov esi, dword [0x416e30]
lea ecx, [ebp - 4]
call fcn.00401dbd
mov eax, esi
pop esi
leave
ret

Function at 0x4099ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x104
push edi
push esi
mov edi, 0x41e728
push 0
push edi
call fcn.0040bf70
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [eax + 0x41e728], 0x5c
inc eax
cmp eax, esi
mov dword [0x416e34], eax
push esi
jb 0x4099f6
push 0
push edi
call fcn.0040bf70
add esp, 0xc
xor eax, eax
jmp 0x409a2b
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
push 0
push edi
mov dword [0x416e34], eax
call fcn.0040bf70
push dword [0x416e34]
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.0040c150
add esp, 0x18
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x409a2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push str.SOFTWARECNNICCdnClientInstallInfo
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00401c2d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x41e82c
test eax, eax
jne 0x409aae
push 0x416e38
lea eax, [ebp - 8]
push esi
push eax
push edi
push str.InstallPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409aa1
push 0x416058
push esi
call fcn.0040c600
inc dword [0x416e38]
cmp dword [ebp - 4], edi
pop ecx
pop ecx
je 0x409aed
push dword [ebp - 4]
call ebx
jmp 0x409aed
cmp dword [ebp - 4], edi
je 0x409aae
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
mov edi, 0x41e728
push edi
call fcn.0040c4a0
test eax, eax
pop ecx
je 0x409af2
push 0x104
push 0
push esi
call fcn.0040bf70
push 2
push edi
push esi
call fcn.0040c150
push str.Progra1CNNICCdn_
push esi
call fcn.0040c600
add esp, 0x20
cmp dword [ebp - 4], 0
je 0x409aed
push dword [ebp - 4]
call ebx
push 1
pop eax
jmp 0x409aff
cmp dword [ebp - 4], 0
je 0x409afd
push dword [ebp - 4]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a186
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push esi
push edi
push 0xb
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerMenuExt
pop ecx
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
and byte [ebp - 0x134], 0
push 0x40
movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [0x41e71c]
pop edi
test ax, ax
pop esi
jne 0x40a1ce
lea eax, [ebp - 0x30]
push eax
push 0x41d0a4
jmp 0x40a1e4
cmp ax, 1
lea eax, [ebp - 0x30]
push eax
jne 0x40a1df
push 0x41d094
jmp 0x40a1e4
push str._s_access_Internet_Keyword
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x40aead
Capabilities:
Get common file path
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b016
lea eax, [ebp - 0x314]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40b016
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x10c]
push str.uninrest.exe
push eax
call fcn.0040c600
add esp, 0x10
lea eax, [ebp - 0x10c]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b016
lea eax, [ebp - 8]
push ebx
push eax
push 0x6000
push 0x416f88
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40afaa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b016
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00401c2d
test eax, eax
jne 0x40b008
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push str.uninsrest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
je 0x40b003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40b018
cmp dword [ebp - 4], ebx
je 0x40b016
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b01d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40b117
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x416030]
push 0xeff0
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.00401f8e
push dword [ebp + 8]
mov eax, dword [0x416030]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push dword [ebp - 8]
push str._s_s
push eax
call fcn.00409b3e
mov eax, dword [0x41e930]
add esp, 0x10
cmp eax, ebx
je 0x40b0b6
mov ecx, dword [0x41cf88]
inc dword [0x41cf88]
push esi
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push edi
push ecx
mov edi, 0x52c
push 3
push edi
push eax
call esi
push dword [ebp - 4]
push 2
push edi
push dword [0x41e930]
call esi
pop edi
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b107
push dword [ebp + 8]
call fcn.0040b81c
pop ecx
lea eax, [ebp + 8]
push ebx
push ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 4]
call fcn.00401dbd
lea ecx, [ebp - 8]
call fcn.00401dbd
xor eax, eax
jmp 0x40b11a
lea ecx, [ebp - 4]
call fcn.00401dbd
lea ecx, [ebp - 8]
call fcn.00401dbd
push 1
pop eax
pop ebx
leave
ret

Function at 0x40b1f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf003f
push str.SOFTWARECNNICCdnClientInstallInfo
push 0x80000002
lea ecx, [ebp - 4]
stosb byte es:[edi], al
mov dword [ebp - 8], 0x200
mov dword [ebp - 4], ebx
call fcn.00401c2d
test eax, eax
jne 0x40b2bc
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.KeywordBak
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b2bc
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c4a0
test eax, eax
pop ecx
je 0x40b2bc
cmp dword [ebp + 8], ebx
push esi
je 0x40b2a8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [ebp - 8], eax
jae 0x40b2a8
push eax
push ebx
push dword [ebp + 8]
call fcn.0040bf70
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.0040c600
mov eax, dword [ebp - 8]
add esp, 0x14
mov dword [esi], eax
cmp dword [ebp - 4], ebx
pop esi
je 0x40b2b7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40b2cc
cmp dword [ebp - 4], ebx
je 0x40b2ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40b40f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40b4bd
push 0xf003f
mov esi, 0x80000001
push str.SOFTWAREMicrosoftInternet_Explorer
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.00401c2d
test eax, eax
jne 0x40b4d3
push str.URLSearchHooks
lea ecx, [ebp + 8]
call fcn.00401c6b
cmp dword [ebp + 8], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40b465
push dword [ebp + 8]
call ebx
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x40b4c5
mov esi, 0x41d534
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push edi
push str.CFBFAE00_17A6_11D0_99CB_00C04FD64497
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], edi
je 0x40b4b3
push dword [ebp - 4]
call ebx
cmp dword [ebp + 8], edi
je 0x40b4bd
push dword [ebp + 8]
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp + 8], edi
je 0x40b4cf
push dword [ebp + 8]
call ebx
xor eax, eax
jmp 0x40b4c0
cmp dword [ebp + 8], edi
je 0x40b4cf
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b4cf

Function at 0x40b6b2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0xf003f
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstallCdnClient
push 0
mov esi, 0x80000002
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6ef
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40b6f1
xor eax, eax
pop edi
pop esi
leave
ret