joyce8/EMBER2024-capa huggingface dataset:
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 [fcn.4ad01110]
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 [fcn.4ad012b8]
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 [fcn.4ad01268]
add esp, 0xc
mov eax, esi
jmp 0x4ad0464c
push eax
push esi
call fcn.4ad01550
jmp 0x4ad0a876
push 2
jmp 0x4ad0a867
call dword [fcn.4ad01114]
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 [fcn.4ad01264]
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 [fcn.4ad0109c]
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 [fcn.4ad01118]
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 [fcn.4ad012dc]
pop ecx
mov edi, eax
test esi, esi
je 0x4ad02c5c
push esi
call dword [fcn.4ad012dc]
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 [0x4ad012b4]
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 [fcn.4ad012b8]
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 [0x4ad01194]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad17170
push 8
push ebx
call dword [0x4ad0120c]
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 [0x4ad01190]
test eax, eax
je 0x4ad02f35
mov esi, dword [fcn.4ad01140]
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 [0x4ad0115c]
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 [0x4ad01194]
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 [fcn.4ad0112c]
cmp eax, edi
mov dword [0x4ad2ba04], eax
je 0x4ad0e06f
cmp dword [ebp + 0x10], 0xffffffff
je 0x4ad0e2c0
push dword [ebp + 0x10]
call dword [0x4ad01210]
pop ecx
jmp 0x4ad0e2c0
call dword [fcn.4ad0112c]
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 [fcn.4ad0109c]
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 [0x4ad010cc]
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 [fcn.4ad0112c]
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.ADVAPI32.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.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad04eb2
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 [fcn.4ad012d8]
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 [0x4ad010e4]
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 [fcn.4ad0112c]
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 [fcn.4ad012c8]
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 [0x4ad0118c]
push ebx
mov ebx, dword [ebp + 0x14]
mov esi, eax
push ebx
dec esi
push esi
push edi
push dword [ebp + 8]
call dword [fcn.4ad010c8]
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 [fcn.4ad010c8]
jmp 0x4ad06540
push ebx
push ebx
push esi
push edi
push 0x1000
push dword [ebp + 0xc]
push ebx
push dword [0x4ad2b9ec]
call dword [0x4ad0118c]
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 [fcn.4ad010c8]
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 [fcn.4ad01140]
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [0x4ad0115c]
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 [0x4ad01158]
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 [fcn.4ad01140]
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 [0x4ad0115c]
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 [fcn.4ad01178]
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 [fcn.4ad012d8]
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [fcn.4ad01284]
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 [0x4ad010cc]
test eax, eax
je 0x4ad0d684
lea eax, [ebp - 0x628]
push 0x4ad08d54
push eax
call dword [fcn.4ad012b8]
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 [fcn.4ad0112c]
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 [0x4ad010dc]
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 [fcn.4ad0112c]
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 [fcn.4ad012dc]
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 [0x4ad010e4]
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 [fcn.4ad0112c]
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 [0x4ad011a0]
cmp eax, 0xffffffff
mov dword [ebp - 0x468], eax
jne 0x4ad133a9
call dword [fcn.4ad0112c]
push 0xffffffffffffffff
mov esi, eax
call dword [0x4ad01198]
cmp esi, 2
je 0x4ad0bc0f
jmp 0x4ad134d7
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x430]
push 0x4ad01a9c
push eax
call dword [0x4ad012b0]
test eax, eax
pop ecx
pop ecx
je 0x4ad13499
lea eax, [ebp - 0x430]
push 0x4ad01a94
push eax
call dword [0x4ad012b0]
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 [fcn.4ad012d8]
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 [fcn.4ad01284]
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 [0x4ad0119c]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x4ad133b3
call dword [fcn.4ad0112c]
push dword [ebp - 0x468]
mov esi, eax
call dword [0x4ad01198]
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
Function at 0x4ad0cd64
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4ad33b78]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.4ad01349
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x208
push eax
call dword [0x4ad011a4]
mov esi, eax
test esi, esi
je 0x4ad0ce0b
push 4
lea eax, [ebp - 0x414]
push 0x4ad0ce1c
push eax
call dword [0x4ad01228]
add esp, 0xc
test eax, eax
je 0x4ad175ce
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x4ad1762c
cmp word [eax], 0
je 0x4ad1762c
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
push 0x37
lea eax, [ebp - 0x414]
push eax
call fcn.4ad02a34
push dword [ebp - 0x66c]
movzx esi, al
call fcn.4ad01c24
test esi, esi
je 0x4ad0cf5c
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.4ad01305
leave
ret 4
cmp word [ebp - 0x412], 0x5c
je 0x4ad0cf8f
cmp word [ebp - 0x412], 0x3a
jne 0x4ad0ce0b
cmp word [ebp - 0x410], 0x5c
jne 0x4ad0ce0b
cmp word [ebp - 0x40e], si
jne 0x4ad0ce0b
lea eax, [ebp - 0x414]
push eax
call dword [fcn.4ad0109c]
cmp eax, 1
jbe 0x4ad0ce0b
jmp 0x4ad17624
lea eax, [ebp - 0x40c]
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [0x4ad01200]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x668], eax
je 0x4ad1760d
cmp eax, edi
jbe 0x4ad1760d
mov si, word [eax]
and word [eax], 0
push edi
call dword [0x4ad010e4]
mov ecx, eax
mov eax, dword [ebp - 0x668]
mov word [eax], si
jmp 0x4ad17616
push edi
call dword [0x4ad010e4]
mov ecx, eax
mov eax, ecx
inc eax
neg eax
sbb eax, eax
and eax, ecx
jmp 0x4ad0ce0d
xor esi, esi
inc esi
jmp 0x4ad0ce0b
lea eax, [ebp - 0x414]
push eax
call dword [0x4ad010e4]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x4ad0ce0b
Function at 0x4ad0d12d
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x4ad33b78]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x278], bx
mov word [ebp - 0x276], bx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
mov word [ebp - 0x270], bx
mov word [ebp - 0x26e], bx
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
mov word [ebp - 0x268], bx
mov word [ebp - 0x266], bx
lea edi, [ebp - 0x264]
stosd dword es:[edi], eax
mov word [ebp - 0x260], bx
mov word [ebp - 0x25e], bx
lea edi, [ebp - 0x25c]
stosd dword es:[edi], eax
mov word [ebp - 0x258], bx
mov word [ebp - 0x256], bx
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
mov word [ebp - 0x250], bx
mov word [ebp - 0x24e], bx
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x23c], bl
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4ad2b9f0]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x288]
push eax
push ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x284], 6
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x234], ebx
call fcn.4ad0d3e8
cmp eax, 1
je 0x4ad0d5fb
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01550
mov edi, dword [ebp - 0x248]
cmp edi, ebx
je 0x4ad17baa
push esi
lea esi, [ebp - 0x244]
mov eax, dword [esi]
cmp eax, ebx
je 0x4ad0d603
push eax
call dword [fcn.4ad012dc]
pop ecx
cmp eax, ebx
je 0x4ad17be3
dec edi
mov esi, dword [esi + 0xc]
jne 0x4ad0d25f
mov edi, dword [ebp - 0x288]
mov eax, dword [ebp - 0x248]
lea esi, [ebp - 0x244]
and edi, 0x10
mov dword [ebp - 0x218], eax
cmp edi, ebx
je 0x4ad17bf8
test byte [ebp - 0x287], 0x20
je 0x4ad17bbc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call fcn.4ad0cfaf
cmp eax, ebx
jne 0x4ad0d5e0
dec dword [ebp - 0x218]
mov esi, dword [esi + 0xc]
jne 0x4ad0d29a
lea eax, [ebp - 0x210]
push eax
push 0x4ad34400
call dword [fcn.4ad012d8]
pop ecx
pop ecx
push dword [ebp - 0x220]
call fcn.4ad014f8
mov eax, dword [ebp - 0x214]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.4ad01305
leave
ret 4
cmp eax, 0x91
je 0x4ad0d60a
push ebx
push eax
mov dword [ebp - 0x214], eax
call fcn.4ad05fb5
pop ecx
pop ecx
jmp 0x4ad0d2c5
xor eax, eax
inc eax
jmp 0x4ad0d2f6
xor eax, eax
jmp 0x4ad0d271
cmp dword [ebp - 0x21c], ebx
jne 0x4ad0d5e7
jmp 0x4ad0d2c5
push ebx
push 0x232a
call fcn.4ad05fb5
pop ecx
pop ecx
jmp 0x4ad0d5fb
push 0x2328
push 0x234e
push dword [esi]
call fcn.4ad10ae0
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4ad0d2af
mov dword [ebp - 0x214], ecx
jmp 0x4ad0d2c5
push ebx
push 0x232a
call fcn.4ad05fb5
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad0d2f5
push dword [esi]
call dword [0x4ad01048]
test eax, eax
jne 0x4ad0d2c5
call dword [fcn.4ad0112c]
jmp 0x4ad0d5e7
Function at 0x4ad0d33c
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ad33b78]
and dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push esi
call dword [0x4ad011a4]
cmp eax, 3
je 0x4ad179a8
push ebx
mov ebx, dword [0x4ad01048]
push esi
call ebx
test eax, eax
je 0x4ad0d5b2
mov eax, dword [ebp - 0x10]
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 4
push edi
mov edi, dword [fcn.4ad0112c]
call edi
cmp eax, 5
mov dword [ebp - 0x10], eax
je 0x4ad179c5
pop edi
jmp 0x4ad0d380
cmp word [ebp - 0xa], 0x3a
jne 0x4ad0d36e
cmp word [ebp - 8], 0x5c
jne 0x4ad0d36e
xor eax, eax
jmp 0x4ad0d384
push esi
call dword [0x4ad010e4]
cmp eax, 0xffffffff
je 0x4ad0d5c7
test al, 1
je 0x4ad0d5c7
and eax, 0xfffffffe
push eax
push esi
call dword [0x4ad01064]
test eax, eax
je 0x4ad0d5c7
push esi
call ebx
test eax, eax
je 0x4ad17a00
and dword [ebp - 0x10], 0
jmp 0x4ad0d5c7
call edi
mov dword [ebp - 0x10], eax
jmp 0x4ad0d5c7

Function at 0x4ad0d7c6
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad33b78]
and word [ebp - 6], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
add eax, 0x40
push esi
mov word [ebp - 0xa], ax
push edi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], 0x3d
mov word [ebp - 8], 0x3a
call fcn.4ad01b70
mov esi, dword [0x4ad01050]
mov ebx, dword [0x4ad010f8]
mov edi, eax
test edi, edi
je 0x4ad172fa
push edi
call esi
test al, al
je 0x4ad172f0
push 0
push 0x4ad34400
call fcn.4ad01550
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 4
push 1
call ebx
mov dword [ebp - 0x218], eax
mov ax, word [ebp - 0xa]
and word [ebp - 0x20e], 0
mov word [ebp - 0x214], ax
mov ax, word [ebp - 8]
mov word [ebp - 0x212], ax
mov ax, word [0x4ad33b8c]
mov word [ebp - 0x210], ax
push 0x4ad2b0d0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.4ad0158f
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x4ad17356
push eax
call dword [fcn.4ad0112c]
push eax
call fcn.4ad05fb5
pop ecx
pop ecx
test edi, edi
je 0x4ad0d821
push dword [ebp - 0x218]
call ebx
jmp 0x4ad0d821