joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011a0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
call fcn.00401040
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
push ecx
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x401211
push esi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x401211
lea eax, [ebp - 0xc]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x401217
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x401312
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401263
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 1
push 1
push edi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x401269
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push 1
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401282
mov ebx, 0x400
push 0x44
lea eax, [ebp - 0x84]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 8]
push edi
mov ecx, 5
mov word [ebp - 0x54], cx
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
push edi
push edi
push edx
push edi
push eax
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x58], 1
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ebx, 1
test eax, eax
jne 0x4012ea
mov ebx, edi
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4012f4
push eax
call esi
mov eax, dword [ebp - 0x34]
cmp eax, edi
je 0x4012fe
push eax
call esi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x401308
push eax
call esi
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x401312
push eax
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435119
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x28], ebx
mov byte [ebx], al
mov dword [ebp - 4], eax
push 0x288
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0x288
mov dword [ebp - 0x20], eax
call fcn.00403e2d
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov edi, eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x4014cb
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00403e2d
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
lea edx, [ebp - 0x1c]
push edx
push edi
call esi
test eax, eax
jne 0x40153b
mov eax, dword [edi + 0x190]
xor esi, esi
test eax, eax
je 0x40152f
movzx edx, byte [edi + esi + 0x194]
dec eax
mov ecx, esi
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x2d
push ecx
push edx
lea eax, [ebp - 0x18]
push str._02X_c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x18]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401510
sub eax, ecx
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
call fcn.00403840
mov eax, dword [edi + 0x190]
inc esi
cmp esi, eax
jb 0x4014e2
cmp dword [ebx + 0x10], 0
jne 0x40153b
mov edi, dword [edi]
test edi, edi
jne 0x4014d6
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40154c
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401700
mov ecx, dword [ebp - 0x38]
push ecx
mov byte [0x44006c], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x38]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4017ac
mov ecx, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push str.cznv
push ecx
call esi
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x2e]
movzx ecx, word [ebp - 0x32]
movzx edx, word [ebp - 0x34]
push eax
push ecx
push edx
lea eax, [ebp - 0x24]
push 0x43dfa8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x24]
push edx
push 1
push 0
push str.record
push eax
call esi
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x44006c], 1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x44006c], 1
xor eax, eax
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret

Function at 0x4017d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall3C391AEB_1C44_48E2_9895_C609C893E1FA
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x118], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401890
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.DisplayIcon
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.CzNewTips.exe
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x110]
push edx
call fcn.004011a0
mov eax, dword [ebp - 0x114]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x4018a0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall3C391AEB_1C44_48E2_9895_C609C893E1FA
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401971
lea edx, [ebp - 0x110]
push edx
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push str.DisplayIcon
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.CzMiniPage.exe
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004343fa
mov esp, ebp
pop ebp
ret

Function at 0x401990
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall3C391AEB_1C44_48E2_9895_C609C893E1FA
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x118], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401aa6
lea edx, [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push str.DisplayIcon
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.CzMiniPage.exe
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401a99
lea eax, [ebp - 0x110]
push eax
call fcn.004011a0
add esp, 4
cmp esi, 1
jne 0x401a60
push esi
jmp 0x401a91
push 0
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 4
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x258
idiv ecx
imul edx, edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004026b0
add esp, 4
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x148], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ba6
lea edx, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push str.mini_data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x140]
push eax
jne 0x401bb6
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401be6
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.mini_data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.rcsvccfg10.ini
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.http:__down.hao3603.com_rcsvccfg10.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [ebp - 0x108]
push edx
push 3
push str.counts
push str.bind
call esi
mov dword [0x440478], eax
lea eax, [ebp - 0x108]
push eax
push 0
push str.index
push str.Switch1
call esi
lea edx, [ebp - 0x108]
push edx
push 0
test eax, eax
push str.index
setne cl
push str.Switch2
mov byte [0x440453], cl
call esi
lea ecx, [ebp - 0x108]
push ecx
push 0x3c
test eax, eax
push str.counts
setne al
push str.interval
mov byte [0x440452], al
call esi
lea edx, [ebp - 0x108]
push edx
push 0
push str.index
push str.page
mov dword [0x440078], eax
call esi
test eax, eax
setne al
mov byte [0x440451], al
lea ecx, [ebp - 0x108]
push ecx
push 5
push 0x43e0c8
push str.wait
call esi
lea edx, [ebp - 0x108]
push edx
push 3
push str.counts
push str.page_interval
mov dword [0x440454], eax
call esi
mov dword [0x440474], eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x401ee0
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.rcminicfg10.ini
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push str.http:__down.hao3603.com_minicfg_rcminicfg10.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edx, [ebp - 0x108]
push edx
push 0
push 0x43e124
push str.config
call esi
lea ecx, [ebp - 0x108]
push ecx
push 0x11
test eax, eax
push str.hour
setne al
push str.config
mov byte [0x44047c], al
call esi
lea edx, [ebp - 0x108]
push edx
push 0x1e
push str.minute
push str.config
mov dword [0x440070], eax
call esi
mov dword [0x440074], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0x43e140
push str.config
call esi
test eax, eax
lea edx, [ebp - 0x108]
setne cl
push edx
mov byte [0x440450], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret
Function at 0x402270
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x148], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023cf
lea edx, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push str.data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x140]
push eax
jne 0x402369
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402399
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004343fa
mov esp, ebp
pop ebp
ret

Function at 0x4023e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402452
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.cznv
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402452
inc dword [ebp - 4]
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.cznv
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402460
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402610
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402622
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x242]
movzx edx, word [ebp - 0x246]
movzx eax, word [ebp - 0x248]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call edi
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x130]
push 0x43e154
push edx
call dword [sym.imp.MSVCR100.dll_sscanf]
movzx eax, word [ebp - 0x242]
movzx ecx, word [ebp - 0x246]
mov edx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x254]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x250]
call fcn.00401c30
push 0x103
mov esi, eax
lea eax, [ebp - 0x237]
push 0
push eax
mov byte [ebp - 0x238], 0
call sub.MSVCR100.dll_memset
add esp, 0x40
push esi
lea ecx, [ebp - 0x238]
push 0x43e164
push ecx
call edi
add esp, 0xc
cmp esi, dword [0x440474]
jl 0x402603
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.already
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x43dfa8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret