joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017e0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 2
push 0
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40181b
lea ecx, [esp + 8]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x40183b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push 0x104
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40184a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x401c80
Capabilities:
Hash data with md5

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

Function at 0x402db0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x402ddb
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x402ddb
call fcn.00402ec0
test eax, eax
jl 0x402ddb
mov dword [esi + 0xd8], 0
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x402dfa
mov ecx, esi
call fcn.00404f60
test eax, eax
jl 0x402dfa
mov dword [esi + 0xe0], 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x405ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x927c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402e34
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 0x80004005
pop esi
pop ecx
ret
Function at 0x404850
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwareKingsoftkacksa
push SysReAllocStringLen
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404896
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.NeedForceReboot
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 1
add esp, 8
ret

Function at 0x4048a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e30b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x620
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.ksaengine.dll
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push eax
call esi
lea edx, [esp + 0x20]
push edx
call fcn.0040b8e0
add esp, 0xc
test eax, eax
je 0x404a75
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
cmp ebp, ebx
je 0x404a75
push str.CreateEngine
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404a6e
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x638], ebx
push ecx
push ebx
call eax
cmp eax, ebx
jl 0x404a55
mov edx, dword [esp + 0x10]
cmp edx, ebx
je 0x404a59
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
stosw word es:[edi], ax
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0xa0]
cmp eax, ebx
jl 0x404a55
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x404a55
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x428]
push str.SOFTWAREKingsoftKAC_
push eax
call esi
lea ecx, [esp + 0x430]
push 0x413a20
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x428]
mov dword [esp + 0x14], ebx
push edx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x404a55
mov esi, dword [str.KSADataVersion]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
lea eax, [esp + 0x220]
push edx
push eax
push 1
push ebx
push esi
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x404a55
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x638], 0xffffffff
je 0x404a6e
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret
Function at 0x4050c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4050e5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x414a34]
pop esi
test ecx, ecx
je 0x405100
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x414a34], 0
mov eax, 0x80004005
ret 4
Function at 0x408ea0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x408f05
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x408f05
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x408ec4
mov eax, dword [esi + 0x28]
push 1
push eax
jmp 0x408ee1
mov eax, dword [esi + 0x28]
test eax, eax
je 0x408ee7
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408ee7
mov ecx, dword [esi + 0x28]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi], 0
mov eax, 1
pop esi
ret

Function at 0x409020
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
test eax, eax
push ebp
mov dword [esp + 8], 0
je 0x409111
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x409111
mov ebx, dword [esp + 0x14]
test bx, bx
je 0x409111
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x409108
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push 0x7d0
push 2
push esi
call edi
push 4
push 0x7d0
push 5
push esi
call edi
push 4
push 0x7d0
push 6
push esi
call edi
mov eax, dword [esp + 0x18]
push 0
push 0
push 3
push 0x41487c
push 0x41487c
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0
push 0x4000000
push 0
push 0
push 0
mov ebx, eax
push ebp
push 0x413040
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x4090fd
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4090fa
mov dword [esp + 0x10], 1
push edi
call ebp
test ebx, ebx
pop edi
je 0x409105
push ebx
call ebp
push esi
call ebp
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40a040
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40a0a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40a061
pop esi
ret
lea eax, [esi + 4]
mov dword [esi + 0x34], 1
push eax
push 0
push esi
push 0x40a140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x40a09a
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
xor eax, eax
pop esi
ret
inc dword [0x414a48]
mov eax, 1
pop esi
ret
Function at 0x40a0b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40a116
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40a116
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40a0d4
mov eax, dword [esi + 0x2c]
push 1
push eax
jmp 0x40a0f1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40a0f7
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a0f7
mov ecx, dword [esi + 0x2c]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 4], 0
mov eax, 1
pop esi
ret

Function at 0x40a230
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
test eax, eax
push ebp
mov dword [esp + 8], 0
je 0x40a321
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x40a321
mov ebx, dword [esp + 0x14]
test bx, bx
je 0x40a321
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40a318
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push 0x7d0
push 2
push esi
call edi
push 4
push 0x7d0
push 5
push esi
call edi
push 4
push 0x7d0
push 6
push esi
call edi
mov eax, dword [esp + 0x18]
push 0
push 0
push 3
push 0x41487c
push 0x41487c
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0
push 0x4000000
push 0
push 0
push 0
mov ebx, eax
push ebp
push 0x413040
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x40a30d
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a30a
mov dword [esp + 0x10], 1
push edi
call ebp
test ebx, ebx
pop edi
je 0x40a315
push ebx
call ebp
push esi
call ebp
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40a530
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40a630
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40a630
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x280
call edi
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ebp
push eax
push ebp
mov dword [esp + 0x20], 0x280
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40a593
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0x1c]
push ecx
call edi
add esp, 8
mov dword [esp + 0x10], eax
mov ebp, eax
lea edx, [esp + 0x18]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x40a618
test ebp, ebp
mov dword [esp + 0xc], eax
je 0x40a618
push ebx
mov eax, dword [ebp + 0x190]
xor ebx, ebx
test eax, eax
jbe 0x40a60c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add eax, 0xfffffffe
cmp ecx, eax
jae 0x40a60c
xor ecx, ecx
mov cl, byte [ebx + ebp + 0x194]
push ecx
push str._02x
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov edi, esi
not ecx
dec ecx
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x190]
mov dword [esp + 0x10], edx
not ecx
dec ecx
add esi, ecx
inc ebx
cmp ebx, eax
jb 0x40a5b7
mov ebp, dword [ebp]
test ebp, ebp
jne 0x40a5ab
mov ebp, dword [esp + 0x14]
pop ebx
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
pop edi
pop ebp
pop esi
add esp, 8
ret 8
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x40a670
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x11c
push ebp
mov ebp, dword [esp + 0x124]
test ebp, ebp
jne 0x40a691
mov eax, 0x80070057
pop ebp
add esp, 0x11c
ret 8
cmp dword [esp + 0x128], 0xa
jae 0x40a6aa
mov eax, 0x80070057
pop ebp
add esp, 0x11c
ret 8
mov eax, dword [0x414294]
push edi
mov dword [esp + 0x20], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push 0x104
push ecx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40a774
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xd], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x11], edx
mov byte [esp + 0xc], 0
mov dword [esp + 0x15], edx
mov dword [esp + 0x19], edx
mov word [esp + 0x1d], dx
push edx
push edx
push edx
push eax
push ecx
mov byte [esp + 0x33], dl
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x20]
add esp, 0x14
test edx, edx
je 0x40a774
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414290
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop edi
je 0x40a7ae
mov edx, dword [esp + 4]
push edx
push 0x41428c
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, 1
neg eax
sbb eax, eax
pop ebp
and eax, 0x7fffbffb
add eax, 0x80004005
add esp, 0x11c
ret 8
Function at 0x40ab60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ea80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040a820
test eax, eax
jne 0x40aba2
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], 4
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x40abe0
lea eax, [ebp - 0x1c]
push 0x410de0
push eax
mov dword [ebp - 0x1c], edi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x40ac1d
lea edx, [ebp - 0x24]
push 0x410de0
push edx
mov dword [ebp - 0x24], edi
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x40ac18
ret
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40ac2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ea90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040a820
test eax, eax
jne 0x40ac82
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 4]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
xor edi, edi
push eax
mov eax, dword [esi]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x40acc3
lea ecx, [ebp - 0x20]
push 0x410de0
push ecx
mov dword [ebp - 0x20], edi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 4
push edx
push 3
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x40acff
lea edx, [ebp - 0x24]
push 0x410de0
push edx
mov dword [ebp - 0x24], edi
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x40acfa
ret
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40ad0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ad30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eaa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040a820
test eax, eax
jne 0x40ad72
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], 8
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x40adb0
lea eax, [ebp - 0x1c]
push 0x410de0
push eax
mov dword [ebp - 0x1c], edi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x40aded
lea edx, [ebp - 0x24]
push 0x410de0
push edx
mov dword [ebp - 0x24], edi
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x40ade8
ret
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40adfb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ae10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
call fcn.0040a820
test eax, eax
jne 0x40ae52
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 4]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
xor edi, edi
push eax
mov eax, dword [esi]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x40ae93
lea ecx, [ebp - 0x20]
push 0x410de0
push ecx
mov dword [ebp - 0x20], edi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 8
push edx
push 3
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
je 0x40aecf
lea edx, [ebp - 0x24]
push 0x410de0
push edx
mov dword [ebp - 0x24], edi
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x40aeca
ret
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x40aedd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jl 0x40b865
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x110]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x104
ret
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 8
mov edi, str.Application_Data
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40b8e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b8fa
test al, 0x10
jne 0x40b8fa
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40bdf0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
je 0x40beae
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x40beae
mov ecx, dword [esp + 0x28]
mov dword [ebx], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x40beae
lea edx, [esi + esi]
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x40beae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push ebp
push esi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40bea5
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0x413b6c
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bea5
cmp dword [esp + 0x14], edi
jbe 0x40be90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
jmp 0x40be98
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [ebx], eax
mov edi, 1
mov dword [edx], ecx
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret