joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10095c57
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 0x10095c99
call fcn.1009b72d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10095c99
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10095c90
xor eax, eax
jmp 0x10095ca1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10095ca7
pop edi
pop esi
pop ebx
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ad84
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4323d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040813a
mov dword [ebp - 0x14], eax
cmp dword [0x2c8ee94], esi
jne 0x40ae77
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ae04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40af57
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40af57
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40af57
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c8ee94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c8ee98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8ee9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8eea4], eax
test eax, eax
je 0x40ae74
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8eea0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ae9c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ae8f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40aeb1
push 4
pop eax
jmp 0x40af59
cmp dword [ebp - 0x14], esi
je 0x40aeb1
push dword [0x2c8ee94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ae96
mov eax, dword [0x2c8eea0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40af0f
cmp dword [0x2c8eea4], edi
je 0x40af0f
push eax
call ebx
push dword [0x2c8eea4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40af0f
test eax, eax
je 0x40af0f
call ecx
test eax, eax
je 0x40af04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40af04
test byte [ebp - 8], 1
jne 0x40af0f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40af3f
mov eax, dword [0x2c8ee98]
cmp eax, edi
je 0x40af3c
push eax
call ebx
test eax, eax
je 0x40af3c
call eax
mov esi, eax
test esi, esi
je 0x40af3c
mov eax, dword [0x2c8ee9c]
cmp eax, edi
je 0x40af3c
push eax
call ebx
test eax, eax
je 0x40af3c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c8ee94]
call ebx
test eax, eax
je 0x40af57
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040405e
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4014c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4014d6
push 0x80004005
call fcn.004010a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401500
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401518
push 0x80004005
call fcn.004010a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401525
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x200
call fcn.0042fa40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push str.SoftwareAdobeAdobe_Acrobat9.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x401d15
lea ecx, [esp + 8]
push ecx
push str.SoftwareAdobeAdobe_Acrobat9.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
lea edx, [esp + 8]
push edx
push str.SoftwareAdobeAdobe_Reader9.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x401d15
lea eax, [esp + 8]
push eax
push str.SoftwareAdobeAdobe_Reader9.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
lea ecx, [esp + 8]
push ecx
push str.SoftwareAdobeAdobe_Reader9.0LanguageCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
shr eax, 1
test esi, esi
jne 0x401d03
cmp dword [esp + 0x10], 1
jne 0x401d03
cmp eax, 4
jb 0x401d03
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea esi, [edi + eax*2 - 8]
push 0x4327c0
push esi
call ebx
add esp, 8
test eax, eax
je 0x401da5
push 0x4327b8
push esi
call ebx
add esp, 8
test eax, eax
je 0x401da5
mov eax, dword [esp + 0x1c]
push esi
push 4
push eax
call fcn.00401040
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x402050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4020be
test ecx, ecx
je 0x4020b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4020cc
test ecx, ecx
je 0x402171
push ecx
jmp 0x40216b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40213e
jmp 0x402100
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00402050
mov edi, eax
test edi, edi
jne 0x40218d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x402100
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402155
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402171
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042fac4
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40219c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402173

Function at 0x402440
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40245c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x402484
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x403d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4308c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x43c4f0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x403ded
call fcn.00401230
mov esi, eax
jmp 0x403ed5
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x403e09
call fcn.00401230
jmp 0x403ecc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x403e22
call fcn.00401230
jmp 0x403ecc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x403e58
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403e46
lea ecx, [ebp]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401bc0
mov eax, 0x8007000e
jmp 0x403ef2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402950
mov dword [ebp - 4], 1
jmp 0x403e81
mov ebx, dword [ebp]
test ebx, ebx
jne 0x403e8f
mov esi, 0x8007000e
jmp 0x403ece
call dword [0x43c4f0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403eb0
call fcn.00401230
jmp 0x403ecc
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403ef0
lea ecx, [ebp]
call fcn.00401c40
jmp 0x403ef0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042fac4
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4043c6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x404395
cmp eax, 2
jne 0x4043b1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4043c0
test eax, eax
je 0x4043bb
test al, 1
jne 0x4043b1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4043c0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x404530
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4309e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x404584
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x40]
push edx
call fcn.004043e0
add esp, 4
mov esi, eax
call dword [0x43c4f0]
lea ecx, [esp + 0xc]
call fcn.0040c790
mov edi, dword [esp + 0x44]
push edi
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0
call fcn.0040c490
test al, al
jne 0x4045e7
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18
lea eax, [esp + 0x38]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40461a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c070
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18
Function at 0x404650
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x18
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40476f
push ebp
push esi
mov ebp, 0xff
push 0x1fe
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x404762
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push edx
mov dword [esp + 0x30], ebp
call edi
test eax, eax
jne 0x404757
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push ecx
call ebx
test eax, eax
jne 0x404756
mov edx, dword [esp + 0x10]
push esi
push edx
call fcn.00404650
add esp, 8
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push ecx
call ebx
test eax, eax
jne 0x404756
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x1c]
je 0x404756
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push 0
push edx
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x4046d0
pop ebx
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x18
ret
Function at 0x404790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430958
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x4047d9
mov eax, 0x80004005
jmp 0x4048e0
call dword [0x43c4f0]
mov edx, dword [ebp + 0x14]
push edx
mov ebx, eax
call fcn.004043e0
mov edi, eax
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
call fcn.0040c790
mov esi, dword [ebp + 0x18]
push esi
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.0040c490
test al, al
jne 0x40482b
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 1
jmp 0x4048e0
test esi, esi
jne 0x404833
xor eax, eax
jmp 0x404860
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404848
xor eax, eax
jmp 0x404860
lea edi, [eax + eax]
mov eax, edi
call fcn.0042fbf0
mov eax, esp
push ebx
push edi
push esi
push eax
call fcn.00404310
mov edi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4048cf
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x404897
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40489b
xor eax, eax
jmp 0x4048b0
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00404310
push 4
lea edx, [ebp + 0x20]
push edx
push 4
push 0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
xor eax, eax
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fac4
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x404910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430958
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
jne 0x404959
mov eax, 0x80004005
jmp 0x404a49
call dword [0x43c4f0]
mov edx, dword [ebp + 0x14]
push edx
mov ebx, eax
call fcn.004043e0
mov esi, eax
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
call fcn.0040c790
mov edi, dword [ebp + 0x18]
push edi
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.0040c490
test al, al
jne 0x4049ab
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 1
jmp 0x404a49
test edi, edi
jne 0x4049b3
xor eax, eax
jmp 0x4049e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4049c8
xor eax, eax
jmp 0x4049e0
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00404310
mov esi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404a38
mov edx, dword [ebp + 0x20]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404a07
mov ecx, dword [ebp + 0x1c]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [ebp - 0x14]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
xor eax, eax
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fac4
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x404a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430988
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0040bb20
add esp, 8
test eax, eax
je 0x404c44
call dword [0x43c4f0]
mov edx, dword [ebp + 0x14]
push edx
mov dword [ebp - 0x14], eax
call fcn.004043e0
mov esi, eax
add esp, 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], esi
call fcn.0040c790
mov edi, dword [ebp + 0x18]
push edi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0040c490
test al, al
jne 0x404b06
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 1
jmp 0x404c49
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x404b26
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 0x57
jmp 0x404c49
cmp word [eax], 1
jne 0x404c35
cmp dword [eax + 4], 1
jne 0x404c35
cmp dword [eax + 0x14], 0
jne 0x404c35
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
je 0x404b6b
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, esi
jmp 0x404c49
test edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x404b79
xor eax, eax
jmp 0x404ba2
push edi
call ebx
add eax, 1
cmp eax, 0x3fffffff
jle 0x404b8a
xor eax, eax
jmp 0x404ba2
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov edx, dword [ebp - 0x14]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00404310
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404c18
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x404bd8
push edi
call ebx
add eax, 1
cmp eax, 0x3fffffff
jle 0x404bdc
xor eax, eax
jmp 0x404bf4
lea esi, [eax + eax]
mov eax, esi
call fcn.0042fbf0
mov ecx, dword [ebp - 0x14]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00404310
mov edx, dword [ebp + 0x20]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebp - 0x20]
push ecx
push edx
push 3
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
xor eax, eax
jmp 0x404c49
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c070
mov eax, 0x80004005
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fac4
mov esp, ebp
pop ebp
ret 0x1c