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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486748]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edb5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec7c
jmp 0x41edb5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x486748]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486748]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486748]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486748]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x486748]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x5d8e64
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d8b64
add ebx, esi
call fcn.005d8e95
inc esi
xor dword [ecx], edx
sub ebx, 0x790ce30d
or ebx, ebx
add ecx, 2
and ebx, esi
cmp ecx, eax
jl fcn.005d8e64
add ebx, ebx
sub esi, esi
ret
Function at 0x4012e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00413638
mov esi, eax
cmp esi, 0x100000
pop ecx
jbe 0x401306
xor eax, eax
jmp 0x4013c7
push edi
lea edi, [esi + 0x80]
push edi
call fcn.00410adc
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
mov dword [0x44f76c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x401374
push dword [0x44f76c]
mov byte [0x44f768], bl
mov byte [0x44f769], bl
mov dword [0x44f774], ebx
call fcn.00410b23
push dword [0x44f770]
mov dword [0x44f76c], ebx
call fcn.00410b23
pop ecx
pop ecx
mov dword [0x44f770], ebx
xor eax, eax
jmp 0x4013c6
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push dword [0x44f76c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [0x44f774], esi
call fcn.00410adc
push esi
push dword [0x44f76c]
mov dword [0x44f770], eax
push eax
call fcn.004216d0
push esi
push dword [0x44f76c]
push dword [0x44f770]
call fcn.004216d0
xor eax, eax
add esp, 0x1c
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013cb
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
xor ebx, ebx
cmp byte [0x44f780], bl
push esi
push edi
je 0x4013ec
xor ebp, ebp
inc ebp
mov byte [0x44f780], bl
mov byte [0x44f781], 1
jmp 0x4013fc
push 2
pop ebp
mov byte [0x44f781], bl
mov byte [0x44f780], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call esi
cmp ebp, 1
jne 0x401416
cmp dword [0x44f778], ebx
ja 0x401409
cmp ebp, 2
jne 0x401423
cmp dword [0x44f77c], ebx
ja 0x401409
push 0x3e8
call esi
push dword [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00413638
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [esp + 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40149b
push dword [0x44f784]
mov byte [0x44f780], bl
mov dword [0x44f78c], ebx
mov byte [0x44f781], bl
mov dword [0x44f790], ebx
call fcn.00410b23
push dword [0x44f788]
mov dword [0x44f784], ebx
call fcn.00410b23
pop ecx
pop ecx
mov dword [0x44f788], ebx
xor eax, eax
jmp 0x40150b
cmp ebp, 1
jne 0x4014cf
push dword [0x44f784]
call fcn.00410b23
push esi
call fcn.00410adc
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edi
mov dword [0x44f784], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x44f78c], esi
jmp 0x401501
cmp ebp, 2
jne 0x401501
push dword [0x44f788]
call fcn.00410b23
push esi
call fcn.00410adc
pop ecx
pop ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edi
mov dword [0x44f788], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x44f790], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4015bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
call fcn.00413638
mov esi, eax
push esi
call fcn.00410adc
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40162b
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 8]
call fcn.0040156c
test al, al
pop ecx
pop ecx
je 0x40162b
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.00410b23
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
cmp al, bl
pop ebx
je 0x401645
mov byte [0x44f795], 1
leave
ret
Function at 0x401b8d
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov byte [ebp - 1], 0
call fcn.00410adc
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp + 8]
push ebx
call fcn.004216d0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a46e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x1c
mov edi, 0x12c
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a46e
add esp, 0xc
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a46e
add esp, 0xc
push edi
call esi
cmp byte [ebx], 0x4d
jne 0x401c65
cmp byte [ebx + 1], 0x5a
jne 0x401c65
push 0x26
lea eax, [ebx + 0x4e]
push str.This_program_cannot_be_run_in_DOS_mode
push eax
call fcn.00421a70
add esp, 0xc
test eax, eax
jne 0x401c65
mov esi, 0x80
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c5e
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], esi
jne 0x401c5e
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00410b23
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c74
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x41
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x158], bl
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
push 0x458ff0
lea eax, [ebp - 0x158]
push eax
call esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x158]
push 0x27
push eax
call fcn.0041353f
push 0x500000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0040ec4c
add esp, 0x1c
test al, al
je 0x401e23
push 0x10
pop ecx
xor eax, eax
push 0x3f
mov byte [ebp - 0x50], bl
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
pop ecx
push dword [ebp + 0xc]
mov byte [ebp - 0x258], bl
lea edi, [ebp - 0x257]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041a46e
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041a59d
push 0x40
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
call fcn.00422291
add esp, 0x24
test eax, eax
jne 0x401e1a
push dword [ebp - 4]
call fcn.00410adc
push dword [ebp - 4]
mov edi, eax
push dword [ebp - 8]
push edi
call fcn.004216d0
push dword [ebp - 4]
push edi
call fcn.00401647
add esp, 0x18
test al, al
je 0x401e0f
push edi
call fcn.00410b23
pop ecx
mov esi, 0x80
push esi
lea eax, [ebp - 0x158]
push eax
xor edi, edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e1a
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x401e02
push 0x41
lea eax, [ebp - 0x50]
push eax
push 0x4594f3
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 8]
mov byte [0x4594f2], 1
call fcn.00410b23
pop ecx
mov al, 1
jmp 0x401e25
lea eax, [ebp - 0x158]
push eax
call fcn.00414cee
pop ecx
cmp edi, ebx
je 0x401e1a
push edi
call fcn.00410b23
pop ecx
push dword [ebp - 8]
call fcn.00410b23
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e2a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 1], bl
call fcn.00413638
mov esi, eax
cmp esi, 0xc350
pop ecx
jae 0x401e4e
xor al, al
jmp 0x401eb9
push edi
push esi
call fcn.00410adc
push esi
mov edi, eax
push ebx
push edi
call fcn.00421a10
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401eae
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call fcn.00401647
test al, al
pop ecx
pop ecx
je 0x401eae
mov byte [ebp - 1], 1
push edi
call fcn.00410b23
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ebd
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
xor ebx, ebx
cmp byte [0x4594f2], bl
jne 0x401ed8
xor al, al
jmp 0x401f9a
push edi
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x14c], bl
lea edi, [ebp - 0x14b]
rep stosd dword es:[edi], eax
push 0x458ff0
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x14c]
push 0x27
push eax
call fcn.0041353f
lea eax, [ebp - 0x14c]
push eax
call fcn.004138a4
add esp, 0xc
test eax, eax
je 0x401f97
push 0x10
xor eax, eax
pop ecx
mov byte [ebp - 0x44], bl
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.0041a62b
test eax, eax
pop ecx
pop ecx
je 0x401f97
push 0x40
lea eax, [ebp - 0x44]
push 0x4594f3
push eax
call fcn.00422291
add esp, 0xc
test eax, eax
jne 0x401f91
lea eax, [ebp - 0x14c]
push eax
call fcn.00401e2a
test al, al
pop ecx
je 0x401f91
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401f91
mov al, 1
jmp 0x401f99
mov byte [0x4594f2], bl
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x40245c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push dword [0x4594ac]
xor ebx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414bfd
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x402484
xor al, al
jmp 0x4024ed
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412056
add esp, 0xc
push ebx
push 0xa
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
call fcn.004032d6
cmp eax, 1
pop ecx
pop ecx
pop edi
jne 0x4024e4
push ebx
push 0x44f798
push esi
call fcn.00402936
add esp, 0xc
test eax, eax
je 0x4024e4
mov bl, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x40655c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00421ba0
push esi
push dword [ebp + 8]
call fcn.00413638
mov esi, eax
test esi, esi
pop ecx
jge 0x40657e
mov esi, 0x186a0
cmp esi, 0x989680
jle 0x406593
call fcn.00421b32
mov esi, eax
imul esi, esi, 0x3e8
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421b28
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x40661c
test esi, esi
jle 0x40660a
push ebx
push edi
mov edi, 0x1000
xor ebx, ebx
call fcn.00421b32
cdq
mov ecx, 0x100
idiv ecx
inc ebx
cmp ebx, edi
mov byte [ebp + ebx - 0x1009], dl
jl 0x4065d1
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [ebp - 8]
test esi, esi
jg 0x4065cf
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00414cee
pop ecx
pop esi
leave
ret

Function at 0x40661f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x348]
push str._s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406736
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x4066b8
cmp byte [ebp - 0x218], 0x2e
je 0x40671f
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x42a3a0
push eax
call edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.0040661f
add esp, 0x1c
jmp 0x40671f
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42a3a8
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00413d9b
pop ecx
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x104]
push eax
je 0x406719
call fcn.0040655c
jmp 0x40671e
call fcn.00414cee
pop ecx
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406673
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x4068b1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
lea eax, [ebp - 0x508]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x508], 0
lea esi, [ebp - 0x508]
je 0x406949
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
cmp al, 0x41
je 0x406939
cmp al, 0x61
je 0x406939
mov byte [ebp - 0x108], al
push str.:System_Volume_Information
lea eax, [ebp - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004138a4
test eax, eax
pop ecx
je 0x406939
lea eax, [ebp - 0x108]
push eax
call fcn.00413d9b
push 0x28
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0040661f
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4068dc
pop esi
leave
ret
Function at 0x406ca3
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
push 0x41
pop ecx
mov esi, eax
add esi, dword [ebp + 8]
xor eax, eax
push 0x41
mov byte [ebp - 0x110], 0
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x218], al
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x418], al
push 0x7f
pop ecx
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x406d19
cmp esi, dword [ebp + 8]
jbe 0x406d0c
dec esi
cmp byte [esi], 0x5c
jne 0x406d01
cmp byte [esi], 0x5c
je 0x406d19
or eax, 0xffffffff
jmp 0x406e78
push 0x458ff0
lea eax, [ebp - 0x110]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421b28
pop ecx
call fcn.00421b32
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x110]
add edx, 4
push edx
push eax
call ebx
lea eax, [ebp + eax - 0x110]
push eax
call fcn.00413470
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x418]
push str.cw__y__tk__inul___s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x459548
push edi
push edi
call dword [0x458c8c]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push eax
call fcn.004138a4
test eax, eax
pop ecx
je 0x406e68
push edi
push 0x80
push 3
push edi
push 1
push accept
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406e64
lea eax, [ebp - 0x218]
push esi
push eax
mov dword [ebp - 8], edi
call fcn.00421e50
pop ecx
pop ecx
push esi
push esi
call ebx
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004133d5
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
mov byte [ebp - 0x2ec], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0041356e
test eax, eax
pop ecx
pop ecx
je 0x406e68
mov dword [ebp - 4], 1
jmp 0x406e68
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret