joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493980
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x51e3ec]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x493993
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4939d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x51e494]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x493a06
mov bl, byte [esp + ecx + 0x4c]
jmp 0x493a0a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4939fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x493a28
mov bl, byte [esp + ecx + 0x4c]
jmp 0x493a2c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x493a1d
xor ecx, ecx
mov eax, 0x51e3fc
xor ebx, ebx
mov bl, byte [ecx + 0x51e4a4]
cmp byte [esp + ebx + 0x14], 0
je 0x493a57
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x51e4bc]
cmp byte [esp + ebx + 0x14], 0
je 0x493a6e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x493a3e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4939c7
lea edx, [esp + 0x84]
push edx
call fcn.00493ab0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49cfc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49d01a
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 8]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49d01a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edx, eax
je 0x49d02f
mov eax, dword [esp]
test eax, eax
je 0x49d029
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret 0x18
mov eax, dword [esp]
test eax, eax
je 0x49d03e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret 0x18

Function at 0x49d050
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49d0a9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x49d0be
mov eax, dword [esp]
test eax, eax
je 0x49d0b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret 0x18
mov eax, dword [esp]
test eax, eax
je 0x49d0cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret 0x18

Function at 0x49d0e0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
test ecx, ecx
mov dword [esp + 4], 0
je 0x49d14b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49d14b
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x49d114
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret 0xc
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49d13c
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x49d152
mov eax, dword [esp + 4]
test eax, eax
je 0x49d14b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 4]
test eax, eax
je 0x49d161
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 0xc
Function at 0x49d170
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x398
mov eax, dword [esp + 0x39c]
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x378
je 0x49d2fb
mov ecx, dword [esp + 0x3a8]
test ecx, ecx
je 0x49d2fb
mov edi, dword [esp + 0x3ac]
test edi, edi
je 0x49d2fb
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49d2fb
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49d2bc
cmp dword [esp + 0xc], 0x378
jne 0x49d2bc
lea eax, [esp + 0x28]
push eax
push edi
call fcn.004a8a70
add esp, 8
test eax, eax
je 0x49d2dc
cmp dword [esp + 0x154], 1
jne 0x49d2dc
cmp dword [esp + 0x178], 2
jne 0x49d2dc
mov ecx, dword [esp + 0x150]
lea edx, [esp + 0x10]
push ecx
push 0x5244c8
push edx
call fcn.004a8a12
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
push eax
push ecx
push edx
mov ecx, esi
call fcn.0049d050
test eax, eax
je 0x49d2bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x49d2cf
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
je 0x49d2c6
push eax
call esi
jmp 0x49d2c2
mov eax, dword [esp + 0x3b0]
test eax, eax
je 0x49d2dc
inc dword [eax]
mov eax, dword [esp + 8]
test eax, eax
je 0x49d2eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x398
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x398
ret 0x10
Function at 0x49d310
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x49d47c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x49d47c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x49d47c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x49d47c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49d460
cmp dword [esp + 0x10], 0x378
jne 0x49d460
cmp dword [esp + 0x158], 1
jne 0x49d489
cmp dword [esp + 0x17c], 2
jne 0x49d489
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x5244c8
push ecx
call fcn.004a8a12
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x49d460
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0049d4c0
test eax, eax
je 0x49d460
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.0049cfc0
test eax, eax
je 0x49d460
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x49d489
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49d471
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x49d47c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49d49a
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x49d4a5
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x49d4c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x49d581
mov eax, dword [esp + 0x488]
test eax, eax
je 0x49d581
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49d581
cmp dword [esp], 0x378
jne 0x49d581
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x49d581
lea edx, [esp + 4]
push edx
call fcn.0049cf50
add esp, 4
test eax, eax
je 0x49d581
cmp dword [esp + 0x234], 1
jne 0x49d573
cmp dword [esp + 0x258], 2
jne 0x49d573
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x49d581
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49d581
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x49d590
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x49d5ef
push esi
call fcn.0049cf50
add esp, 4
test eax, eax
je 0x49d5ef
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x49d5ef
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x49d5ef
push 0x5244ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x49d680
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x49d6b4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0049d590
test eax, eax
jne 0x49d6cd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0049d600
cmp eax, 1
je 0x49d85a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x49d706
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x49d782
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49d802
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.0049d4c0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x49d819
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x49d722
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x49d7d0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.0049d170
test eax, eax
je 0x49d802
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x49d79e
cmp dword [esp + 0x18], 1
jb 0x49d802
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.0049d050
cmp eax, 1
je 0x49d84b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49d829
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x49d802
push ebp
mov ecx, ebx
call fcn.0049d870
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49d85a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x49d870
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x49d8a2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.0049d600
test eax, eax
jne 0x49d8bf
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x49d8e6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x49d934
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.0049d310
test eax, eax
jne 0x49d91d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x49d903
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.0049d0e0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x49d957
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x4baaee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bab26
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b8b7b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b8b53
jmp 0x4bab32
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bc1e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bc225
call fcn.004c218b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bc225
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bc21c
xor eax, eax
jmp 0x4bc22d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bc233
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c26bb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c26e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c2707
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c2621
jmp 0x4c2707
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c2707
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c2621
test edi, edi
mov eax, edi
jne 0x4c26f1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 4]
push eax
push 0x20219
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallNVIDIAStereo
push 0x80000002
xor bl, bl
call dword [0x48600c]
test eax, eax
jne 0x401060
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.InstallLocation
push ecx
mov dword [esp + 0x20], 0x104
call dword [0x486028]
test eax, eax
jne 0x401055
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [0x486024]
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x401390
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 0xf023f
xor ebx, ebx
push ebx
push 0x48bf10
push 0x80000002
mov dword [esp + 0x18], ebx
call dword [0x48600c]
mov edx, dword [esp + 4]
mov dword [esp + 8], edx
cmp edx, ebx
je 0x4013fc
mov eax, edi
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4013c7
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edi
push 1
push ebx
push str.Stereoscopic_3D_Viewer
push edx
call dword [0x486020]
pop esi
test eax, eax
jne 0x4013f1
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [0x486024]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x401640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push 0x20219
push ebx
push 0x48c028
push 0x80000002
mov dword [esp + 0x20], 4
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov byte [esi + 0xab], bl
mov dword [esp + 0x28], ebx
call dword [0x48600c]
mov eax, dword [esp + 0x14]
mov ebp, eax
cmp eax, ebx
je 0x401757
push edi
mov edi, dword [0x486028]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x48c094
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4016c8
cmp dword [esp + 0xc], ebx
setne dl
mov byte [esi + 0xa8], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x48c0bc
push ebp
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4016f5
cmp dword [esp + 0xc], ebx
setne al
mov byte [esi + 0xaa], al
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x48c0f0
push ebp
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x401722
cmp dword [esp + 0xc], ebx
setne cl
mov byte [esi + 0xab], cl
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x48c118
push ebp
mov dword [esp + 0x24], ebx
call edi
pop edi
test eax, eax
jne 0x401750
cmp dword [esp + 8], ebx
setne dl
mov byte [esi + 0xa9], dl
push ebp
call dword [0x486024]
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x401db0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x728
mov eax, dword [0x495808]
xor eax, esp
mov dword [esp + 0x724], eax
push ebp
push esi
mov esi, ecx
push 0x2000
mov dword [esp + 0xc], esi
call fcn.004505fe
add esp, 4
cmp dword [esi + 0xa4], 3
mov ebp, eax
je 0x401fcc
lea eax, [esp + 0x114]
push eax
call entry0
lea ecx, [esp + 0x118]
push str._x86_
push ecx
call fcn.0046c68c
add esp, 0xc
test eax, eax
mov eax, str._ProgramFiles_x86__
jne 0x401e18
mov eax, str._ProgramFiles_
push eax
lea edx, [esp + 0x118]
push str._sNVIDIA_Corporation3D_Vision
push edx
call fcn.0046c9c9
lea eax, [esi + 0xae]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push str._Sdesktop.ini
push eax
call fcn.0046cda4
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
call dword [0x4862c4]
mov edx, 0xfeff
mov word [ebp], dx
cmp byte [esi + 0xa9], 0
mov eax, dword [0x496ab4]
jne 0x401e6f
mov eax, dword [0x496ab0]
push ebx
push edi
push eax
lea eax, [esp + 0x120]
push eax
lea ecx, [ebp + 2]
push str._.ShellClassInfo__r_nLocalizedResourceName__s_nvstlink.exe___d_r_n__r_n
push ecx
call fcn.0046c9c9
mov edi, ebp
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401e90
mov ecx, 0xb
mov esi, str._LocalizedFileNames__r_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, 8
nop
mov edx, dword [esp + 0x10]
cmp byte [edx + 0xa9], 0
je 0x401ec5
mov eax, dword [ebx + 0x496ab4]
jmp 0x401ecb
mov eax, dword [ebx + 0x496ab0]
push eax
lea eax, [esp + 0x120]
push eax
mov eax, dword [ebx + 0x496ab0]
push 1
push 0
call fcn.00403930
add esp, 8
push eax
lea ecx, [esp + 0x330]
push str._s.lnk__s_nvstlink.exe___d_r_n
push ecx
call fcn.0046c9c9
lea eax, [esp + 0x338]
add esp, 0x14
mov ecx, eax
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401f05
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401f20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebx, 8
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x68
jb 0x401eb0
lea edx, [esp + 0x18]
push 0x48c3cc
push edx
call fcn.0046cee5
add esp, 8
mov esi, eax
pop edi
pop ebx
test esi, esi
je 0x401f89
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f65
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
push 1
push ebp
call fcn.0046d43e
push esi
call fcn.0046d260
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [0x4862cc]
cmp eax, 0xffffffff
je 0x401fa8
or eax, 2
push eax
lea edx, [esp + 0x14]
push edx
call dword [0x4862c8]
mov esi, dword [esp + 0xc]
push esi
call dword [0x4862f0]
cmp eax, 0xffffffff
je 0x401fc3
or eax, 4
push eax
push esi
call dword [0x4862bc]
push ebp
call fcn.00450609
add esp, 4
mov ecx, dword [esp + 0x72c]
pop esi
pop ebp
xor ecx, esp
call fcn.0046c67d
add esp, 0x728
ret