joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ca50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d92d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x9c]
mov dword [esi + 0xd0], 0xffffffff
push edi
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.0048d370
push 0x681a1c
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0048d320
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x48cad6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407c00
xor eax, eax
mov dword [ebp - 0x2c], 7
push edi
lea edx, [esi + 0x6c]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x40], ax
call fcn.0048d370
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.005b9dba
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 8
jb 0x48cb40
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407c00
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x48cb69
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
Function at 0x4922f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9be8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x492455
cmp dword [ebp - 0x10], 0
je 0x492455
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x49235f
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x492382
push 0x80070057
call fcn.004037b0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x49239f
push edx
lea ecx, [ebp - 0x14]
call fcn.004033c0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [esi - 8]
push esi
test eax, eax
jne 0x492424
call fcn.005acb27
add esp, 8
test eax, eax
js 0x492378
cmp eax, dword [esi - 8]
jg 0x492378
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x4923e7
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x492474
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005acb27
add esp, 8
test eax, eax
js 0x492378
cmp eax, dword [esi - 8]
jg 0x492378
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov ecx, esi
call fcn.00403880
add eax, 0x10
jmp 0x4923f2
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x49246a
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492490
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9c20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x492541
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x492541
push eax
lea ecx, [ebp - 0x24]
call fcn.00486f70
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push dword [ebp - 0x24]
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, esi
test eax, eax
jne 0x492536
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004926f0
jmp 0x49256a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.0040d170
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492594
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4935d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, esi
mov dword [ebp - 4], eax
push edi
test edx, edx
je 0x49361f
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x493636
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x493619
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x493644
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x493650
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4936c0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
Function at 0x494250
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x494404
push 0x66f538
push 0x100
call fcn.0058a28a
xor ebx, ebx
mov dword [ebp - 0x34], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x4942b6
mov ebx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x4942cb
mov esi, dword [edi + 4]
sub esi, dword [edi]
jmp 0x4942cd
xor esi, esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.004862e0
mov ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x4942ec
test eax, eax
je 0x4942f8
test edi, edi
je 0x4942f8
push eax
mov ecx, edi
call fcn.00486f70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0x100
push ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4943da
mov edx, dword [ebp + 0xc]
nop
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4943fd
test edi, edi
je 0x49437d
mov edx, dword [edi + 4]
xor eax, eax
sub edx, dword [edi]
mov dword [ebp - 0x18], ecx
add dword [ebp - 0x18], esi
adc eax, dword [ebp - 0x1c]
test eax, eax
jb 0x494368
ja 0x49435a
cmp dword [ebp - 0x18], edx
jbe 0x494368
lea eax, [esi + ecx]
mov ecx, edi
push eax
call fcn.00486f70
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
push ecx
add eax, esi
push ebx
push eax
call fcn.005a3320
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
add esi, ecx
adc eax, 0
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x4943a9
push ecx
push eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call edx
add esp, 0x24
test eax, eax
je 0x4943da
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0x100
push ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp + 0xc]
test eax, eax
jne 0x494330
xor esi, esi
test ebx, ebx
je 0x4943e9
push ebx
call fcn.0058a1aa
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x4943dc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9eee
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x494551
test ebx, ebx
je 0x494551
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00494090
or edi, 0xffffffff
test eax, eax
je 0x49450f
mov ecx, dword [ebp - 0x20]
test ecx, ecx
setne al
test al, al
je 0x49450f
push 0x13
lea eax, [ebp - 0x14]
push eax
call fcn.00486190
mov esi, dword [ebp - 0x14]
push esi
call fcn.005b566a
add esp, 4
mov dword [ebp - 0x14], eax
add esi, 0xfffffff0
mov ecx, edi
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4944c4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 0x51eb851f
mul dword [ebp - 0x14]
shr edx, 5
cmp edx, 3
je 0x4944e5
cmp edx, 4
je 0x49450f
cmp edx, 5
je 0x49450f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4944f5
lea eax, [ebp - 0x20]
push eax
call fcn.00489ec0
mov edx, dword [ebp - 0x20]
sub esp, 8
push dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00494570
add esp, 0x14
mov ebx, eax
jmp 0x494511
xor ebx, ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x49453d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x49453d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x49453d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495260
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0058a800
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x4953c6
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00494e20
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4953a9
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d0c], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d08], xmm0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.005a2d80
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49539e
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.005a2d80
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.0049a4e0
add esp, 8
lea eax, [ebp - 0x5ec]
mov edx, 0x64
push SysReAllocString
push eax
push ecx
mov ecx, dword [ebp - 0x2d10]
call fcn.00488820
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4953b3
inc esi
cmp esi, 0x10
jl 0x495290
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
Function at 0x495690
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x4f4], esi
test esi, esi
je 0x495863
push ebx
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.005a2d80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x495832
push edi
xor esi, esi
mov dword [ebp - 0x4e4], 0x104
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x495823
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call ebx
test eax, eax
jne 0x4957ed
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4ec], 0x208
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4957e5
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.005a2d80
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.00495570
add esp, 4
test eax, eax
je 0x4957e5
cmp byte [ebp - 0x68], 0
je 0x4957cb
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4957e5
push SysReAllocString
lea eax, [ebp - 0xcc]
mov edx, 0x64
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00488820
push dword [ebp - 0x4e8]
call edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc esi
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x495724
push dword [ebp - 0x4e0]
call edi
mov esi, dword [ebp - 0x4f4]
pop edi
cmp byte [ebp - 0x68], 0
pop ebx
je 0x495863
push SysReAllocString
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
push ecx
mov ecx, esi
call fcn.00488820
not eax
shr eax, 0x1f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
Function at 0x495c70
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da098
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x663a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x495cf6
mov eax, dword [0x664894]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x495cda
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x495cc5
mov dword [0x664894], 1
jmp 0x495cde
push esi
push dword [ebp + 0xc]
mov dword [0x664894], 0
call fcn.00496be0
jmp 0x495d21
test eax, eax
je 0x495ceb
push esi
push dword [ebp + 0xc]
call fcn.00495d60
test eax, eax
jne 0x495d21
push esi
push dword [ebp + 0xc]
call fcn.00496be0
jmp 0x495d21
push dword [ebp + 0xc]
call fcn.00496980
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495d43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x496be0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x496d7c
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00402f90
mov ecx, eax
test ecx, ecx
jne 0x496c90
push 0x80004005
call fcn.004037b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.00407e20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a2d80
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00496e40
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.005ac88b
add esp, 8
test eax, eax
je 0x496d46
test esi, esi
jne 0x496d1b
lea eax, [esi + 0xd]
jmp 0x496d4c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496d20
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x496d4c
mov eax, dword [ebp - 0x220]
xor ebx, ebx
mov byte [ebp - 4], 0
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496d6f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x496d7e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x496d7e
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 8

Function at 0x496da0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x681c70], 0
mov dword [ebp - 8], 0
jne 0x496dcd
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x681c70
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x681c70
call fcn.004035d0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x496df0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x681e70], 0
mov dword [ebp - 8], 0
jne 0x496e1f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x681e70
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x681e70
call fcn.004035d0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x496e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x496eb1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x496e7f
cmp eax, 2
jne 0x496e9b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x496eab
test ecx, ecx
je 0x496ea6
test cl, 1
jne 0x496e9b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x496eab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc