joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f777
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x38
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00430790
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
cmp dword [ebp + 0xc], ebx
je 0x40f7ac
mov dword [ebp - 0x38], 0x440
push esi
mov esi, dword [edi]
push edi
call fcn.0040a5d3
pop ecx
test al, al
je 0x40f7bd
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40f7df
mov dword [ebp - 0x28], eax
mov eax, edi
lea edi, [ebp + 0x10]
call fcn.00409f7f
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov esi, edi
call fcn.0040a5d3
pop ecx
test al, al
je 0x40f7ff
lea esi, [edi + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x40f81f
lea eax, [edi - 0x10]
call fcn.0040469f
pop edi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x40f840
cmp dword [ebp - 4], ebx
je 0x40f840
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x40f811
Function at 0x40fab5
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40faf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fbb4
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
jne 0x40fb3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fba7
push dword [ebp - 0x18]
call fcn.0043077a
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 1
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x40fba7
cmp dword [ebp - 0x18], ebx
je 0x40fba7
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40fbad
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.00430785
cmp dword [ebp - 0x14], 0
pop ecx
je 0x40fba3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40fbc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.00430785
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40fbc2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
leave
ret

Function at 0x40fbd3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fbfa
push eax
jmp 0x40fc34
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40fc2b
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
je 0x40fc49
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fc13
test esi, esi
je 0x40fc3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043076b
leave
ret
push edi
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x40fc5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x40fc3c
Function at 0x40ff51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x40ffea
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.0040abd8
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x40ffb5
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x410027
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.00408df0
call fcn.0040896f
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [ebp - 0x41c], ebx
je 0x41003b
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
leave
ret
Function at 0x410b8d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, eax
push 0x44bc2c
lea eax, [ebp - 4]
call fcn.004045c6
lea esi, [ebx + 0x1c]
mov edi, esi
lea ecx, [ebp - 4]
call fcn.0040a2ae
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
add ebx, 4
push ebx
lea eax, [ebp - 4]
call fcn.00424ee8
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
pop ecx
je 0x410bfa
mov esi, dword [esi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea eax, [edi - 0x10]
inc bl
call fcn.0040469f
mov al, bl
jmp 0x410c8a
push 0x457d64
push esi
xor eax, eax
lea edi, [ebp - 0x98]
call fcn.0041d711
push 1
push 0
push esi
push ebx
mov ecx, edi
call fcn.0041d87c
mov edi, eax
test edi, edi
je 0x410c6f
cmp byte [0x458cfc], 0
je 0x410c6f
push edi
lea eax, [ebp - 0xc]
call fcn.00421806
pop ecx
push dword [eax]
lea eax, [ebp - 8]
push str.Downloading_of_updates_failed._Error:
call fcn.0041692e
push eax
call fcn.0041693f
push eax
call fcn.0041693f
push eax
mov eax, 0x458ccc
call fcn.00415cee
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
lea esi, [ebp - 0x98]
call fcn.0041d7cb
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413155
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x30]
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
jne 0x413175
mov al, 1
jmp 0x413364
call fcn.0040117d
test al, al
je 0x413263
push 0x3c
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00430790
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.004217b2
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4537c8]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x413220
call fcn.00445e90
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x413245
fadd qword [0x4537c0]
jmp 0x41323e
call fcn.00445e90
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x413245
fsub qword [0x4537c0]
call fcn.00445e90
jmp 0x41324a
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
test edi, edi
je 0x4132fe
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4132fe
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.004217b2
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x41329c
fadd qword [0x4537b8]
fmul qword [0x4537c8]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x4132cf
call fcn.00445e90
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4132f4
fadd qword [0x4537c0]
jmp 0x4132ed
call fcn.00445e90
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4132f4
fsub qword [0x4537c0]
call fcn.00445e90
jmp 0x4132f9
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
cmp byte [0x458cfc], 0
je 0x413338
push esi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
call fcn.0041692e
push eax
call fcn.0041693f
push eax
call fcn.00416a5b
push eax
mov eax, 0x458ccc
call fcn.00415cee
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x10]
cdq
cmp esi, edx
jb 0x41334e
ja 0x41316e
cmp ebx, eax
jae 0x41316e
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.00413498
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413498
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push ebx
push esi
sub eax, 0x10
call fcn.00409cf0
add eax, 0x10
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040ef6f
mov eax, dword [0x457fa0]
mov esi, 0x457fa0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004043e2
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.004097ba
xor ebx, ebx
add esp, 0x10
cmp byte [0x458cfc], bl
je 0x413535
push dword [ebp + 8]
lea eax, [ebp + 0xc]
call fcn.0041692e
push eax
call fcn.0041693f
push eax
mov eax, 0x458ccc
call fcn.00415cee
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
cmp byte [edi + 0x10], bl
je 0x413545
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x413560
mov eax, dword [edi]
call fcn.004154f3
mov eax, dword [edi]
push ebx
call fcn.00415425
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041549a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [esi - 0x10]
call fcn.0040469f
pop esi
pop ebx
leave
ret 8

Function at 0x415500
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x42585f
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x415564
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x415564
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x41553d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415dce
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x415f22
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x415e50
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004045a3
push 0x2e
call fcn.00408ce3
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.004089b0
push str..log
push esi
call fcn.00402171
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.00408ecf
cmp dword [ebx], 0xffffffff
je 0x415f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415e9d
mov eax, dword [ebx]
test eax, eax
je 0x415ece
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x415ece
test eax, eax
jne 0x415f11
mov eax, dword [ebx]
test eax, eax
je 0x415ece
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x415f21
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00415f3b
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00415f60
mov eax, esi
mov esi, edi
call fcn.00415f3b
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x415f21
mov eax, dword [ebx]
test eax, eax
je 0x415f21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043076b
add ebp, 0x198
leave
ret 4

Function at 0x415f3b
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x41685e
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0040eddd
test al, al
jne 0x416916
push str.ProgramFilesFolder
push edi
call fcn.004090ca
mov esi, str.AppDataFolder
test eax, eax
je 0x4168b7
push str.ProgramFiles
push edi
call fcn.004153ae
pop ecx
pop ecx
test al, al
jne 0x4168b7
push esi
push edi
call fcn.004090ca
test eax, eax
jne 0x416916
push esi
push edi
call fcn.004090ca
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x4168d7
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x4168f6
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x41690d
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004045a3
xor eax, eax
test esi, esi
setne al
jmp 0x416918
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0043076b
add ebp, 0x190
leave
ret

Function at 0x416b17
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x458cfc], 0
push esi
mov esi, eax
je 0x416b4e
push dword [esi]
lea eax, [ebp - 4]
call fcn.0041692e
push eax
call fcn.0041693f
push eax
mov eax, 0x458ccc
call fcn.00415cee
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
cmp byte [0x457514], 0
je 0x416bb2
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416b66
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.004045c6
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
mov esi, eax
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.0041084a
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
pop edi
jmp 0x416bba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x417249
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ecx - 0xc], eax
je 0x41726e
lea esi, [ebp - 0xc]
call fcn.004096f9
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x417281
lea esi, [ebp - 0xc]
call fcn.004096f9
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x4172a6
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.0040df7b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x417288
lea esi, [ebp - 0xc]
call fcn.00408ee6
pop esi
pop ebx
leave
ret
Function at 0x4174b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, eax
mov eax, dword [0x457fa0]
mov esi, 0x457fa0
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040bd83
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.0040896f
push 0x451a84
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408cb2
test eax, eax
jne 0x41752f
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.004045a3
push str.instname_target.msi
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x14]
call fcn.00408e58
pop ecx
mov edi, esi
call fcn.0040896f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040469f
push str.instname_custom.mst
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x18]
call fcn.00408e58
pop ecx
call fcn.0040896f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41759a
mov esi, dword [ebp + 8]
mov ecx, 0x457fa0
call fcn.00402110
jmp 0x4175f2
push 0x44ac84
lea eax, [ebp - 0x10]
call fcn.004045c6
add ebx, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0041777a
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040469f
test bl, bl
je 0x4175e0
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
call fcn.0041761c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409cf0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x417d41
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x130]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x417d94
xor al, al
jmp 0x417eaa
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x417dab
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x78], eax
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x417dda
cmp dword [ebp - 0x80], 0xc8
jbe 0x417e99
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x417e40
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x417e08
push 0x80070057
call fcn.0040467b
cmp word [eax], 0x22
je 0x417e40
push 0x20
xor ecx, ecx
call fcn.00408c88
cmp eax, 0xffffffff
je 0x417e40
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b98
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.00402357
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b98
jmp 0x417e4a
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.0040896f
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x417e68
jl 0x417dfe
cmp word [eax], 0x20
je 0x417e68
push 0x20
lea eax, [ebp - 0x70]
call fcn.00409b98
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.00402357
mov esi, dword [ebp - 0x70]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.0040469f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp + 0x124]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
add ebp, 0x128
leave
ret