joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad0dd4c
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x224]
xor esi, esi
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], esi
call fcn.4ad0deeb
test eax, eax
jne 0x4ad0dea4
cmp dword [ebp - 0x224], esi
je 0x4ad0dea4
xor ebx, ebx
inc ebx
push 0x40002748
mov dword [ebp - 0x218], ebx
call fcn.4ad0deb6
cmp eax, esi
pop ecx
mov dword [ebp - 0x214], eax
je 0x4ad15710
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4ad0ddba
sub eax, edx
sar eax, 1
mov esi, 0x104
cmp eax, esi
mov dword [ebp - 0x21c], eax
jae 0x4ad0de65
push 0x208
call fcn.4ad01e3d
test eax, eax
mov dword [ebp - 0x210], eax
je 0x4ad0de65
push dword [ebp - 0x214]
mov dword [ebp - 0x220], ebx
push esi
push eax
call fcn.4ad01416
test edi, edi
je 0x4ad15657
mov edi, dword [edi + 0x3c]
test edi, edi
je 0x4ad156bb
push edi
push esi
push dword [ebp - 0x210]
call fcn.4ad014d2
test eax, eax
jne 0x4ad0de51
xor esi, esi
cmp dword [ebp - 0x210], esi
je 0x4ad0de43
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov byte [0x4ad24043], 0
cmp dword [ebp - 0x220], esi
mov dword [ebp - 0x218], esi
je 0x4ad0de65
cmp dword [ebp - 0x210], 0
je 0x4ad0de65
push dword [ebp - 0x210]
call fcn.4ad01773
xor esi, esi
cmp dword [ebp - 0x214], esi
je 0x4ad0de7b
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x218], esi
jne 0x4ad15710
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 4
test eax, eax
je 0x4ad0de26
jmp 0x4ad0de51
cmp edi, esi
jne 0x4ad156c6
jmp 0x4ad15705
lea ebx, [ebp - 0x20c]
push esi
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4ad0de51
push dword [ebp - 0x214]
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov eax, ebx
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad156a9
mov eax, dword [ebp - 0x21c]
add eax, eax
mov dword [ebp - 0x21c], eax
add ebx, dword [ebp - 0x21c]
push dword [ebp - 0x214]
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x4ad15694
push ebx
push esi
push dword [ebp - 0x210]
call fcn.4ad014d2
jmp 0x4ad0de9e
and dword [ebp - 0x218], edi
jmp 0x4ad0de51
push esi
push dword [edi + 0x3c]
call fcn.4ad0219c
cmp eax, esi
mov dword [ebp - 0x210], eax
je 0x4ad0de43
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4ad156e0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x4ad0de26
mov dword [ebp - 0x218], 1
jmp 0x4ad15710
mov dword [ebp - 0x210], esi
jmp 0x4ad0de26
push esi
push 8
call fcn.4ad080e2
pop ecx
pop ecx
jmp 0x4ad0de87
Function at 0x4ad0ea76
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 + 0x20]
test eax, eax
mov dword [ebp - 4], 0x1a
je 0x4ad17f5a
push esi
push edi
push eax
call fcn.4ad0eaff
test eax, eax
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
jne 0x4ad17f61
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad0eae8
test byte [eax + 0x1c], 0x80
jne 0x4ad0eae8
push edi
call fcn.4ad015ca
test eax, eax
jne 0x4ad0eae8
mov eax, dword [0x4ad24110]
cmp eax, 3
je 0x4ad0eae8
cmp dword [ebp + 0x14], 0
je 0x4ad0eae8
cmp eax, 2
je 0x4ad0eae8
push dword [ebp + 0x14]
push 0
push 0
push edi
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.4ad03ebc
inc dword [0x4ad2410c]
pop edi
pop esi
leave
ret 0x10
mov eax, ecx
jmp 0x4ad0ea91
push edi
call fcn.4ad015ca
test eax, eax
jne 0x4ad0eaaa
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 0x4ad0eaaa

