joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472590
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xeb7ca0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x470d1b
je 0x470d6e
cmp ebx, 0x20
jbe 0x470d74
cmp ebx, 0x40
jbe 0x470dba
jmp 0x470e5b
test ebx, ebx
je 0x470d64
add eax, 0x10
test ax, 0xff0
je 0x470d50
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0xb7d3e0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0xb7d4e0]
jmp 0x470d38
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x470d38
pxor xmm1, xmmword [0xeb7cb0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xeb7cb0]
pxor xmm2, xmmword [0xeb7cc0]
pxor xmm3, xmmword [0xeb7cd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xeb7cb0]
pxor xmm2, xmmword [0xeb7cc0]
pxor xmm3, xmmword [0xeb7cd0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x470eba
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0xeb7428], 0
je 0x4725aa
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x470ce0
jmp fcn.004095a0
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401195
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 0x4011ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4011dd
cmp esi, ecx
jae 0x4011ee
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4011cb
cmp esi, ecx
jae 0x4011ee
cmp word [esi], 0
je 0x4011ee
lfence
mov eax, esi
jmp 0x4011f0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40187b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403afc
push str.installsource
lea eax, [ebp - 0xc]
push 0x422860
push eax
call fcn.00401684
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 8], edi
jle 0x401916
mov eax, dword [ebp - 0x10]
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40190a
mov ecx, dword [ebp - 8]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x40190d
mov eax, dword [ebp - 0x10]
push 0x422970
push dword [eax + edi*4 + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x401914
mov ecx, dword [ebp - 8]
inc edi
cmp edi, ecx
jl 0x4018d9
jmp 0x401916
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret

Function at 0x401938
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 8]
push str.brand
mov dword [ebp - 8], ebx
call fcn.00403668
mov esi, str.WUZP
push esi
call fcn.00410a31
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.00403a6c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp - 8]
xor edi, edi
inc edi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], edi
jle 0x4019b0
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4019ae
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x401995
jmp 0x4019b0
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret
Function at 0x401d46
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x18], esi
je 0x401d6d
test esi, esi
js 0x401d89
cmp esi, dword [ebx + 0x18]
jge 0x401d89
mov eax, dword [ebx + 0x14]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0x18]
jne 0x401d52
lea ecx, [ebx + 0x14]
call fcn.004033a1
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
lea ecx, [ebx + 0x20]
pop ebx
jmp fcn.00403746
push 1
push 0xc000008c
call fcn.004010aa
int3

Function at 0x401f55
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x42134c
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x401f84
xor al, al
jmp 0x401fb8
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401f9d
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], ebx
ja 0x401fb4
cmp dword [ebp - 0x10], 0x40000000
jb 0x401fb6
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret
Function at 0x40231f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], esi
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403afc
push 0x422bc0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push str._s_s.
push eax
call fcn.00403df0
push 0x250
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.00409110
add esp, 0x1c
lea eax, [ebp - 0x268]
push esi
push esi
push 1
push eax
push esi
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40239a
lea ecx, [esi - 0x10]
jmp 0x4024da
and dword [ebp - 8], 0
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
mov eax, dword [ebp - 0x268]
and eax, 0x410
cmp eax, 0x10
jne 0x4024ac
cmp word [ebp - 0x34], 0
lea esi, [ebp - 0x34]
jne 0x4023d0
lea esi, [ebp - 0x23c]
push esi
call fcn.00401fc5
test al, al
jne 0x4024ac
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push 0x4228d0
push eax
call fcn.00403df0
add esp, 0x10
lea eax, [ebp - 0x270]
xor esi, esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
push esi
push ecx
push eax
push dword [ebp - 8]
call fcn.00401ff9
test eax, eax
js 0x4024ac
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x26c]
xor eax, eax
or eax, dword [ebp - 0x14]
xor ecx, ecx
or ecx, dword [ebp - 0x270]
or edx, esi
mov esi, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x278], eax
sbb esi, edx
and dword [ebp - 0x280], 0
mov eax, esi
and esi, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x274], esi
fild qword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
push ecx
push ecx
fild qword [ebp - 0x280]
fchs
faddp st(1)
fstp qword [ebp - 0x288]
fld qword [ebp - 0x288]
fstp qword [esp]
call fcn.0041b217
fcomp qword [0x423540]
fnstsw ax
pop ecx
pop ecx
test ah, 5
jnp 0x4024ac
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0040207e
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023ac
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret 8
Function at 0x4024fb
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0xc], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402537
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402537
xor al, al
jmp 0x4025c8
push ecx
push ecx
mov ecx, dword [edi]
mov esi, esp
sub ecx, 0x10
call fcn.00403b35
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040231f
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
push 0x104
lea ecx, [ebp - 8]
call fcn.004036e0
push eax
push ebx
push 0x422bc0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov edi, eax
call fcn.004036b4
test edi, edi
je 0x4025bb
cmp edi, 0x6f
je 0x4025bb
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 0x4025bb
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x20]
call fcn.004035dd
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4025ff
xor al, al
jmp 0x4026ba
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403afc
push 0x104
lea ecx, [ebp - 0xc]
call fcn.004036e0
push eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004036b4
test esi, esi
js 0x4026ad
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403668
push 0x422734
lea ecx, [ebp - 8]
call fcn.00403348
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402674
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4026a2
push 0x42295c
lea ecx, [ebp - 8]
call fcn.00403348
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.004024fb
test al, al
je 0x4026a2
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x24]
call fcn.004035dd
mov byte [edi + 0x28], 1
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401302
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret
Function at 0x4026c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
push 0x800
push ebx
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x402737
push str.GetTempPath2W
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x402737
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.004036e0
mov ecx, dword [ebp - 0xc]
push eax
push esi
call dword [0x41c250]
call dword [ebp - 0xc]
jmp 0x40274d
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.004036e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
call fcn.004036b4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402785
cmp eax, esi
jae 0x402785
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.004024fb
test al, al
je 0x402785
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x24]
call fcn.004035dd
mov byte [edi + 0x28], bl
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret

Function at 0x402829
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x426018]
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.00409110
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push 0x42290c
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4028ca
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 0x4028ca
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4028cc
push eax
call fcn.004027a1
test al, al
mov eax, dword [ebp - 0x214]
jne 0x4028cc
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41c250]
call esi
mov eax, edi
jmp 0x4028cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408bf5
leave
ret
Function at 0x4028da
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
mov esi, 0x104
lea ecx, [ebp - 8]
push esi
call fcn.004036e0
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004036b4
test esi, esi
je 0x4029ba
cmp esi, 0x104
jae 0x4029ba
push dword [edi + 0x20]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00403668
push 0x422774
lea ecx, [ebp - 0xc]
call fcn.00403348
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x402972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xc]
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402995
cmp dword [ebp - 0x14], 1
jne 0x4029b2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x4029b2
cmp dword [ebp - 0x14], 1
jne 0x4029a4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x14]
call fcn.004033dc
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push 3
push esi
push esi
push esi
push 0x422920
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402f36
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
mov ebx, str.WindowsUpdateAttempts
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f09
cmp dword [ebp - 0x10], edi
jne 0x402f09
mov eax, dword [ebp - 8]
jmp 0x402f0e
mov eax, esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jae 0x402f17
inc eax
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push edi
push esi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00408bf5
leave
ret
Function at 0x402f46
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00409110
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403047
cmp eax, esi
jae 0x403047
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], edi
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], edi
call fcn.00404c4f
test eax, eax
je 0x40303c
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
lea ecx, [ebp - 0x218]
call fcn.00404cf9
mov esi, dword [ebp - 0x210]
cmp dword [esi - 0xc], edi
je 0x403034
cmp dword [esi - 0xc], 7
jl 0x403034
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x422920
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403034
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push str.WindowsUpdateVersion
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401302
lea ecx, [ebp - 0x218]
call fcn.00404c3b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408bf5
leave
ret