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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
mov ax, word [0x4ad30b84]
push esi
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 6], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad0c8b5
cmp eax, 2
je 0x4ad0c8ae
cmp eax, 5
je 0x4ad0c8ae
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad138c1
xor eax, eax
pop esi
leave
ret 4
xor eax, eax
inc eax
jmp 0x4ad0c8b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ad0c8ae
jmp 0x4ad0c8b5
Function at 0x4ad0dc2f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
xor eax, eax
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x64], bx
mov word [ebp - 0x62], bx
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
mov word [ebp - 0x5c], bx
mov word [ebp - 0x5a], bx
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
mov word [ebp - 0x54], bx
mov word [ebp - 0x52], bx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
mov word [ebp - 0x4c], bx
mov word [ebp - 0x4a], bx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
mov word [ebp - 0x44], bx
mov word [ebp - 0x42], bx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
mov word [ebp - 0x3c], bx
mov word [ebp - 0x3a], bx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4ad289f0]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x70], 6
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
call fcn.4ad0de04
cmp eax, 1
je 0x4ad0e11a
push ebx
lea eax, [ebp - 0x280]
push eax
call fcn.4ad03be2
mov edi, dword [ebp - 0x34]
cmp edi, ebx
je 0x4ad14233
push esi
lea esi, [ebp - 0x30]
mov eax, dword [esi]
cmp eax, ebx
je 0x4ad0e122
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
cmp eax, ebx
je 0x4ad14269
dec edi
mov esi, dword [esi + 0xc]
jne 0x4ad0dced
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
and edi, 0x10
mov dword [ebp + 8], eax
cmp edi, ebx
je 0x4ad1427e
test byte [ebp - 0x73], 0x20
je 0x4ad14245
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call fcn.4ad0daaa
cmp eax, ebx
jne 0x4ad0e101
dec dword [ebp + 8]
mov esi, dword [esi + 0xc]
jne 0x4ad0dd1c
lea eax, [ebp - 0x280]
push eax
push 0x4ad31400
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 8]
call fcn.4ad01817
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 4
cmp eax, 0x91
jne 0x4ad14294
cmp dword [ebp - 0xc], ebx
je 0x4ad0dd41
jmp 0x4ad14294
xor eax, eax
inc eax
jmp 0x4ad0dd69
xor eax, eax
jmp 0x4ad0dcff
push ebx
push 0x232a
call fcn.4ad0b54d
pop ecx
pop ecx
jmp 0x4ad0e11a
push 0x2328
push 0x234e
push dword [esi]
call fcn.4ad1b640
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4ad0dd2e
mov dword [ebp - 4], ecx
jmp 0x4ad0dd41
push ebx
push 0x232a
call fcn.4ad0b54d
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad0dd68
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ad0dd41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.4ad0b54d
pop ecx
pop ecx
jmp 0x4ad0dd41
Function at 0x4ad0dd6f
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 3
je 0x4ad140ab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
call edi
test eax, eax
je 0x4ad0e0e6
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
mov dword [ebp - 4], eax
je 0x4ad140c8
pop esi
jmp 0x4ad0dda9
cmp word [ebp - 0xa], 0x3a
jne 0x4ad0dd97
cmp word [ebp - 8], 0x5c
jne 0x4ad0dd97
xor eax, eax
jmp 0x4ad0ddad
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad0e0fb
test al, 1
je 0x4ad0e0fb
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ad0e0fb
push ebx
call edi
test eax, eax
je 0x4ad14103
and dword [ebp - 4], 0
jmp 0x4ad0e0fb
call esi
mov dword [ebp - 4], eax
jmp 0x4ad0e0fb
Function at 0x4ad15c6f
Capabilities:
Enumerate files on windows

Disassembly:
push esi
mov esi, dword [0x4ad2cac4]
jmp 0x4ad15c84
push esi
call fcn.4ad059ba
mov esi, dword [esi + 0xf4]
test esi, esi
jne 0x4ad15c78
call fcn.4ad1b202
and dword [0x4ad2cac0], esi
push 1
push 0x4ad35b00
call dword [sym.imp.msvcrt.dll_longjmp]
pop esi

