joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b92
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x47f574], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x411dbb
push ebx
push esi
push edi
mov esi, 0x47f028
push dword [ebp - 8]
mov ecx, 0x47f568
call fcn.0041f2e9
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x411da6
push dword [edi + 0x20]
call fcn.004134e1
test al, al
pop ecx
je 0x411da6
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.00416e92
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.00416e92
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041b21e
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041b21e
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041bd98
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041bd98
mov eax, dword [edi]
cmp eax, 4
jne 0x411c46
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041d704
push eax
call fcn.00424d7a
jmp 0x411da6
cmp eax, 5
jne 0x411c5e
mov ecx, ebx
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x411da6
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00425010
mov eax, dword [0x47f1e8]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041c9de
mov ecx, ebx
call fcn.0041d704
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x411c9f
cmp eax, 2
je 0x411c9f
cmp eax, 3
jne 0x411cb5
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041c9de
mov ecx, ebx
call fcn.0041d704
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x411cc7
mov dword [ebp - 0x34], 3
jmp 0x411cdd
cmp eax, 2
je 0x411cda
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 2
inc ecx
inc ecx
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0x10]
call fcn.0041d704
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x411d38
cmp dword [edi], eax
jne 0x411d38
cmp dword [ebp - 0xc], 0xffffffff
jne 0x411d38
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041d704
push eax
call ebx
cmp eax, 0xffffffff
je 0x411d38
test al, 0x10
jne 0x411d38
lea ecx, [edi + 0x10]
call fcn.0041d704
push 0x47f804
push eax
mov ecx, 0x47f7f8
call fcn.0042276d
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x411da6
mov edi, dword [edi]
cmp edi, 2
je 0x411d4e
test edi, edi
jne 0x411da6
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041d67b
push eax
lea ecx, [ebp - 0x18]
call fcn.0041c87f
lea ecx, [ebp - 0x18]
call fcn.0041d74e
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041cbe0
test al, al
je 0x411d9e
mov ecx, ebx
call fcn.0041d704
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x47f574]
jl 0x411bb4
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x411dc2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x47f180]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x411de3
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x411dfe
mov eax, dword [0x47efd0]
cmp eax, esi
je 0x411df6
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x411dfe
mov eax, dword [0x47f1e8]
mov dword [ebp - 4], eax
push esi
push 0x40581a
push dword [ebp - 4]
push 0x12
push dword [0x47f1ec]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.0041c7ab
push str.___Internal_WaitExternal___
call fcn.0041df03
cmp eax, esi
je 0x411e39
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c8f8
jmp 0x411e46
push 0x4800b4
lea ecx, [ebp - 0x14]
call fcn.0041c966
push 1
lea ecx, [ebp - 0x14]
pop edi
push edi
push esi
push esi
push 0x42d144
push str.__n_
call fcn.0041d5df
lea ecx, [ebp - 0x14]
call fcn.0041d704
push eax
push 0x422
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, 0x47f8c0
call fcn.0041d704
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00425010
push 0x44
lea eax, [ebp - 0x84]
pop ebx
push ebx
push esi
push eax
call fcn.00425010
add esp, 0x18
lea eax, [ebp - 0x24]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x58], edi
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x54], di
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x411f51
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 0xc], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x411f41
cmp eax, edi
jne 0x411f41
push esi
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call ebx
test eax, eax
je 0x411ef1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x411ef1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x411f0c
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x14]
call fcn.0041c8e1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411f73
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [esi + 0x34]
mov ecx, 0x47f738
mov dword [ebp - 4], edi
push dword [eax]
call fcn.0041d704
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0041d4ab
test eax, eax
jge 0x411fc0
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x47f028
call fcn.0041bc87
xor eax, eax
jmp 0x4120eb
mov edi, 0x47f028
push ebx
mov ecx, edi
call fcn.00416e92
push ebx
mov ecx, edi
call fcn.0041b21e
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041bd98
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x480270], eax
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
jne 0x412069
lea ecx, [ebp - 0x10]
call fcn.0041c7ab
mov ecx, ebx
call fcn.0041d704
push eax
mov ecx, 0x47ff04
call fcn.0041d704
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041ce4d
add esp, 0xc
mov ecx, 0x47f770
call fcn.0041d704
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
push esi
mov ecx, edi
call fcn.0041bcab
cmp eax, 7
jne 0x412058
or esi, 0xffffffff
jmp 0x41205a
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041c8e1
mov eax, esi
jmp 0x4120eb
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4120e8
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x18]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x24]
mov ecx, ebx
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041d704
push eax
call fcn.0040e12a
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041d704
push eax
call fcn.0040e1be
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4125ba
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.0041e688
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x47f360
push edi
mov ecx, esi
call fcn.0041d2e3
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041d2e3
test ebx, ebx
mov esi, eax
je 0x41264b
test esi, esi
je 0x41264b
push 1
pop eax
mov dword [0x48028c], eax
mov dword [0x47f300], eax
mov eax, dword [0x4802fc]
test eax, eax
je 0x412612
push eax
call fcn.004258de
pop ecx
push 4
call fcn.004258e9
pop ecx
mov dword [0x4802fc], eax
push esi
lea ecx, [esi + ebx]
push ebx
mov dword [eax], ecx
push dword [esp + 0x18]
mov ecx, 0x47f738
call fcn.0041d704
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x412653
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
pop edi
pop esi
pop ebx
ret 8
mov al, 1
jmp 0x41264d

