joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cbe9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx ecx, cl
push edi
movzx eax, al
push ecx
call fcn.00409a8a
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.00409a3e
mov ebx, 0x40441c
test eax, 0x100
je 0x40cc20
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x404430
jmp 0x40cc2a
mov dword [ebp - 0x1c], 0x404430
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
jbe 0x40ccd8
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x40cc6f
call fcn.00409a3e
test eax, 0x100
je 0x40cc61
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x404430
jmp 0x40cc6b
mov dword [ebp - 0x1c], 0x404430
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + eax*4 - 0x1c]
xor eax, eax
cmp esi, ebx
setne al
dec eax
and eax, 0xd
add eax, 6
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x40ccb1
mov eax, edi
sub eax, dword [ebp - 8]
cmp eax, 1
jbe 0x40ccb1
call fcn.00409a3e
mov ecx, eax
mov eax, 0x101
and ecx, eax
cmp ecx, eax
jne 0x40ccb1
push 0x20
pop eax
mov dword [ebp - 8], edi
jmp 0x40ccc1
mov eax, dword [ebp - 0x14]
dec eax
push 0
call fcn.00409a8a
movsx ax, byte [eax + esi]
mov ecx, dword [ebp + 0xc]
mov word [ecx + edi*2], ax
inc edi
inc dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x40cc43
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x40ccf7
test esi, esi
je 0x40ccf7
mov edi, dword [ebp + 0xc]
lea eax, [edi + esi*2 - 2]
cmp word [eax], 0x20
jne 0x40ccfa
sub eax, 2
dec esi
jne 0x40cce9
jmp 0x40ccfa
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [ebp + 8], 2
mov word [edi + esi*2], ax
je 0x40cd13
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov word [edi], ax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40cd1a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov cl, 4
call fcn.0040cbe9
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
call fcn.0040e174
test al, al
je 0x40cd73
cmp dword [ebp + 0x14], 0
je 0x40cd65
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x40cd73
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cd80
inc esi
cmp esi, 0x64
jb 0x40cd26
xor al, al
pop esi
leave
ret 0x14
mov al, 1
jmp 0x40cd7b
Function at 0x40ce11
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2d4
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push eax
push ebx
push ebx
push 0x24
push ebx
mov byte [ebp + 0x73], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40ceaf
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x260]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
jmp 0x40ce78
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40ceaf
lea eax, [ebp - 0x260]
push eax
call esi
push 0x64
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x40ce51
cmp word [ebp - 0x44], 0x7b
jne 0x40ceaf
push dword [ebp + 0x7c]
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x40ceaf
mov byte [ebp + 0x73], 1
jmp 0x40ceba
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.004087d0
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x40d0b1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.0040d06c
cmp eax, 0x1e
jb 0x40d1c5
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40d1c5
push 0x23
push 0xffffffffffffff90
lea eax, [ebp - 0x2c]
push eax
call fcn.004087d0
push esi
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40d1b1
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
jmp 0x40d14e
add esi, eax
cmp esi, 0x1e
ja 0x40d1b0
mov cl, byte [edi]
cmp cl, 0xe9
je 0x40d134
cmp cl, 0xe8
jne 0x40d142
cmp eax, 5
jne 0x40d142
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x40d15a
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.0041e550
cmp eax, 0xffffffff
jne 0x40d11d
jmp 0x40d1b0
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
lea edi, [esi + 5]
sub eax, 5
mov dword [ebp + esi - 0x2b], eax
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov byte [ebp + esi - 0x2c], 0xe9
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
call esi
test eax, eax
je 0x40d1b0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub ebx, ecx
sub ebx, 5
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], ebx
call fcn.0040f13b
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0xffffffffffffffff
call esi
test eax, eax
je 0x40d1b0
mov dword [ebp - 8], edi
pop edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x1e
push dword [ebp + 8]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 8
Function at 0x40d1ce
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x50]
push ebx
push edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x40d1fb
xor eax, eax
jmp 0x40d2cc
push 0x40
push 0x3000
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
test eax, eax
je 0x40d2c9
push ebx
push edi
call fcn.00408770
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x40d2b2
cmp dword [esi + 0xa4], ecx
jbe 0x40d2a6
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jbe 0x40d2a6
mov esi, dword [esi + 0x34]
mov edx, dword [ebp - 8]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x10], edi
add eax, ebx
jmp 0x40d28b
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x40d286
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x40d286
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x40d27e
and ecx, 0xfff
add ecx, dword [eax]
mov edi, edx
sub edi, dword [ebp - 0x10]
add dword [ecx + ebx], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x40d261
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x40d24f
push ecx
push dword [ebp - 0x14]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne byte [ebp - 1]
push ebx
call fcn.0040871d
cmp byte [ebp - 1], 0
jne 0x40d2c9
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
and dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d2d3
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test eax, eax
je 0x40d360
cmp esi, 0x138
jbe 0x40d360
mov ecx, 0x5a4d
lea edx, [eax + esi]
cmp word [eax], cx
jne 0x40d360
mov ecx, dword [eax + 0x3c]
cmp ecx, 2
jb 0x40d360
add esi, 0xffffff08
cmp ecx, esi
jae 0x40d360
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40d360
movzx ecx, word [eax + 0x14]
sub edx, eax
sub edx, 0x18
cmp ecx, edx
jae 0x40d360
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x40d360
add ecx, 0xffffffbf
cmp word [eax + 0x18], cx
jne 0x40d360
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
lea esi, [ecx - 0x200]
mov edx, 0xfe00
cmp esi, edx
ja 0x40d360
lea esi, [eax - 0x200]
cmp esi, edx
ja 0x40d360
cmp eax, ecx
jb 0x40d360
test cl, 1
jne 0x40d360
test al, 1
jne 0x40d360
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40d364
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0x3c
pop edx
push edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.004087d0
xor eax, eax
inc eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
je 0x40d3c6
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40d3c6
push 0x10
push ebx
push esi
call fcn.004087d0
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00408b78
mov dword [esi], eax
cmp eax, ebx
jne 0x40d3dc
xor al, al
pop edi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x40d3e1
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
ja 0x40d3ce
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
call fcn.004086ed
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x40d403
push dword [esi]
call fcn.0040871d
jmp 0x40d3c6
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.00408759
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [eax + ecx + 1]
push eax
call fcn.00408759
mov eax, dword [esi + 4]
mov byte [eax], 0x2f
mov byte [eax + edi], bl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x30]
sub eax, 3
je 0x40d454
dec eax
je 0x40d44e
mov byte [esi + 0xe], bl
jmp 0x40d458
mov byte [esi + 0xe], 2
jmp 0x40d458
mov byte [esi + 0xe], 1
mov al, 1
jmp 0x40d3c8

