joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494cc0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x593228]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x494eaa
sub esp, 0x48
mov eax, dword [0x570674]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.004919d0
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046c69e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046c69e
call fcn.00491650
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.0045f1f0
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x494d97
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x494db1
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x494e28
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x494dfe
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x494dfa
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x494df3
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x494e00
mov ebx, 0x1d
jmp 0x494e1e
mov ebp, eax
jmp 0x494e00
mov ebp, eax
cmp ebp, 0xd
jae 0x494e9d
lea eax, [ebp - 1]
lea edx, [0x56b600]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x494e93
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x494e28
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x494e5a
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x494e62
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call fcn.0046c000
mov eax, ebp
mov ecx, 0xd
call fcn.0046c000
nop
call fcn.0046ab80
jmp fcn.00494cc0
Function at 0x128d2a10
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x128d2a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x128d2a5b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.12922bcf
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.12922bcf
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x128d2aa0
test esi, esi
je 0x128d2ab1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x128d2aad
push esi
call fcn.12922a56
add esp, 4
test ebx, ebx
jne 0x128d2ac0
mov edi, dword [edi]
test edi, edi
je 0x128d2ac0
push edi
call fcn.12922a56
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x128d3c20
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x4b8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x128d3d13
mov eax, dword [esp + 0x4d0]
test eax, eax
je 0x128d3d13
lea eax, [esp + 0xe0]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x128d3cfd
cmp word [esp + 0xe0], 0
je 0x128d3cfd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0xe0]
lea esi, [esp + 0xe0]
push 0x129a9d5c
push eax
call ebx
test eax, eax
je 0x128d3cf2
push 0x129a9d54
push esi
call ebx
test eax, eax
je 0x128d3cf2
mov cx, word [esi]
mov dx, word [esi + 2]
mov word [esp + 0x10], cx
lea eax, [esp + 0x18]
push 0x64
lea ecx, [esp + 0x14]
push eax
push ecx
mov word [esp + 0x1e], dx
mov word [esp + 0x20], 0
call ebp
test eax, eax
je 0x128d3d13
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x4cc]
mov edi, eax
lea eax, [esp + 0x18]
push edi
push eax
push ecx
call fcn.12922d93
add esp, 0xc
test eax, eax
je 0x128d3d20
add esi, 8
mov eax, esi
cmp word [esi], 0
jne 0x128d3c89
mov edx, dword [esp + 0x4cc]
mov eax, dword [esp + 0x4d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4b8
ret
mov esi, dword [esp + 0x4d0]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x4cc]
lea ecx, [eax + edi*2]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4b8
ret
Function at 0x128d5330
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x129885f8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x3c]
push esi
push edi
test ebx, ebx
jne 0x128d5367
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x48]
push eax
call fcn.128d5030
add esp, 4
test eax, eax
jne 0x128d538f
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
push 0
push 0
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x54]
push ecx
push edx
push 0
push ebx
mov esi, 1
call fcn.1293ee70
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
add esp, 0x1c
push eax
push ecx
push str.CheckFileSize_________dwSizeLow:_d___dwSizeHigh:_d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [0x129cc9f0]
test eax, eax
je 0x128d53f0
cmp edi, eax
jb 0x128d53f0
add eax, 0x927c0
cmp eax, edi
jae 0x128d5447
lea ecx, [esp + 0x10]
call fcn.128f65a0
push ecx
mov dword [esp + 0x40], 0
mov ecx, esp
mov dword [esp + 0x10], esp
push str.maxsize_historyfile
call fcn.12907ea0
lea ecx, [esp + 0x14]
call fcn.128f6790
lea ecx, [esp + 0x10]
call fcn.128f6c10
test eax, eax
je 0x128d5430
shl eax, 0xa
mov dword [0x129a8618], eax
lea ecx, [esp + 0x10]
mov dword [0x129cc9f0], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.128f66f0
mov edx, dword [0x129a8618]
push edx
push str.CheckFileSize__History_File_Max_Size_:__d_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov eax, dword [esp + 0x58]
add esp, 0x14
test eax, eax
ja 0x128d547d
mov eax, dword [esp + 0x48]
mov ecx, dword [0x129a8618]
cmp eax, ecx
jb 0x128d54aa
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x128d548f
push str.CheckFileSize__DeleteFile_success_
jmp 0x128d5496
xor esi, esi
push str.CheckFileSize__DeleteFile_failed_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x10
push esi
push 0x129aa26c
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x128d5790
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12988658
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
xor ebp, ebp
test edi, edi
je 0x128d589a
push ebp
push ebp
push 3
push ebp
push 7
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push edi
push esi
push str.IsSqlFile___08x___s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
cmp esi, 0xffffffff
je 0x128d589a
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SQLite_format
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x60], eax
push eax
lea eax, [esp + 0x64]
mov edi, ecx
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x128d5893
push edi
lea edx, [esp + 0x14]
push str.SQLite_format
push edx
call fcn.129333f0
add esp, 0xc
test eax, eax
jne 0x128d584f
mov ebp, 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.12907d40
mov ecx, dword [eax]
push ebp
push ecx
push 0x129aa488
push str.History
push 0xffffffffffffffff
push 0x129cd72c
mov dword [esp + 0x70], 0
call fcn.128f8920
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0xffffffff
call fcn.12908640
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x128d6c60
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x129886c8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov eax, dword [ebx + 8]
cmp eax, 0x16
jne 0x128d6c9b
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push eax
push ecx
lea esi, [ebx + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
xor edi, edi
call fcn.12907ea0
lea eax, [esp + 0x34]
push eax
call fcn.128d9e00
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], edi
push ecx
push edi
push edi
push edi
push edi
push edi
push esi
call fcn.1293ee70
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x34]
push edx
push edi
push edi
push edi
push edi
push edi
push eax
call fcn.1293ee70
add esp, 0x44
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x128d6cfc
mov edi, 1
cmp dword [ebx + 8], 0x13
jne 0x128d6d1f
call fcn.128d5ae0
test eax, eax
jne 0x128d6d1f
push esi
call fcn.128d5b90
add esp, 4
test eax, eax
je 0x128d6d1f
mov edi, 1
jmp 0x128d6d23
test edi, edi
je 0x128d6d42
mov eax, dword [ebx + 8]
push eax
push esi
call fcn.128d5330
add esp, 8
test eax, eax
je 0x128d6d42
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x2c]
push edi
push edx
push esi
push str.CopyHistoryByCompareFileTime_wszFilePath__s__wstrFilePath1__s_bCopy__lu_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x1c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.12908640
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x128dc470
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12988cf8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x20
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x128dc4a7
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebp
call fcn.129167f0
push str.SOFTWARETECOcular.3ShareDataBrowserHistory_
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], ebp
call fcn.12907ea0
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, 1
mov byte [esp + 0x30], 1
jne 0x128dc4ec
push str.Firefox
lea ecx, [esp + 0xc]
call fcn.12909290
mov esi, 0x16
jmp 0x128dc504
cmp eax, 2
jne 0x128dc504
push str.MsEdge
lea ecx, [esp + 0xc]
call fcn.12909290
mov esi, 0x22
mov eax, dword [esp + 8]
push 0x2001f
push eax
push 0x80000001
lea ecx, [esp + 0x1c]
call fcn.129169d0
test eax, eax
je 0x128dc5fe
push ebx
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x20]
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x44], 2
call fcn.128d5e00
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x50]
add esp, 0xc
xor esi, esi
cmp eax, ebp
jle 0x128dc5be
mov eax, dword [esp + 0x20]
lea edi, [eax + ebp + 0x214]
push edi
call fcn.12922b80
push eax
push edi
push ebx
call fcn.12922d93
add esp, 0x10
test eax, eax
je 0x128dc58d
mov eax, dword [esp + 0x24]
inc esi
add ebp, 0x41c
cmp esi, eax
jl 0x128dc55c
jmp 0x128dc5bc
mov ecx, dword [esp + 0x48]
mov edx, esi
mov eax, dword [esp + 0x20]
push ecx
shl edx, 5
add edx, esi
mov dword [esp + 0x18], 1
shl edx, 3
sub edx, esi
lea ecx, [eax + edx*4 + 0xc]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.12922d15
add esp, 0xc
xor ebp, ebp
mov eax, dword [esp + 0x40]
push ebx
push eax
push str.GetBrowserCfgFilePath2_lpszCfgFile__s_lpszAppPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
lea ecx, [esp + 0x18]
call fcn.129169b0
mov eax, dword [esp + 0x20]
pop edi
cmp eax, ebp
mov byte [esp + 0x34], 1
pop ebx
je 0x128dc5fe
push eax
call fcn.12922a56
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.12908640
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.129168e0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10

Function at 0x128dcd00
Capabilities:
Link many functions at runtime

Disassembly:
call fcn.128f9ad0
mov dword [0x129d2bcc], eax
mov dword [0x129d31f8], eax
mov ecx, 0x129cd048
jmp fcn.128e0380
Function at 0x128e0380
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x128e03aa
push str.winbrosqlite3_module_is_Loaded
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x10
mov eax, 1
pop esi
ret
push str.winbrosqlite3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x128e03e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winbrosqlite3_module_load_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open16
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_prepare16_v2
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_bind_int64
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x28]
push str.sqlite3_bind_text16
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_step
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_column_int64
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x28]
push str.sqlite3_column_text16
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_close
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_finalize
push ecx
mov dword [esi + 0x20], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x24], eax
test ecx, ecx
pop edi
je 0x128e04c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x128e04c2
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x128e04c2
test eax, eax
je 0x128e04c2
push str.winbrosqlite3_module_load_successful
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x10
mov eax, 1
mov dword [esi + 0x2c], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_winbrosqlite3_function_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
mov ecx, esi
call fcn.128e04f0
xor eax, eax
pop esi
ret
Function at 0x128e2760
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 8
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
push esi
push 0x128e2700
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret

Function at 0x128e2b90
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x128e2bc8
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128e2c02
mov esi, dword [esp + 0x14]
test esi, esi
je 0x128e2bdf
push esi
call fcn.12922b80
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x128e2be1
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x128e2c10
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x128e2c48
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128e2c6e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x128e2c80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push SysStringLen
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x128e2cbd
lea ecx, [esp + 8]
push ecx
push edi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128e2d3d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x128e2d27
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.12922bcf
mov esi, eax
add esp, 4
test esi, esi
je 0x128e2d27
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x128e2d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push SysStringLen
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x128e2d89
lea ecx, [esp + 8]
push ecx
push edi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128e2e02
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x128e2dec
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.12922bcf
mov esi, eax
add esp, 4
test esi, esi
je 0x128e2dec
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x128e2e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push SysStringLen
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x128e2e52
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x128e2e8e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8