joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x432c96
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1ac]
mov esi, ecx
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x40ed51
call fcn.00420164
mov ebx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x10]
jbe 0x40ed64
call fcn.00420164
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push edi
push ecx
push ebx
push eax
lea ebx, [esp + 0x24]
call fcn.004099e0
mov ecx, esi
call fcn.0040fff0
push ebp
push str._s.
lea ecx, [esp + 0x40]
call fcn.004172c0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x1a4], ebx
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x40eda8
lea eax, [esp + 0x3c]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov ebp, 0xf
cmp edi, ebx
je 0x40ee65
cmp edi, 0xffffffff
je 0x40ee65
lea esp, [esp]
test byte [esp + 0x54], 0x10
jne 0x40ee4a
lea eax, [esp + 0x80]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40edf0
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x24]
call fcn.00409e10
mov byte [esp + 0x1a4], 1
lea ecx, [esp + 0x1c]
push ecx
mov ebx, esi
call fcn.00409460
xor ebx, ebx
mov byte [esp + 0x1a4], bl
cmp dword [esp + 0x34], 0x10
jb 0x40ee3c
mov edx, dword [esp + 0x20]
push edx
call fcn.0042019e
add esp, 4
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x34], ebp
xor ebx, ebx
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40edd0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x1a4], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x40ee84
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042019e
add esp, 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.0041f826
add esp, 0x194
ret
Function at 0x40f2a0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4328d9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
je 0x40f3c7
cmp ebp, eax
jb 0x40f2f5
call fcn.00420164
mov eax, dword [esi + 0xc]
cmp byte [edi + eax + 0x39], 0
je 0x40f39f
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40f322
call fcn.00420164
mov ecx, dword [esi + 0xc]
lea eax, [edi + ecx + 0x1c]
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x40f338
mov eax, dword [eax + 4]
jmp 0x40f33b
add eax, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40f367
call fcn.00420164
mov eax, dword [esi + 0xc]
add eax, edi
cmp dword [eax + 0x34], ebx
jb 0x40f376
mov eax, dword [eax + 0x20]
jmp 0x40f379
add eax, 0x20
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x40f408
cmp eax, 0xffffffff
je 0x40f408
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
add edi, 0xd8
cmp ebp, eax
jb 0x40f2f5
xor edi, edi
mov esi, dword [esp + 0x28]
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
push 0x4364e7
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00409e10
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edi, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x40f430
call fcn.00420164
mov edx, dword [esi + 0xc]
mov ebx, ebp
imul ebx, ebx, 0xd8
cmp dword [ebx + edx + 0x34], 0x10
lea eax, [ebx + edx + 0x1c]
jb 0x40f44b
mov eax, dword [eax + 4]
jmp 0x40f44e
add eax, 4
push eax
push str.Could_not_access__s
call fcn.0040d7c0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 8
cmp ebp, eax
jb 0x40f47c
call fcn.00420164
mov esi, dword [esi + 0xc]
mov edi, dword [esp + 0x28]
add esi, ebx
xor ebx, ebx
push 0xffffffffffffffff
add esi, 0x1c
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push esi
mov ecx, edi
mov byte [edi + 4], bl
call fcn.004096e0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], 1
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4113a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x446050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, edx
push 0x4111d0
call fcn.0041fdf6
add esp, 4
mov dword [ebp - 0x138], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 1
cmp edi, eax
je 0x411413
push 0x40
push eax
push edi
call fcn.004249d0
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x411443
lea ecx, [esi + 1]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x120], eax
test eax, eax
jne 0x411454
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
jmp 0x411591
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x411479
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x11c], eax
mov ebx, dword [ebp - 0x120]
jmp 0x411581
mov ebx, dword [ebp - 0x120]
test edi, edi
je 0x41154c
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x140]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41154c
xor esi, esi
mov dword [ebp - 0x134], esi
cmp byte [edi], 0
jne 0x41154c
mov ecx, dword [ebp - 0x128]
shr ecx, 2
cmp esi, ecx
jae 0x41154c
mov eax, dword [ebp - 0x140]
movzx edx, word [eax + esi*4 + 2]
push edx
movzx eax, word [eax + esi*4]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x118]
push ecx
call fcn.0041fa79
add esp, 0x10
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x118]
push ecx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411546
mov eax, 0x40
dec eax
mov ecx, dword [ebp - 0x144]
cmp ecx, eax
jbe 0x411535
push eax
mov edx, dword [ebp - 0x124]
push edx
push edi
call fcn.00424d80
add esp, 0xc
inc esi
jmp 0x4114aa
push ecx
mov eax, dword [ebp - 0x124]
push eax
push edi
call fcn.00424d80
add esp, 0xc
inc esi
jmp 0x4114aa
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x13c]
push edx
push 0x43b288
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411581
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x130], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x12c], edx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x138]
push edx
call fcn.0041fdf6
add esp, 4
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f826
mov esp, ebp
pop ebp
ret
Function at 0x411990
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea ebx, [esp + 0xc]
call fcn.00411880
mov esi, eax
test esi, esi
jne 0x4119ea
test ebp, ebp
je 0x4119c9
test edi, edi
je 0x4119c9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push edi
push ebp
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4119d9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4119f8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x411a90
Capabilities:
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
test esi, esi
jne 0x411ae1
push ebx
lea ebx, [esp + 0xc]
call fcn.00411880
mov esi, eax
pop ebx
test esi, esi
jne 0x411acb
mov eax, dword [esp + 8]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x411ad8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop esi
mov eax, 1
pop ebp
pop ecx
ret
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411ae5
push 1
sub eax, edi
push esi
lea edi, [eax + 1]
push ebp
call fcn.00411990
add esp, 0xc
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x411bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov dword [esp + 0xc], 0
push ebp
test eax, eax
je 0x411bef
push eax
push edi
call fcn.00421230
jmp 0x411bf7
push 0
push edi
call fcn.004249d0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
lea ebx, [esp + 0x10]
call fcn.00411810
mov esi, eax
pop ebx
test esi, esi
jne 0x411c46
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
dec ebp
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x411c46
mov ecx, dword [esp + 8]
mov byte [ecx + edi], al
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 0xc]
test eax, eax
je 0x411c55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
add esp, 0xc
ret
Function at 0x411c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4423d8
push 0x424830
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x446050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x24]
call fcn.00411810
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x411d4c
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x411cf1
cmp esi, 0xea
jne 0x411d4c
mov ecx, dword [ebp - 0x1c]
add ecx, 2
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x411d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x411d4c
lea edx, [ebp - 0x1c]
push edx
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call edi
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x411d45
mov eax, dword [ebp - 0x1c]
mov byte [ebx + eax], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebx + ecx + 1], 0
mov dword [ebp - 0x28], ebx
jmp 0x411d4c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xfffffffe
call fcn.00411d77
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
lea ebx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
call fcn.00411810
mov esi, eax
test esi, esi
jne 0x411de7
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x411de7
mov dword [esp + 0xc], edi
mov eax, dword [esp + 8]
test eax, eax
je 0x411df6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x411f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea ebx, [esp + 0xc]
mov ecx, str.SoftwareClassesGapDomain_Time_II_ManagerInfo
mov dword [esp + 0xc], 0
xor edi, edi
call fcn.00411810
mov esi, eax
test esi, esi
jne 0x411f7e
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push str.Install_Date
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x411f7e
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x411f8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4121d0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x50
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push esi
push 0x1a
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x41220c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412230
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x412232
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0041f826
add esp, 0x50
ret
Function at 0x412250
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0xf0
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0xec], eax
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0xa
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41229a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412394
push 0x80
lea ecx, [esp + 0x38]
push ebp
push ecx
mov dword [esp + 0x2c], 0x94
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004249d0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4122e0
call edi
mov esi, eax
jmp 0x41232c
cmp dword [esp + 0x24], 6
jb 0x41232c
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x12
push edx
call ebx
test eax, eax
je 0x412327
cmp dword [esp + 0x20], 3
jne 0x41232b
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x13
push edx
call ebx
test eax, eax
jne 0x41232b
call edi
mov esi, eax
pop ebx
cmp dword [esp + 0xc], ebp
jne 0x412350
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x4123d5
call edi
mov esi, eax
cmp esi, ebp
jne 0x412396
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
push 0x1a
mov dword [esp + 0x24], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x412392
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x412396
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x4123a7
push eax
call edi
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x4123b2
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041f826
add esp, 0xf0
ret
xor esi, esi
jmp 0x412354
Function at 0x4123e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push edi
xor ebx, ebx
push 0x80
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x14], 0x94
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004249d0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edi, [ebx + 5]
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, ebx
je 0x412444
push 0x200
push ebx
push esi
call fcn.004249d0
add esp, 0xc
cmp dword [esp + 0xc], 6
jb 0x4124b9
call fcn.00412250
test eax, eax
je 0x4124a4
call fcn.004121d0
cmp eax, ebx
je 0x41248f
push 0xf003f
push str.ServicesActive
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
je 0x412489
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, ebx
je 0x4124d6
push 0x1ff
push str.Your_current_account_does_not_have_sufficient_privileges_to_run_this_program.
jmp 0x4124c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x2e4
cmp esi, ebx
je 0x4124d6
push 0x1ff
push str.Your_current_account_is_a_restricted_administrator_account._You_need_full_r_nadmin_privileges_to_run_this_program._You_may_elevate_your_privileges_using_r_none_of_the_RUN_AS_mechanisms_provided_by_the_operating_system._r_n_r_nIf_you_are_launching_this_program_from_the_Control_Panel_or_a_desktop_link__r_ntry_RightClick_or_ShiftRightClick_for_the__Run_as_Administrator__option.
jmp 0x4124c7
mov edi, 0x522
cmp esi, ebx
je 0x4124d6
push 0x1ff
push str.Your_current_account_is_not_an_administrator_account._You_need_full_r_nadmin_privileges_to_run_this_program._Either_log_off_and_log_back_on_as_an_r_nadministrator__or_try_using_one_of_the_RUN_AS_mechanisms_provided_by_the_r_noperating_system.
jmp 0x4124c7
cmp esi, ebx
je 0x4124d6
push 0x1ff
push str.You_must_be_logged_on_as_an_administrator_in_order_to_run_this_program.
push esi
call fcn.00421230
add esp, 0xc
mov byte [esi + 0x1ff], bl
mov ecx, dword [esp + 0x9c]
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.0041f826
add esp, 0x98
ret