Function at 0x40da9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40daf7
cmp dword [ebp + 0xc], ebx
je 0x40dae1
cmp dword [ebp + 0x10], ebx
je 0x40dae1
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dae3
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x40daf7
push dword [ebp + 8]
call fcn.0040dc45
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x40daff
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
and al, 2
movzx eax, al
xor edi, edi
push edi
push edi
neg eax
push 3
sbb eax, eax
push edi
and eax, 6
or eax, 1
push eax
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40dba0
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40db97
cmp dword [ebp - 4], edi
jne 0x40db97
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x40db56
mov dword [esi], edi
mov al, 1
jmp 0x40dba2
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x40db97
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40db89
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x40db52
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4

Function at 0x40dc45
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x40dc66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x40dce3
xor esi, esi
push dword [ebp + 8]
call fcn.00409a3e
push eax
push 0x4044b8
push 0x4044c0
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0040942b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40dce3
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov eax, edi
call fcn.0040e174
test al, al
je 0x40dcdd
push 0
push 0
push dword [ebp + 0xc]
call fcn.0040da9a
test al, al
jne 0x40dceb
inc esi
cmp esi, 0x64
jb 0x40dc8d
xor al, al
pop edi
pop esi
leave
ret 8
mov al, 1
jmp 0x40dce5

