joyce8/EMBER2024-capa huggingface dataset:
Function at 0x95fbe0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test edi, edi
je 0x95fbff
cmp byte [edi], 0
je 0x95fbff
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi - 1], 0x5c
jne 0x95fc06
pop esi
xor eax, eax
pop ebp
ret 4
test esi, esi
je 0x95fc0d
mov byte [esi], 0
cmp dword [0xb32da4], 0xffffffff
push ebx
jne 0x95fc38
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xb32da4
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.009691d0
add esp, 0x20
cmp dword [0xb32da4], 0
jne 0x95fc81
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
cmp ebx, 2
jne 0x95fc5d
push edi
call fcn.00989f40
cmp eax, 1
jne 0x95fc5d
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x95fcac
test esi, esi
je 0x95fc79
push 0x104
call fcn.00960b00
add esp, 4
pop ebx
pop esi
xor eax, eax
pop ebp
ret 4
push 0
push edi
push ebp
call fcn.0095f730
mov ebx, eax
add esp, 0xc
cmp ebx, 2
jne 0x95fca1
push edi
call fcn.00989f40
cmp eax, 1
jne 0x95fca1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x95fc68
pop ebx
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x95fe80
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x138
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x134], eax
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x95fec4
mov eax, 1
jmp 0x95fffa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x95fefd
test ebx, ebx
je 0x95ff41
call edi
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.00960a40
push eax
push ebp
push str.EnumDependentServices_failed:__s___s___n
call ebx
add esp, 0x10
xor eax, eax
jmp 0x95fff9
mov edx, dword [esp + 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x95ff48
test ebx, ebx
je 0x95ff41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.00960a40
push eax
push ebp
push str.HeapAlloc_failed:__s___s___n
call ebx
add esp, 0x10
xor eax, eax
jmp 0x95fff9
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x95ffa3
test ebx, ebx
je 0x95ff8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.00960a40
push eax
push ebp
push str.EnumDependentServices_failed:__s___s___n
call ebx
mov edi, dword [esp + 0x28]
add esp, 0x10
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x95fff9
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jbe 0x95ffe4
mov ebp, edi
push 1
mov ecx, 9
mov esi, ebp
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.00960020
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x24
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x95ffb4
mov edi, dword [esp + 0x18]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x13c]
pop esi
pop ebp
xor ecx, esp
call fcn.00a78f21
add esp, 0x138
ret 4
Function at 0x960370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb13070
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x130], edi
push 0x10c
push edi
lea eax, [ebp - 0x12c]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
push esi
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x24], edi
lea edx, [ebp - 0x138]
push edx
push edi
lea eax, [ebp - 0x130]
push eax
push 0x9602b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x134], eax
cmp eax, edi
je 0x960448
mov edi, edi
cmp dword [ebp - 0x12c], edi
jne 0x960422
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x960410
lea ecx, [ebp - 0x134]
push ecx
call fcn.00985290
jmp 0x960448
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret

Function at 0x960470
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x134
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
push 0xff
lea eax, [esp + 0x3d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x44], 0
call fcn.00a7ffb0
add esp, 0xc
xor edi, edi
mov ecx, esi
call fcn.009620b0
test eax, eax
jne 0x9604b7
xor eax, eax
jmp 0x960590
mov ecx, esi
call fcn.00954680
cmp eax, 1
jle 0x9604b0
push 1
push 0
push 0
mov ebp, 0x12c
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x96058c
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x960585
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
cmp eax, 1
jne 0x960528
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x960533
cmp eax, 3
je 0x960571
cmp eax, 5
je 0x960571
cmp eax, 6
je 0x960571
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x960567
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x96056d
push 0x64
call edi
sub ebp, 1
je 0x960563
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
jne 0x960545
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x960571
mov edi, dword [esp + 0x18]
cmp eax, 4
jne 0x96057e
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x134
ret
Function at 0x960b20
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x10c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.eScan_Monitor_Service
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push ebx
push str.eScan_Monitor_Service
mov esi, eax
lea eax, [esp + 0x18]
push str._s_error:__d
push eax
call fcn.00a78f30
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
test esi, esi
je 0x960b9b
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x10c
ret
Function at 0x9620b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x330
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x25]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2c], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x207
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], bl
call fcn.00a7ffb0
add esp, 0xc
cmp esi, ebx
je 0x9621ee
cmp byte [esi], bl
je 0x9621ee
push esi
xor eax, eax
lea edx, [esp + 0x24]
push str.SYSTEMCurrentControlSetServices_s
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00a78f30
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 1
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebp, ebx
jne 0x9621ee
call fcn.009548e0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.DeleteFlag
push edx
mov dword [esp + 0x28], 8
call ebp
cmp byte [esp + 0x18], 1
je 0x962277
push 0x208
lea eax, [esp + 0x12c]
push ebx
push eax
mov dword [esp + 0x1c], 0x208
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ImagePath
push ecx
call ebp
test eax, eax
je 0x962208
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0095fe20
cmp eax, 1
je 0x9621ee
mov ebx, esi
call fcn.00960bc0
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.00a78f21
add esp, 0x330
ret
cmp edi, ebx
je 0x962272
lea ecx, [esp + 0x128]
call fcn.009619b0
lea eax, [esp + 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [edi]
cmp al, bl
je 0x962272
cmp al, 0x22
je 0x962272
push edi
call dword [sym.imp.USER32.dll_CharLowerA]
push 0xad8680
push edi
call fcn.00a7a220
add esp, 8
cmp eax, ebx
jne 0x96225c
push 0xae30c8
push edi
call fcn.00a7a220
add esp, 8
cmp eax, ebx
je 0x962261
mov byte [eax + 4], bl
jmp 0x962272
push 0x20
push edi
call fcn.00a7a2c0
add esp, 8
cmp eax, ebx
je 0x962272
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x334]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x330
ret
Function at 0x962410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x52c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push ebp
mov ebp, dword [esp + 0x538]
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x1c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x207
lea ecx, [esp + 0x225]
push 0
push ecx
mov byte [esp + 0x22c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea edx, [esp + 0x42d]
push 0
push edx
mov byte [esp + 0x434], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00a7ffb0
add esp, 0xc
test ebp, ebp
je 0x9624af
mov byte [ebp], 0
test ebx, ebx
je 0x962635
cmp byte [ebx], 0
je 0x962635
push 0
push 0
xor edx, edx
mov ecx, ebx
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x962635
mov eax, ebx
call fcn.0094dd20
test eax, eax
jne 0x962635
lea ecx, [esp + 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x962507
mov byte [esp + 0x118], al
jmp 0x962513
lea ecx, [esp + 0x118]
call fcn.00960910
lea edx, [esp + 0x428]
push edx
mov ecx, ebx
call fcn.0095af90
add esp, 4
lea eax, [esp + 0x428]
push 0x2e
push eax
call fcn.00a7aa50
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x962555
inc ecx
cmp byte [ecx], 0
je 0x962555
mov eax, 0xad16c0
call fcn.0094c330
test eax, eax
je 0x962635
lea esi, [esp + 0x10]
call fcn.0095b540
lea ecx, [esp + 0x11]
push ecx
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x118], 0
jne 0x962591
mov eax, esi
push eax
push ebx
lea ecx, [esp + 0x228]
push str._s._s.mwt
push ecx
call fcn.00a78f30
add esp, 0x10
jmp 0x9625bb
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x22c]
push str._s_s._s.mwt
push edx
call fcn.00a78f30
add esp, 0x14
lea edi, [esp + 0x220]
call fcn.009626c0
cmp eax, 1
jne 0x962653
cmp dword [esp + 0x544], 0
je 0x9625e3
push 0
mov ecx, edi
call fcn.00957a90
push 0
push 0
xor edx, edx
mov ecx, ebx
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x962635
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x228]
push str._s._s.mwt
push ecx
call fcn.00a78f30
add esp, 0x10
lea edi, [esp + 0x220]
call fcn.009626c0
cmp eax, 1
jne 0x9626b5
push 0
lea ecx, [esp + 0x224]
call fcn.00957a90
mov eax, 1
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x52c
ret
cmp byte [esp + 0x118], 0
je 0x962689
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x228]
push str._s._s.mwt
push eax
call fcn.00a78f30
add esp, 0x10
lea edi, [esp + 0x220]
call fcn.009626c0
cmp eax, 1
je 0x962627
test ebp, ebp
je 0x96269c
push 0x100
mov esi, ebp
call fcn.00960b00
add esp, 4
cmp dword [esp + 0x544], 0
je 0x9626b5
lea ecx, [esp + 0x220]
push ecx
mov ecx, ebx
call fcn.00957a90
xor eax, eax
jmp 0x96263a
Function at 0x9626c0
Capabilities:
Check if file exists
Move file

