joyce8/EMBER2024-capa huggingface dataset:
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.KERNEL32.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.KERNEL32.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.KERNEL32.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.KERNEL32.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.KERNEL32.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.KERNEL32.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.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.msvcrt.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.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad0d684
lea eax, [ebp - 0x628]
push 0x4ad08d54
push eax
call dword [sym.imp.msvcrt.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.KERNEL32.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.KERNEL32.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.KERNEL32.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.msvcrt.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.KERNEL32.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.KERNEL32.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.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x468], eax
jne 0x4ad133a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.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.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad13499
lea eax, [ebp - 0x430]
push 0x4ad01a94
push eax
call dword [sym.imp.msvcrt.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.msvcrt.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.msvcrt.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.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x4ad133b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x468]
mov esi, eax
call dword [sym.imp.KERNEL32.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
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 [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x4ad0ce0b
push 4
lea eax, [ebp - 0x414]
push 0x4ad0ce1c
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
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 [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad0ce0b
jmp 0x4ad17624
lea eax, [ebp - 0x40c]
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
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 [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp - 0x668]
mov word [eax], si
jmp 0x4ad17616
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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 [sym.imp.KERNEL32.dll_GetFileAttributesW]
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 [sym.imp.msvcrt.dll_wcslen]
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 [sym.imp.msvcrt.dll_wcscpy]
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 [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ad0d2c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 3
je 0x4ad179a8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
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 [sym.imp.KERNEL32.dll_GetLastError]
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 [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad0d5c7
test al, 1
je 0x4ad0d5c7
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
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 [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
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 [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad05fb5
pop ecx
pop ecx
test edi, edi
je 0x4ad0d821
push dword [ebp - 0x218]
call ebx
jmp 0x4ad0d821
Function at 0x4ad0e3b8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x1c]
test eax, eax
mov dword [ebp - 4], 0x1a
je 0x4ad15e51
push esi
push edi
push eax
call fcn.4ad0e441
test eax, eax
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
jne 0x4ad15e58
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad0e42a
test byte [eax + 0x18], 0x80
jne 0x4ad0e42a
push edi
call fcn.4ad02c65
test eax, eax
jne 0x4ad0e42a
mov eax, dword [0x4ad33b3c]
cmp eax, 3
je 0x4ad0e42a
cmp dword [ebp + 0x18], 0
je 0x4ad0e42a
cmp eax, 2
je 0x4ad0e42a
push dword [ebp + 0x18]
push 0
push 0
push edi
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.4ad02e00
inc dword [0x4ad33b60]
pop edi
pop esi
leave
ret 0x14
mov eax, ecx
jmp 0x4ad0e3d3
push edi
call fcn.4ad02c65
test eax, eax
jne 0x4ad0e3ec
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4ad0e3ec

Function at 0x4ad0e551
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push edi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov dword [0x4ad33b18], edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4ad15f4a
mov edx, dword [esi]
cmp edx, edi
je 0x4ad15efd
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x18]
test ah, 0xc0
jne 0x4ad0e5bf
cmp edx, 2
jb 0x4ad0e5b7
mov edx, dword [ebp + 0xc]
cmp word [edx], 0xfeff
je 0x4ad15f1d
or eax, 0x8000
mov dword [ecx + 0x18], eax
mov ecx, dword [ecx + 0x18]
mov eax, 0x8002
xor ebx, ebx
and ecx, eax
inc ebx
cmp ecx, eax
je 0x4ad15f27
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x1c
call ebx
cmp eax, 0x3e3
je 0x4ad15f4a
mov edx, dword [esi]
cmp edx, edi
jne 0x4ad0e599
mov dword [0x4ad2ba04], edi
xor eax, eax
jmp 0x4ad0e5d6
or eax, 0x4000
jmp 0x4ad0e5bc
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call fcn.4ad11313
cmp edi, dword [esi]
je 0x4ad0e5d4
mov dword [0x4ad33b18], ebx
jmp 0x4ad0e5d4
call ebx
push dword [ebp + 8]
mov dword [0x4ad2ba04], eax
call fcn.4ad02e00
push dword [ebp + 0x1c]
call fcn.4ad02c65
test eax, eax
push dword [ebp + 0x1c]
jne 0x4ad15f78
call fcn.4ad02e00
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ad15f7d
call fcn.4ad02e00
push 1
push dword [0x4ad2ba04]
call fcn.4ad0c2b1
Function at 0x4ad19615
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x4ad2fac4]
jmp 0x4ad1962c
push esi
call fcn.4ad06b8e
mov esi, dword [esi + 0xf4]
test esi, esi
jne 0x4ad19620
call fcn.4ad10e03
and dword [0x4ad2fac0], esi
push 1
push 0x4ad34700
call dword [sym.imp.msvcrt.dll_longjmp]
nop
nop
nop
nop
nop

Function at 0x4ad19f37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x4ad19f73
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4ad19280
add eax, 0x40
push str._nCMD_Internal_Error__s_n
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1a02c
push esi
push edi
push dword [ebp + 8]
call fcn.4ad02b6b
mov esi, eax
push 0x20
push esi
mov dword [ebp + 8], esi
call fcn.4ad01a53
cmp eax, edi
je 0x4ad19f91
mov word [eax], di
cmp esi, edi
je 0x4ad19fa2
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4ad19fa5
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
cmp ebx, edi
je 0x4ad19fbd
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 4], eax
jmp 0x4ad19fc0
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jbe 0x4ad1a011
cmp dword [0x4ad2b9e8], edi
jne 0x4ad1a00c
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4ad1a003
push dword [ebp + 8]
lea esi, [ebx + eax*2]
mov di, word [esi]
and word [esi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov word [esi], di
jne 0x4ad1a001
push ebx
push str._s_r_n
call fcn.4ad05e00
and dword [ebp - 8], 0
pop ecx
pop ecx
xor edi, edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + eax*2 + 2]
jmp 0x4ad19fac
xor eax, eax
inc eax
jmp 0x4ad1a02b
cmp dword [ebp - 8], edi
je 0x4ad1a028
push dword [ebp + 8]
push 1
push 0x23a9
call fcn.4ad05fb5
add esp, 0xc
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x4ad1a037
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ad1a067
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4ad19280
add eax, 0x40
push str._nCMD_Internal_Error__s_n
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
xor eax, eax
inc eax
pop esi
ret
push edi
test esi, esi
je 0x4ad1a078
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov edi, eax
jmp 0x4ad1a07a
xor edi, edi
test edi, edi
jbe 0x4ad1a0a5
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1a0a0
cmp word [esi], 0x3d
je 0x4ad1a09a
push esi
push str._s_r_n
call fcn.4ad05e00
pop ecx
pop ecx
lea esi, [esi + edi*2 + 2]
jmp 0x4ad1a068
xor eax, eax
inc eax
jmp 0x4ad1a0a7
xor eax, eax
pop edi
pop esi
ret
Function at 0x4ad1b143
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4ad33b78]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
jne 0x4ad1b1fe
xor edi, edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4ad1b1ed
cmp word [ebp - 0x20c], 0x2e
jne 0x4ad1b1da
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad1b264
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ad05e00
add esp, 0xc
mov esi, eax
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1b1f9
inc edi
test esi, esi
jne 0x4ad1b264
jmp 0x4ad1b169
cmp esi, 0x103
jne 0x4ad1b264
xor esi, esi
jmp 0x4ad1b264
xor eax, eax
inc eax
jmp 0x4ad1b266
push 0
push eax
call fcn.4ad02b6b
mov edi, eax
push 0x20
push edi
call fcn.4ad01a53
test eax, eax
je 0x4ad1b218
and word [eax], 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push ebx
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad1b254
lea eax, [ebp - 0x414]
push eax
push edi
push str._s_s_r_n
call fcn.4ad05e00
mov esi, eax
jmp 0x4ad1b261
push edi
push 1
push 0x23a3
call fcn.4ad05fb5
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8

Function at 0x4ad1b27a
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xc
push 0x4ad1b338
call fcn.4ad0161a
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
je 0x4ad1b306
cmp word [esi], di
je 0x4ad1b306
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4ad1b2fa
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad05e00
add esp, 0xc
or dword [ebp - 4], 0xffffffff
jmp 0x4ad1b32b
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad1b323
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4ad1b32b
push dword [ebp + 0xc]
push 1
push 0x23a3
call fcn.4ad05fb5
add esp, 0xc
mov eax, dword [ebp - 0x1c]
call fcn.4ad01442
ret 0xc