joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a84
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00401031
lea eax, [ebp - 0x208]
push eax
call fcn.00401371
add esp, 0xc
test eax, eax
je 0x401b5e
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004057f0
lea eax, [ebp - 0x104]
push str.arswp3.exe
push eax
call fcn.00405800
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x401b4f
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004057f0
lea eax, [ebp - 0x104]
push str.arswp64.exe
push eax
call fcn.00405800
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x401b5e
lea eax, [ebp - 0x104]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x401b87
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
and dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401c93
lea eax, [ebp - 0x238]
push ebx
push eax
mov dword [ebp - 0x238], 0x128
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401c8d
push esi
push edi
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004057f0
mov eax, dword [ebp - 0xc]
pop ecx
cmp eax, dword [ebp - 0x230]
pop ecx
je 0x401c74
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea eax, [ebp - 0x110]
push str.arswp.exe
push eax
call esi
test eax, eax
jne 0x401c4f
lea eax, [ebp - 0x110]
push str.arswp3.exe
push eax
call esi
test eax, eax
jne 0x401c4f
lea eax, [ebp - 0x110]
push str.arswp64.exe
push eax
call esi
test eax, eax
je 0x401c74
push dword [ebp - 0x230]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401c74
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov dword [ebp - 8], eax
call ebx
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401bdc
pop edi
pop esi
push dword [ebp - 4]
call ebx
pop ebx
mov eax, dword [ebp - 8]
leave
ret
Function at 0x4034e1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4034ef
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x4035d0
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x40d514]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d514]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d514]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d514]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d514]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x40d514]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x40d514]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x40d514]
xor eax, esi
inc edx
dec edi
jne 0x40350c
pop ebx
cmp dword [ebp + 0x10], 0
je 0x4035f1
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40d514]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x4035d6
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x4035f7
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d514]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x40d514]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x403e4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x403e7e
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403e79
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x403ea6
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x403e8f
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00405e00
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret
Function at 0x404c3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x404ce4
cmp dword [esi + 4], 0xffffffff
jne 0x404ce4
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.004058e0
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x404c8c
cmp al, 0x2f
je 0x404c8c
push 0x40f17c
push edi
call fcn.00405800
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x404cae
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x404cae
mov eax, 0x2000000
jmp 0x404ce9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403c6e
add esp, 0x10
test eax, eax
jne 0x404ccc
mov eax, dword [ebp - 4]
jmp 0x404ce9
push eax
call fcn.004040a0
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
jmp 0x404ce9
mov eax, 0x1000000
pop esi
leave
ret 0xc

Function at 0x405124
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
je 0x40514b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40514b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x4051e6
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x405165
cmp al, 0x5c
jne 0x405167
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40515d
cmp esi, edi
je 0x40519b
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.00405e00
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.00405124
add esp, 0x14
and byte [ebp - 0x104], 0
pop esi
test ebx, ebx
je 0x4051b6
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004057f0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00405800
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4051e6
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
ret
Function at 0x6501b4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x650345
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.004f8688
test al, al
je 0x65032a
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x220], 0
jne 0x65032a
mov eax, dword [ebp - 0xc]
test byte [eax + 0x1c], 0x10
jne 0x65032a
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x21a], 0
je 0x65032a
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x21c], 0
je 0x65032a
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18c], 0
je 0x65032a
lea ecx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x21c]
mov edx, 0x65035c
call fcn.0040c03c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0064fcfc
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x221], 0
je 0x6502cd
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x224]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x21c]
call fcn.0040c03c
xor eax, eax
push ebp
push 0x6502a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405e2c
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6502ae
mov eax, dword [ebp - 8]
call fcn.00405e2c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x21c]
call fcn.00405e2c
push eax
call sub.KERNEL32.DLL_MoveFileA
jmp 0x650303
xor eax, eax
push ebp
push 0x6502f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x21c]
call fcn.00405e2c
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650303
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x21c]
call fcn.00405e2c
push eax
mov eax, dword [ebp - 4]
call fcn.00405e2c
push eax
call sub.KERNEL32.DLL_MoveFileA
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x220], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65034c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004059a4
ret
Function at 0x653138
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x6531f5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x653173
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
mov esi, dword [ebp - 4]
mov edx, ebx
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
mov byte [ebx + 0x1d4], 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x51]
mov byte [ebx + 0x25c], al
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x50]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1b0]
mov byte [ebx + 0x1c5], 0
mov cl, 1
mov edx, 0x64
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x2b8]
mov eax, dword [ebx + 0x17c]
call fcn.006460dc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x294]
mov eax, ebx
call fcn.004fa020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6531fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
je 0x6531f4
call fcn.00404960
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
ret