Function at 0x4ad0ebc8
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 [0x4ad240d8], 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 0x4ad17fd9
mov edx, dword [esi]
cmp edx, edi
je 0x4ad17f8c
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x1c]
test ax, 0xc000
jne 0x4ad0ec37
cmp edx, 2
jb 0x4ad0ec2f
mov edx, dword [ebp + 0xc]
cmp word [edx], 0xfeff
je 0x4ad17fac
or eax, 0x8000
mov dword [ecx + 0x1c], eax
mov ecx, dword [ecx + 0x1c]
mov eax, 0x8002
xor ebx, ebx
and ecx, eax
inc ebx
cmp ecx, eax
je 0x4ad17fb6
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x1c
call ebx
cmp eax, 0x3e3
je 0x4ad17fd9
mov edx, dword [esi]
cmp edx, edi
jne 0x4ad0ec10
mov dword [0x4ad240e0], edi
xor eax, eax
jmp 0x4ad0ec4e
or eax, 0x4000
jmp 0x4ad0ec34
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call fcn.4ad1d8c7
cmp edi, dword [esi]
je 0x4ad0ec4c
mov dword [0x4ad240d8], ebx
jmp 0x4ad0ec4c
call ebx
push dword [ebp + 8]
mov dword [0x4ad240e0], eax
call fcn.4ad03ebc
push dword [ebp + 0x1c]
call fcn.4ad015ca
test eax, eax
push dword [ebp + 0x1c]
jne 0x4ad18007
call fcn.4ad03ebc
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ad1800c
call fcn.4ad03ebc
push 1
push dword [0x4ad240e0]
call fcn.4ad1e837
int3
Function at 0x4ad12a42
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0xc]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.4ad01416
lea eax, [ebp - 0x418]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad12a84
sub eax, edx
sar eax, 1
mov esi, 0x106
push esi
lea ecx, [ebp - 0x210]
push ecx
inc eax
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.4ad0c08d
test al, al
je 0x4ad1a025
push 0x4ad01c24
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.4ad014d2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x830]
push eax
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad1a02c
cmp word [ebp - 0x210], 0x5c
je 0x4ad1a04e
mov word [ebp - 0x20e], bx
cmp word [ebp - 0x624], bx
jne 0x4ad1a062
lea eax, [ebp - 0x210]
push eax
push 1
push 0x235e
push dword [ebp - 0x828]
call fcn.4ad12b95
add esp, 0x10
cmp eax, ebx
jne 0x4ad12b75
mov ecx, dword [ebp - 0x830]
cmp ecx, ebx
je 0x4ad12b86
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._04X__04X
lea eax, [ebp - 0x824]
push 0x100
push eax
call fcn.4ad01710
lea eax, [ebp - 0x824]
push eax
push 1
push 0x235b
push dword [ebp - 0x828]
call fcn.4ad12b95
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 8
cmp dword [ebp - 0x82c], ebx
jne 0x4ad12b3b
jmp 0x4ad12b75
xor eax, eax
jmp 0x4ad12b75
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x90
je 0x4ad1a025
push ebx
call esi
push eax
call fcn.4ad080e2
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad12b75
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01a37
mov word [eax], bx
jmp 0x4ad12b04
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x235f
push dword [ebp - 0x828]
call fcn.4ad12b95
add esp, 0x14
jmp 0x4ad12b2d
Function at 0x4ad12d53
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.4ad0cee0
push esi
mov esi, 0x106
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01416
lea eax, [ebp - 0x210]
push eax
call fcn.4ad12565
test eax, eax
jne 0x4ad1a11e
and dword [ebp - 0x214], 0
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 6
push edi
call fcn.4ad12831
push esi
lea eax, [ebp - 0x210]
push eax
push 0xe
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
call fcn.4ad12613
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
push 0x4ad12e24
call fcn.4ad085dd
push eax
push 2
push 0x2379
push edi
call fcn.4ad12b95
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.4ad013fa
leave
ret 0x10
push 0x4ad01c24
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.4ad014d2
jmp 0x4ad12d9d
Function at 0x4ad1c77c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x4ad1c850
call fcn.4ad03116
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4ad1c7bb
cmp word [eax], si
je 0x4ad1c7bb
lea edx, [ebp - 0x1c]
push edx
push 1
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x4ad1c7bb
push eax
jmp 0x4ad1c81e
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, 2
jne 0x4ad1c7e5
push 0x4ad01408
call fcn.4ad01ebf
mov dword [ebp - 0x20], eax
jmp 0x4ad1c824
cmp eax, esi
jne 0x4ad1c7b8
push dword [ebp - 0x24]
call fcn.4ad01e3d
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, esi
je 0x4ad1c81c
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push dword [ebp - 0x1c]
call edi
mov edi, eax
cmp edi, esi
je 0x4ad1c824
push ebx
call fcn.4ad01773
mov dword [ebp - 0x20], esi
push edi
jmp 0x4ad1c81e
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.4ad1c840
mov eax, dword [ebp - 0x20]
call fcn.4ad01890
ret 8
Function at 0x4ad1c871
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x214], esi
jne 0x4ad1c95d
mov dword [ebp - 0x210], ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
cmp esi, ebx
jne 0x4ad1c936
cmp word [ebp - 0x20c], 0x2e
jne 0x4ad1c91b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4ad1c77c
mov edi, eax
cmp edi, ebx
je 0x4ad1c949
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad1c8ee
sub eax, edx
sar eax, 1
je 0x4ad1c915
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ad040bf
add esp, 0xc
mov esi, eax
push edi
call fcn.4ad01773
cmp dword [0x4ad2415c], ebx
jne 0x4ad1c958
inc dword [ebp - 0x210]
cmp esi, ebx
jne 0x4ad1c9cd
jmp 0x4ad1c8a5
cmp esi, 0x103
jne 0x4ad1c9cd
xor esi, esi
jmp 0x4ad1c9cd
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad080e2
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4ad1c9cf
push ebx
push eax
call fcn.4ad0219c
push eax
call fcn.4ad01ebf
mov edi, eax
cmp edi, ebx
je 0x4ad1c958
push 0x20
push edi
call fcn.4ad01a11
cmp eax, ebx
je 0x4ad1c97f
mov word [eax], bx
push edi
push esi
call fcn.4ad1c77c
mov ebx, eax
test ebx, ebx
je 0x4ad1c9af
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad1c98f
sub eax, edx
sar eax, 1
je 0x4ad1c9af
push ebx
push edi
push str._s_s_r_n
call fcn.4ad040bf
mov esi, eax
jmp 0x4ad1c9be
xor esi, esi
push edi
inc esi
push esi
push 0x400023a3
call fcn.4ad080e2
add esp, 0xc
push ebx
call fcn.4ad01773
push edi
call fcn.4ad01773
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 8
Function at 0x4ad1c9e5
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push 0xc
push 0x4ad1cb10
call fcn.4ad03116
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
je 0x4ad1ca5c
cmp word [esi], di
je 0x4ad1ca5c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4ad1ca04
sub eax, edx
sar eax, 1
push eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, edi
jne 0x4ad1ca41
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad040bf
add esp, 0xc
jmp 0x4ad1cac3
push edi
push ebx
call fcn.4ad080e2
push dword [ebp + 0xc]
push 1
push 0x235d
call fcn.4ad080e2
add esp, 0x14
jmp 0x4ad1cac3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, edi
je 0x4ad1cac7
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, edi
je 0x4ad1ca9a
cmp ebx, 2
je 0x4ad1cac3
push edi
push ebx
call fcn.4ad080e2
pop ecx
pop ecx
jmp 0x4ad1cac3
push 0x4ad01408
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov dword [ebp + 0x10], eax
cmp ebx, edi
je 0x4ad1caba
push edi
push ebx
call fcn.4ad080e2
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x4ad1cb01
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x4ad1cafa
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x10]
call fcn.4ad01890
ret 0xc
Function at 0x4ad1d073
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad1d0ab
mov edi, str.ShellOpenCommand
sub eax, edx
mov ecx, edi
sar eax, 1
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, bx
jne 0x4ad1d0c3
sub ecx, esi
sar ecx, 1
lea eax, [eax + ecx + 1]
mov esi, 0x104
cmp eax, esi
jbe 0x4ad1d0f3
push ebx
push 0x400023db
call fcn.4ad080e2
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1d299
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4ad01416
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad014d2
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
je 0x4ad1d1f0
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x4ad1d1d6
cmp word [eax], bx
je 0x4ad1d1d6
lea esi, [ebp - 0x20c]
jmp 0x4ad1d15f
cmp word [esi], 0x5c
je 0x4ad1d164
inc esi
inc esi
cmp word [esi], bx
jne 0x4ad1d157
movzx edi, word [esi]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov word [esi], bx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 0x220], eax
jne 0x4ad1d1b6
cmp di, bx
je 0x4ad1d1f0
push dword [ebp - 0x214]
mov word [esi], di
inc esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad1d15f
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad080e2
mov eax, dword [ebp - 0x220]
add esp, 0xc
jmp 0x4ad1d299
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad080e2
add esp, 0xc
jmp 0x4ad1d297
mov edi, dword [ebp - 0x218]
cmp edi, ebx
je 0x4ad1d263
cmp word [edi], bx
je 0x4ad1d263
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ad1d204
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push ebx
push 0x4ad01408
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
jne 0x4ad1d245
push edi
push dword [ebp - 0x210]
push str._s_s_r_n
call fcn.4ad040bf
jmp 0x4ad1d288
push ebx
push esi
call fcn.4ad080e2
push dword [ebp - 0x210]
push 1
push 0x235d
call fcn.4ad080e2
add esp, 0x14
jmp 0x4ad1d28b
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, ebx
je 0x4ad1d28b
push dword [ebp - 0x210]
push 1
push 0x400023a5
call fcn.4ad080e2
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 0xc
Function at 0x4ad1e8b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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.4ad1f545
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4ad1e8e9
push 0x6e
call fcn.4ad13630
push 1
push esi
call fcn.4ad1e837
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebx, 0x8002
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1e992
mov eax, dword [esi + 0x1c]
test ax, 0xc000
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
jne 0x4ad1e941
cmp ecx, 2
jbe 0x4ad1e939
mov edx, dword [ebp + 0x10]
cmp word [edx], 0xfeff
jne 0x4ad1e939
or eax, 0x4000
jmp 0x4ad1e93e
or eax, 0x8000
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x4ad1e968
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x1c]
push dword [ebp + 0x10]
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
inc eax
push eax
call fcn.4ad1d8c7
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x14]
je 0x4ad1e8f7
cmp dword [ebp - 8], 0
jne 0x4ad1e988
sub ecx, dword [ebp + 0xc]
push 1
push 0
push ecx
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [0x4ad240e0], eax
call fcn.4ad03ebc
push 0
push dword [0x4ad240e0]
call fcn.4ad080e2
pop ecx
pop ecx
push 1
push 0
jmp 0x4ad1e8e4
Function at 0x4ad1e9c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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.4ad03ebc
push 0
push dword [ebp + 0xc]
call fcn.4ad0efc7
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4ad1ea10
push dword [ebp + 0xc]
push 1
push 0x4000271f
call fcn.4ad080e2
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1eaa7
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
push dword [ebx]
je 0x4ad1ea57
cmp dword [ebp + 8], edi
jne 0x4ad1ea57
mov esi, dword [ebp + 0x14]
mov ecx, edi
mov edi, dword [ebp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4ad1ea61
call fcn.4ad03ebc
or dword [ebx], 0xffffffff
jmp 0x4ad1ea7a
call fcn.4ad03ebc
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
call fcn.4ad1f545
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4ad1ea91
push dword [ebp + 0xc]
push 1
push 0x4000271f
call fcn.4ad080e2
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1eaa6
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 0x4ad1f3f9
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and word [ebp - 6], 0
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.4ad02163
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
test edi, edi
je 0x4ad1f458
push edi
call esi
test al, al
jne 0x4ad1f4bb
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 [0x4ad40604]
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.4ad01624
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x4ad1f4af
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad080e2
pop ecx
pop ecx
test edi, edi
je 0x4ad1f4bb
push dword [ebp - 0x218]
call ebx
push 0
push 0x104
push 0x4ad25200
call fcn.4ad0363f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 4

Function at 0x4ad1f97e
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 [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
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
jne 0x4ad1f9c0
cmp word [ebp - 0xa], 0x3a
jne 0x4ad1f9c0
cmp word [ebp - 8], 0x5c
jne 0x4ad1f9c0
xor eax, eax
jmp 0x4ad1fa15
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call ebx
test eax, eax
jne 0x4ad1fa11
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
mov dword [ebp - 0x10], eax
jne 0x4ad1fa10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad1fa10
test al, 1
je 0x4ad1fa10
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ad1fa10
push esi
call ebx
test eax, eax
je 0x4ad1fa0b
and dword [ebp - 0x10], 0
jmp 0x4ad1fa10
call edi
mov dword [ebp - 0x10], eax
pop edi
mov eax, dword [ebp - 0x10]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.4ad013fa
leave
ret 4