Function at 0x40dcef
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x40dd68
xor esi, esi
call fcn.00409a3e
push eax
push 0x4044b8
push 0x4044d4
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0040942b
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dd68
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0040e174
test al, al
je 0x40dd62
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd70
inc esi
cmp esi, 0x64
jb 0x40dd16
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x40dd6a
Function at 0x40def6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x40df0f
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40df21
cmp eax, 0x2f
je 0x40df21
test ax, ax
jne 0x40df4d
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40df41
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40df43
test al, 0x10
je 0x40df54
test di, di
je 0x40df52
mov word [esi], di
add esi, 2
jmp 0x40df0f
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x40df5d
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
push edi
mov edi, ecx
push edi
lea eax, [esp + 0xc]
push eax
mov eax, 0x4044e4
call fcn.0040e174
test al, al
je 0x40dffa
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dffa
lea eax, [esp + 0x23c]
call fcn.0040dd74
test al, al
jne 0x40dfe0
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.0040e174
test al, al
je 0x40dfe0
test byte [esp + 0x210], 0x10
je 0x40dfd6
lea ecx, [esp + 8]
call fcn.0040df5d
jmp 0x40dfe0
lea eax, [esp + 8]
push eax
call fcn.0040dc45
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40df9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e018
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x26c]
push eax
mov eax, 0x4044e4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.0040e174
test al, al
je 0x40e16b
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40e16b
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x40e08f
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40e161
lea eax, [esp + 0x44]
call fcn.0040dd74
test al, al
jne 0x40e14a
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x40e0ae
test bl, 2
jne 0x40e0b7
cmp eax, esi
jne 0x40e0f7
test bl, 4
je 0x40e0f7
cmp dword [ebp + 8], esi
jbe 0x40e0f7
mov eax, dword [esp + 0x14]
push dword [eax + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x40e0da
inc esi
cmp esi, dword [ebp + 8]
jb 0x40e0bc
jmp 0x40e0f7
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x40e161
cmp dword [ebp + 0x20], 0
je 0x40e0f7
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x40e14a
test bl, 1
je 0x40e14a
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.0040e174
test al, al
je 0x40e14a
cmp dword [ebp + 0x1c], 0
je 0x40e127
push dword [ebp + 0x1c]
call edi
push dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
push dword [ebp + 0x1c]
lea ecx, [esp + 0x270]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0040e018
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e073
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40e491
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
je 0x40e53a
xor eax, eax
call fcn.0040e3ab
mov esi, eax
test esi, esi
je 0x40e53a
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x40e52a
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x40e4da
and dword [esi], 0
jmp 0x40e52a
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp + 0xc], eax
mov eax, esi
jmp 0x40e504
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40e504
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp + 0xc]
jne 0x40e504
test dword [eax + 4], 0xe0000
jne 0x40e512
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.0040e3ab
test eax, eax
jne 0x40e4e8
jmp 0x40e52a
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x40e525
and dword [eax], 0
jmp 0x40e52a
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040e3ab
mov esi, eax
test esi, esi
jne 0x40e4c6
call fcn.0040e1d0
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x40e62b
xor eax, eax
jmp 0x40e5ab
cmp dword [edi], 0
jbe 0x40e5a9
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0x14]
add ebx, 0x10
add eax, ebx
lea esi, [ebp + 0xc]
call fcn.00408698
mov esi, dword [ebp + 0xc]
test al, al
je 0x40e625
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
add eax, esi
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40e5a3
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.00408759
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040e3ab
mov edi, eax
test edi, edi
jne 0x40e550
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.004099aa
test al, al
je 0x40e625
push edi
push 0x14
push esi
call fcn.00409ce2
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x40e614
xor byte [esi], 0x48
xor eax, eax
inc eax
cmp edi, eax
jbe 0x40e5f9
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40e5ed
push 0x102
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.00408759
push edi
push esi
call fcn.00409b81
push dword [ebp - 4]
call fcn.0040871d
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x40e62d
push esi
call fcn.0040871d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e634
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, eax
lea eax, [edi - 0x30]
cmp eax, 0x9fffd0
ja 0x40e696
cmp dword [ebp + 8], 0
je 0x40e683
push 0x102
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00408759
push edi
push esi
call fcn.00409b81
test edi, edi
je 0x40e683
lea eax, [edi - 1]
test eax, eax
je 0x40e680
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x40e676
xor byte [esi], 0x48
cmp dword [esi + 0x14], edi
ja 0x40e696
call fcn.0040e1a1
test al, al
je 0x40e696
mov eax, dword [esi + 0x14]
jmp 0x40e698
xor eax, eax
pop esi
leave
ret 4

Function at 0x40e711
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40e838
push eax
call fcn.0040dc1e
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x40e77d
or eax, edx
je 0x40e822
push edi
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e78f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x40e838
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40e822
cmp dword [ebp + 8], 5
jne 0x40e7fc
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [ebp - 0x18]
mov edi, ecx
adc edi, dword [ebp - 0x14]
add ebx, 5
adc edi, ecx
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0x1c]
ja 0x40e7fa
jb 0x40e7c4
cmp ebx, dword [ebp - 0x20]
ja 0x40e7fa
cmp eax, 0xa00000
ja 0x40e7fa
push 1
push ecx
push eax
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40e77d
push 0
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e78d
jmp 0x40e77d
xor edi, edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0040dbce
test al, al
je 0x40e77d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40e77d
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [ebp - 1], 1
call fcn.0040dbce
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4