joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411daf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x18]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.0041eab0
push dword [ebp - 4]
mov edi, 0x482964
mov ecx, edi
call fcn.0041f713
test al, al
je 0x411f76
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041f670
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411f6a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041eb84
mov eax, dword [ebp - 0x24]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x24]
push eax
call fcn.0041f0d5
push ebx
push 0x42ff38
lea ecx, [ebp - 0x24]
call fcn.0041ed73
cmp byte [0x483654], bl
jne 0x411ed2
mov ecx, 0x483278
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x30]
call fcn.0041eb20
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0041ed24
lea ecx, [ebp - 0x3c]
call fcn.0041eab0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041fa6a
push eax
call fcn.004217e4
pop ecx
lea eax, [ebp - 0x3c]
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041edf1
lea ecx, [ebp - 0x30]
call fcn.0041fa6a
push eax
push 0x14
push dword [esi + 8]
call fcn.00421911
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0041ebe6
lea ecx, [ebp - 0x30]
call fcn.0041ebe6
push 0x41746d
push 0x417422
lea ecx, [ebp - 0x24]
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x18]
call fcn.0041fa6a
push eax
call dword [0x482654]
test eax, eax
lea ecx, [ebp - 0x24]
jle 0x411f65
call fcn.0041fa6a
push 0x482b7c
push eax
mov ecx, 0x482b70
call fcn.00425376
cmp dword [0x4829c4], ebx
je 0x411f40
push 0xc
call fcn.00428529
cmp eax, ebx
pop ecx
je 0x411f31
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0041eb84
jmp 0x411f33
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x4829ec
call fcn.00421b7c
lea ecx, [ebp - 0x18]
call fcn.0041fa6a
push eax
call fcn.0040eb3e
mov eax, dword [ebp - 8]
pop ecx
add dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0041ebe6
push dword [ebp - 4]
jmp 0x411dd2
call fcn.0041ebe6
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
xor al, al
jmp 0x411f80
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41222f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x41229d
cmp dword [ebp + 0xc], ebx
je 0x41229d
cmp byte [0x42feec], bl
mov ecx, 0x482ab8
jne 0x412256
mov ecx, 0x482a88
call fcn.0041fa6a
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41229d
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4122a6
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 0x41229d
mov edi, 0x8000
push edi
call fcn.00428529
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x4122f3
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, 0x482cfc
call fcn.0041fa6a
push eax
call fcn.00420722
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x14], bl
je 0x412311
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00412eac
add esp, 0x10
jmp 0x41233c
mov ecx, dword [ebp - 8]
mov eax, edi
lea edx, [ecx + 0x8000]
cmp edx, dword [ebp + 0x10]
jbe 0x412326
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 0x412370
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 0x412370
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp byte [ebp + 0x14], bl
je 0x412366
push eax
call fcn.0041738f
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x412388
jmp 0x4122f6
push dword [ebp + 0xc]
call fcn.0042851e
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
jmp 0x41229d
push dword [ebp + 0xc]
call fcn.0042851e
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 0x41229f
Function at 0x41267e
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x482514], ebx
jne 0x41269d
push dword [ebp + 8]
call fcn.0040eb3e
pop ecx
jmp 0x41275e
and byte [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xf]
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push ebx
call fcn.00429b4c
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041ec53
push ebx
push str..old
mov ecx, esi
call fcn.0041ed73
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041ed73
mov ecx, esi
call fcn.0041fa6a
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
je 0x41274b
and byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
inc dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [ebp - 4]
call fcn.00429b4c
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041ec53
push 0
push str..old
mov ecx, esi
call fcn.0041ed73
lea eax, [ebp - 0x10]
push 0
push eax
mov ecx, esi
call fcn.0041ed73
mov ecx, esi
call fcn.0041fa6a
push eax
jmp 0x4126f3
mov ecx, esi
call fcn.0041fa6a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412eac
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 [0x42fef4]
mov edx, dword [0x483668]
sub ecx, dword [0x4835f4]
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 0x412ef4
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 0x412f7d
cmp ecx, edi
jae 0x412f7d
mov eax, dword [0x42fef4]
mov ecx, dword [0x482608]
sub eax, dword [0x4835f4]
dec ecx
cmp eax, ecx
jge 0x412f7d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push esi
mov ecx, 0x482c68
call fcn.00415d58
mov ecx, dword [0x42fef4]
mov edx, dword [0x483668]
sub ecx, dword [0x4835f4]
mov eax, dword [ebp + 8]
sub edi, eax
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
jae 0x412f63
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 [0x4835d8], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412f9e
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x4828ac], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x4131c7
push ebx
push esi
push edi
mov esi, 0x482320
push dword [ebp - 8]
mov ecx, 0x4828a0
call fcn.00421b62
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x4131b2
push dword [edi + 0x20]
call fcn.00414c54
test al, al
pop ecx
je 0x4131b2
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.00418d60
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.00418d60
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041d46a
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041d46a
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041e10f
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041e10f
mov eax, dword [edi]
cmp eax, 4
jne 0x413052
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041fa6a
push eax
call fcn.004279b9
jmp 0x4131b2
cmp eax, 5
jne 0x41306a
mov ecx, ebx
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4131b2
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00427c50
mov eax, dword [0x4824f0]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041ed24
mov ecx, ebx
call fcn.0041fa6a
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x4130ab
cmp eax, 2
je 0x4130ab
cmp eax, 3
jne 0x4130c1
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041ed24
mov ecx, ebx
call fcn.0041fa6a
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x4130d3
mov dword [ebp - 0x34], 3
jmp 0x4130e9
cmp eax, 2
je 0x4130e6
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.0041fa6a
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 0x413144
cmp dword [edi], eax
jne 0x413144
cmp dword [ebp - 0xc], 0xffffffff
jne 0x413144
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041fa6a
push eax
call ebx
cmp eax, 0xffffffff
je 0x413144
test al, 0x10
jne 0x413144
lea ecx, [edi + 0x10]
call fcn.0041fa6a
push 0x482b7c
push eax
mov ecx, 0x482b70
call fcn.00425376
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x4131b2
mov edi, dword [edi]
cmp edi, 2
je 0x41315a
test edi, edi
jne 0x4131b2
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041f9d6
push eax
lea ecx, [ebp - 0x18]
call fcn.0041eb84
lea ecx, [ebp - 0x18]
call fcn.0041fab4
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041ef26
test al, al
je 0x4131aa
mov ecx, ebx
call fcn.0041fa6a
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.0041ebe6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x4828ac]
jl 0x412fc0
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x413496
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x42feec], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x482ab8
jne 0x4134b7
mov ecx, 0x482a88
call fcn.0041fa6a
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.0041f806
test eax, eax
jge 0x4134f1
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x482320
call fcn.0041df67
xor eax, eax
jmp 0x413622
mov edi, 0x482320
push ebx
mov ecx, edi
call fcn.00418d60
push ebx
mov ecx, edi
call fcn.0041d46a
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041e10f
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x4835d8], eax
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
jne 0x4135a0
lea ecx, [ebp - 0x10]
call fcn.0041eab0
mov ecx, ebx
call fcn.0041fa6a
push eax
mov ecx, 0x48326c
call fcn.0041fa6a
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041f193
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41358f
mov ecx, 0x482ac8
call fcn.0041fa6a
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
push esi
mov ecx, edi
call fcn.0041df8b
cmp eax, 7
jne 0x41358f
or esi, 0xffffffff
jmp 0x413591
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041ebe6
mov eax, esi
jmp 0x413622
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41361f
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.0041fa6a
push eax
call fcn.0040eb6f
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041fa6a
push eax
call fcn.0040ec03
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413b22
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.00420a59
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x482668
push edi
mov ecx, esi
call fcn.0041f63e
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041f63e
test ebx, ebx
mov esi, eax
je 0x413bc1
test esi, esi
je 0x413bc1
push 1
pop eax
mov dword [0x4835f4], eax
mov dword [0x482608], eax
mov eax, dword [0x483668]
test eax, eax
je 0x413b7a
push eax
call fcn.0042851e
pop ecx
push 4
call fcn.00428529
pop ecx
mov dword [0x483668], eax
lea ecx, [esi + ebx]
mov dword [eax], ecx
cmp byte [0x42feec], 0
mov ecx, 0x482ab8
jne 0x413b9f
mov ecx, 0x482a88
call fcn.0041fa6a
push esi
push ebx
push dword [esp + 0x18]
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x413bc9
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 0x413bc3

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x414c61
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x414d0d
mov ecx, dword [0x482564]
test edx, 0x40000000
je 0x414c84
cmp ecx, eax
je 0x414d0d
test edx, 0x20000000
je 0x414c91
cmp ecx, 2
je 0x414d0d
cmp ecx, eax
jne 0x414cb9
mov ecx, dword [0x48255c]
cmp ecx, 0x5a
je 0x414cb4
cmp dword [0x482558], 4
jne 0x414cb4
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x414d05
push 8
pop ecx
jmp 0x414d05
mov ecx, dword [0x482558]
cmp ecx, 4
ja 0x414cc8
push 0x10
jmp 0x414cb6
cmp ecx, 5
jne 0x414ced
mov ecx, dword [0x48255c]
test ecx, ecx
jne 0x414cdb
push 0x20
jmp 0x414cb6
cmp ecx, eax
jne 0x414ce3
push 0x40
jmp 0x414cb6
cmp ecx, 2
jne 0x414d00
add ecx, 0x7e
jmp 0x414d05
cmp ecx, 6
jne 0x414d00
cmp dword [0x48255c], 0
mov ecx, 0x100
je 0x414d05
mov ecx, 0x200
test ecx, edx
jne 0x414d0d
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x414d28
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.004148a5
add esp, 0x10
pop esi
ret
Function at 0x415f1c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.00428c50
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 0x415fce
push dword [ebp + 0xc]
call fcn.0040eb3e
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 0x415f7e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415fce
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.0041738f
cmp dword [ebp + 8], esi
pop ecx
je 0x415f86
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 0x41634d
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
mov eax, dword [0x483658]
or eax, 0x2001f
xor ebx, ebx
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4163f9
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.0041eb20
cmp byte [ebp + 0xc], bl
je 0x4163d9
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041ed73
lea ecx, [ebp - 0x18]
call fcn.0041fa6a
push 0x482be8
push eax
mov ecx, 0x482b70
call fcn.00425376
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
pop ebx
leave
ret 8

