joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46578c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x679588]
cmp dword [eax + 0x30], 0
je 0x465836
cmp dword [ebx + 0x94], 0
jne 0x465830
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46571c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465830
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4657f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465830
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c6cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465805
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x466550
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x466585
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f6c
jmp 0x466592
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ed0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4678f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x467962
mov eax, esi
call fcn.00451a94
test al, al
je 0x467962
mov eax, dword [ebx + 0x84]
call fcn.004516f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x467962
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x467956
push 0
mov eax, dword [ebx + 0x84]
call fcn.004516f4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00449b14
jmp 0x467962
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00467730
pop esi
pop ebx
ret

Function at 0x46b3f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405340
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x483070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407db8]
call fcn.00405928
xor eax, eax
push ebp
push 0x483211
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x493bac], 0
jne 0x4830cb
mov ecx, dword [0x674e28]
mov dl, 1
mov eax, dword [0x408190]
call fcn.0040cca8
call fcn.004048a8
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.0040380c
mov eax, ebx
call fcn.004057f8
mov dword [ebp - 0x24], eax
mov esi, 0x483220
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406a04
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405808
test eax, eax
jle 0x4831b4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4831a0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004050ec
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x483146
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405104
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x48315c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405104
mov eax, dword [ebp - 0x54]
call fcn.00405340
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004050ec
mov eax, dword [ebp - 0x58]
call fcn.00405340
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4831a2
xor eax, eax
test al, al
je 0x4831ad
mov ebx, 0x15
jmp 0x4831b9
mov ebx, 0x10
jmp 0x4831b9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x493bac]
call fcn.00482ef4
mov eax, dword [ebp - 4]
call fcn.00482ef4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483218
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404ea0
lea eax, [ebp - 0xc]
mov edx, dword [0x407db8]
call fcn.004059f8
ret
Function at 0x489840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405330
mov eax, dword [ebp - 8]
call fcn.00405330
xor eax, eax
push ebp
push 0x48990b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405340
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00405340
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x67964c], eax
cmp dword [0x67964c], 0
je 0x4898e5
mov eax, dword [ebp - 8]
call fcn.00405340
push eax
mov eax, dword [0x67964c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x679650], eax
mov eax, dword [0x679658]
push eax
push 0x40
push 0x1556093c
push 0x679650
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.nTDLL_ZwProtectVirtualMemory
mov edx, 0x679650
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00489834
mov eax, dword [0x67964c]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489912
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ea0
ret

Function at 0x48edc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push 0xff
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetWindowTextA
mov edx, ebx
mov eax, esp
call fcn.00409cec
add esp, 0x104
pop ebx
ret

