joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013fef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1001c4e0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10014020
xor eax, eax
jmp 0x100141a9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1001f5e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001405c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10014f17
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10014137
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10014175
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x100140c0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100140b1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10014091
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10014100
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10014109
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10014082
jmp 0x1001410b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100141a4
cmp dword [ebp - 0x6c], edi
je 0x10014175
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001416a
call fcn.1000f0f1
mov dword [eax], 9
call fcn.1000f0fa
mov dword [eax], esi
jmp 0x1001419f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001415f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001410b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001410b
push dword [ebp - 0x6c]
call fcn.1000f103
pop ecx
jmp 0x1001419f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001418d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001418d
xor eax, eax
jmp 0x100141a7
call fcn.1000f0f1
mov dword [eax], 0x1c
call fcn.1000f0fa
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100141a7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000c9ce
add ebp, 0x3a0
leave
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6096440c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x72672d31
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10004620
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x214
test eax, eax
push esi
push edi
je 0x10004639
cmp byte [eax], 0
jne 0x10004775
mov ecx, dword [0x10012278]
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000475b
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.10007410
add esp, 8
test eax, eax
je 0x10004744
mov byte [eax], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x1000f0ac
push 0x1000f0a8
lea eax, [esp + ecx + 0x1c]
push eax
call fcn.100073b5
push 0x1000f094
lea ecx, [esp + 0x128]
push str.SoftwareRainbow_TechnologiesiKeyiKey_ComponentsiKey_Application_Interfaces_s
push ecx
call fcn.100073b5
add esp, 0x18
lea edx, [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0x118]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x10004779
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.Path
push eax
call edi
call sym.iKeyAPI.dll_ikey_GetLibVersion
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push esi
push str.Version
push edx
mov dword [esp + 0x28], eax
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x214
ret 4
mov esi, 0x57
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
add esp, 0x214
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
add esp, 0x214
ret 4
mov esi, dword [esp + 0xc]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x214
ret 4
Function at 0x10004790
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareRainbow_TechnologiesiKeyiKey_ComponentsiKey_Application_Interfaces
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100047db
mov ecx, dword [esp + 0x10]
push 0x1000f094
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareRainbow_TechnologiesiKeyiKey_ComponentsiKey_Application_Interfaces
push 0x80000002
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10004837
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x10004837
mov ecx, dword [esp + 0x10]
push ecx
call ebx
push str.SoftwareRainbow_TechnologiesiKeyiKey_ComponentsiKey_Application_Interfaces
push 0x80000002
call edi
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareRainbow_TechnologiesiKeyiKey_Components
push 0x80000002
call esi
test eax, eax
jne 0x10004889
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x10004889
mov eax, dword [esp + 0x10]
push eax
call ebx
push str.SoftwareRainbow_TechnologiesiKeyiKey_Components
push 0x80000002
call edi
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.SoftwareRainbow_TechnologiesiKey
push 0x80000002
call esi
test eax, eax
jne 0x100048db
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x100048db
mov edx, dword [esp + 0x10]
push edx
call ebx
push str.SoftwareRainbow_TechnologiesiKey
push 0x80000002
call edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareRainbow_Technologies
push 0x80000002
call esi
test eax, eax
jne 0x1000492c
push eax
push eax
push eax
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
je 0x1000492c
mov ecx, dword [esp + 0x10]
push ecx
call ebx
push str.SoftwareRainbow_Technologies
push 0x80000002
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x10004950
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push esi
jne 0x10004964
pop esi
mov eax, 0x11
pop ebp
ret 0xc
push 4
push 0x1000
push 0xf4
push 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000498f
pop esi
mov eax, 0x10
pop ebp
ret 0xc
push edi
mov ecx, 0x3d
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov dword [esi], 0x5242544b
mov dword [esi + 8], eax
call fcn.10005450
mov dword [0x10012288], eax
mov dword [ebp], esi
call fcn.10004ac0
test eax, eax
je 0x10004aa6
push str.WinScard.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x44], eax
je 0x10004a87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SCardEstablishContext
push eax
call edi
mov ecx, dword [esi + 0x44]
push str.SCardReleaseContext
push ecx
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 0x44]
push str.SCardConnectA
push edx
mov dword [esi + 0x4c], eax
call edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x44]
push str.SCardDisconnect
push eax
call edi
mov ecx, dword [esi + 0x44]
push str.SCardControl
push ecx
mov dword [esi + 0x54], eax
call edi
mov edx, dword [esi + 0x44]
push str.SCardGetStatusChangeA
push edx
mov dword [esi + 0x58], eax
call edi
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x44]
push str.SCardBeginTransaction
push eax
call edi
mov ecx, dword [esi + 0x44]
push str.SCardEndTransaction
push ecx
mov dword [esi + 0x60], eax
call edi
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x64], eax
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10004a80
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x10004a80
test eax, eax
jne 0x10004a87
mov dword [esi + 0x48], 0x10004940
call fcn.10004c70
test eax, eax
je 0x10004aa6
pop edi
pop esi
mov byte [0x1000f185], 0
mov byte [0x1000f184], 1
xor eax, eax
pop ebp
ret 0xc
pop edi
pop esi
mov byte [0x1000f184], 0
mov byte [0x1000f185], 1
xor eax, eax
pop ebp
ret 0xc
Function at 0x10004ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2dc
mov al, byte [0x1001228c]
push ebx
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x1ac]
mov dword [esp + 0x1a8], 0
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x114]
or esi, 0xffffffff
push ecx
mov dword [esp + 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x124]
dec eax
je 0x10004bb9
dec eax
jne 0x10004c5d
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10004c4b
mov edi, str.WINSCARD.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1a8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004c4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0xffffffff
pop edi
pop esi
setne al
pop ebx
add esp, 0x2dc
ret
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallSmartcardBase
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004c5d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10004c4b
mov edi, str.SystemWINSCARD.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1a8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004c4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0xffffffff
pop edi
pop esi
setne al
pop ebx
add esp, 0x2dc
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2dc
ret
Function at 0x100050e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa4
push ebx
push esi
mov esi, dword [esp + 0xb0]
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esi], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov ebx, 4
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10005158
mov eax, dword [esp + 0x2c]
cmp eax, 2
jne 0x100051c8
mov eax, dword [esp + 0x20]
cmp eax, 5
jb 0x10005166
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServices_rnbtokenParameters
jmp 0x10005178
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa4
ret 4
cmp eax, ebx
jne 0x10005158
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServicesusbrbtknParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005158
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push str.UseRM
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000514d
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xa4
ret 4
cmp eax, 1
jne 0x10005158
mov eax, dword [esp + 0x20]
cmp eax, ebx
ja 0x100051e3
jne 0x10005158
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x10005158
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServices_rnbtokenParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000522b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push str.UseRM
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000514d
jmp 0x100051ac
lea ecx, [esp + 0x18]
push ecx
call fcn.10005260
test eax, eax
je 0x10005158
mov esi, dword [esp + 0x18]
xor edx, edx
cmp edx, esi
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0xa4
ret 4
Function at 0x10005260
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xb0]
mov ebx, 4
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebx
mov dword [edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000535b
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x100053b1
mov eax, dword [esp + 0x1c]
cmp eax, 5
jb 0x10005369
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServicesikeyenum
push 0x80000002
call esi
test eax, eax
jne 0x1000530e
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push edi
push eax
push 0
push str.NumberOfDevices
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005350
jmp 0x1000540a
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServices_rnbtoken
push 0x80000002
call esi
test eax, eax
jne 0x1000535b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push edi
push eax
push 0
push str.NumberOfDevices
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000540a
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa0
ret 4
cmp eax, ebx
jne 0x1000535b
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServicesusbrbtknParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000535b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push edi
push eax
push 0
push str.NumberOfDevices
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005350
jmp 0x1000540a
cmp eax, 1
jne 0x1000535b
mov eax, dword [esp + 0x1c]
cmp eax, ebx
ja 0x100053c8
jne 0x1000535b
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x1000535b
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SystemCurrentControlSetServicesVXDIKEYVR9X
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005431
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push edi
push eax
push 0
push str.NumberOfDevices
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005426
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xa0
ret 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10004ed0
pop edi
pop esi
pop ebx
add esp, 0xa0
ret 4
Function at 0x10005f10
Capabilities:
Check os version
Get common file path
Get file version info

Disassembly:
sub esp, 0x1a8
lea eax, [esp]
push edi
push eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
call fcn.10006090
add esp, 4
test eax, eax
je 0x10005f44
mov eax, dword [esp + 4]
pop edi
add esp, 0x1a8
ret
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10006080
lea edx, [esp + 0xa8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10006080
mov eax, dword [esp + 0x24]
dec eax
je 0x10005fbc
dec eax
jne 0x10006080
mov eax, dword [esp + 0x18]
cmp eax, 5
jae 0x10005fde
cmp eax, 4
jne 0x10005fb2
lea ecx, [esp + 0xa8]
push str.System32Driversusbrbtkn.sys
push ecx
jmp 0x10005feb
xor eax, eax
pop edi
add esp, 0x1a8
ret
mov eax, dword [esp + 0x18]
cmp eax, 4
ja 0x10005fde
jne 0x10005fcf
mov eax, dword [esp + 0x1c]
test eax, eax
ja 0x10005fde
lea edx, [esp + 0xa8]
push str.System_rnbtkn95.sys
push edx
jmp 0x10005feb
lea eax, [esp + 0xa8]
push str.System32Drivers_rnbtoken.sys
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0xac]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jbe 0x10006073
lea edi, [eax + 1]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10006073
push esi
push edi
lea eax, [esp + 0xb4]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000606c
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x1000f47c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000606c
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [eax + 8]
mov dx, word [eax + 8]
shr ecx, 0x10
shl ecx, 8
or ecx, edx
xor edx, edx
mov dx, word [eax + 0xc]
shl ecx, 0x10
or ecx, edx
mov dword [esp + 8], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 8]
pop esi
pop edi
add esp, 0x1a8
ret
or eax, 0xffffffff
pop edi
add esp, 0x1a8
ret
Function at 0x10006090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x68
mov ecx, 0x16
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall6257E290_5E8E_11D4_9B8D_00D0B72459DD
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x74]
mov edi, 0x20019
mov dword [esi], 0
call fcn.10005ec0
test eax, eax
je 0x100060c5
mov edi, 0x20119
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push edi
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100061c2
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x74]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.VersionMajor
push edx
mov dword [esp + 0x24], 4
call edi
test eax, eax
jne 0x100061ac
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xc]
shl eax, 0x18
mov dword [esi], eax
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.VersionMinor
push ecx
call edi
test eax, eax
jne 0x100061ac
mov edx, dword [esp + 0x74]
mov eax, dword [esi]
shl edx, 0x10
or eax, edx
lea ecx, [esp + 0x74]
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.VersionRevision
push eax
call edi
test eax, eax
jne 0x100061ac
mov eax, dword [esp + 0x74]
mov edx, dword [esi]
mov ecx, eax
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x74]
or edx, ecx
lea ecx, [esp + 0x10]
mov dword [esi], edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push 0
push str.VersionBuild
push edx
call edi
test eax, eax
jne 0x100061ac
mov eax, dword [esp + 0x74]
mov ecx, dword [esi]
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x68
ret
pop edi
xor eax, eax
pop esi
add esp, 0x68
ret

Function at 0x100061d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4