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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x408f94
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x408f59
mov dword [ebp - 8], ebx
jmp 0x408f94
add eax, 4
call fcn.00404c1b
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x408f94
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x408f8c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x408f94
push dword [ebp - 0xc]
call fcn.00404c4b
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0xc

Function at 0x408fce
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.00405fd0
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.00405f84
mov ebx, 0x4033c4
test eax, 0x100
je 0x409005
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x4033d8
jmp 0x40900f
mov dword [ebp - 0x1c], 0x4033d8
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
jbe 0x4090bd
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 2
jne 0x409054
call fcn.00405f84
test eax, 0x100
je 0x409046
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x4033d8
jmp 0x409050
mov dword [ebp - 0x1c], 0x4033d8
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 0x409096
mov eax, edi
sub eax, dword [ebp - 8]
cmp eax, 1
jbe 0x409096
call fcn.00405f84
mov ecx, eax
mov eax, 0x101
and ecx, eax
cmp ecx, eax
jne 0x409096
push 0x20
pop eax
mov dword [ebp - 8], edi
jmp 0x4090a6
mov eax, dword [ebp - 0x14]
dec eax
push 0
call fcn.00405fd0
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 0x409028
mov esi, dword [ebp - 0xc]
test byte [ebp + 8], 4
je 0x4090dc
test esi, esi
je 0x4090dc
mov edi, dword [ebp + 0xc]
lea eax, [edi + esi*2 - 2]
cmp word [eax], 0x20
jne 0x4090df
sub eax, 2
dec esi
jne 0x4090ce
jmp 0x4090df
mov edi, dword [ebp + 0xc]
xor eax, eax
test byte [ebp + 8], 2
mov word [edi + esi*2], ax
je 0x4090f8
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 0x4090ff
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.00408fce
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
call fcn.0040a4d4
test al, al
je 0x409158
cmp dword [ebp + 0x14], 0
je 0x40914a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x409158
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409165
inc esi
cmp esi, 0x64
jb 0x40910b
xor al, al
pop esi
leave
ret 0x14
mov al, 1
jmp 0x409160

Function at 0x4091f2
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 0x409290
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 0x409259
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 0x409290
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 0x409232
cmp word [ebp - 0x44], 0x7b
jne 0x409290
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 0x409290
mov byte [ebp + 0x73], 1
jmp 0x40929b
push 0x10
push ebx
push dword [ebp + 0x7c]
call fcn.00404cfe
mov al, byte [ebp + 0x73]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x40948b
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.00409446
cmp eax, 0x1e
jb 0x40959f
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 0x40959f
push 0x23
push 0xffffffffffffff90
lea eax, [ebp - 0x2c]
push eax
call fcn.00404cfe
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 0x40958b
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
jmp 0x409528
add esi, eax
cmp esi, 0x1e
ja 0x40958a
mov cl, byte [edi]
cmp cl, 0xe9
je 0x40950e
cmp cl, 0xe8
jne 0x40951c
cmp eax, 5
jne 0x40951c
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x409534
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.0041d940
cmp eax, 0xffffffff
jne 0x4094f7
jmp 0x40958a
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 0x40958a
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.00412a1d
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push ecx
push 0xffffffffffffffff
call esi
test eax, eax
je 0x40958a
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 0x4095a8
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 0x4095d5
xor eax, eax
jmp 0x4096a6
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 0x4096a3
push ebx
push edi
call fcn.00404c9e
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x40968c
cmp dword [esi + 0xa4], ecx
jbe 0x409680
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jbe 0x409680
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 0x409665
mov esi, dword [eax + 4]
cmp esi, 8
jb 0x409660
add esi, 0xfffffff8
shr esi, 1
mov dword [ebp - 0xc], ecx
je 0x409660
mov ecx, dword [ebp - 0xc]
movzx ecx, word [eax + ecx*2 + 8]
test cx, cx
je 0x409658
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 0x40963b
add eax, dword [eax + 4]
xor ecx, ecx
cmp dword [eax], ecx
jne 0x409629
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.00404c4b
cmp byte [ebp - 1], 0
jne 0x4096a3
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 0x4096ad
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
pop edx
push edx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.00404cfe
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4096ed
xor al, al
jmp 0x409799
push 0x10
push ebx
push esi
call fcn.00404cfe
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.004050a9
mov dword [esi], eax
cmp eax, ebx
je 0x4096e6
jmp 0x409717
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x2f
jne 0x40971c
dec dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
ja 0x409709
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
push edi
lea edi, [eax + ecx + 1]
lea eax, [edi + 1]
call fcn.00404c1b
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x409741
push dword [esi]
call fcn.00404c4b
xor al, al
jmp 0x409798
push dword [ebp - 0xc]
inc eax
push dword [ebp - 0x10]
push eax
call fcn.00404c87
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.00404c87
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 0x409792
dec eax
je 0x40978c
mov byte [esi + 0xe], bl
jmp 0x409796
mov byte [esi + 0xe], 2
jmp 0x409796
mov byte [esi + 0xe], 1
mov al, 1
pop edi
pop ebx
leave
ret 4

