joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405720
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x405757
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x405670
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x4057cc
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x405779
jmp dword [eax*4 + 0x4057f8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
pop esi
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 8], edx
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
pop esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
add esp, 0x24
ret
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret

Function at 0x405f00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x184
push ebp
push esi
xor esi, esi
push edi
push esi
call fcn.00407670
mov ebp, dword [esp + 0x198]
add esp, 4
test eax, eax
je 0x405f58
mov edi, dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea ecx, [esp + 0x10]
push 0x80
push ecx
push eax
call edi
lea edx, [esp + 0x10]
push edx
push 0
push 0x143
push 0x3f7
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
inc esi
push esi
call fcn.00407670
add esp, 4
test eax, eax
jne 0x405f25
call fcn.00402290
mov edi, eax
test edi, edi
je 0x406023
push ebx
mov eax, dword [edi + 0x24]
test eax, eax
jbe 0x40600f
mov esi, 1
push esi
push edi
call fcn.00406a70
push esi
push edi
mov ebx, eax
call fcn.004069d0
push eax
push 7
call fcn.00405d10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x12c]
push 0x80
push eax
push ebx
call fcn.0040f0c0
mov ecx, dword [esp + 0x34]
add esp, 0x24
lea edx, [esp + 0x14]
push ecx
push str.__30s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x14]
push edx
push 0
push 0x180
push 0x3e9
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebx
push eax
push 0x19a
push 0x3e9
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [edi + 0x24]
inc esi
lea eax, [esi - 1]
cmp eax, ecx
jb 0x405f78
push edi
call fcn.004022a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x405f68
pop ebx
push 0
push 0
push 0x186
push 0x3e9
push ebp
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebp
call fcn.00406050
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x184
ret
Function at 0x406f70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4194c0
push 0x4110b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x41fdac]
test eax, eax
push 0
push 1
push 0xf1
je 0x406fb3
push 0x442
mov eax, dword [ebp + 8]
push eax
jmp 0x406fbc
push 0x443
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x28], 0
call fcn.00402290
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x4070cd
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebx + 0x1c]
jae 0x4070bf
mov eax, dword [ebp - 0x28]
add eax, 0x44d
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4070b4
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x407055
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x1c]
inc edx
push edx
call eax
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x407055
test edi, edi
jne 0x40705e
mov edi, 0x41fef0
push 0x41c448
push edi
call fcn.0041128d
add esp, 8
test eax, eax
je 0x407075
mov word [eax], 0
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + ecx*4], 0
je 0x4070a2
push 0
push 1
push 0xf1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41fdac]
test eax, eax
je 0x4070b4
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 0x28]
inc dword [ebp - 0x1c]
jmp 0x406fe9
push ebx
call fcn.004022a0
add esp, 4
jmp 0x406fd5
mov eax, dword [0x41fda8]
test eax, eax
je 0x4070fb
push 0
push 1
push 0xf1
push 0x404
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call ebx
push eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
jmp 0x40710a
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp + 8]
mov eax, dword [0x41fdb0]
test eax, eax
je 0x407127
push 0
push 1
push 0xf1
push 0x444
push esi
call ebx
push eax
call edi
mov eax, dword [0x41fdb4]
test eax, eax
je 0x407144
push 0
push 1
push 0xf1
push 0x407
push esi
call ebx
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x248
lea eax, [esp + 0x40]
push ebx
push ebp
push 0
push 0
push str.DreyeWeb.ini
push eax
call fcn.0040e920
test eax, eax
je 0x40a37a
lea ecx, [esp + 0x48]
push ecx
push 0
push str.Count
push str.Count
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
test ebx, ebx
je 0x40a37a
mov eax, dword [0x41fda0]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00402080
add esp, 8
test eax, eax
je 0x40a37a
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebp, eax
test ebp, ebp
je 0x40a37a
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
test ebx, ebx
jbe 0x40a33e
mov esi, 0x1f5
lea ecx, [esi - 0x1f4]
lea edx, [esp + 0x10]
push ecx
push str.Online_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push eax
push 0x40
push 0x420040
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x420040
push esi
push 0
push ebp
call edi
inc esi
lea eax, [esi - 0x1f5]
cmp eax, ebx
jb 0x40a2f0
mov ecx, dword [0x41fed4]
push 0x80
push 0x420040
push 0x19e
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [esp + 0x25c]
push 0x420040
push ebp
push 0x10
push esi
call edi
push 0
push 0
push 0x800
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret

Function at 0x40a400
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x228
push esi
mov esi, dword [esp + 0x230]
cmp esi, 0x1f5
jb 0x40a4ad
cmp esi, 0x257
ja 0x40a4ad
push 0
push 0
lea eax, [esp + 0x2c]
push str.DreyeWeb.ini
push eax
call fcn.0040e920
test eax, eax
je 0x40a4ad
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Count
push str.Count
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, 0x1f5
cmp esi, eax
jae 0x40a4ad
add esi, 0xfffffe0c
lea edx, [esp + 4]
push esi
push str.Online_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 4]
push eax
push 0x40
push 0x420040
push 0
push str.Link
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 5
push 0
push 0
push 0x420040
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
add esp, 0x228
ret

Function at 0x40a670
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41fd54]
push 0x40aab0
push 0
push eax
call sub.DreyeWndU.dll_Ordinal_14
mov ecx, dword [0x41fd54]
push 0x40b300
push 3
push ecx
call sub.DreyeWndU.dll_Ordinal_14
mov edx, dword [0x41fd54]
push 0x40b3c0
push 4
push edx
call sub.DreyeWndU.dll_Ordinal_14
call fcn.0040b8d0
call fcn.0040b5f0
call fcn.0040b800
call fcn.0040b880
call fcn.0040bbc0
call fcn.0040bea0
call fcn.0040c0a0
mov eax, dword [0x41fd54]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.0040c290
add esp, 4
mov eax, 1
ret
Function at 0x40e4e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x618
push esi
push edi
push 0x41960c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e57c
mov ecx, dword [0x452188]
test ecx, ecx
jle 0x40e51b
inc dword [0x452188]
pop edi
mov eax, 1
pop esi
add esp, 0x618
ret 8
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x452184], eax
jne 0x40e54b
pop edi
pop esi
add esp, 0x618
ret 8
push str.DreyeRegPathInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e566
pop edi
pop esi
add esp, 0x618
ret 8
push 0x41fef0
call eax
test eax, eax
jne 0x40e505
pop edi
pop esi
add esp, 0x618
ret 8
mov eax, dword [esp + 0x628]
test eax, eax
jne 0x40e5ee
push str.Dreye_Basic_Info
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
jne 0x40e5a7
pop edi
pop esi
add esp, 0x618
ret 8
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x40e5d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x618
ret 8
lea eax, [esp + 8]
push edi
push eax
call fcn.00411056
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e61a
mov edx, dword [esp + 0x624]
lea ecx, [esp + 8]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 8]
push eax
call esi
lea ecx, [esp + 8]
push ecx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x418]
push edx
push eax
call fcn.00411056
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 8
lea ecx, [esp + 8]
push str.peadict_api
push ecx
call esi
lea edx, [esp + 8]
push 0x41960c
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [esp + 8]
push eax
call edi
test eax, eax
mov dword [0x452184], eax
jne 0x40e66e
pop edi
pop esi
add esp, 0x618
ret 8
mov ecx, dword [0x452188]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
inc ecx
push str.DreyeRegPathInit
push eax
mov dword [0x452188], ecx
call esi
test eax, eax
jne 0x40e698
pop edi
pop esi
add esp, 0x618
ret 8
lea ecx, [esp + 0x418]
push ecx
call eax
test eax, eax
jne 0x40e6b1
pop edi
pop esi
add esp, 0x618
ret 8
lea edx, [esp + 0x210]
push 0x41960c
push edx
call fcn.0040e9a0
test eax, eax
je 0x40e50b
lea eax, [esp + 0x210]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00418ca0
add esp, 8
test eax, eax
je 0x40e50b
call fcn.0040e750
lea edx, [esp + 0x210]
push edx
call edi
test eax, eax
mov dword [0x452184], eax
jne 0x40e71b
lea eax, [esp + 8]
push eax
call edi
test eax, eax
mov dword [0x452184], eax
jne 0x40e71b
pop edi
pop esi
add esp, 0x618
ret 8
push str.DreyeRegPathInit
push eax
call esi
test eax, eax
jne 0x40e732
pop edi
pop esi
add esp, 0x618
ret 8
lea ecx, [esp + 0x418]
push ecx
call eax
test eax, eax
jne 0x40e50b
pop edi
pop esi
add esp, 0x618
ret 8
Function at 0x40ef50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40efa8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4196bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ef9b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40efaa
xor eax, eax
pop esi
leave
ret 4

Function at 0x40f0c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x120
lea eax, [esp + 0x20]
push esi
push 0x41fef0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x128]
push esi
call fcn.004076d0
add esp, 4
test eax, eax
je 0x40f1c1
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea ecx, [esp + 0x30]
push 0x41c448
push ecx
call ebp
push esi
call fcn.004076e0
add esp, 4
test eax, eax
je 0x40f11d
lea edx, [esp + 0x30]
push str.ALT_
push edx
call ebp
push esi
call fcn.004076f0
add esp, 4
test eax, eax
je 0x40f136
lea eax, [esp + 0x30]
push str.CTRL_
push eax
call ebp
push esi
call fcn.00407700
add esp, 4
test eax, eax
je 0x40f14f
lea ecx, [esp + 0x30]
push 0x41ceb8
push ecx
call ebp
push esi
call fcn.00407710
push eax
call fcn.004076b0
add esp, 8
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call fcn.00407670
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x10]
push eax
xor edi, edi
call ebx
test eax, eax
jbe 0x40f1a6
lea esi, [esp + 0x10]
cmp word [esi], 0x20
jne 0x40f197
mov word [esi], 0x5f
lea ecx, [esp + 0x10]
inc edi
push ecx
add esi, 2
call ebx
cmp edi, eax
jb 0x40f18c
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
call ebp
lea ecx, [esp + 0x30]
push 0x41ceb4
push ecx
call ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop esi
add esp, 0x120
ret
Function at 0x40f6b0
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x17c
lea eax, [esp + 0x14]
push ebx
push esi
push edi
push eax
call fcn.0040fe70
add esp, 4
test eax, eax
je 0x40f873
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SOFTWAREInventecDreye9.0SystemInstallInfo
push reloc.DreyeWndU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f873
mov ecx, 0x41
lea edi, [esp + 0x84]
rep stosd dword es:[edi], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x84]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.BasePath
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f74f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x17c
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x84]
push str.Dreye.dat
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x98]
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f873
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x40f873
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ecx, [eax + eax]
push ecx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40f86c
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 0
push edx
push eax
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f860
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
cmp ecx, eax
jne 0x40f860
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
add eax, esi
push eax
push str.1286778865168009793704897271_1401991873881511404685535119
call fcn.0040fd00
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x38]
push esi
push ecx
call fcn.00411a40
add esp, 0x20
test eax, eax
je 0x40f848
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x17c
ret
mov edx, dword [esp + 0x18c]
pop edi
mov eax, 1
mov dword [edx], esi
pop esi
pop ebx
add esp, 0x17c
ret
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x17c
ret
Function at 0x40fe70
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
sub esp, 0x70
lea eax, [esp]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREInventecDreye9.0SystemInstallInfo
push reloc.DreyeWndU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40fe9b
xor eax, eax
pop edi
add esp, 0x70
ret
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push str.CountryNo
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40feef
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x70
ret
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x7c]
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
pop edi
add esp, 0x70
ret

Function at 0x410a00
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x16c
lea eax, [esp + 0x68]
push esi
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x6c]
push str.InventecDreye9.0User.dat
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 3
lea edx, [esp + 0x80]
push Ordinal_4
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410a9c
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0x64
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410a95
cmp dword [esp + 4], 0x64
jne 0x410a95
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x174]
lea edx, [esp + 8]
push edx
push eax
call fcn.0040fc30
add esp, 8
and eax, 0xff
pop esi
add esp, 0x16c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x16c
ret
Function at 0x410ab0
Capabilities:
Get common file path
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x174
lea eax, [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x180]
push esi
push edi
push eax
push 0x20019
push 0
push str.SoftwareInventecDreye9.0System
push reloc.DreyeWndU.dll_Ordinal_1
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410b44
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.UserName
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410b39
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
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]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410b62
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x174
ret
push 1
lea ecx, [esp + 0x84]
push 0x23
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x80]
push str.InventecDreye9.0User.dat
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x94]
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410c21
push 0
push 0
push 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x410c1a
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x24]
push 0x64
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410c1a
cmp dword [esp + 0x10], 0x64
jne 0x410c1a
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x174
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174
ret

Function at 0x410c30
Capabilities:
Check if file exists
Get common file path

Disassembly:
jmp 0x410c40
sub esp, 0x104
lea eax, [esp]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp]
push str.InventecDreye9.0User.dat
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x104
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219