Function at 0x412657
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
mov ecx, 0x47f028
call fcn.0041be3c
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
cmp byte [0x480335], bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4134e1
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4134ee
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x413575
mov ecx, dword [0x47f25c]
test edx, 0x40000000
je 0x413509
cmp ecx, eax
je 0x413575
test edx, 0x20000000
je 0x413516
cmp ecx, 2
je 0x413575
cmp ecx, eax
jne 0x41353e
mov ecx, dword [0x47f254]
cmp ecx, 0x5a
je 0x413539
cmp dword [0x47f250], 4
jne 0x413539
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x41356d
push 8
pop ecx
jmp 0x41356d
mov ecx, dword [0x47f250]
cmp ecx, 4
ja 0x41354d
push 0x10
jmp 0x41353b
cmp ecx, 5
jne 0x413568
mov ecx, dword [0x47f254]
test ecx, ecx
jne 0x413560
push 0x20
jmp 0x41353b
cmp ecx, eax
jne 0x413568
push 0x40
jmp 0x41353b
mov ecx, 0x80
test ecx, edx
jne 0x413575
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x413590
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.00413132
add esp, 0x10
pop esi
ret
Function at 0x414664
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.00425db0
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x414716
push dword [ebp + 0xc]
call fcn.0040e106
pop ecx
push ebx
push edi
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4146c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414716
mov dword [ebp + 8], ebx
mov esi, 0x7d00
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x7d08]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x7d08]
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call fcn.004159bc
cmp dword [ebp + 8], esi
pop ecx
je 0x4146ce
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x414a9f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push ebx
push eax
xor ebx, ebx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414b45
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push 4
push eax
inc dword [ebp - 4]
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0041c81b
cmp byte [ebp + 0xc], bl
je 0x414b25
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041ca2d
lea ecx, [ebp - 0x18]
call fcn.0041d704
push 0x47f870
push eax
mov ecx, 0x47f7f8
call fcn.0042276d
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
pop ebx
leave
ret 8

Function at 0x414b4a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x47f720], esi
je 0x414c79
mov ecx, 0x47f720
call fcn.0041d704
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x47f720]
inc ecx
push ecx
push eax
call fcn.0041e81e
add esp, 0x10
test al, al
je 0x414c79
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x414c60
push ebx
push edi
mov esi, 0x104
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shl eax, 2
push 5
mov edi, dword [eax + ecx]
mov ebx, dword [eax + ecx + 4]
add edi, dword [ebp - 0x10]
add ebx, dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x414c4e
push 0x47f038
lea ecx, [ebp - 0x1c]
call fcn.0041c87f
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041ca2d
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00425010
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00425010
add esp, 0x18
lea eax, [ebp - 0x224]
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call edi
lea eax, [ebp - 0x120]
push esi
push eax
push ebx
call edi
lea ecx, [ebp - 0x1c]
call fcn.0041d704
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x1c]
call fcn.0041c8e1
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x414ba3
pop edi
pop ebx
push dword [ebp - 8]
call fcn.004258de
mov ecx, 0x47f720
mov dword [esp], 0x42f138
call fcn.0041c8f8
pop esi
leave
ret
Function at 0x414f7c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x414fd3
mov eax, dword [esi + 8]
lea edx, [esi + 0x10]
mov ecx, eax
and cl, 0x10
neg cl
sbb ecx, ecx
and al, 8
and ecx, edx
neg al
push ecx
lea ecx, [esi + 0x18]
sbb eax, eax
push 0
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esi + 8]
test cl, 2
je 0x414fea
test cl, 4
jne 0x415004
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x414ff6
or al, 2
test cl, 8
je 0x414ffd
or al, 0x20
test cl, 0x10
je 0x415004
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x41547a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ecx, ebx
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x4155ee
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xc
je 0x4154e3
cmp esi, 0x20
jne 0x4155ee
cmp dword [0x47f20c], edi
je 0x415560
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041c87f
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041ca2d
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x41553c
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041cd8f
push esi
lea eax, [ebp - 0xc]
push 0x42d0e8
push eax
call fcn.0041ce4d
add esp, 0xc
inc esi
jmp 0x415505
push edi
lea ecx, [ebp - 0xc]
call fcn.0041d704
push eax
mov ecx, ebx
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4155d1
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
test byte [0x47f202], 0x40
jne 0x4155f8
lea ecx, [ebp - 0x1c]
call fcn.0041c7ab
mov ecx, ebx
call fcn.0041d704
push eax
mov ecx, 0x47feb0
call fcn.0041d704
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ce4d
add esp, 0xc
mov ecx, 0x47f770
call fcn.0041d704
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041d704
push eax
push esi
mov ecx, 0x47f028
call fcn.0041bcab
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x41564f
call fcn.0041c8e1
jmp 0x41548e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041c966
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041c8e1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.0041e688
pop ecx
mov esi, 0x47f720
pop ecx
push ebx
mov ecx, esi
call fcn.0041caab
push edi
mov ecx, esi
call fcn.0041c9de
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041ca2d
push edi
mov ecx, esi
call fcn.0041c9de
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041c8f8
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x4155f1
call fcn.0041c8e1
xor eax, eax
jmp 0x4155f1
Function at 0x415894
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041c81b
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041c9c9
cmp al, 0x5c
je 0x4158c9
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041c9de
lea ecx, [ebp - 0xc]
call fcn.0041c7ab
push 0x42f138
lea ecx, [ebp - 0xc]
call fcn.0041c8f8
push esi
lea ecx, [ebp - 0x18]
call fcn.0041d704
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041ce4d
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
jne 0x4158d1
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41598f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4159a5
lea ecx, [ebp - 0x24]
call fcn.0041c7ab
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.You_dont_have_write_privilege_to_directory__s._Please_have_your_system_administrator__or_other_user_with_higher_privileges__install_this_software.
push eax
call fcn.0041ce4d
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041d704
push eax
mov ecx, 0x47f028
push dword [0x47f1e8]
call fcn.0041bc87
lea ecx, [ebp - 0x24]
call fcn.0041c8e1
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
xor al, al
jmp 0x4159b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
mov al, 1
pop esi
leave
ret 4
Function at 0x41631f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [0x47f5fc], esi
jne 0x41633d
cmp dword [0x47f608], esi
je 0x4163c2
test byte [0x47f1fc], 0x40
je 0x41634f
mov ecx, ebx
call fcn.0041bffa
jmp 0x41638e
lea eax, [ebp - 4]
mov ecx, 0x47f5fc
push eax
push 0x20019
push esi
call fcn.0041d704
push eax
push dword [0x47f5f8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4163bb
cmp dword [0x47f608], esi
jne 0x416392
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.0041600f
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x47f608
call fcn.0041d704
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
je 0x416385
mov ecx, ebx
call fcn.00416733
mov al, 1
jmp 0x41638e
Function at 0x419b08
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov ebx, 0x94
push 0x47f24c
mov dword [0x47f6c0], esi
mov dword [0x47f6c4], esi
mov dword [0x47f6cc], 2
mov dword [0x47f500], esi
mov byte [0x47f5b4], 1
mov dword [0x47f1ec], eax
mov dword [0x47f1f4], esi
mov dword [0x47f1f0], esi
mov dword [0x47f1e8], esi
mov dword [0x47f24c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x38
push esi
push 0x47f308
mov dword [0x47f8bc], esi
call fcn.00425010
push 0x4c
push esi
push 0x47f188
call fcn.00425010
push 8
push esi
push 0x47f7f0
call fcn.00425010
push 0x38
push esi
push 0x47f370
call fcn.00425010
mov edi, 0x104
mov dword [0x47f384], 0x424d7a
push edi
mov dword [0x47f370], 0x424d4e
mov dword [0x47f374], 0x424da6
mov dword [0x47f37c], 0x424e27
mov dword [0x47f378], 0x424ebb
mov dword [0x47f380], 0x424f5b
mov dword [0x47f39c], 0x41e2b9
mov dword [0x47f3a4], 0x41e1bc
mov dword [0x47f398], 0x41df03
mov dword [0x47f3a0], 0x41dbab
mov dword [0x47f394], 0x47f200
call fcn.004258e9
add esp, 0x34
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x419c37
mov ecx, 0x47f994
call fcn.0041d704
push eax
call fcn.0041e30a
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00425010
add esp, 0xc
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov ecx, 0x47f738
call fcn.0041c8f8
push dword [ebp + 8]
call fcn.004258de
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041c81b
lea ecx, [ebp - 0xc]
call fcn.0041d74e
push 1
push esi
push str._SILENT
lea ecx, [ebp - 0xc]
call fcn.0041d0b6
or edi, 0xffffffff
cmp eax, edi
je 0x419c9a
mov byte [0x4802ec], 1
push 1
push esi
push str._REVERT
lea ecx, [ebp - 0xc]
call fcn.0041d0b6
cmp eax, edi
je 0x419cb5
mov byte [0x480335], 1
push ebx
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [0x47f748], edi
mov dword [0x47f74c], edi
mov dword [0x47f750], edi
mov dword [0x47f754], edi
mov dword [0x47f758], edi
mov dword [0x47f75c], edi
mov dword [0x47f760], edi
mov dword [0x47f764], edi
call fcn.00425010
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x419d1e
mov dword [0x47f20c], 1
jmp 0x419d3d
mov eax, dword [ebp - 0x94]
mov dword [0x47f20c], esi
and eax, 0xffff
cmp eax, 0x3e8
ja 0x419d3d
mov byte [0x47f309], 1
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4