Disassembly:
push ecx
push ebp
push esi
test ebx, ebx
je 0x9627a8
test edi, edi
je 0x9627a8
cmp byte [ebx], 0
je 0x9627a8
cmp byte [edi], 0
je 0x9627a8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
push ebx
call esi
cmp eax, 1
jne 0x9626fd
mov eax, 1
pop esi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x9627a8
cmp eax, 0xb7
jne 0x962728
mov eax, edi
call fcn.0094dd20
cmp eax, 1
jne 0x962728
push edi
push ebx
call esi
cmp eax, 1
je 0x9626f4
xor ebp, ebp
push ebp
push ebp
xor edx, edx
mov ecx, edi
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x962746
mov esi, edi
lea ebp, [eax + 1]
call fcn.0098d3d0
mov esi, ebx
mov dword [esp + 8], 0x28
call fcn.00966c80
test eax, eax
je 0x962764
mov esi, edi
call fcn.00966c80
test eax, eax
jne 0x96276c
mov dword [esp + 8], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x28
call esi
test ebp, ebp
je 0x962785
mov eax, edi
call fcn.0094dd20
push 0xa
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x9626f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x9627a8
sub dword [esp + 8], 1
jne 0x962772
pop esi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x9627b0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ecx
push esi
mov eax, edi
call fcn.0094dd20
test eax, eax
jne 0x9627d2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x9627da
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop esi
pop ecx
ret
mov eax, edi
call fcn.0095a560
cmp eax, 0xffffffff
je 0x9627f6
test al, 7
je 0x9627f6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
call fcn.0094dd20
test eax, eax
jne 0x9627d2
call esi
mov esi, eax
cmp esi, 2
je 0x9627ca
cmp dword [esp + 0xc], 0
je 0x96281f
push 1
push 0
mov ecx, edi
call fcn.00962410
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x962830
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
test edi, edi
je 0x9628e5
cmp byte [edi], 0
je 0x9628e5
push 0
call fcn.009627b0
add esp, 4
cmp eax, 1
je 0x9628e5
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.0095a0f0
add esp, 8
test eax, eax
je 0x962898
push 0x2000000
push 3
push 3
push 0x80000000
call fcn.0094db00
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x9628e5
lea eax, [esp + 0x10]
push eax
call fcn.00985290
mov esi, edi
call fcn.0098d3d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea ecx, [ecx]
mov eax, edi
call fcn.0094dd20
cmp eax, 1
je 0x9628e5
call ebp
cmp eax, 2
je 0x9628dd
push 0x64
call esi
inc ebx
cmp ebx, 0x14
jl 0x9628b0
push 1
call fcn.009627b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x962920
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
mov byte [ebx], 0
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
jb 0x962a1e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp]
push edx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x962a1e
mov ecx, dword [esp]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x19
push ecx
call edi
test eax, eax
jne 0x962a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x962a13
mov edx, dword [esp + 8]
push esi
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x962a12
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push 0x19
push edx
call edi
test eax, eax
je 0x962a0b
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov cl, byte [eax]
mov eax, dword [esi]
dec cl
movzx edx, cl
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jae 0x9629ff
mov byte [ebx], 1
jmp 0x962a0b
cmp eax, 0x3000
sbb cl, cl
add cl, 3
mov byte [ebx], cl
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
lea edx, [esp + 4]
push edx
call fcn.00985290
pop edi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0xa0
ret

Function at 0x962b90
Capabilities:
Check os version

Disassembly:
sub esp, 0x110
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
lea esi, [ebx + 1]
cmp dword [0xbfc9d0], ebx
jne 0x962c2d
mov dword [0xbfc9d0], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x962c2d
cmp al, 6
jb 0x962c2d
mov dword [0xbfc9d4], esi
mov ecx, str.SeSecurityPrivilege
call fcn.0095fcc0
call fcn.00962a40
mov esi, eax
cmp esi, ebx
je 0x962c54
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.00a7ffb0
add esp, 0xc
push esi
push edi
call fcn.00962b20
cmp eax, ebx
je 0x962c4f
push eax
mov byte [esp + 0x10], bl
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
mov edi, eax
lea esi, [esp + 0x10]
call fcn.00960a40
add esp, 4
jmp 0x962c54
cmp dword [0xbfc9d4], ebx
jne 0x962bd0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x110
ret
mov ebx, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x110
ret
Function at 0x9633e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
lea eax, [esp + 8]
push eax
xor ebp, ebp
push str.SystemCurrentControlSetControlProductOptions
xor ebx, ebx
push 0x80000002
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x9634b9
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x9634b8
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x9634b8
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x9634b7
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x9634aa
cmp dword [esp + 0x18], 7
jne 0x9634aa
mov esi, edi
cmp byte [edi], bl
je 0x9634aa
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Terminal_Server
push esi
call ebp
test eax, eax
je 0x9634a2
push esi
call ebx
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x963486
jmp 0x9634aa
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
pop edi
pop esi
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x9634c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x963620
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp dword [0xbfc948], 0
je 0x963657
mov eax, dword [0xbfc94c]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00a78f21
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x963699
or eax, 0xffffffff
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00a78f21
add esp, 0xa0
ret
mov edx, 2
mov eax, 1
mov dword [0xbfc948], eax
cmp dword [esp + 0x10], edx
je 0x9636cf
mov dword [0xbfc94c], 0
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00a78f21
add esp, 0xa0
ret
mov cl, byte [esp + 0x9a]
cmp cl, al
jne 0x963713
cmp dword [esp + 4], 5
jb 0x9636f6
cmp dword [esp + 8], eax
jb 0x9636f6
mov ecx, 0x200
cmp word [esp + 0x98], cx
je 0x963730
mov dword [0xbfc94c], edx
mov eax, edx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00a78f21
add esp, 0xa0
ret
mov eax, 3
cmp cl, al
jne 0x963730
mov edx, 0x80
cmp word [esp + 0x98], dx
jne 0x963730
mov eax, 4
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov dword [0xbfc94c], eax
call fcn.00a78f21
add esp, 0xa0
ret
Function at 0x9662e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push 0x45
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call fcn.00a7ffb0
push 0xaa1574
push esi
call fcn.00a7932f
mov esi, eax
add esp, 0x14
test esi, esi
je 0x96638f
push edi
push 2
push 0xffffffffffffffc2
push esi
call fcn.00a79da2
push esi
push 0x3e
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00a799fb
push esi
mov edi, eax
call fcn.00a79e9e
add esp, 0x20
cmp edi, 0x3e
pop edi
jne 0x96638f
mov al, 0xad
cmp byte [esp + 0x40], al
jne 0x96638f
cmp byte [esp + 0x41], al
jne 0x96638f
push str.__0fU8QTFFN7ney00Kww8jh3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 8]
push str.__0fU8QTFFN7ney00Kww8jh3
push edx
call fcn.00a7aed7
add esp, 0xc
test eax, eax
jne 0x966388
mov eax, 1
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00a78f21
add esp, 0x4c
ret
cmp byte [esp + 4], 0x3b
je 0x966373
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x4c
ret