joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404996
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SOFTWAREPoliciesAdobeAcrobat_Reader11.0FeatureLockDowncDefaultFindAttachmentPerms
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x80004005
call esi
test eax, eax
je 0x4049e6
lea eax, [ebp - 0xc]
push eax
push ebx
xor ebx, ebx
push ebx
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat11.0FeatureLockDowncDefaultFindAttachmentPerms
push edi
call esi
test eax, eax
jne 0x404a6b
jmp 0x4049e8
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
mov edi, str.tSearchAttachmentsWhiteList
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xea
je 0x404a0e
cmp eax, ebx
jne 0x404a62
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.0040540c
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x404a62
push dword [ebp - 4]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push ebx
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x404a59
push dword [ebp - 8]
call dword [sym.imp.MSVCR100.dll__mbslwr]
pop ecx
push dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.004048bd
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404b11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareAdobeAdobe_Acrobat11.0Security
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
inc edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b7b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x407438
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404b72
cmp dword [ebp - 8], esi
jne 0x404b72
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x404dec
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x40668a
call fcn.004058c6
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x40a1cc], ebx
jne 0x404e0c
mov al, 1
jmp 0x404ede
cmp esi, ebx
je 0x404edc
cmp word [esi], bx
je 0x404edc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404edc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404edc
lea eax, [ebp - 0x2c]
push esi
push eax
mov byte [ebp - 0x2d], bl
call fcn.00404d48
pop ecx
pop ecx
mov esi, dword [0x40a1cc]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x404ec8
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c61
pop ecx
test al, al
jne 0x404ec8
cmp dword [ebp - 0x1c], esi
jbe 0x404ec8
cmp dword [0x40a1d0], 8
mov ecx, dword [0x40a1bc]
jae 0x404e7f
mov ecx, 0x40a1bc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404e8b
lea eax, [ebp - 0x2c]
push esi
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404ec8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x404ea7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x404ec8
push str..lnk
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x404ec8
mov byte [ebp - 0x2d], 1
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401317
mov al, byte [ebp - 0x2d]
jmp 0x404ede
xor al, al
call fcn.00405910
ret
Function at 0x404ee4
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x4066ba
call fcn.004058c6
and dword [ebp - 0x23c], 0
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 0x235], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x405086
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
mov ebx, str.__alloweddir
push ebx
mov byte [ebp - 0x235], 1
call edi
mov dword [ebp - 0x244], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x23c], eax
jle 0x40507a
mov ecx, dword [ebp - 0x248]
lea esi, [ecx + eax*4]
mov eax, dword [esi]
test eax, eax
je 0x405061
push dword [ebp - 0x244]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405061
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 0x235], al
mov eax, dword [esi]
lea esi, [eax + ecx*2]
cmp word [esi], 0
je 0x405061
push esi
call edi
pop ecx
cmp eax, 0x104
jae 0x405061
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405061
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x405061
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00404d48
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x224], esi
je 0x40504f
mov ecx, 0x104
cmp dword [ebp - 0x224], ecx
jae 0x40504f
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x405005
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x40504f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40504f
lea eax, [ebp - 0x218]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x40a1bc
call fcn.0040335a
mov byte [ebp - 0x235], 1
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x234]
call fcn.00401317
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, dword [ebp - 0x23c]
jl 0x404f53
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0x235]
call fcn.00405910
ret
Function at 0x405092
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00404b11
test eax, eax
je 0x4050fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4050cc
push str.SetProcessDEPPolicy
push eax
call esi
test eax, eax
je 0x4050cc
push 1
call eax
test eax, eax
jne 0x4050fd
push str.ntdll.dll
call edi
test eax, eax
je 0x4050fd
push str.NtSetInformationProcess
push eax
call esi
mov esi, eax
test esi, esi
je 0x4050fd
push 4
lea eax, [ebp - 4]
push eax
push 0x22
mov dword [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop edi
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00404ee4
test al, al
jne 0x405124
xor eax, eax
inc eax
jmp 0x405133
push esi
call fcn.00404b81
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40584e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a224]
jne 0x405858
repz ret
jmp fcn.00405df1
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cf5
cmp eax, ebx
je 0x401533
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
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 [0x470690], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x403098
push dword [0x4321cc]
call fcn.00402f23
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402faf
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402ef1
test eax, eax
je 0x4030aa
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x403006
cmp dword [0x470680], ebx
jne 0x403006
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e4f
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.00406900
test eax, eax
jl 0x4030af
mov esi, dword [0x426158]
sub esi, ebp
je 0x403064
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b4
cmp esi, dword [esp + 0x10]
jne 0x4030b4
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fd5
jmp 0x403070
cmp dword [0x426154], ebx
jne 0x4030af
cmp edi, ebx
je 0x4030af
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f99
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030a2
push 0xfffffffffffffffd
pop eax
jmp 0x4030a2
push 0xfffffffffffffffe
jmp 0x4030b1
Function at 0x4030b8
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
push edi
xor edi, edi
cmp eax, edi
jl 0x4030e4
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f3a
cmp eax, edi
jl 0x4031dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp dword [ebp - 4], esi
jne 0x4031d9
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f3a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031dc
cmp dword [ebp + 0x10], edi
jne 0x4031a8
cmp dword [ebp + 8], edi
jle 0x4031d4
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403158
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp edi, dword [ebp - 4]
jne 0x4031d9
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp dword [ebp + 0x14], edi
jne 0x4031a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x40314b
jmp 0x4031d4
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031dc
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405822
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a31
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405a34
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
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 0x405a63
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 [0x4088ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ab3
test edi, edi
jne 0x405a70
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405aad

Function at 0x405ab7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b30
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b19
cmp dword [ebp + 0x14], 1
je 0x405b1e
cmp dword [ebp + 0x14], 2
je 0x405b1e
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406178
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562b0
push esi
call fcn.00405bee
push esi
call fcn.0040593d
mov edi, eax
test edi, edi
jne 0x406199
xor eax, eax
jmp 0x4061f7
push edi
call fcn.00405c1d
test byte [0x470608], 0x80
je 0x4061b6
movzx eax, word [edi]
test ax, ax
je 0x406195
cmp ax, 0x5c
je 0x406195
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4061d8
push esi
call fcn.00405cce
test eax, eax
je 0x4061d2
test byte [eax], 0x10
je 0x4061fc
push esi
call fcn.0040614b
push esi
call ebx
cmp eax, edi
jg 0x4061c3
push esi
call fcn.0040611c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4061f6
Function at 0x406491
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089d4
mov ebx, 0x45a2b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4064df
push 1
push ebp
push edi
call fcn.00405a34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406656
cmp eax, esi
jg 0x406656
push esi
mov edi, 0x45f910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406656
cmp eax, esi
jg 0x406656
push ebp
push ebp
push esi
push 0x45aab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406656
push ebp
push ebp
push esi
mov esi, 0x45b108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406656
push esi
push 0x45aab8
push str._s_s_r_n
push 0x45b508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.00406200
push 4
push 0xc0000000
push edi
call fcn.00405a34
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406656
push ebp
push eax
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
cmp esi, ebp
je 0x40664c
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40664c
cmp edi, dword [esp + 0x10]
jne 0x40664c
push str._Rename__r_n
push esi
call fcn.0040599a
cmp eax, ebp
jne 0x4065e3
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406614
push 0x4089c8
add eax, 0xa
push eax
call fcn.0040599a
mov ebp, eax
test ebp, ebp
je 0x406612
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406605
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4065ff
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406616
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b508
add eax, esi
push eax
call fcn.004059f0
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40668f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406178
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4066c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x40686a
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4066df
test eax, eax
je 0x406815
test cl, 2
je 0x406815
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405bee
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406702
push str..
push esi
call edi
jmp 0x406708
push ebx
call fcn.0040614b
cmp word [ebx], 0
jne 0x406718
cmp word [0x45b908], 0x5c
jne 0x406720
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406804
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004058e9
xor edi, edi
cmp word [eax], di
je 0x406767
cmp word [ebp - 0x28], di
je 0x406767
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406782
movzx eax, word [esi + 2]
cmp ax, di
je 0x4067e1
cmp ax, 0x2e
jne 0x406782
cmp word [esi + 4], di
je 0x4067e1
push esi
push dword [ebp - 4]
call fcn.00405bee
test byte [ebp - 0x25c], 0x10
je 0x4067a9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4067e1
push dword [ebp + 0xc]
push ebx
call fcn.0040668f
jmp 0x4067e1
push ebx
call fcn.00405a14
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4067d9
test byte [ebp + 0xc], 4
je 0x4067d1
push ebx
push 0xfffffffffffffff1
call fcn.00404ba9
push edi
push ebx
call fcn.0040665c
jmp 0x4067e1
inc dword [0x470668]
jmp 0x4067e1
push ebx
push 0xfffffffffffffff2
call fcn.00404ba9
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406747
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406806
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406815
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406869
cmp dword [ebp - 0xc], esi
je 0x406859
push ebx
call fcn.00405cce
test eax, eax
je 0x406869
push ebx
call fcn.0040611c
push ebx
call fcn.00405a14
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406861
test byte [ebp + 0xc], 4
je 0x406859
push ebx
push 0xfffffffffffffff1
call fcn.00404ba9
push esi
push ebx
call fcn.0040665c
jmp 0x406869
inc dword [0x470668]
jmp 0x406869
push ebx
push 0xffffffffffffffe5
call fcn.00404ba9
pop esi
pop ebx
leave
ret 8
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc