joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [ebp - 4], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x42eef4]
mov edx, dword [0x4823ac]
sub ecx, dword [0x48233c]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], edi
mov ecx, dword [edx + ecx*4]
lea edx, [eax + edi]
cmp ecx, edx
jae 0x412a5c
sub ecx, eax
mov dword [ebp + 0x10], ecx
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ebx], ecx
je 0x412ae5
cmp ecx, edi
jae 0x412ae5
mov eax, dword [0x42eef4]
mov ecx, dword [0x481358]
sub eax, dword [0x48233c]
dec ecx
cmp eax, ecx
jge 0x412ae5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push esi
mov ecx, 0x4819b0
call fcn.00415615
mov ecx, dword [0x42eef4]
mov edx, dword [0x4823ac]
sub ecx, dword [0x48233c]
mov eax, dword [ebp + 8]
sub edi, eax
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
jae 0x412acb
mov edi, ecx
lea ecx, [ebp + 8]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
add dword [ebx], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 1
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
mov dword [0x482320], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b06
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x4815fc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x412d2f
push ebx
push esi
push edi
mov esi, 0x481080
push dword [ebp - 8]
mov ecx, 0x4815f0
call fcn.004211d1
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x412d1a
push dword [edi + 0x20]
call fcn.004145cc
test al, al
pop ecx
je 0x412d1a
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.0041843c
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041843c
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041cafa
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041cafa
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041d79d
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041d79d
mov eax, dword [edi]
cmp eax, 4
jne 0x412bba
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041f120
push eax
call fcn.00426cf7
jmp 0x412d1a
cmp eax, 5
jne 0x412bd2
mov ecx, ebx
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x412d1a
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00426f90
mov eax, dword [0x481240]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041e3fa
mov ecx, ebx
call fcn.0041f120
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x412c13
cmp eax, 2
je 0x412c13
cmp eax, 3
jne 0x412c29
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041e3fa
mov ecx, ebx
call fcn.0041f120
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x412c3b
mov dword [ebp - 0x34], 3
jmp 0x412c51
cmp eax, 2
je 0x412c4e
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.0041f120
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 0x412cac
cmp dword [edi], eax
jne 0x412cac
cmp dword [ebp - 0xc], 0xffffffff
jne 0x412cac
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041f120
push eax
call ebx
cmp eax, 0xffffffff
je 0x412cac
test al, 0x10
jne 0x412cac
lea ecx, [edi + 0x10]
call fcn.0041f120
push 0x4818c4
push eax
mov ecx, 0x4818b8
call fcn.004246df
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x412d1a
mov edi, dword [edi]
cmp edi, 2
je 0x412cc2
test edi, edi
jne 0x412d1a
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041f097
push eax
lea ecx, [ebp - 0x18]
call fcn.0041e29b
lea ecx, [ebp - 0x18]
call fcn.0041f16a
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041e5fc
test al, al
je 0x412d12
mov ecx, ebx
call fcn.0041f120
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.0041e2fd
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x4815fc]
jl 0x412b28
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x412d36
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4811d8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x412d57
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x412d72
mov eax, dword [0x481024]
cmp eax, ebx
je 0x412d6a
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x412d72
mov eax, dword [0x481240]
mov dword [ebp - 4], eax
push ebx
push 0x40581a
push dword [ebp - 4]
push 0x12
push dword [0x481244]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.0041e1c7
push str.___Internal_WaitExternal___
call fcn.0041f975
cmp eax, ebx
je 0x412dad
push eax
lea ecx, [ebp - 0x14]
call fcn.0041e314
jmp 0x412dba
push 0x482164
lea ecx, [ebp - 0x14]
call fcn.0041e382
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x412dce
cmp byte [eax], bl
je 0x412dce
push eax
lea ecx, [ebp - 0x14]
call fcn.0041e314
push 1
lea ecx, [ebp - 0x14]
pop esi
push esi
push ebx
push ebx
push 0x42ec20
push str.__n_
call fcn.0041effb
lea ecx, [ebp - 0x14]
call fcn.0041f120
push eax
push 0x422
push dword [ebp - 8]
call fcn.00420f80
add esp, 0xc
mov ecx, 0x481980
call fcn.0041f120
push eax
push dword [ebp - 8]
call fcn.00420eff
pop ecx
pop ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00426f90
push 0x44
lea eax, [ebp - 0x84]
pop edi
push edi
push ebx
push eax
call fcn.00426f90
add esp, 0x18
lea eax, [ebp - 0x24]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x58], esi
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x54], si
push dword [ebp + 0xc]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x412edc
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 0x10], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x412ecc
cmp eax, esi
jne 0x412ecc
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call edi
test eax, eax
je 0x412e7c
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x412e7c
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 0x412e97
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
push esi
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.0041e2fd
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x412efe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x42eeec], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x481800
jne 0x412f1f
mov ecx, 0x4817d0
call fcn.0041f120
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x34]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.0041eec7
test eax, eax
jge 0x412f59
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x481080
call fcn.0041d5f5
xor eax, eax
jmp 0x413084
mov edi, 0x481080
push ebx
mov ecx, edi
call fcn.0041843c
push ebx
mov ecx, edi
call fcn.0041cafa
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041d79d
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x482320], eax
call fcn.0041f120
push eax
call fcn.0040efbd
test al, al
pop ecx
jne 0x413002
lea ecx, [ebp - 0x10]
call fcn.0041e1c7
mov ecx, ebx
call fcn.0041f120
push eax
mov ecx, 0x481fb4
call fcn.0041f120
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041e869
add esp, 0xc
mov ecx, 0x481810
call fcn.0041f120
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041f120
push eax
push esi
mov ecx, edi
call fcn.0041d619
cmp eax, 7
jne 0x412ff1
or esi, 0xffffffff
jmp 0x412ff3
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041e2fd
mov eax, esi
jmp 0x413084
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413081
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.0041f120
push eax
call fcn.0040e8d1
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041f120
push eax
call fcn.0040e965
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413584
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.004200c8
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x4813b8
push edi
mov ecx, esi
call fcn.0041ecff
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041ecff
test ebx, ebx
mov esi, eax
je 0x413623
test esi, esi
je 0x413623
push 1
pop eax
mov dword [0x48233c], eax
mov dword [0x481358], eax
mov eax, dword [0x4823ac]
test eax, eax
je 0x4135dc
push eax
call fcn.0042785e
pop ecx
push 4
call fcn.00427869
pop ecx
mov dword [0x4823ac], eax
lea ecx, [esi + ebx]
mov dword [eax], ecx
cmp byte [0x42eeec], 0
mov ecx, 0x481800
jne 0x413601
mov ecx, 0x4817d0
call fcn.0041f120
push esi
push ebx
push dword [esp + 0x18]
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x41362b
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 0x413625

Function at 0x41362f
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, 0x481080
call fcn.0041d841
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
cmp byte [0x4823ed], bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4145cc
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4145d9
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x414660
mov ecx, dword [0x4812b4]
test edx, 0x40000000
je 0x4145f4
cmp ecx, eax
je 0x414660
test edx, 0x20000000
je 0x414601
cmp ecx, 2
je 0x414660
cmp ecx, eax
jne 0x414629
mov ecx, dword [0x4812ac]
cmp ecx, 0x5a
je 0x414624
cmp dword [0x4812a8], 4
jne 0x414624
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x414658
push 8
pop ecx
jmp 0x414658
mov ecx, dword [0x4812a8]
cmp ecx, 4
ja 0x414638
push 0x10
jmp 0x414626
cmp ecx, 5
jne 0x414653
mov ecx, dword [0x4812ac]
test ecx, ecx
jne 0x41464b
push 0x20
jmp 0x414626
cmp ecx, eax
jne 0x414653
push 0x40
jmp 0x414626
mov ecx, 0x80
test ecx, edx
jne 0x414660
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41467b
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.0041421d
add esp, 0x10
pop esi
ret
Function at 0x4157d9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.00427db0
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 0x41588b
push dword [ebp + 0xc]
call fcn.0040e8ad
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 0x41583b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41588b
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.00416bbb
cmp dword [ebp + 8], esi
pop ecx
je 0x415843
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 0x415c07
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 0x415cad
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.0041e237
cmp byte [ebp + 0xc], bl
je 0x415c8d
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041e449
lea ecx, [ebp - 0x18]
call fcn.0041f120
push 0x481930
push eax
mov ecx, 0x4818b8
call fcn.004246df
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
pop ebx
leave
ret 8

Function at 0x415cb2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x4817b8], esi
je 0x415de1
mov ecx, 0x4817b8
call fcn.0041f120
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x4817b8]
inc ecx
push ecx
push eax
call fcn.0042025e
add esp, 0x10
test al, al
je 0x415de1
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x415dc8
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 0x415db6
push 0x481090
lea ecx, [ebp - 0x1c]
call fcn.0041e29b
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041e449
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00426f90
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00426f90
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.0041f120
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.0041e2fd
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x415d0b
pop edi
pop ebx
push dword [ebp - 8]
call fcn.0042785e
mov ecx, 0x4817b8
mov dword [esp], 0x431188
call fcn.0041e314
pop esi
leave
ret
Function at 0x416112
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 0x416169
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 0x416180
test cl, 4
jne 0x41619a
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x41618c
or al, 2
test cl, 8
je 0x416193
or al, 0x20
test cl, 0x10
je 0x41619a
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x416639
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.0041f120
push eax
call fcn.0040efbd
test al, al
pop ecx
je 0x4167ad
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041f120
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 0x4166a2
cmp esi, 0x20
jne 0x4167ad
cmp dword [0x481264], edi
je 0x41671f
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041e29b
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041e449
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
call fcn.0040efbd
test al, al
pop ecx
je 0x4166fb
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041e7ab
push esi
lea eax, [ebp - 0xc]
push 0x42ef64
push eax
call fcn.0041e869
add esp, 0xc
inc esi
jmp 0x4166c4
push edi
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
mov ecx, ebx
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x416790
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
test byte [0x48125a], 0x40
jne 0x4167b7
lea ecx, [ebp - 0x1c]
call fcn.0041e1c7
mov ecx, ebx
call fcn.0041f120
push eax
mov ecx, 0x481f60
call fcn.0041f120
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e869
add esp, 0xc
mov ecx, 0x481810
call fcn.0041f120
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041f120
push eax
push esi
mov ecx, 0x481080
call fcn.0041d619
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x41680e
call fcn.0041e2fd
jmp 0x41664d
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041e382
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041e2fd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.004200c8
pop ecx
mov esi, 0x4817b8
pop ecx
push ebx
mov ecx, esi
call fcn.0041e4c7
push edi
mov ecx, esi
call fcn.0041e3fa
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041e449
push edi
mov ecx, esi
call fcn.0041e3fa
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041e314
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x4167b0
call fcn.0041e2fd
xor eax, eax
jmp 0x4167b0
Function at 0x416a93
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.0041e237
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041e3e5
cmp al, 0x5c
je 0x416ac8
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041e3fa
lea ecx, [ebp - 0xc]
call fcn.0041e1c7
push 0x431188
lea ecx, [ebp - 0xc]
call fcn.0041e314
push esi
lea ecx, [ebp - 0x18]
call fcn.0041f120
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041e869
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041f120
push eax
call fcn.0040efbd
test al, al
pop ecx
jne 0x416ad0
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x416b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416ba4
lea ecx, [ebp - 0x24]
call fcn.0041e1c7
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.0041e869
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041f120
push eax
mov ecx, 0x481080
push dword [0x481240]
call fcn.0041d5f5
lea ecx, [ebp - 0x24]
call fcn.0041e2fd
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
xor al, al
jmp 0x416bb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
mov al, 1
pop esi
leave
ret 4
Function at 0x4177a0
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 [0x481684], esi
jne 0x4177be
cmp dword [0x481690], esi
je 0x417843
test byte [0x481254], 0x40
je 0x4177d0
mov ecx, ebx
call fcn.0041d9ff
jmp 0x41780f
lea eax, [ebp - 4]
mov ecx, 0x481684
push eax
push 0x20019
push esi
call fcn.0041f120
push eax
push dword [0x481680]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41783c
cmp dword [0x481690], esi
jne 0x417813
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.00417490
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x481690
call fcn.0041f120
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 0x417806
mov ecx, ebx
call fcn.00417cde
mov al, 1
jmp 0x41780f