joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad01550
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp word [ebp + 0xc], 0
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x4ad09d22
push esi
push 0x104
call dword [sym.imp.vKERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 8
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.vmsvcrt.dll_towupper]
mov word [ebp - 0xc], 0x3d
call edi
and word [ebp - 6], 0
mov word [ebp - 0xa], ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x3a
call fcn.4ad01b70
test eax, eax
je 0x4ad17491
test esi, esi
je 0x4ad09d63
push eax
push esi
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
pop edi
jmp 0x4ad0157d
push dword [ebp + 0xc]
call edi
mov word [esi], ax
inc esi
inc esi
mov word [esi], 0x3a
inc esi
inc esi
mov word [esi], 0x5c
and word [esi + 2], 0
xor eax, eax
pop ecx
inc eax
jmp 0x4ad09d65

Function at 0x4ad01a26
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4ad01a49
cmp dword [0x4ad2fac4], edi
jne 0x4ad01a49
cmp dword [0x4ad2fabc], edi
je 0x4ad0f384
pop edi
leave
ret 4
push ebx
push esi
mov esi, dword [sym.imp.vKERNEL32.dll_GetProcessHeap]
push 0x20c
push edi
call esi
push eax
call dword [sym.imp.vKERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], ebx
je 0x4ad0f435
push 0x104
push ebx
call dword [sym.imp.vKERNEL32.dll_GetConsoleTitleW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4ad0f435
push dword [ebp + 8]
mov edi, dword [sym.imp.vmsvcrt.dll_wcslen]
call edi
pop ecx
mov ecx, dword [0x4ad33af8]
add ecx, eax
add ecx, dword [ebp - 4]
lea eax, [ecx + ecx + 0x14]
push eax
push ebx
push 0
call esi
push eax
call dword [sym.imp.vKERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ad17123
cmp byte [0x4ad33afc], 0
jne 0x4ad1712b
push 0x4ad0f43c
push ebx
call dword [sym.imp.vmsvcrt.dll_wcscat]
push ebx
call edi
push dword [ebp + 8]
mov dword [0x4ad33af8], eax
push ebx
call dword [sym.imp.vmsvcrt.dll_wcscat]
add esp, 0x14
mov byte [0x4ad33afc], 1
push ebx
call dword [sym.imp.vKERNEL32.dll_SetConsoleTitleW]
push ebx
push 0
call esi
push eax
call dword [sym.imp.vKERNEL32.dll_HeapFree]
pop esi
pop ebx
jmp 0x4ad01a49
push dword [ebp - 8]
jmp 0x4ad0f42a
mov eax, dword [0x4ad33af8]
push dword [ebp + 8]
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad0f422
Function at 0x4ad01b70
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and word [0x4ad2ba20], 0
push ebx
push esi
mov ebx, 0x2000
push ebx
mov esi, 0x4ad2ba20
push esi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4ad045aa
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
cmp byte [0x4ad2fa64], 0
push edi
je 0x4ad0464a
mov edi, dword [sym.imp.vmsvcrt.dll__wcsicmp]
push 0x4ad34190
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12df9
push str.ERRORLEVEL
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad0a861
push str.CMDEXTVERSION
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12e05
push 0x4ad04664
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12e0c
push str.DATE
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12e17
push str.TIME
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12e23
push 0x4ad04654
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad12e3b
xor eax, eax
pop edi
jmp 0x4ad01b9e
push dword [0x4ad2fa20]
push 0x4ad081bc
push esi
call dword [sym.imp.vmsvcrt.dll_swprintf]
add esp, 0xc
mov eax, esi
jmp 0x4ad0464c
push eax
push esi
call fcn.4ad01550
jmp 0x4ad0a876
push 2
jmp 0x4ad0a867
call dword [sym.imp.vKERNEL32.dll_GetCommandLineW]
jmp 0x4ad0464c
push ebx
push esi
push 1
push eax
call fcn.4ad0b5cc
jmp 0x4ad12e2d
push ebx
push esi
push 1
push eax
call fcn.4ad0b380
and word [eax*2 + 0x4ad2ba20], 0
jmp 0x4ad0a876
call dword [sym.imp.vmsvcrt.dll_rand]
push eax
jmp 0x4ad0a867
Function at 0x4ad02a5b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ad33b78]
and word [ebp - 6], 0
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
mov ax, word [0x4ad33b8c]
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
call dword [sym.imp.vKERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
call fcn.4ad01305
leave
ret 4

Function at 0x4ad02bc9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4ad12dcf
push esi
call dword [sym.imp.vKERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp esi, ebx
je 0x4ad12dd6
push edi
push ebx
push dword [ebp + 8]
call fcn.4ad02b6b
mov edi, eax
push 0x20
push edi
mov dword [ebp + 8], edi
call fcn.4ad01a53
cmp eax, ebx
jne 0x4ad12ddd
cmp edi, ebx
je 0x4ad02c58
push edi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
mov edi, eax
test esi, esi
je 0x4ad02c5c
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
mov ebx, eax
test ebx, ebx
jbe 0x4ad02c4f
cmp dword [0x4ad2b9e8], 0
jne 0x4ad02c4f
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.vmsvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad12de5
lea esi, [esi + ebx*2 + 2]
jmp 0x4ad02c18
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor edi, edi
jmp 0x4ad02c18
xor ebx, ebx
jmp 0x4ad02c26
xor eax, eax
jmp 0x4ad02c53
xor eax, eax
jmp 0x4ad02c52
mov word [eax], bx
jmp 0x4ad02c0a
cmp word [esi + edi*2], 0x3d
jne 0x4ad02c49
lea eax, [esi + edi*2 + 2]
jmp 0x4ad02c51
Function at 0x4ad02e82
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
xor edi, edi
and eax, 3
cmp eax, 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0xc
ja 0x4ad0e2c0
test byte [ebp + 0xc], bl
je 0x4ad02ebd
test byte [ebp + 0xc], 8
jne 0x4ad0e2c0
cmp eax, edi
mov esi, 0x80000000
je 0x4ad067fa
push 0x4ad03d08
push dword [ebp + 8]
mov dword [ebp - 8], 0x40000000
call dword [sym.imp.vmsvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad02ee8
mov dword [ebp + 0x10], ebx
push 2
cmp dword [ebp + 0xc], 0x10a
pop eax
push edi
je 0x4ad0e272
push 0x80
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad17170
push 8
push ebx
call dword [sym.imp.vmsvcrt.dll__open_osfhandle]
test byte [ebp + 0xc], 8
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
jne 0x4ad0e030
push dword [ebp + 0x10]
call fcn.4ad02e4b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 8], esi
push 3
jmp 0x4ad02eea
push eax
call fcn.4ad02c65
test eax, eax
jne 0x4ad02f35
push edi
push ebx
call dword [sym.imp.vKERNEL32.dll_GetFileSize]
test eax, eax
je 0x4ad02f35
mov esi, dword [sym.imp.vKERNEL32.dll_SetFilePointer]
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0xc], edi
call esi
cmp eax, 0xffffffff
je 0x4ad17144
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad17193
cmp word [ebp - 0xc], 0x1a
jne 0x4ad02f35
jmp 0x4ad171a5
mov edi, 0x80
push edi
push 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
or eax, esi
mov esi, dword [sym.imp.vKERNEL32.dll_CreateFileW]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad0e2a0
xor edi, edi
jmp 0x4ad02f1d
push 0
push edi
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ad0e299
jmp 0x4ad17170
or eax, 0xffffffff
jmp 0x4ad02f40
call dword [sym.imp.vKERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [0x4ad2ba04], eax
je 0x4ad0e06f
cmp dword [ebp + 0x10], 0xffffffff
je 0x4ad0e2c0
push dword [ebp + 0x10]
call dword [sym.imp.vmsvcrt.dll__close]
pop ecx
jmp 0x4ad0e2c0
call dword [sym.imp.vKERNEL32.dll_GetLastError]
cmp eax, 0x6e
mov dword [0x4ad2ba04], eax
jne 0x4ad0e2c0
mov dword [0x4ad2ba04], 2
jmp 0x4ad0e2c0
push 2
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
call esi
jmp 0x4ad0e089
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
call esi
jmp 0x4ad02f35
Function at 0x4ad02f53
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ad33b78]
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0x10], ax
mov ax, word [0x4ad33b8c]
push esi
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xa], si
call dword [sym.imp.vKERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad02fd6
cmp eax, 2
je 0x4ad02fc7
cmp eax, 5
je 0x4ad02fc7
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.vKERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad17103
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 4
xor eax, eax
inc eax
jmp 0x4ad02fc9
call dword [sym.imp.vKERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ad02fd6
jmp 0x4ad02fc7
Function at 0x4ad04e81
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push 0x4ad04eb8
push 0x80000001
call dword [sym.imp.VADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ad1492e
pop esi
leave
ret 4
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x4ad1495c
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.VADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.VADVAPI32.dll_RegCloseKey]
jmp 0x4ad04eb2

Function at 0x4ad05046
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x4ad05168
call fcn.4ad0161a
xor edi, edi
push edi
call dword [sym.imp.vKERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4ad05159
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ad05159
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x4ad1903e
cmp dword [ecx + 0x74], 0xe
jbe 0x4ad05159
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.vmsvcrt.dll___set_app_type]
pop ecx
or dword [0x4ad2fa50], 0xffffffff
or dword [0x4ad2fa4c], 0xffffffff
call dword [sym.imp.vmsvcrt.dll___p__fmode]
mov ecx, dword [0x4ad34878]
mov dword [eax], ecx
call dword [sym.imp.vmsvcrt.dll___p__commode]
mov ecx, dword [0x4ad34874]
mov dword [eax], ecx
mov eax, dword [sym.imp.vmsvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4ad2fa54], eax
call fcn.4ad04fd0
cmp dword [0x4ad34868], edi
je 0x4ad19063
call fcn.4ad05184
push 0x4ad34860
push 0x4ad3485c
call sub.vmsvcrt.dll__initterm
mov eax, dword [0x4ad34870]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4ad3486c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.vmsvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x4ad34858
push 0x4ad34850
call sub.vmsvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.vmsvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.4ad03fdd
jmp 0x4ad19074
mov dword [ebp - 0x1c], edi
jmp 0x4ad0509e
cmp eax, 0x20b
jne 0x4ad05159
cmp dword [ecx + 0x84], 0xe
jbe 0x4ad05159
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4ad05098
push fcn.4ad04fd0
call dword [sym.imp.vmsvcrt.dll___setusermatherr]
pop ecx
jmp 0x4ad050f1
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4ad19088
push esi
call dword [sym.imp.vmsvcrt.dll_exit]
call dword [sym.imp.vmsvcrt.dll__cexit]
jmp 0x4ad190c7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.4ad01442
ret
Function at 0x4ad062eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ad33b78]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20
mov dword [ebp - 4], eax
call fcn.4ad01758
mov esi, eax
push esi
mov dword [esi], edi
call fcn.4ad06142
mov eax, dword [esi + 0x14]
mov ebx, dword [esi]
mov edi, dword [esi + 8]
push 0x208
mov dword [ebp - 0x210], eax
call fcn.4ad01758
push 0
push eax
mov dword [0x4ad33ae8], eax
call fcn.4ad01550
push 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01aa5
test eax, eax
jne 0x4ad0640f
mov ax, word [0x4ad33b8c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01a53
and word [eax + 2], 0
lea eax, [ebp - 0x20c]
push eax
push 0x4ad34400
call dword [sym.imp.vmsvcrt.dll_wcscpy]
test edi, edi
pop ecx
pop ecx
je 0x4ad063eb
mov ax, word [edi]
cmp ax, 0x3a
je 0x4ad063eb
cmp ax, word [0x4ad33b8c]
jne 0x4ad063b3
cmp edi, ebx
je 0x4ad0640b
push edi
push ebx
call fcn.4ad06419
mov ax, word [eax]
cmp ax, 0x3a
je 0x4ad0640b
cmp ax, word [0x4ad33b8c]
je 0x4ad0640b
mov ax, word [edi]
and word [edi], 0
push ebx
mov word [ebp - 0x214], ax
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad16de0
and dword [0x4ad2ba04], 0
mov ax, word [ebp - 0x214]
mov word [edi], ax
cmp dword [0x4ad2ba04], 0
jne 0x4ad0640f
push esi
call fcn.4ad06142
mov eax, dword [ebp - 0x210]
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 4
inc edi
inc edi
jmp 0x4ad063b3
xor eax, eax
inc eax
jmp 0x4ad063fc
call dword [sym.imp.vKERNEL32.dll_GetLastError]
mov dword [0x4ad2ba04], eax
jmp 0x4ad063d8
Function at 0x4ad064bd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.vmsvcrt.dll__get_osfhandle]
xor ebx, ebx
cmp byte [0x4ad34b74], bl
pop ecx
mov dword [ebp + 8], eax
jne 0x4ad15df1
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], eax
mov edi, 0x4ad290a0
mov esi, 0x2000
cmp dword [ebp + 0x10], esi
ja 0x4ad15e05
cmp dword [ebp + 0x10], ebx
je 0x4ad0654a
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push dword [0x4ad2b9ec]
call dword [sym.imp.vKERNEL32.dll_WideCharToMultiByte]
push ebx
mov ebx, dword [ebp + 0x14]
mov esi, eax
push ebx
dec esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad06546
cmp dword [ebx], esi
jne 0x4ad06546
mov eax, dword [ebp - 8]
mov dword [ebx], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4ad0653f
mov ebx, dword [ebp + 0x14]
jmp 0x4ad06537
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.vKERNEL32.dll_WriteFile]
jmp 0x4ad06540
push ebx
push ebx
push esi
push edi
push 0x1000
push dword [ebp + 0xc]
push ebx
push dword [0x4ad2b9ec]
call dword [sym.imp.vKERNEL32.dll_WideCharToMultiByte]
add dword [ebp + 0xc], esi
sub dword [ebp + 0x10], esi
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad06546
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], eax
je 0x4ad064f8
jmp 0x4ad06546
Function at 0x4ad069c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, 0x4ad290a0
mov esi, edi
call dword [sym.imp.vKERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad06bc8
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x4ad06bc8
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jle 0x4ad06a45
cmp dword [ebp - 4], 3
jl 0x4ad06a2d
mov al, byte [esi]
cmp al, 0xa
je 0x4ad06bcf
cmp al, 0xd
je 0x4ad06d14
movzx eax, byte [esi]
cmp byte [eax + 0x4ad34740], bl
jne 0x4ad12018
dec dword [ebp - 4]
inc esi
cmp dword [ebp - 4], ebx
jg 0x4ad06a15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
push edi
push 1
push dword [0x4ad2b9ec]
call dword [sym.imp.vKERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4ad06a62
cmp byte [esi + 1], 0xd
jne 0x4ad06a25
jmp 0x4ad06d1e
cmp byte [esi + 1], 0xa
jne 0x4ad06a2d
mov eax, dword [ebp - 0xc]
mov byte [esi + 2], bl
sub esi, edi
inc esi
inc esi
push ebx
push ebx
mov dword [ebp - 8], esi
add esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_SetFilePointer]
jmp 0x4ad06a45
cmp dword [ebp - 4], 1
je 0x4ad12029
sub dword [ebp - 4], 2
inc esi
inc esi
jmp 0x4ad06a40
push ebx
lea eax, [ebp - 4]
push eax
push 1
inc esi
push esi
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1204c
cmp dword [ebp - 4], ebx
je 0x4ad1204c
inc dword [ebp - 8]
jmp 0x4ad06a45
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x4ad06bc8

Function at 0x4ad071e5
Capabilities:
Manipulate console buffer
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.vKERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
je 0x4ad10d3d
pop ebp
jmp fcn.4ad069c3
pop ebp
jmp fcn.4ad0ef42
Function at 0x4ad08ca3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x4ad33b78]
push esi
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
xor esi, esi
push eax
mov dword [0x4ad2ba04], esi
call fcn.4ad08d61
test al, al
je 0x4ad08d44
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.vmsvcrt.dll_wcscpy]
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.vmsvcrt.dll_wcscat]
add esp, 0x10
push 0x106
lea eax, [ebp - 0x628]
push eax
push esi
lea eax, [ebp - 0x62c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.vKERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad0d684
lea eax, [ebp - 0x628]
push 0x4ad08d54
push eax
call dword [sym.imp.vmsvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad182d8
xor al, al
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 4
call dword [sym.imp.vKERNEL32.dll_GetLastError]
cmp eax, 0x90
mov dword [0x4ad2ba04], eax
jne 0x4ad08d44
jmp 0x4ad182ec
cmp dword [ebp - 0x62c], 0xc
jne 0x4ad08d44
mov al, 1
jmp 0x4ad08d46
mov dword [0x4ad2ba04], esi
jmp 0x4ad08d44
Function at 0x4ad0bb7c
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
push ebx
push esi
push edi
push 2
pop esi
jne 0x4ad0bb92
push 3
pop esi
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.vKERNEL32.dll_MoveFileExW]
and dword [ebx], 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4ad13534
xor eax, eax
inc eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.vKERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad1357b
push 0x23d4
push 0x23d3
push dword [ebp + 0xc]
call fcn.4ad10ae0
sub eax, 0
je 0x4ad13573
dec eax
dec eax
jne 0x4ad13562
mov eax, dword [ebp + 0x10]
and dword [eax], 0
or esi, 1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
jmp 0x4ad0bbb2
xor eax, eax
inc eax
jmp 0x4ad0bbb4
xor eax, eax
jmp 0x4ad0bbb4
Function at 0x4ad0bbc0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x4ad33b78]
push ebx
push esi
mov esi, dword [sym.imp.vmsvcrt.dll_wcslen]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x464], eax
call esi
mov ebx, eax
pop ecx
push dword [ebp - 0x464]
dec ebx
dec ebx
mov dword [edi], ebx
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad1332f
test al, 0x10
jne 0x4ad1333d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8
push 0
call dword [sym.imp.vKERNEL32.dll_GetLastError]
push eax
jmp 0x4ad134e3
push dword [ebp - 0x464]
call esi
pop ecx
mov ecx, dword [ebp - 0x464]
lea eax, [ecx + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4ad13362
and word [eax + 2], 0
mov word [eax], 0x2a
jmp 0x4ad13372
and word [eax + 4], 0
mov word [eax], 0x5c
mov word [eax + 2], 0x2a
lea eax, [ebp - 0x45c]
push eax
push ecx
call dword [sym.imp.vKERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x468], eax
jne 0x4ad133a9
call dword [sym.imp.vKERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.vKERNEL32.dll_FindClose]
cmp esi, 2
je 0x4ad0bc0f
jmp 0x4ad134d7
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x430]
push 0x4ad01a9c
push eax
call dword [sym.imp.vmsvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad13499
lea eax, [ebp - 0x430]
push 0x4ad01a94
push eax
call dword [sym.imp.vmsvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad13499
lea eax, [ebp - 0x430]
push eax
call esi
test eax, eax
pop ecx
je 0x4ad13499
test byte [ebp - 0x45c], 0x10
jne 0x4ad1346b
push dword [ebp - 0x464]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.vmsvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push eax
call esi
and word [ebp + eax*2 - 0x20e], 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.vmsvcrt.dll_wcscat]
add esp, 0x14
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad0bbc0
test eax, eax
je 0x4ad134ba
mov eax, dword [ebp - 0x46c]
mov ecx, dword [edi]
add eax, ebx
cmp ecx, eax
jle 0x4ad13497
mov eax, ecx
jmp 0x4ad13497
mov eax, dword [edi]
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x430]
push eax
call esi
cmp dword [ebp - 0x460], eax
pop ecx
jle 0x4ad1348d
mov eax, dword [ebp - 0x460]
jmp 0x4ad13497
lea eax, [ebp - 0x430]
push eax
call esi
pop ecx
mov dword [edi], eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.vKERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x4ad133b3
call dword [sym.imp.vKERNEL32.dll_GetLastError]
push dword [ebp - 0x468]
mov esi, eax
call dword [sym.imp.vKERNEL32.dll_FindClose]
cmp dword [ebp - 0x460], 0
jne 0x4ad134ea
cmp esi, 0x12
je 0x4ad0bc0f
push 0
push esi
call fcn.4ad05fb5
pop ecx
pop ecx
xor eax, eax
jmp 0x4ad0bc12