Function at 0x4163fe
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x482a68], esi
je 0x41652d
mov ecx, 0x482a68
call fcn.0041fa6a
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x482a68]
inc ecx
push ecx
push eax
call fcn.00420bef
add esp, 0x10
test al, al
je 0x41652d
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x416514
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 0x416502
push 0x482330
lea ecx, [ebp - 0x1c]
call fcn.0041eb84
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041ed73
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00427c50
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427c50
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.0041fa6a
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.0041ebe6
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x416457
pop edi
pop ebx
push dword [ebp - 8]
call fcn.0042851e
mov ecx, 0x482a68
mov dword [esp], 0x432428
call fcn.0041ec53
pop esi
leave
ret
Function at 0x4168d1
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 0x416928
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 0x41693f
test cl, 4
jne 0x416959
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x41694b
or al, 2
test cl, 8
je 0x416952
or al, 0x20
test cl, 0x10
je 0x416959
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x416e0d
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.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x416f81
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041fa6a
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 0x416e76
cmp esi, 0x20
jne 0x416f81
cmp dword [0x482514], edi
je 0x416ef3
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041eb84
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041ed73
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x416ecf
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041f0d5
push esi
lea eax, [ebp - 0xc]
push 0x42ff6c
push eax
call fcn.0041f193
add esp, 0xc
inc esi
jmp 0x416e98
push edi
lea ecx, [ebp - 0xc]
call fcn.0041fa6a
push eax
mov ecx, ebx
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x416f64
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
test byte [0x48250a], 0x40
jne 0x416f8b
lea ecx, [ebp - 0x1c]
call fcn.0041eab0
mov ecx, ebx
call fcn.0041fa6a
push eax
mov ecx, 0x483218
call fcn.0041fa6a
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041f193
add esp, 0xc
mov ecx, 0x482ac8
call fcn.0041fa6a
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041fa6a
push eax
push esi
mov ecx, 0x482320
call fcn.0041df8b
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x416fe2
call fcn.0041ebe6
jmp 0x416e21
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041ecc1
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041ebe6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.00420a59
pop ecx
mov esi, 0x482a68
pop ecx
push ebx
mov ecx, esi
call fcn.0041edf1
push edi
mov ecx, esi
call fcn.0041ed24
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041ed73
push edi
mov ecx, esi
call fcn.0041ed24
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041ec53
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x416f84
call fcn.0041ebe6
xor eax, eax
jmp 0x416f84