Function at 0x4ad16983
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp dword [ebp + 0xc], 0
push esi
push edi
jne 0x4ad16a2a
xor edi, edi
push 0x104
lea eax, [ebp - 0x208]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4ad16a19
cmp word [ebp - 0x208], 0x2e
jne 0x4ad16a09
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad16a8e
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push str._s_s_r_n
call fcn.4ad03e14
add esp, 0xc
mov esi, eax
cmp dword [0x4ad289e8], 0
jne 0x4ad16a25
inc edi
test esi, esi
je 0x4ad1699a
jmp 0x4ad16a8e
cmp esi, 0x103
jne 0x4ad16a8e
xor esi, esi
jmp 0x4ad16a8e
xor eax, eax
inc eax
jmp 0x4ad16a90
push 0
push dword [ebp + 0xc]
call fcn.4ad01b82
mov edi, eax
push 0x20
push edi
call fcn.4ad01b0c
test eax, eax
je 0x4ad16a46
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad16a7e
lea eax, [ebp - 0x410]
push eax
push edi
push str._s_s_r_n
call fcn.4ad03e14
mov esi, eax
jmp 0x4ad16a8b
push edi
push 1
push 0x23a3
call fcn.4ad0b54d
add esp, 0xc
mov eax, esi
pop edi
pop esi
leave
ret 8

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