Function at 0x48f480
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x454]
mov eax, dword [eax + 0x2b4]
call fcn.00477518
push 0
push 0x48f360
call sub.user32.dll_EnumWindows
mov eax, dword [esi + 0x454]
mov eax, dword [eax + 0x2b4]
call fcn.004774d8
mov edi, eax
test edi, edi
jl 0x48f4fb
inc edi
xor ebx, ebx
mov eax, dword [esi + 0x454]
mov eax, dword [eax + 0x2b4]
mov edx, ebx
call fcn.004778e4
mov dword [0x679700], eax
push 0
push 0x48f230
mov eax, dword [esi + 0x454]
mov eax, dword [eax + 0x2b4]
mov edx, ebx
call fcn.004778e4
mov eax, dword [eax + 0xc]
push eax
call sub.user32.dll_EnumChildWindows
inc ebx
dec edi
jne 0x48f4bc
pop edi
pop esi
pop ebx
ret
Function at 0x40113c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401192
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401192
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401184
cmp esi, ecx
jae 0x401192
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401172
cmp esi, ecx
jae 0x401192
cmp word [esi], 0
je 0x401192
mov eax, esi
jmp 0x401194
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40181f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.004030d0
push str.installsource
lea eax, [ebp - 0xc]
push 0x421210
push eax
call fcn.00401531
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 4], edi
jle 0x4018a7
mov eax, dword [ebp - 8]
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40189b
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x40189e
mov eax, dword [ebp - 8]
push 0x4212f0
push dword [eax + edi*4 + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4018a5
mov ecx, dword [ebp - 4]
inc edi
cmp edi, ecx
jl 0x40186a
jmp 0x4018a7
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4018bf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.brand
lea ecx, [ebp - 0xc]
call fcn.00403071
mov esi, str.WUZP
push esi
call fcn.0040fc18
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.004033bd
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
jle 0x40192a
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
mov eax, dword [ebp - 8]
jne 0x401928
inc edi
cmp edi, dword [ebp - 4]
jl 0x40190f
jmp 0x40192a
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401cd1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x18], esi
je 0x401cf8
test esi, esi
js 0x401d14
cmp esi, dword [edi + 0x18]
jge 0x401d14
mov eax, dword [edi + 0x14]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x18]
jne 0x401cdd
lea ecx, [edi + 0x14]
call fcn.00402de1
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x20]
pop edi
pop esi
pop ebx
jmp fcn.0040315f
push 1
push 0xc000008c
call fcn.00401052
int3
Function at 0x401ed7
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x41fd1c
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x401efc
xor al, al
jmp 0x401f30
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401f15
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], ebx
ja 0x401f2c
cmp dword [ebp - 0x10], 0x40000000
jb 0x401f2e
mov bl, 1
mov al, bl
pop ebx
leave
ret

Function at 0x401f33
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f5f
xor al, al
jmp 0x401fcd
lea ecx, [ebp + 8]
call fcn.004030d0
push 0x104
lea ecx, [ebp + 8]
call fcn.00403123
push eax
push ebx
push 0x421458
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov edi, eax
call fcn.004030f7
test edi, edi
je 0x401fc0
cmp edi, 0x6f
je 0x401fc0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401fc0
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x20
call fcn.00402fd3
mov bl, 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401252
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x401fd3
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401fec
xor al, al
jmp 0x40209f
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.004030d0
push 0x104
lea ecx, [ebp - 8]
call fcn.00403123
push eax
xor ebx, ebx
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004030f7
test esi, esi
js 0x402090
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403071
push 0x4210fc
lea ecx, [ebp - 4]
call fcn.00402d88
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402085
push 0x4212dc
lea ecx, [ebp - 4]
call fcn.00402d88
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401f33
test al, al
je 0x402085
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x24]
call fcn.00402fd3
mov byte [edi + 0x28], 1
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401252
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401252
pop esi
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x4020a2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], ecx
lea ecx, [ebp - 4]
push edi
call fcn.004030d0
push 0x800
xor ebx, ebx
push ebx
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x4020f2
push str.GetTempPath2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020f2
mov esi, 0x104
lea ecx, [ebp - 4]
push esi
call fcn.00403123
push eax
push esi
call edi
jmp 0x402108
mov esi, 0x104
lea ecx, [ebp - 4]
push esi
call fcn.00403123
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.004030f7
test edi, edi
je 0x40213f
cmp edi, esi
jae 0x40213f
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00401f33
test al, al
je 0x40213f
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x24]
call fcn.00402fd3
mov byte [esi + 0x28], bl
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4021b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call fcn.00408110
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push 0x421290
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x402250
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push edi
push 1
push 0x100
push 0x4000002
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
test eax, eax
js 0x402250
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x402252
push eax
call fcn.00402151
test al, al
mov eax, dword [ebp - 0x214]
jne 0x402252
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x402252
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407c07
leave
ret
Function at 0x402260
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.004030d0
mov ebx, 0x104
lea ecx, [ebp - 4]
push ebx
call fcn.00403123
push ebx
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004030f7
test esi, esi
je 0x402326
cmp esi, 0x104
jae 0x402326
push dword [edi + 0x20]
lea ecx, [ebp - 8]
call fcn.00403071
push 0x42113c
lea ecx, [ebp - 8]
call fcn.00402d88
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x10], eax
cmp eax, 1
je 0x4022de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402301
cmp dword [ebp - 0x10], 1
jne 0x40231e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x40231e
cmp dword [ebp - 0x10], 1
jne 0x402310
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x14]
call fcn.00402e1d
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00401252
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4027ec
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
xor esi, esi
push esi
push eax
push esi
push 3
push esi
push esi
push esi
push 0x4212a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402873
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
mov ebx, str.WindowsUpdateAttempts
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402846
cmp dword [ebp - 0x10], edi
jne 0x402846
mov eax, dword [ebp - 4]
jmp 0x40284b
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jae 0x402854
inc eax
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x402beb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push ebx
push esi
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c18
push 0x800
call eax
push dword [ebp + 0x10]
lea ecx, [esp + 0xc]
call fcn.00403021
lea ecx, [esp + 8]
call fcn.00401940
test al, al
je 0x402c41
lea ecx, [esp + 8]
call fcn.00402b3e
mov esi, eax
jmp 0x402d72
call fcn.0040181f
mov bl, al
mov byte [esp + 0xc], bl
test bl, bl
je 0x402c5a
call fcn.004027ec
call fcn.00402876
push dword [esp + 0xc]
xor edx, edx
mov ecx, str.WUInstallTimeout
test bl, bl
sete dl
dec edx
and edx, 0xffcda560
add edx, 0x36ee80
call fcn.0040390e
push eax
lea ecx, [esp + 0x1c]
call fcn.00403953
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [esp + 0x10], eax
test eax, eax
js 0x402ca8
push ecx
call fcn.0040148d
pop ecx
test al, al
jne 0x402cb6
mov eax, 0x80040703
mov ecx, eax
call fcn.0040272c
mov esi, eax
jmp 0x402d60
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x34]
push dword [ebp + 0x10]
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], eax
call fcn.00403021
lea ecx, [esp + 0x38]
call fcn.004030d0
xor eax, eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.004030d0
lea ecx, [esp + 0x50]
call fcn.004030d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 0
call fcn.004019fd
mov esi, eax
test bl, bl
je 0x402d57
cmp esi, 0x8004090d
jne 0x402d1b
xor esi, esi
jmp 0x402d21
mov esi, eax
test eax, eax
jne 0x402d57
lea eax, [esp + 0xc]
push eax
push 2
push 0
push 0x4212a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d57
push str.WindowsUpdateAttempts
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
call fcn.004019b7
lea ecx, [esp + 0x10]
call fcn.00402eaa
lea ecx, [esp + 0x14]
call fcn.00403a42
mov ecx, dword [esp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401252
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403953
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
mov edx, 0x41eb0
push ebx
push esi
mov esi, ecx
mov ecx, str.WUUpdateCheckTimeout
push edi
mov dword [esi], eax
call fcn.0040390e
mov bl, byte [ebp + 0xc]
xor edi, edi
push edi
push 1
push edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], 1
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
je 0x4039ae
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x403a93
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test bl, bl
je 0x403a1d
lea ecx, [ebp - 0x18]
call fcn.004030d0
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov edi, str.GlobalEdgeUpdate
push edi
mov dword [ebp - 8], 0x421a68
call fcn.0040fc18
pop ecx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.00403306
lea ecx, [ebp - 0x14]
call fcn.00405486
mov edi, str.c1810bdb_a54b_4a98_a576_015e4b8605b6
push edi
call fcn.0040fc18
pop ecx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.004033bd
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x14], eax
call fcn.00403a26
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x403b55
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00403be4
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x403bdc
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x403bd5
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403bd5
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403bd5
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403bde
mov ecx, esi
call fcn.00403be4
xor al, al
pop edi
pop esi
leave
ret 4