Function at 0x653348
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x653416
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x54]
mov byte [ebx + 0x21a], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x53]
mov byte [ebx + 0x1c0], al
mov byte [ebx + 0x1b0], 0
mov byte [ebx + 0x1b1], 0
mov eax, dword [ebx + 0x17c]
call fcn.006471e8
mov eax, dword [ebx + 0x17c]
call fcn.00647150
mov eax, dword [ebx + 0x17c]
call fcn.006460dc
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, ebx
call fcn.004fa020
xor ecx, ecx
mov edx, 0x64
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x2b8]
mov byte [ebx + 0x1c5], 0
cmp byte [ebx + 0x1c4], 0
je 0x6533e3
mov eax, ebx
call fcn.0064a184
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65341d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
je 0x653415
call fcn.00404960
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
ret
Function at 0x65d96c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x6c99c8
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x65d98e
shr eax, 1
xor eax, 0xedb88320
jmp 0x65d990
shr eax, 1
dec edx
jne 0x65d97c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x65d975
mov byte [0x6c9dc8], 1
pop esi
pop ebx
ret

Function at 0x65d9ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6c9dc8], 0
jne 0x65d9c3
call fcn.0065d96c
mov eax, edi
dec eax
test eax, eax
jl 0x65d9eb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6c99c8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x65d9cd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x660328
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x6603c2.0
jmp dword [ecx*4 + 0x66035b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x66038d
sub dl, 8
je 0x66039c
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x65ffd4
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x66002c
jmp case.0x6603c2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x6603c2.0
movzx ecx, byte [ecx + 0x6603c9]
jmp dword [ecx*4 + 0x6603da]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6600d8
jmp case.0x6603c2.0
cmp dl, 3
jne 0x660407
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x66012c
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6600e8
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x660170
jmp case.0x6603c2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x660432
sub dl, 8
je 0x66043e
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x66019c
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x660208
jmp case.0x6603c2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x66045d
sub dl, 8
je 0x660469
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6602c4
jmp case.0x6603c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6602ec
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x66050d
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0065f4e0
test eax, eax
je 0x66050d
mov eax, ebx
call fcn.00660518
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x6604a6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x660518
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x660549
dec al
je 0x660584
dec al
je 0x6605c9
dec al
je 0x660632
jmp 0x6606bc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x6606bc
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x660559
jmp 0x6606bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6606bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x660594
jmp 0x6606bc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6606bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x6605f8
xor ebp, ebp
jmp 0x660608
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x660611
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x6605d9
jmp 0x6606bc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6606bc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x66068b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0065d9f4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x660646
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x665a04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x665a75
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x6baffc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x665a5f
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.006659f4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x664380]
call fcn.006668fc
mov dword [0x6bb064], eax
mov eax, dword [ebp - 4]
call fcn.006658a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665a7c
lea eax, [ebp - 8]
call fcn.00407c7c
ret

Function at 0x665b14
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x665b27
or esi, 2
test dl, dl
je 0x665b30
or esi, 0
jmp 0x665b33
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x666764
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405e1c
xor eax, eax
push ebp
push 0x6668df
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x664164]
call fcn.0041e4ec
test eax, eax
jl 0x6667ce
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.00665af8
and eax, 0x7f
mov eax, dword [eax*4 + 0x6baffc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x666851
mov edx, dword [ebx]
mov eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6667e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x666851
mov eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6667f6
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x66680b
mov eax, ebx
mov edx, 0x6668f8
call fcn.00405c68
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x66681c
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
call fcn.00406d48
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x1c]
call fcn.006659f4
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x66689c
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x665744
call fcn.00408178
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
xor ecx, ecx
pop eax
call fcn.0040d1c0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004059d4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x409dcc]
call fcn.00410cc8
call fcn.004052d8
mov eax, dword [ebp - 0xc]
call fcn.006666dc
mov ebx, eax
test edi, edi
je 0x6668b1
mov eax, edi
call fcn.00404960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6668e6
lea eax, [ebp - 0x20]
call fcn.00405980
lea eax, [ebp - 0x1c]
call fcn.00407c7c
lea eax, [ebp - 8]
call fcn.00405980
lea eax, [ebp - 4]
call fcn.00405980
ret