Disassembly:
push 0xc
push 0x4ad1c320
call fcn.4ad01ad3
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
je 0x4ad16b18
cmp word [esi], di
je 0x4ad16b18
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 0x4ad16b0c
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.4ad03e14
add esp, 0xc
or dword [ebp - 4], 0xffffffff
jmp 0x4ad16b3d
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad16b35
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4ad16b3d
push dword [ebp + 0xc]
push 1
push 0x23a3
call fcn.4ad0b54d
add esp, 0xc
mov eax, dword [ebp - 0x1c]
call fcn.4ad01371
ret 0xc
Function at 0x4ad16b48
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
jne 0x4ad16c6a
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 4], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4ad16c4a
cmp word [ebp - 0x214], 0x2e
je 0x4ad16c33
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
lea eax, [ebp - 0x214]
mov dword [esp], 0x4ad1c398
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x41c]
push 0x4ad1c358
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ad16c33
and word [ebp + esi*2 - 0x214], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4ad0ba44
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4ad16c33
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
push str._s_s_r_n
call fcn.4ad03e14
add esp, 0xc
cmp dword [0x4ad289e8], 0
jne 0x4ad16c65
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x4ad16b7d
cmp esi, 0x103
jne 0x4ad16c83
xor esi, esi
jmp 0x4ad16c83
xor eax, eax
inc eax
jmp 0x4ad16c85
cmp word [ebx], 0x2e
jne 0x4ad16c8c
push 0x7b
pop esi
push ebx
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
push edi
push ebx
call fcn.4ad01b82
mov ebx, eax
push 0x20
push ebx
call fcn.4ad01b0c
cmp eax, edi
je 0x4ad16ca4
mov word [eax], di
push ebx
push 0x4ad1c32c
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x4ad16cdb
mov esi, eax
jmp 0x4ad16c73
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4ad0ba44
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x4ad16c73
lea eax, [ebp - 0x41c]
push eax
push ebx
push str._s_s_r_n
call fcn.4ad03e14
jmp 0x4ad16c80
Function at 0x4ad16d21
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push 0x4ad1c32c
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ad16dfe
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4ad16de8
cmp word [eax], di
je 0x4ad16de8
lea esi, [ebp - 0x214]
jmp 0x4ad16d86
cmp word [esi], 0x5c
je 0x4ad16d8b
inc esi
inc esi
cmp word [esi], di
jne 0x4ad16d7e
mov bx, word [esi]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
mov word [esi], di
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4ad16dce
cmp bx, di
je 0x4ad16dfe
push dword [ebp - 4]
mov word [esi], bx
inc esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad16d86
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
mov eax, dword [ebp - 8]
add esp, 0xc
jmp 0x4ad16e78
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
mov eax, esi
jmp 0x4ad16e78
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4ad16e4b
cmp word [esi], di
je 0x4ad16e4b
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push edi
push 0x4ad0ba44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x4ad16e3f
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad03e14
jmp 0x4ad16e6a
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad16e65
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp ebx, edi
je 0x4ad16e6d
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad0b54d
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4ad170fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
push dword [ebp + 8]
call esi
mov ebx, dword [ebp + 0xc]
mov edi, eax
pop ecx
push dword [ebp + 8]
dec edi
dec edi
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad17138
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x4ad172bd
test al, 0x10
je 0x4ad1719a
push dword [ebp + 8]
call esi
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4ad1715b
and word [eax + 2], 0
mov word [eax], 0x2a
jmp 0x4ad1716b
and word [eax + 4], 0
mov word [eax], 0x5c
mov word [eax + 2], 0x2a
lea eax, [ebp - 0x258]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4ad171a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
jne 0x4ad172b1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp + 0xc], 1
lea eax, [ebp - 0x22c]
push 0x4ad0b9f0
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad1727f
lea eax, [ebp - 0x22c]
push 0x4ad0b9e8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad1727f
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
pop ecx
je 0x4ad1727f
test byte [ebp - 0x258], 0x10
jne 0x4ad1725a
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x460]
push eax
call esi
and word [ebp + eax*2 - 0x462], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.4ad170fb
test eax, eax
je 0x4ad1729a
mov eax, dword [ebp - 8]
mov ecx, dword [ebx]
add eax, edi
cmp ecx, eax
jle 0x4ad1727d
mov eax, ecx
jmp 0x4ad1727d
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x22c]
push eax
call esi
cmp dword [ebp + 0xc], eax
pop ecx
jle 0x4ad17273
mov eax, dword [ebp + 0xc]
jmp 0x4ad1727d
lea eax, [ebp - 0x22c]
push eax
call esi
pop ecx
mov dword [ebx], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x4ad171ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
jne 0x4ad172c4
cmp esi, 0x12
je 0x4ad1719a
push 0
push esi
call fcn.4ad0b54d
pop ecx
pop ecx
xor eax, eax
jmp 0x4ad1719d
Function at 0x4ad1736e
Capabilities:
Move file

