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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x40ff69
cmp dword [ebp + 0xc], ebx
je 0x40ff69
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
mov ecx, 0x47a560
call fcn.0041ab9e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40ff69
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ff72
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40ff69
mov edi, 0x8000
push edi
call fcn.0042200e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x40ffbf
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x14], bl
je 0x40ffdd
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00410a1f
add esp, 0x10
jmp 0x410008
mov ecx, dword [ebp - 8]
mov eax, edi
lea edx, [ecx + 0x8000]
cmp edx, dword [ebp + 0x10]
jbe 0x40fff2
mov eax, dword [ebp + 0x10]
sub eax, ecx
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41003c
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41003c
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp byte [ebp + 0x14], bl
je 0x410032
push eax
call fcn.00414452
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x410054
jmp 0x40ffc2
push dword [ebp + 0xc]
call fcn.0042201c
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
jmp 0x40ff69
push dword [ebp + 0xc]
call fcn.0042201c
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
jmp 0x40ff6b
Function at 0x410a1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x427ee4]
mov edx, dword [0x47b0b0]
sub ecx, dword [0x47b044]
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 0x410a60
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 0x410ae6
cmp ecx, edi
jae 0x410ae6
mov eax, dword [0x427ee4]
mov ecx, dword [0x47a19c]
sub eax, dword [0x47b044]
dec ecx
cmp eax, ecx
jge 0x410ae6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, 0x47a758
call fcn.00412f80
mov ecx, dword [0x427ee4]
mov edx, dword [0x47b0b0]
sub ecx, dword [0x47b044]
mov eax, dword [ebp + 8]
sub edi, eax
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
jae 0x410acc
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
push 1
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
mov dword [0x47b024], eax
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410b01
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
mov dword [ebp - 0xc], ecx
cmp dword [0x47a3ec], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x410d07
push ebx
push esi
push edi
mov edi, 0x479ee8
push dword [ebp - 8]
mov ecx, 0x47a3e0
call fcn.0041c45e
mov esi, eax
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x410cf2
push dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
call fcn.004121cd
test al, al
je 0x410cf2
or dword [esi + 0x1c], 0xffffffff
lea ebx, [esi + 4]
push ebx
mov ecx, edi
call fcn.004189c2
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.004189c2
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.00419277
lea eax, [esi + 0x10]
push 0x7fffffff
push eax
mov ecx, edi
call fcn.00419277
mov eax, dword [esi]
cmp eax, 4
jne 0x410ba7
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041ab9e
push eax
call fcn.004214ac
jmp 0x410cf2
cmp eax, 5
jne 0x410bbf
mov ecx, ebx
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x410cf2
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00421740
mov eax, dword [0x47a0a0]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.00419e97
mov ecx, ebx
call fcn.0041ab9e
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
test eax, eax
je 0x410c00
cmp eax, 2
je 0x410c00
cmp eax, 3
jne 0x410c16
lea ebx, [esi + 0x10]
push 0
mov ecx, ebx
call fcn.00419e97
mov ecx, ebx
call fcn.0041ab9e
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
push 1
pop ecx
cmp eax, ecx
jne 0x410c28
mov dword [ebp - 0x34], 3
jmp 0x410c3e
cmp eax, 2
je 0x410c3b
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 2
inc ecx
inc ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x410c84
cmp dword [esi], eax
jne 0x410c84
inc dword [ebp - 4]
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410c84
test al, 0x10
jne 0x410c84
mov ecx, ebx
call fcn.0041ab9e
push 0x47a66c
push eax
mov ecx, 0x47a660
call fcn.0041f0bc
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
cmp eax, 4
jbe 0x410cf2
mov esi, dword [esi]
cmp esi, 2
je 0x410c9a
test esi, esi
jne 0x410cf2
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041ab15
push eax
lea ecx, [ebp - 0x18]
call fcn.00419d38
lea ecx, [ebp - 0x18]
call fcn.0041abe8
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041a099
test al, al
je 0x410cea
mov ecx, ebx
call fcn.0041ab9e
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.00419d9a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x47a3ec]
jl 0x410b26
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x410d0e
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, 0x47a560
mov dword [ebp - 4], edi
push dword [eax]
call fcn.0041ab9e
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0041a96d
test eax, eax
jge 0x410d59
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x479ee8
call fcn.0041916b
xor eax, eax
jmp 0x410ebf
mov ebx, 0x104
push ebx
call fcn.0042200e
mov edi, eax
pop ecx
test edi, edi
jne 0x410d7c
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push ebx
push 0
push edi
call fcn.00421740
add esp, 0xc
push ebx
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
je 0x410da7
cmp byte [eax + edi], 0x5c
jne 0x410d9a
and byte [eax + edi], 0
mov ecx, dword [ebp + 0xc]
push 1
push ebx
push ebx
push edi
push str._SetupDir_
call fcn.0041aa75
push edi
call fcn.0042201c
mov eax, dword [ebp + 0x14]
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x47b024], eax
call fcn.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
jne 0x410e45
lea ecx, [ebp - 0x10]
call fcn.00419c64
mov ecx, dword [ebp + 0xc]
call fcn.0041ab9e
push eax
mov ecx, 0x47ad6c
call fcn.0041ab9e
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a30f
add esp, 0xc
mov ecx, 0x47a598
call fcn.0041ab9e
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
push esi
mov ecx, 0x479ee8
call fcn.004191a7
cmp eax, 7
jne 0x410e39
or ebx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419d9a
mov eax, ebx
jmp 0x410ebf
mov ecx, dword [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x410ebc
push ebx
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 ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x24]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041ab9e
push eax
call fcn.0040d2c7
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add esi, 0x28
push ebx
push esi
call fcn.0041ab9e
push eax
call fcn.0040d35b
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x411361
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.0041ba38
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x47a1f8
push edi
mov ecx, esi
call fcn.0041a7a5
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041a7a5
test ebx, ebx
mov esi, eax
je 0x4113f2
test esi, esi
je 0x4113f2
push 1
pop eax
mov dword [0x47b044], eax
mov dword [0x47a19c], eax
mov eax, dword [0x47b0b0]
test eax, eax
je 0x4113b9
push eax
call fcn.0042201c
pop ecx
push 4
call fcn.0042200e
pop ecx
mov dword [0x47b0b0], eax
push esi
lea ecx, [esi + ebx]
push ebx
mov dword [eax], ecx
push dword [esp + 0x18]
mov ecx, 0x47a560
call fcn.0041ab9e
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x4113fa
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 0x4113f4