Function at 0x4126f0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x20c], eax
test esi, esi
je 0x412766
cmp byte [esi], 0
je 0x412766
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x412766
push 0x20c
lea eax, [esp + 4]
push 0
push eax
call fcn.004249d0
add esp, 0xc
push 0x106
lea ecx, [esp + 4]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp]
push 1
push edx
call fcn.00412780
add esp, 8
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041f826
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 0x57
call fcn.0041f826
add esp, 0x210
ret
Function at 0x412cc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
test esi, esi
je 0x412d23
cmp word [esi], 0
je 0x412d23
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412cf1
sub eax, edx
sar eax, 1
mov edi, eax
cmp edi, 0x106
ja 0x412d56
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412d12
jmp 0x412d4b
push 0x106
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
test edi, edi
jne 0x412d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x412e3d
add edi, 0x10
cmp edi, 0x106
jbe 0x412d60
mov esi, 0x7a
jmp 0x412e3d
lea edi, [esp + 0x14]
add edi, 0xfffffffe
jmp 0x412d70
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412d70
mov ecx, dword [0x43bcdc]
mov dword [edi], ecx
lea edi, [esp + 0x14]
add edi, 0xfffffffe
jmp 0x412d90
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412d90
push 0
push 0x10002000
push 3
push 0
push 3
push 0
lea edx, [esp + 0x2c]
mov ecx, 8
mov esi, str.Zone.Identifier
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x412e2e
cmp eax, 0xffffffff
je 0x412e2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412dfe
test bl, 1
je 0x412dfe
and ebx, 0xfffffffe
push ebx
lea ecx, [esp + 0x18]
push ecx
call ebp
mov edi, eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x412e15
xor esi, esi
jmp 0x412e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x412e3d
or ebx, 1
push ebx
lea eax, [esp + 0x18]
push eax
call ebp
jmp 0x412e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x412e3d
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x220]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f826
add esp, 0x214
ret