Function at 0x409dff
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 0x409e5c
cmp dword [ebp + 0xc], ebx
je 0x409e46
cmp dword [ebp + 0x10], ebx
je 0x409e46
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 0x409e48
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x409e5c
push dword [ebp + 8]
call fcn.00409faa
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x409e64
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 bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x409f05
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409efc
cmp dword [ebp - 4], edi
jne 0x409efc
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x409ebb
mov dword [esi], edi
mov al, 1
jmp 0x409f07
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x409efc
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 0x409eee
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x409eb7
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 0x409faa
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 0x409fcb
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 0x40a048
xor esi, esi
push dword [ebp + 8]
call fcn.00405f84
push eax
push 0x403460
push 0x403468
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0040593e
add esp, 0x10
cmp eax, 0xffffffff
je 0x40a048
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov eax, edi
call fcn.0040a4d4
test al, al
je 0x40a042
push 0
push 0
push dword [ebp + 0xc]
call fcn.00409dff
test al, al
jne 0x40a050
inc esi
cmp esi, 0x64
jb 0x409ff2
xor al, al
pop edi
pop esi
leave
ret 8
mov al, 1
jmp 0x40a04a

Function at 0x40a054
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 0x40a0cd
xor esi, esi
call fcn.00405f84
push eax
push 0x403460
push 0x40347c
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.0040593e
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a0cd
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0040a4d4
test al, al
je 0x40a0c7
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a0d5
inc esi
cmp esi, 0x64
jb 0x40a07b
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x40a0cf
Function at 0x40a256
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 0x40a26f
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40a281
cmp eax, 0x2f
je 0x40a281
test ax, ax
jne 0x40a2ad
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a2a1
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40a2a3
test al, 0x10
je 0x40a2b4
test di, di
je 0x40a2b2
mov word [esi], di
add esi, 2
jmp 0x40a26f
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x40a2bd
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, 0x40348c
call fcn.0040a4d4
test al, al
je 0x40a35a
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 0x40a35a
lea eax, [esp + 0x23c]
call fcn.0040a0d9
test al, al
jne 0x40a340
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.0040a4d4
test al, al
je 0x40a340
test byte [esp + 0x210], 0x10
je 0x40a336
lea ecx, [esp + 8]
call fcn.0040a2bd
jmp 0x40a340
lea eax, [esp + 8]
push eax
call fcn.00409faa
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a2fb
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 0x40a378
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, 0x40348c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.0040a4d4
test al, al
je 0x40a4cb
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 0x40a4cb
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x40a3ef
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a4c1
lea eax, [esp + 0x44]
call fcn.0040a0d9
test al, al
jne 0x40a4aa
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x40a40e
test bl, 2
jne 0x40a417
cmp eax, esi
jne 0x40a457
test bl, 4
je 0x40a457
cmp dword [ebp + 8], esi
jbe 0x40a457
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 0x40a43a
inc esi
cmp esi, dword [ebp + 8]
jb 0x40a41c
jmp 0x40a457
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x40a4c1
cmp dword [ebp + 0x20], 0
je 0x40a457
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x40a4aa
test bl, 1
je 0x40a4aa
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a4d4
test al, al
je 0x40a4aa
cmp dword [ebp + 0x1c], 0
je 0x40a487
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.0040a378
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a3d3
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 0x40a83e
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 0x40a8e7
xor eax, eax
call fcn.0040a70b
mov esi, eax
test esi, esi
je 0x40a8e7
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x40a8d7
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x40a887
and dword [esi], 0
jmp 0x40a8d7
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp + 0xc], eax
mov eax, esi
jmp 0x40a8b1
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40a8b1
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp + 0xc]
jne 0x40a8b1
test dword [eax + 4], 0xe0000
jne 0x40a8bf
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.0040a70b
test eax, eax
jne 0x40a895
jmp 0x40a8d7
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x40a8d2
and dword [eax], 0
jmp 0x40a8d7
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a70b
mov esi, eax
test esi, esi
jne 0x40a873
call fcn.0040a530
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x40a9d5
xor eax, eax
jmp 0x40a958
cmp dword [edi], 0
jbe 0x40a956
mov ebx, dword [edi + 8]
mov ecx, dword [esi + 0x14]
add ebx, 0x10
add ecx, ebx
lea esi, [ebp + 0xc]
call fcn.00404bd6
mov esi, dword [ebp + 0xc]
test al, al
je 0x40a9cf
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 0x40a950
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.00404c87
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040a70b
mov edi, eax
test edi, edi
jne 0x40a8fd
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00405ef0
test al, al
je 0x40a9cf
push edi
push 0x14
push esi
call fcn.00406228
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x40a9be
xor eax, eax
inc eax
cmp edi, eax
jbe 0x40a9a3
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40a997
push 0x102
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.00404c87
push edi
push esi
call fcn.004060c7
push dword [ebp - 4]
call fcn.00404c4b
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x40a9d7
push esi
call fcn.00404c4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a9de
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 0x40aa3d
cmp dword [ebp + 8], 0
je 0x40aa2a
push 0x102
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00404c87
push edi
push esi
call fcn.004060c7
test edi, edi
je 0x40aa2a
lea eax, [edi - 1]
test eax, eax
je 0x40aa2a
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x40aa20
cmp dword [esi + 0x14], edi
ja 0x40aa3d
call fcn.0040a501
test al, al
je 0x40aa3d
mov eax, dword [esi + 0x14]
jmp 0x40aa3f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40aab8
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 0x40abdf
push eax
call fcn.00409f83
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x40ab24
or eax, edx
je 0x40abc9
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 0x40ab36
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x40abdf
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40abc9
cmp dword [ebp + 8], 5
jne 0x40aba3
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 0x40aba1
jb 0x40ab6b
cmp ebx, dword [ebp - 0x20]
ja 0x40aba1
cmp eax, 0xa00000
ja 0x40aba1
push 1
push ecx
push eax
push dword [esi]
call fcn.00409f33
test al, al
je 0x40ab24
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 0x40ab34
jmp 0x40ab24
xor edi, edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00409f33
test al, al
je 0x40ab24
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40ab24
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.00409f33
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4