joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b90
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00445d5b
test al, al
je 0x447bff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x447bff
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00458e9f
leave
ret

Function at 0x448357
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x4483a3
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4d7a20], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x448718
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x54
mov eax, 0x4a685a
call fcn.0045a4e9
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x20019
push eax
push ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x4487e8
push 0
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c0f30
mov dword [ebp - 0x18], 0x4c0ed0
call fcn.00404200
push 0x105
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a14b
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040a0f0
push 0x105
push dword [eax]
push edi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
call fcn.00409574
cmp dword [ebp - 0x48], 0
jne 0x4487d1
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00424f7b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401b80
inc edi
cmp dword [ebp - 0x48], 0
je 0x448760
lea ecx, [ebp - 0x54]
mov dword [0x4d7a20], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
call fcn.0045a498
ret

Function at 0x448ab1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x448ae3
xor al, al
jmp 0x448afc
cmp dword [ebp - 0x108], 2
jne 0x448afa
cmp dword [ebp - 0x114], 5
jb 0x448afa
xor eax, eax
inc eax
jmp 0x448afc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458e9f
leave
ret

Function at 0x44eb96
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x44f834
Capabilities:
Connect to http server
Parse url

Disassembly:
push 0x2a0
mov eax, 0x4a7bb2
call fcn.0045a4e9
mov esi, ecx
mov dword [ebp - 0x268], esi
mov eax, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x2ac], 0x3c
call fcn.0044fb7c
mov edi, dword [esi + 0x3c]
push 0x10000000
xor ebx, ebx
push edi
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x261], bl
call fcn.0045043a
test eax, eax
je 0x44f9cd
lea eax, [ebp - 0x2ac]
push eax
push 0x10000000
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x44f9cd
push 0x2c
call fcn.004590c6
pop ecx
test eax, eax
je 0x44f8c3
mov ecx, eax
call fcn.00416f31
mov ebx, eax
push 0x2c
call fcn.004590c6
pop ecx
test eax, eax
je 0x44f8da
mov ecx, eax
call fcn.00416f31
mov edi, eax
jmp 0x44f8dc
xor edi, edi
push ebx
push 0x8000000
push 1
push dword [ebp - 0x288]
push dword [ebp - 0x290]
push 0x15
push dword [ebp - 0x29c]
push dword [esi + 0x30]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x44f91c
mov edx, dword [ebx]
push eax
lea eax, [ebx + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, ebx
call dword [edx + 8]
test al, al
je 0x44f9bf
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x44f93b
push eax
call fcn.0045a1f4
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x44f93f
xor eax, eax
jmp 0x44f960
lea esi, [eax + eax]
mov eax, esi
call fcn.0045cba0
mov eax, esp
push 3
push esi
push dword [ebp - 0x26c]
push eax
call fcn.0044f3ae
mov esi, dword [ebp - 0x268]
push edi
push 0
push dword [ebp - 0x270]
push eax
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
test eax, eax
jne 0x44f991
mov edx, dword [edi]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, edi
call dword [edx + 8]
mov byte [ebp - 0x261], 0
test al, al
je 0x44f998
mov byte [ebp - 0x261], 1
lea eax, [ebp - 0x260]
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetFindNextFileW]
test eax, eax
jne 0x44f998
mov edx, dword [edi]
push eax
lea eax, [edi + 0xc]
push eax
push dword [esi + 0x28]
mov ecx, edi
call dword [edx + 8]
test al, al
jne 0x44f998
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
lea ecx, [ebp - 0x2ac]
call fcn.0044f7e8
mov al, byte [ebp - 0x261]
lea esp, [ebp - 0x2bc]
call fcn.0045a498
ret 4
Function at 0x44fdd3
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x840], eax
call fcn.0042438e
cmp eax, 1
jne 0x44fecb
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44fec0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], 4
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
cmovne ecx, edx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], 0x824
call esi
movzx ecx, byte [ebp - 0x828]
mov esi, dword [ebp - 0x838]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.0043303c
push dword [ebp - 0x840]
push dword [ebp - 0x83c]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
test eax, eax
mov dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458e9f
leave
ret 0x14
Function at 0x44ff3d
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x44ff7d
test byte [ebp - 4], 0x41
je 0x44ff7d
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x44ff7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x450063
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x44ffaa
push eax
cmp dword [ebx + 0x40], edi
je 0x44ff99
push str.Range:_bytes_d__r_n
jmp 0x44ff9e
push str.Range:_bytes_d_
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 0x40], edi
je 0x44ffbb
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x450020
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x44ffef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x450014
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x450014
and eax, 0xfffffeff
push ebx
mov dword [ebx + 0x50], eax
push eax
push dword [ebx + 0x44]
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx]
call fcn.0045a1f4
pop ecx
push eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x3c]
push esi
call dword [edi + 0x2c]
test eax, eax
je 0x44ffd0
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x450051
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x450058
cmp byte [ebp + 8], 0
je 0x450060
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.0045a1f4
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
je 0x450056
call dword [eax + 0x28]
jmp 0x450062
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x450062
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x45020f
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
inc eax
and dword [esi + 0x24], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
push edi
jbe 0x4503cf
cmp dword [esi + 0x5c], 0x2710
jbe 0x45024e
cmp dword [esi + 0x54], 0
je 0x45024e
mov ecx, esi
call fcn.004505ab
mov edi, eax
imul edi, edi, 0xf
jmp 0x450253
mov edi, 0x5dc
push 1
test edi, edi
pop eax
cmove edi, eax
cmp byte [esi + 0x90], 0
je 0x450270
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x45027d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4502c6
mov eax, dword [esi]
push 0
lea ecx, [esi + 0xc]
push ecx
push dword [esi + 0x28]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x4503d6
cmp byte [esi + 0x90], 0
je 0x4502e1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x4502f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4503cc
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [esi + 0x4c], eax
add dword [esi + 0x54], eax
add dword [esi + 0x60], eax
sub edi, dword [ebp - 0x20]
sbb ebx, dword [ebp - 0x1c]
mov eax, edi
or eax, ebx
jne 0x45031b
push 5
pop edi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push edi
call fcn.0045cb60
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x45036e
mov edx, dword [ebp - 8]
jg 0x450348
cmp edx, eax
jb 0x45036e
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.00461a90
add dword [esi + 0x5c], eax
add dword [esi + 0x68], eax
push 0
push 0x3e8
push ebx
push ecx
mov dword [ebp - 0xc], edx
call fcn.0045bad0
mov edi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push edi
call fcn.0045cb60
push dword [esi + 0x8c]
push dword [esi + 0x88]
push edx
push eax
call fcn.0045bad0
add dword [esi + 0x58], eax
add dword [esi + 0x64], eax
mov ecx, 0x3e8
cmp dword [esi + 0x58], ecx
jbe 0x4503ac
mov eax, dword [esi + 0x58]
xor edx, edx
div ecx
add dword [esi + 0x5c], eax
mov dword [esi + 0x58], edx
cmp dword [esi + 0x64], ecx
jbe 0x4503be
mov eax, dword [esi + 0x64]
xor edx, edx
div ecx
add dword [esi + 0x68], eax
mov dword [esi + 0x64], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x450231
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor al, al
jmp 0x4503cf
Function at 0x45043a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.0044fb7c
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x450503
inc dword [esi + 8]
mov eax, dword [esi + 8]
push ebx
xor ecx, ecx
push 2
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
inc dword [esi + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
inc dword [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
inc dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
inc dword [esi + 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
inc dword [esi + 0x38]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
add esp, 0x18
mov dword [esi + 0x34], eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x450546
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 4
call fcn.0044fefd
movzx edi, al
test al, al
je 0x45057d
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x45058f
or dword [ebp - 4], 0xffffffff
jmp 0x450595
mov eax, dword [esi + 0x48]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.0044f789
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4505ab
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, 0x7530
jbe 0x4505e8
mov eax, dword [esi + 0x60]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
call ebx
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x4505f4
mov eax, dword [esi + 0x54]
jmp 0x450640
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x45063e
or eax, 0xffffffff
xor edx, edx
div ebx
mov edi, dword [esi + 0x54]
cmp edi, eax
jbe 0x450616
shr edi, 1
shr ecx, 1
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x5c]
imul eax, ebx
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x4505fa
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450790
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450806
call esi
cmp eax, 0x3f0
jne 0x4507e9
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x4507ff
push 1
push dword [ebp - 0x10]
call fcn.004508ea
pop ecx
pop ecx
jmp 0x4508dc
test eax, eax
jne 0x450806
push ebx
jmp 0x4507f0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x45082d
push ebx
push dword [ebp - 0x10]
call fcn.004508ea
pop ecx
jmp 0x4508da
call esi
cmp eax, 0x7a
jne 0x45081e
push dword [ebp - 0x18]
call fcn.004590c6
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x450855
push ebx
jmp 0x4508c6
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x450852
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x4508ba
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4508a5
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x45088c
jmp 0x4508ba
cmp byte [ebp + 0xc], 0
je 0x4508b6
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x4508ba
mov byte [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004508ea
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00458d46
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00458e9f
leave
ret

Function at 0x450d9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x84
mov eax, 0x4a7d81
call fcn.0045a4e9
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x450db7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x450e02
push 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac9c4
mov dword [ebp - 0x18], 0x4ac9cc
call fcn.00408e82
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00416a1f
push 0x4c7b58
lea eax, [ebp - 0x90]
push eax
call fcn.00458eae
call fcn.0045a498
ret
Function at 0x451ad0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2e0
mov eax, 0x4a802e
call fcn.0045a4e9
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00450d9a
pop ecx
test al, 0x10
je 0x451c46
push 0x4b40d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
xor ebx, ebx
push eax
inc ebx
call fcn.00450b0a
add eax, 4
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x451b18
mov eax, dword [eax]
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2e8], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00401b80
cmp esi, 0xffffffff
je 0x451be0
test ebx, ebx
je 0x451be0
push 0x4acd00
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x451bcb
push 0x4b40d8
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x451bcb
push 0
lea eax, [ebp - 0x2e1]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ae018
mov dword [ebp - 0x18], 0x4ae020
call fcn.00408f6d
sub esp, 0x30
mov eax, esp
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.00450aa7
add esp, 0xc
call fcn.00451ad0
add esp, 0x30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401b80
lea eax, [ebp - 0x2e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x451b43
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0
call fcn.004238e0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x451c7d
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac9c4
mov dword [ebp - 0x18], 0x4ac9cc
call fcn.00408e82
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00416a1f
push 0x4c7b58
lea eax, [ebp - 0x90]
push eax
call fcn.00458eae
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x451c7d
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac9c4
mov dword [ebp - 0x18], 0x4ac9cc
call fcn.00408e82
mov byte [ebp - 4], 4
jmp 0x451c24
lea ecx, [ebp + 8]
call fcn.00401b80
call fcn.0045a498
ret

Function at 0x451ca9
Capabilities:
Set file attributes

Disassembly:
push 0x84
mov eax, 0x4a805e
call fcn.0045a4e9
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x451cc6
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x451d12
push eax
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac9c4
mov dword [ebp - 0x18], 0x4ac9cc
call fcn.00408e82
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00416a1f
push 0x4c7b58
lea eax, [ebp - 0x90]
push eax
call fcn.00458eae
call fcn.0045a498
ret
Function at 0x452fbb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x452fde
xor al, al
jmp 0x453078
push eax
call fcn.00458527
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x452fd7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4ac8e8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x452fd7
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x453076
mov eax, dword [ebp - 4]
shr eax, 2
xor ecx, ecx
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458527
xor edx, edx
pop ecx
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x3c], edx
jbe 0x453076
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x453064
mov al, 1
pop ebx
leave
ret 4