joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4467b4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5c
push 0
push 0
dec ecx
jne 0x4467bc
push ecx
push ebx
push esi
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x164]
mov edx, dword [0x407b10]
call fcn.004056dc
xor eax, eax
push ebp
push 0x446a6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov eax, esi
call fcn.00409110
test al, al
jne 0x446827
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x15
jne 0x446816
mov eax, ebx
mov edx, 0x446a84
call fcn.00404de0
jmp 0x446a1d
mov eax, ebx
mov edx, 0x446a9c
call fcn.00404de0
jmp 0x446a1d
lea eax, [ebp - 0x2c8]
mov ecx, 0x446ab4
mov edx, esi
call fcn.00405098
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.00409288
test eax, eax
jne 0x446a16
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x446910
lea eax, [ebp - 0x2cc]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x158]
call fcn.004052ac
mov eax, dword [ebp - 0x2cc]
mov edx, 0x446ac0
call fcn.00405198
je 0x4469e9
push dword [ebp - 8]
push 0x446acc
push dword [ebp - 0x158]
push 0x446ad8
mov eax, dword [ebp - 0x164]
call fcn.00409568
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2d0]
call fcn.0040b524
push dword [ebp - 0x2d0]
push 0x446ae4
mov eax, dword [ebp - 0x164]
call fcn.00409568
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2d4]
call fcn.0040b53c
push dword [ebp - 0x2d4]
push 0x446af0
lea eax, [ebp - 8]
mov edx, 8
call fcn.0040510c
jmp 0x4469e9
push 0x400
push 0x160
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x2d8]
mov ecx, dword [ebp - 0x158]
mov edx, esi
call fcn.00405098
mov eax, dword [ebp - 0x2d8]
call fcn.0040524c
push eax
call sub.shell32.dll_SHGetFileInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x1b4]
mov ecx, 0x50
call fcn.00404ffc
push dword [ebp - 4]
push dword [ebp - 0x158]
push 0x446af0
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 0x160]
call fcn.00408bd4
push dword [ebp - 0x2dc]
push 0x446af0
push dword [ebp - 0xc]
push 0x446af0
mov eax, dword [ebp - 0x164]
call fcn.00409568
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2e0]
call fcn.0040b524
push dword [ebp - 0x2e0]
push 0x446ae4
mov eax, dword [ebp - 0x164]
call fcn.00409568
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2e4]
call fcn.0040b53c
push dword [ebp - 0x2e4]
push 0x446af0
lea eax, [ebp - 4]
mov edx, 0xb
call fcn.0040510c
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405098
lea eax, [ebp - 0x164]
call fcn.004092d8
test eax, eax
je 0x446857
lea eax, [ebp - 0x164]
call fcn.004092fc
jmp 0x446a1d
mov eax, ebx
call fcn.00404d8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446a76
lea eax, [ebp - 0x2e4]
mov edx, 6
call fcn.00404db0
lea eax, [ebp - 0x2cc]
call fcn.00404d8c
lea eax, [ebp - 0x2c8]
call fcn.00404d8c
lea eax, [ebp - 0x164]
mov edx, dword [0x407b10]
call fcn.004057ac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404db0
ret
Function at 0x446af4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040523c
xor eax, eax
push ebp
push 0x446c61
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, 0x446c7c
call fcn.00443730
mov eax, dword [ebp - 8]
call fcn.0040524c
push eax
mov eax, dword [0x458fdc]
mov eax, dword [eax]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.004414ac
mov dword [0x45af18], eax
lea edx, [ebp - 0xc]
mov eax, 0x446cd4
call fcn.00443730
mov eax, dword [ebp - 0xc]
call fcn.0040524c
push eax
mov eax, dword [0x458fdc]
mov eax, dword [eax]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push eax
call fcn.004414ac
mov dword [0x45af1c], eax
mov eax, dword [ebp - 4]
call fcn.00409100
test al, al
je 0x446bd7
xor eax, eax
push ebp
push 0x446bcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040524c
mov esi, eax
push esi
call dword [0x45af18]
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call dword [0x45af1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x446bd7
mov eax, dword [ebp - 4]
call fcn.00409318
mov eax, dword [ebp - 4]
call fcn.00409100
test al, al
je 0x446c34
push 1
lea eax, [ebp - 0x14]
call fcn.0043fe54
push dword [ebp - 0x14]
push 0x446d2c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040942c
push dword [ebp - 0x18]
push 0x446d3c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040510c
mov eax, dword [ebp - 0x10]
call fcn.0040524c
push eax
mov eax, dword [ebp - 4]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_MoveFileExA
mov eax, dword [ebp - 4]
call fcn.00409100
test al, al
je 0x446c44
xor ebx, ebx
jmp 0x446c46
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446c68
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404db0
ret

Function at 0x446f08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040523c
xor eax, eax
push ebp
push 0x446fc9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x446fa7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.004034f0
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004034f0
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.00409678
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x446fb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446fd0
lea eax, [ebp - 4]
call fcn.00404d8c
ret
Function at 0x10009417
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10009426
pop dword [ebp - 0x4c]
mov eax, 0x10009426
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x78167a3
sub dword [ebp - 0x5c], 0xb92f2258
mov dword [ebp - 0x58], 0x2074edb3
sub dword [ebp - 0x58], 0xee41a16e
mov dword [ebp - 0x54], 0x6bd45cdf
add dword [ebp - 0x54], 0xe077e74f
mov dword [ebp - 0x50], 0x43b945a
sub dword [ebp - 0x50], 0x43b945a
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x6223b90c
add eax, 0xaddcf788
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xd3ffa9ae
sub dword [ebp - 0x5c], 0x5f8d4058
mov dword [ebp - 0x58], 0x5151b96d
sub dword [ebp - 0x58], 0xfe557f8
mov dword [ebp - 0x54], 0xc7d351
sub dword [ebp - 0x54], 0x9d5866e5
mov dword [ebp - 0x50], 0xe222c471
sub dword [ebp - 0x50], 0xe222c471
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x812c65fb
sub eax, 0x712bb5af
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39876
push 0
call eax
mov ecx, 0x5043
xor edi, edi
add edi, eax
mov ebx, 0x10015000
add ebx, dword [ebp - 0x4c]
mov edx, 0xc6e3d979
sub edx, 0x3155ade3
mov dword [ebp - 0x40], 0x4b6787d7
mov esi, dword [ebx]
sub dword [ebp - 0x30], edi
add esi, edx
sub dword [ebp - 0x3c], ebx
mov dword [edi], esi
xor dword [ebp - 0x40], eax
add edi, 4
add ebx, 0xd9a3549e
sub ebx, 0xd9a3549a
loop 0x10009539
add eax, 0x826cbb80
add eax, 0x7d94785f
mov ebx, eax
add eax, 0x7d82a2a9
sub eax, 0x7d82a2a4
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x402fd3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42caf0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403067
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403024
cmp dword [ebp + 0x10], ebx
jne 0x40305b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402fd3
test eax, eax
jne 0x403036
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40300b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406993
cmp eax, ebx
je 0x40306e
push ebx
push dword [0x42caf0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x403067
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42caf0], ebx
jne 0x403064
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403064
jmp 0x403067
Function at 0x4034bb
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x4034e7
mov ecx, dword [0x42ca98]
push esi
add eax, ecx
push esi
push eax
mov dword [0x419ecc], eax
push dword [0x40ac94]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004035d6
cmp eax, esi
jl 0x4035d0
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40ac94]
call fcn.00406165
test eax, eax
je 0x4035bc
push dword [ebp + 8]
add dword [0x419ecc], 4
call fcn.004035d6
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x4035d0
cmp dword [ebp + 0x10], esi
jne 0x403598
cmp dword [ebp + 8], esi
jle 0x4035cd
mov esi, 0x415ec8
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x40354d
mov edi, 0x4000
push edi
push esi
push dword [0x40ac94]
mov dword [ebp - 4], edi
call fcn.00406165
test eax, eax
je 0x4035bc
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403594
cmp dword [ebp + 0x14], edi
jne 0x403594
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x419ecc], eax
cmp dword [ebp + 8], 0
jg 0x40353c
jmp 0x4035cd
push 0xfffffffffffffffe
jmp 0x4035be
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4035a3
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40ac94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035c1
push 0xfffffffffffffffd
pop eax
jmp 0x4035d0
mov eax, dword [ebp - 4]
add dword [0x419ecc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x4035d6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x419ecc]
sub esi, dword [0x40de38]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42ca4c], eax
jle 0x403740
push dword [0x421edc]
call fcn.00403768
push ebx
push ebx
push dword [0x40de38]
push dword [0x40ac94]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421ed8], esi
mov dword [0x419ec8], ebx
mov ebp, 0x40dec8
mov eax, dword [0x419ed0]
mov edi, 0x4000
sub eax, dword [0x421edc]
cmp eax, edi
jg 0x40364b
mov edi, eax
mov esi, 0x415ec8
push edi
push esi
call fcn.00403752
test eax, eax
je 0x403732
add dword [0x421edc], edi
mov dword [0x40de58], esi
mov dword [0x40de5c], edi
cmp dword [0x42ca50], ebx
je 0x4036a2
cmp dword [0x42cae0], ebx
jne 0x4036a2
mov eax, dword [0x421ed8]
push ebx
sub eax, dword [0x419ecc]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40de38]
mov dword [0x419ec8], eax
call fcn.00403173
pop ecx
mov ecx, 0x40de40
mov dword [0x40de60], ebp
mov dword [0x40de64], 0x8000
call fcn.00406acf
test eax, eax
jl 0x40373b
mov esi, dword [0x40de60]
sub esi, ebp
je 0x4036fc
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40ac94]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403737
cmp esi, dword [esp + 0x10]
jne 0x403737
add dword [0x40de38], esi
cmp dword [0x40de5c], ebx
jne 0x403671
jmp 0x403708
cmp dword [0x40de5c], ebx
jne 0x40373b
cmp edi, ebx
je 0x40373b
mov eax, dword [0x419ecc]
mov ecx, eax
sub ecx, dword [0x40de38]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403635
push ebx
push ebx
push eax
push dword [0x40ac94]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403740
or eax, 0xffffffff
jmp 0x40374a
push 0xfffffffffffffffe
jmp 0x40373d
push 0xfffffffffffffffd
pop eax
jmp 0x40374a
push 1
call fcn.00403173
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405b98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x427720], 0x44
push eax
xor eax, eax
push 0x427720
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405bd3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405c5d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004060bd
mov edi, eax
cmp edi, 0xffffffff
je 0x405c9e
test byte [esp + 0x10], 1
push esi
je 0x405c80
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c86
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c8f
xor eax, eax
inc eax
jmp 0x405ca0
test byte [esp + 0x10], 4
jne 0x405c9e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405ca5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.00405fc9
test bl, 8
mov dword [ebp - 8], eax
je 0x405ce4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cac8], eax
jmp 0x405eba
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cfe
test eax, eax
je 0x405e3c
test bl, 2
je 0x405e3c
mov edi, 0x426720
push esi
push edi
call fcn.00406476
cmp dword [ebp + 8], 0
je 0x405d1d
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405d23
push esi
call fcn.00405f0d
cmp word [esi], 0
jne 0x405d33
cmp word [0x426720], 0x5c
jne 0x405d3e
push 0x40a4e4
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e31
cmp word [ebp - 0x22c], 0x2e
jne 0x405d90
cmp word [ebp - 0x22a], 0
je 0x405e14
cmp word [ebp - 0x22a], 0x2e
jne 0x405d90
cmp word [ebp - 0x228], 0
je 0x405e14
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406476
test byte [ebp - 0x258], 0x10
je 0x405dbb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e14
push dword [ebp + 0xc]
push esi
call fcn.00405ca5
jmp 0x405e14
push esi
push str.Delete:_DeleteFile___s__
call fcn.0040693b
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405c5d
test eax, eax
push esi
jne 0x405e0d
cmp dword [ebp - 4], eax
je 0x405df9
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040693b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405692
push 0
push esi
call fcn.00406310
jmp 0x405e14
push str.Delete:_DeleteFile_failed___s__
call fcn.0040693b
inc dword [0x42cac8]
pop ecx
pop ecx
jmp 0x405e14
push 0xfffffffffffffff2
call fcn.00405692
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e3c
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405eba
cmp dword [ebp - 8], edi
push esi
jne 0x405e5d
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040693b
inc dword [0x42cac8]
pop ecx
pop ecx
jmp 0x405eba
call fcn.0040696c
test eax, eax
je 0x405eba
push esi
call fcn.00405ec1
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040693b
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405c5d
test eax, eax
push esi
jne 0x405eb3
cmp dword [ebp - 4], edi
je 0x405eac
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040693b
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405692
push edi
push esi
call fcn.00406310
jmp 0x405eba
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405e4e
push 0xffffffffffffffe5
call fcn.00405692
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405fc9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x426f20
push esi
call fcn.00406476
push esi
call fcn.00405f6c
mov edi, eax
test edi, edi
jne 0x405fea
xor eax, eax
jmp 0x406042
push edi
call fcn.0040670a
test byte [0x42ca58], 0x80
je 0x406007
mov ax, word [edi]
test ax, ax
je 0x405fe6
cmp ax, 0x5c
je 0x405fe6
sub edi, esi
sar edi, 1
jmp 0x406021
call fcn.0040696c
test eax, eax
je 0x40601b
test byte [eax], 0x10
je 0x405fe6
push esi
call fcn.00405f0d
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40600d
call fcn.00405ec1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4060bd
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060dc
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4060e2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406111
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b448]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b44c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406161
test edi, edi
jne 0x40611e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40615b
Function at 0x406194
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x427db8
push 0x40b46c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x4061e3
push 1
push 0
push esi
call fcn.004060e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40630a
cmp eax, edi
jg 0x40630a
mov esi, 0x4285b8
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x40630a
cmp eax, edi
jg 0x40630a
push esi
push ebx
push str._ls_ls_r_n
push 0x4279b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ca50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406498
push 4
push 0xc0000000
push esi
call fcn.004060e2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x40630a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406303
push edi
push esi
push ebp
call fcn.00406165
test eax, eax
je 0x406303
push str._Rename__r_n
push esi
call fcn.00406047
test eax, eax
jne 0x406299
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062ce
add eax, 0xa
push 0x40b450
push eax
call fcn.00406047
mov ebp, eax
test ebp, ebp
je 0x4062ca
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062bb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062b5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4062d0
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x4279b8
push eax
call fcn.0040609d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406343
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4063b7
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4063a4
cmp dword [ebp + 0x14], 1
je 0x4063a7
cmp dword [ebp + 0x14], 2
je 0x4063a7
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4067b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4067de
mov eax, dword [0x40b120]
cmp eax, 0xffffffff
je 0x4067d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b120], 0xffffffff
jmp 0x406854
cmp dword [0x4299c0], edi
je 0x406854
cmp word [0x4291c0], di
je 0x40681e
cmp dword [0x40b120], 0xffffffff
jne 0x406827
push 4
push 0x40000000
push 0x4291c0
call fcn.004060e2
cmp eax, 0xffffffff
mov dword [0x40b120], eax
je 0x406854
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b120], 0xffffffff
je 0x406854
push esi
mov esi, 0x42a9e0
push 0x40b488
push esi
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp + 8]
push edi
push eax
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, eax
push eax
push esi
push dword [0x40b120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebp
ret 4

Function at 0x406a41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x428dbc], 0
push esi
jne 0x406a78
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a52
mov dword [ecx*4 + 0x428db8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x428db8]
xor eax, esi
inc ecx
dec edx
jne 0x406a8b
pop edi
not eax
pop esi
ret 0xc