Disassembly:
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 0x4ad17382
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
jne 0x4ad173e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ad173dc
push 0x23d4
push 0x23d3
push dword [ebp + 0xc]
call fcn.4ad1b640
sub eax, 0
je 0x4ad173d7
dec eax
dec eax
jne 0x4ad173c9
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 0x4ad173e3
xor eax, eax
inc eax
jmp 0x4ad173e5
xor eax, eax
jmp 0x4ad173e5
xor eax, eax
inc eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4ad19533
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.4ad1b5a8
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4ad19566
push 0x6e
call fcn.4ad1b458
push 1
push esi
call fcn.4ad19491
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebx, 0x8002
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad195e3
mov eax, dword [esi + 0x18]
test ah, 0xc0
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
jne 0x4ad195bd
cmp ecx, 2
jbe 0x4ad195b5
mov edx, dword [ebp + 0x10]
cmp word [edx], 0xfeff
jne 0x4ad195b5
or eax, 0x4000
jmp 0x4ad195ba
or eax, 0x8000
mov dword [esi + 0x18], eax
test ecx, ecx
je 0x4ad19611
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x18]
push dword [ebp + 0x10]
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
inc eax
push eax
call fcn.4ad18176
mov dword [ebp - 8], eax
jmp 0x4ad1960e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [0x4ad28a04], eax
call fcn.4ad0355e
push 0
push dword [0x4ad28a04]
call fcn.4ad0b54d
pop ecx
pop ecx
push 1
push 0
call fcn.4ad19491
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x14]
je 0x4ad19574
cmp dword [ebp - 8], 0
jne 0x4ad19635
sub ecx, dword [ebp + 0xc]
push 1
push 0
push ecx
push dword [ebp - 4]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4ad1974f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebx]
call fcn.4ad0355e
push 0
push dword [ebp + 0xc]
call fcn.4ad1b5be
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4ad1979b
push dword [ebp + 0xc]
push 1
push 0x271f
call fcn.4ad0b54d
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad19832
push edi
mov edi, dword [ebp + 0x10]
push 2
mov ecx, edi
push 0
neg ecx
push ecx
push eax
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x18]
push dword [ebx]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ad197ee
push dword [ebx]
call fcn.4ad0355e
or dword [ebx], 0xffffffff
push dword [ebp + 0xc]
push 1
push 0x271f
call fcn.4ad0b54d
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad19831
cmp dword [ebp + 8], edi
jne 0x4ad197cd
mov esi, dword [ebp + 0x14]
push dword [ebx]
mov ecx, edi
mov edi, dword [ebp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ad197cf
call fcn.4ad0355e
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
call fcn.4ad1b5a8
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x4ad197d7
push 2
push esi
push esi
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x4ad198f5
Capabilities:
Write file on windows

Disassembly:
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
jne 0x4ad1990c
mov eax, ecx
push esi
push edi
push eax
call fcn.4ad19506
test eax, eax
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
je 0x4ad19941
push edi
call fcn.4ad01eec
test eax, eax
jne 0x4ad19941
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]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad1997f
test byte [eax + 0x18], 0x80
jne 0x4ad1997f
push edi
call fcn.4ad01eec
test eax, eax
jne 0x4ad1997f
mov eax, dword [0x4ad30b3c]
cmp eax, 3
je 0x4ad1997f
cmp dword [ebp + 0x18], 0
je 0x4ad1997f
cmp eax, 2
je 0x4ad1997f
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.4ad0355e
inc dword [0x4ad30b60]
pop edi
pop esi
leave
ret 0x14
Function at 0x4ad19ad1
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
and dword [0x4ad30b18], 0
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
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 edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4ad19b18
mov ecx, dword [esi]
test ecx, ecx
jne 0x4ad19b68
call edi
cmp eax, 0x3e3
jne 0x4ad19b58
call edi
push dword [ebp + 8]
mov dword [0x4ad28a04], eax
call fcn.4ad0355e
push dword [ebp + 0x1c]
call fcn.4ad01eec
test eax, eax
push dword [ebp + 0x1c]
jne 0x4ad19b46
call fcn.4ad0355e
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ad19b4b
call fcn.4ad0355e
push 1
push dword [0x4ad28a04]
call fcn.4ad19491
mov ecx, dword [esi]
test ecx, ecx
jne 0x4ad19b68
and dword [0x4ad28a04], ecx
xor eax, eax
jmp 0x4ad19bc1
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
test ah, 0xc0
jne 0x4ad19b91
cmp ecx, 2
jb 0x4ad19b89
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0xfeff
jne 0x4ad19b89
or eax, 0x4000
jmp 0x4ad19b8e
or eax, 0x8000
mov dword [edx + 0x18], eax
mov ecx, dword [edx + 0x18]
mov eax, 0x8002
and ecx, eax
cmp ecx, eax
jne 0x4ad19bbe
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push 1
call fcn.4ad18176
cmp edi, dword [esi]
je 0x4ad19bbe
mov dword [0x4ad30b18], 1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x1c
Function at 0x4ad1b423
Capabilities:
Terminate process

Disassembly:
push esi
push 1
push dword [esp + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4ad1b441
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad28a04], eax
cmp dword [esp + 0xc], esi
je 0x4ad1b452
push dword [esp + 8]
call fcn.4ad0189e
mov esi, eax
mov eax, esi
pop esi
ret 8