Function at 0x4113fe
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
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 esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
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, 0x479ee8
call fcn.0041931b
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4121cd
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4121de
mov al, 1
jmp 0x41227d
mov edx, dword [edi]
push 1
pop eax
test al, dl
jne 0x412265
mov esi, dword [0x47a118]
test edx, 0x40000000
je 0x4121f9
cmp esi, eax
je 0x412265
test edx, 0x20000000
je 0x412206
cmp esi, 2
je 0x412265
cmp esi, eax
jne 0x41222e
mov esi, dword [0x47a110]
cmp esi, 0x5a
je 0x412229
cmp dword [0x47a10c], 4
jne 0x412229
neg esi
sbb esi, esi
and esi, 2
inc esi
inc esi
jmp 0x41225d
push 8
pop esi
jmp 0x41225d
mov esi, dword [0x47a10c]
cmp esi, 4
ja 0x41223d
push 0x10
jmp 0x41222b
cmp esi, 5
jne 0x412258
mov esi, dword [0x47a110]
test esi, esi
jne 0x412250
push 0x20
jmp 0x41222b
cmp esi, eax
jne 0x412258
push 0x40
jmp 0x41222b
mov esi, 0x80
test esi, edx
jne 0x412265
xor al, al
jmp 0x41227d
mov esi, dword [edi + 8]
test esi, esi
je 0x41227d
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [edi + 4]
push esi
call fcn.00411f93
pop edi
pop esi
ret 4

Function at 0x412282
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [esp + 0x18], bl
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
push edi
mov esi, 0x479ee8
je 0x41230b
mov edi, 0x47a0d8
mov ecx, esi
push edi
call fcn.00415674
push edi
mov ecx, esi
call fcn.004189c2
push 0x7fffffff
push edi
mov ecx, esi
call fcn.00419277
push 1
mov edi, 0x47a0d8
push ebx
push 0x427c6c
mov ecx, edi
call fcn.0041a683
push eax
push ebx
mov ecx, edi
call fcn.0041ab15
push eax
lea ecx, [esp + 0x14]
call fcn.00419d38
push 1
lea ecx, [esp + 0x14]
call fcn.0041ab9e
push eax
push ebx
mov ecx, edi
call fcn.0041ab9e
push eax
push str.open
push ebx
call ebp
lea ecx, [esp + 0x10]
call fcn.00419d9a
cmp byte [esp + 0x20], bl
je 0x412380
mov edi, 0x47a0cc
mov ecx, esi
push edi
call fcn.00415674
push edi
mov ecx, esi
call fcn.004189c2
push 0x7fffffff
push edi
mov ecx, esi
call fcn.00419277
push 1
mov esi, 0x47a0cc
push ebx
push 0x427c6c
mov ecx, esi
call fcn.0041a683
push eax
push ebx
mov ecx, esi
call fcn.0041ab15
push eax
lea ecx, [esp + 0x14]
call fcn.00419d38
push 1
lea ecx, [esp + 0x14]
call fcn.0041ab9e
push eax
push ebx
mov ecx, esi
call fcn.0041ab9e
push eax
push str.open
push ebx
call ebp
lea ecx, [esp + 0x10]
call fcn.00419d9a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x413096
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.00422460
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 0x413148
push dword [ebp + 0xc]
call fcn.0040d2a3
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 0x4130f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413148
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.00414452
cmp dword [ebp + 8], esi
pop ecx
je 0x413100
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 0x4134b4
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 0x41355a
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.00419cd4
cmp byte [ebp + 0xc], bl
je 0x41353a
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.00419ee6
lea ecx, [ebp - 0x18]
call fcn.0041ab9e
push 0x47a6d8
push eax
mov ecx, 0x47a660
call fcn.0041f0bc
lea ecx, [ebp - 0x18]
call fcn.00419d9a
pop ebx
leave
ret 8

