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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x1000a8d0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x100046f4
add eax, 8
inc ebp
cmp eax, 0x1000a960
jb 0x100046e5
cmp ecx, dword [ebp*8 + 0x1000a8d0]
jne 0x1000489b
mov eax, dword [0x1000d9a4]
cmp eax, 1
je 0x1000485d
test eax, eax
jne 0x10004720
cmp dword [0x1000d9a8], 1
je 0x1000485d
cmp ecx, 0xfc
je 0x1000489b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000475b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x100047a4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1000879c
add ebx, ecx
push ebx
call fcn.10005ff0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000877c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x1000a8d4]
or ecx, 0xffffffff
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10006eb0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1000ef60]
test eax, eax
je 0x1000486e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10004878
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1000a8d4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x10004a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x10004a5c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x1000ef60]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x10004a97
push 2
push ebp
push ecx
call fcn.10004930
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10004bf9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x10004b41
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10004af2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x10004adf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x10004ac2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004bea
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x10004b3d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x10004abe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10004bd9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10004b95
cmp eax, 5
jne 0x10004b7e
call fcn.10003650
mov dword [eax], 9
call fcn.10003660
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.100035d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x10004bb5
cmp byte [ebp], 0x1a
jne 0x10004bb5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10003650
mov dword [eax], 0x1c
call fcn.10003660
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10004b3d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004c2a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x10004b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10004b41
Function at 0x10007a70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1000df1c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x10007ab8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10007a98
mov eax, 1
jmp 0x10007ab3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10007b89
mov eax, 2
mov dword [0x1000df1c], eax
cmp eax, 1
jne 0x10007ad8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10007b9b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10007af3
mov ecx, dword [0x1000da28]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x10007b12
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.10005000
mov edi, eax
add esp, 4
test edi, edi
jne 0x10007b26
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10007b80
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10007b64
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x10007b80
push edi
call fcn.10004f90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x10007b90
push edi
call fcn.10004f90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.10004f90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10007ba0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1000df20]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x10007be8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10007bcc
mov eax, 1
jmp 0x10007be3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x10007cc8
mov eax, 2
mov dword [0x1000df20], eax
cmp eax, 2
jne 0x10007c08
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x10007cda
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10007c23
mov ecx, dword [0x1000da28]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x10007c42
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.10005000
mov esi, eax
add esp, 4
test esi, esi
jne 0x10007c59
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10007cbf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x10007ca0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10007cbf
push esi
call fcn.10004f90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x10007ccf
push esi
call fcn.10004f90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.10004f90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4031a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e25f7
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x4fe7e4
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x438], esp
call fcn.00405b10
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x218]
push edx
push str.http:__apps.corel.com_redirect__redirectcommandappcuhversion2.0functiontestonline
mov dword [ebp - 4], 0xffffffff
call fcn.00431e30
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x430], 0
jne 0x4032b5
mov dword [ebp - 0x424], 1
jmp 0x4032bf
mov dword [ebp - 0x424], 0
mov al, byte [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret
Function at 0x406a30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406a5f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
je 0x406a5d
mov byte [ebp - 1], 1
jmp 0x406a76
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
je 0x406a76
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
je 0x406a92
push 0
push 0xf012
push 0x112
mov ecx, dword [ebp - 8]
call fcn.00409730
mov esp, ebp
pop ebp
ret

Function at 0x408670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2d02
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 0
push str.CUH:_CheckCuhMutex_called
call fcn.00435f80
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push str.corel.cuh.msg
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb7
jne 0x40872a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x78], 0
je 0x40871f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x14]
call fcn.00408670
mov dword [ebp - 0x18], eax
jmp 0x408732
mov dword [ebp - 4], 0xffffffff
jmp 0x408742
mov eax, dword [ebp - 0x18]
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 0x409c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e1b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004153a0
mov dword [ebp - 4], 0
push 3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x500310
lea ecx, [ebp - 0x18]
call fcn.004157f0
push eax
push 0x500324
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00415310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2e41
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0
push 0x500360
lea ecx, [ebp - 0x238]
call fcn.004153a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40a036
push 0x50037c
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40a029
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x228]
test eax, eax
jl 0x40a029
mov dword [ebp - 0x220], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x40a092
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x220], 1
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00415310
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.004152e0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00415890
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40aa59
cmp dword [ebp - 0x14], 1
je 0x40aa68
cmp dword [ebp - 0x14], 2
je 0x40aa68
push 0x500438
lea ecx, [ebp - 0x30]
call fcn.004155b0
jmp 0x40aadb
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00415930
lea ecx, [ebp - 0x30]
call fcn.00415b20
cmp dword [ebp - 0x14], 2
jne 0x40aadb
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.004152e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00415890
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.00415930
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00415600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00415310
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415330
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00415310
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ac10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ac7b
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ac71
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3135
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.004e1270
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1038]
call fcn.004152e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1020], 0
lea eax, [ebp - 0x1020]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x40b8ca
mov byte [ebp - 0x1016], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1016]
jmp 0x40b999
mov dword [ebp - 0x1028], 0x800
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
jmp 0x40b8f9
mov eax, dword [ebp - 0x101c]
add eax, 1
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x1024], 0
jne 0x40b97a
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1014]
push edx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x1020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1024], eax
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.MSVCR120.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40b96b
mov byte [ebp - 0x1017], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1017]
jmp 0x40b999
mov dword [ebp - 0x1028], 0x800
jmp 0x40b8ea
mov byte [ebp - 0x1015], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret
Function at 0x40c540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e32a9
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x244]
call fcn.004152e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jbe 0x40c733
mov ecx, dword [ebp - 0x230]
add ecx, 1
push ecx
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0
je 0x40c733
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c70f
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x4ffed0
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c70f
cmp dword [ebp - 0x220], 0
jbe 0x40c70f
mov eax, dword [ebp - 0x22c]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x22c]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR120.dll_swprintf_s]
add esp, 0x14
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c70f
cmp dword [ebp - 0x220], 0
jbe 0x40c70f
cmp dword [ebp - 0x22c], 0
je 0x40c704
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x220]
jbe 0x40c704
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
mov byte [ebp - 0x219], 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x220]
mov dword [ecx], edx
cmp dword [ebp - 0x224], 0
je 0x40c733
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov dl, byte [ebp - 0x219]
mov byte [ebp - 0x225], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00415310
mov al, byte [ebp - 0x225]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e11cc
mov esp, ebp
pop ebp
ret 0xc