Function at 0x41355f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x47a550], esi
je 0x41368e
mov ecx, 0x47a550
call fcn.0041ab9e
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x47a550]
inc ecx
push ecx
push eax
call fcn.0041bbce
add esp, 0x10
test al, al
je 0x41368e
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x413675
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 0x413663
push 0x479ef8
lea ecx, [ebp - 0x1c]
call fcn.00419d38
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.00419ee6
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00421740
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00421740
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.0041ab9e
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.00419d9a
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x4135b8
pop edi
pop ebx
push dword [ebp - 8]
call fcn.0042201c
mov ecx, 0x47a550
mov dword [esp], 0x429ff8
call fcn.00419db1
pop esi
leave
ret
Function at 0x413993
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 0x4139ea
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 0x413a01
test cl, 4
jne 0x413a1b
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x413a0d
or al, 2
test cl, 8
je 0x413a14
or al, 0x20
test cl, 0x10
je 0x413a1b
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x413f10
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.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
je 0x414084
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041ab9e
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 0x413f79
cmp esi, 0x20
jne 0x414084
cmp dword [0x47a0c8], edi
je 0x413ff6
push ebx
lea ecx, [ebp - 0xc]
call fcn.00419d38
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.00419ee6
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
je 0x413fd2
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041a248
push esi
lea eax, [ebp - 0xc]
push 0x428030
push eax
call fcn.0041a30f
add esp, 0xc
inc esi
jmp 0x413f9b
push edi
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
mov ecx, ebx
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x414067
lea ecx, [ebp - 0xc]
call fcn.00419d9a
test byte [0x47a0ba], 0x40
jne 0x41408e
lea ecx, [ebp - 0x1c]
call fcn.00419c64
mov ecx, ebx
call fcn.0041ab9e
push eax
mov ecx, 0x47ad18
call fcn.0041ab9e
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041a30f
add esp, 0xc
mov ecx, 0x47a598
call fcn.0041ab9e
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041ab9e
push eax
push esi
mov ecx, 0x479ee8
call fcn.004191a7
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x4140e5
call fcn.00419d9a
jmp 0x413f24
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00419e1f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.00419d9a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.0041ba38
pop ecx
mov esi, 0x47a550
pop ecx
push ebx
mov ecx, esi
call fcn.00419f64
push edi
mov ecx, esi
call fcn.00419e97
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.00419ee6
push edi
mov ecx, esi
call fcn.00419e97
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.00419db1
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x414087
call fcn.00419d9a
xor eax, eax
jmp 0x414087
Function at 0x41432a
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.00419cd4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.00419e82
cmp al, 0x5c
je 0x41435f
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00419e97
lea ecx, [ebp - 0xc]
call fcn.00419c64
push 0x429ff8
lea ecx, [ebp - 0xc]
call fcn.00419db1
push esi
lea ecx, [ebp - 0x18]
call fcn.0041ab9e
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041a30f
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
jne 0x414367
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x414425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41443b
lea ecx, [ebp - 0x24]
call fcn.00419c64
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.0041a30f
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041ab9e
push eax
mov ecx, 0x479ee8
push dword [0x47a0a0]
call fcn.0041916b
lea ecx, [ebp - 0x24]
call fcn.00419d9a
lea ecx, [ebp - 0xc]
call fcn.00419d9a
lea ecx, [ebp - 0x18]
call fcn.00419d9a
xor al, al
jmp 0x41444d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.00419d9a
lea ecx, [ebp - 0x18]
call fcn.00419d9a
mov al, 1
pop esi
leave
ret 4