joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d3d8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x47d439
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47d410
jmp 0x47d43f
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049021b
leave
ret

Function at 0x47d456
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x1c
push 0x4d2820
call fcn.00494b9c
mov ebx, 0x3e8
mov dword [ebp - 0x2c], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push 4
push 0x1000
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x47d4fe
lea ecx, [ebp - 0x28]
push ecx
push edi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x47d4fe
cmp dword [ebp - 0x28], edi
jne 0x47d4fe
push 0x4ccd94
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x47d4fe
push esi
push esi
push dword [ebp - 0x1c]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x47d4fe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.0047d515
cmp dword [ebp - 0x24], esi
je 0x47d540
xor eax, eax
jmp 0x47d554
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x47d554
and eax, 0xffff
or eax, 0x80070000
call fcn.00494be1
ret
Function at 0x47d5a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x47d60b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47d602
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0049021b
leave
ret
Function at 0x47d7c7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x400
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x47d966
lea eax, [ebp - 0x18]
push eax
push 0xa
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47d95d
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x47d954
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x47d94b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47d87b
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x47d942
push esi
call fcn.0047d75f
pop ecx
test eax, eax
je 0x47d892
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x47d942
push edi
mov esi, 0x4e74e0
push esi
mov edi, pe_nt_image_headers32
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x1c], edi
neg ecx
or ecx, eax
push ecx
call fcn.00490c93
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x47d938
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x18]
call fcn.0047d977
add esp, 0xc
test eax, eax
jne 0x47d922
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jbe 0x47d922
push esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490c93
mov esi, eax
pop ecx
pop ecx
cmp esi, dword [ebp - 0x14]
je 0x47d90b
push dword [ebp - 0x14]
call fcn.00490210
pop ecx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x47d938
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x18]
call fcn.0047d977
add esp, 0xc
push str.SYSTEM
push dword [ebp - 0x14]
call fcn.004920dc
pop ecx
pop ecx
test eax, eax
jne 0x47d938
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call fcn.00490210
pop ecx
pop edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049021b
leave
ret
Function at 0x47db85
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47dbdf
push dword [ebp - 0x228]
call fcn.0047d7c7
pop ecx
test eax, eax
jne 0x47dbf2
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47dbbd
jmp 0x47dbf8
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049021b
leave
ret
Function at 0x47df40
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x64
mov eax, 0x4b6e50
call fcn.0049524d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.Global360SoftMgr.ShellExt.Event
xor esi, esi
push esi
push 0x100002
call ebx
cmp eax, esi
je 0x47df74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x47e077
call fcn.0047b3d7
cmp dword [0x4e8830], esi
je 0x47e072
lea eax, [ebp - 0x14]
push str.SoftMgr64.exe
push eax
call fcn.0047b34a
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x14]
cmp edi, esi
je 0x47dfc4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47dfc4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
pop ecx
test eax, eax
jne 0x47dfd3
call fcn.0047cf05
cmp eax, esi
jne 0x47dfd3
lea ecx, [ebp - 0x14]
call fcn.00406090
mov eax, esi
jmp 0x47e077
lea ecx, [ebp - 0x10]
call fcn.004054e0
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea edi, [ebp - 0x10]
push str.__s___explorer_helper
call fcn.00404aa0
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00494b20
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47e05e
push 0x2710
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Global360SoftMgr.ShellExt.Event
push esi
push 0x100002
call ebx
cmp eax, esi
je 0x47e05e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00406090
xor esi, esi
inc esi
jmp 0x47dfc4
lea ecx, [ebp - 0x10]
call fcn.00406090
lea ecx, [ebp - 0x14]
call fcn.00406090
xor eax, eax
jmp 0x47e077
call fcn.0047de2c
call fcn.00495325
ret

Function at 0x47e32b
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, 0x4e4530
call fcn.0046c3b0
mov eax, dword [0x4e4530]
push dword [esp + 0x10]
neg eax
sbb eax, eax
mov edi, 0xf001b
and eax, edi
xor ebx, ebx
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x4e4538], eax
cmp eax, ebx
je 0x47e381
mov ecx, dword [0x4e4530]
neg ecx
push ebx
sbb ecx, ecx
push ebx
and ecx, edi
push ebx
add ecx, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4e453c], eax
cmp dword [0x4e453c], ebx
jne 0x47e38e
call fcn.0046c3b0
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e78c
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b5a4e
call fcn.0049524d
lea eax, [ebp - 0x10]
push str.360netbase.dll
push eax
call fcn.0047b079
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e7c7
push dword [ebp - 0x10]
call fcn.0047e749
pop ecx
test eax, eax
jne 0x47e7ca
push 2
pop esi
lea ecx, [ebp - 0x10]
call fcn.00406090
mov eax, esi
call fcn.00495325
ret
Function at 0x47ed75
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], eax
cmp esi, ebx
je 0x47eedb
xor ecx, ecx
cmp ecx, 0x4cd140
je 0x47eedb
cmp eax, ebx
je 0x47eedb
push 0x208
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], 1
call fcn.00494b20
push esi
push str.SOFTWARE360SafeLiveUpupdatecfg
push str._s_s
lea eax, [ebp - 0x68]
push 0x103
push eax
mov dword [ebp - 0x70], 0x200
call fcn.0049170e
add esp, 0x20
lea eax, [ebp - 0x6c]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x47ee56
cmp dword [ebp - 0x6c], ebx
je 0x47ee4e
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x4cd140
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call edi
cmp dword [ebp - 0x80], ebx
jne 0x47ee56
mov eax, dword [ebp - 0x70]
jmp 0x47eedd
cmp byte [ebp + 0x1b0], bl
je 0x47eedb
lea eax, [ebp - 0x6c]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47eedb
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.Path
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0x206
call esi
push dword [ebp - 0x6c]
call edi
push 0xe
push str.updatecfg.ini
lea eax, [ebp - 0x68]
push 0x104
push eax
call fcn.004946df
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push pe_nt_image_headers32
push dword [ebp - 0x78]
push ebx
push 0x4cd140
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x47eedd
xor eax, eax
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049021b
add ebp, 0x1a4
leave
ret
Function at 0x47eef5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp + 0x794], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], esi
cmp edi, ebx
je 0x47f048
cmp esi, ebx
je 0x47f048
push 0x5c
push edi
call fcn.00492421
pop ecx
pop ecx
cmp eax, ebx
je 0x47ef5a
push ebx
push esi
lea ecx, [eax + 2]
call fcn.0047ed75
pop ecx
pop ecx
test eax, eax
je 0x47ef5a
cmp word [esi], bx
je 0x47ef5a
xor eax, eax
inc eax
jmp 0x47f04a
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x80], edi
cmp edi, 0xffffffff
je 0x47f048
push 2
push ebx
push 0xffffff00
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x800
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00494b20
add esp, 0xc
push ebx
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f016
mov ecx, dword [ebp - 0x78]
mov edi, pe_nt_image_headers32
cmp ecx, edi
ja 0x47f016
lea eax, [ebp - 0x6c]
shr ecx, 1
push eax
call fcn.0047ed1e
pop ecx
cmp eax, ebx
je 0x47f008
lea esi, [eax + 0x22]
push 0x4ca3d4
push esi
call fcn.004915bc
pop ecx
pop ecx
cmp eax, ebx
je 0x47f008
sub eax, esi
sar eax, 1
cmp eax, edi
jae 0x47f008
push eax
push esi
push dword [ebp - 0x74]
call fcn.00494695
add esp, 0xc
mov dword [ebp - 0x70], 1
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], ebx
jne 0x47f043
push 0x5c
push dword [ebp - 0x7c]
call fcn.00492421
pop ecx
pop ecx
cmp eax, ebx
je 0x47f043
mov esi, dword [ebp - 0x74]
push 1
push esi
lea ecx, [eax + 2]
call fcn.0047ed75
pop ecx
pop ecx
test eax, eax
je 0x47f043
cmp word [esi], bx
jne 0x47ef52
mov eax, dword [ebp - 0x70]
jmp 0x47f04a
xor eax, eax
mov ecx, dword [ebp + 0x794]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049021b
add ebp, 0x798
leave
ret

Function at 0x47f304
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x4afa9c
call fcn.0049524d
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.004054e0
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x47f376
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f376
mov ebx, dword [ebx]
lea eax, [ebp - 0x4c]
push eax
push ebx
xor edi, edi
call fcn.0047f062
pop ecx
pop ecx
test eax, eax
je 0x47f35e
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
movzx eax, word [ebp - 0x44]
movzx ecx, word [ebp - 0x40]
shr esi, 0x10
shr edi, 0x10
jmp 0x47f362
mov ecx, edi
mov eax, ecx
push ecx
push edi
push eax
push esi
push 0x4cd14c
lea edi, [ebp - 0x10]
call fcn.00404aa0
add esp, 0x14
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040bbd0
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00406090
mov eax, esi
call fcn.00495325
ret
Function at 0x47f9e2
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x4b59fe
call fcn.004952b6
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.0040bbd0
add eax, 0x10
mov dword [ebp - 0x54], eax
xor ebx, ebx
mov ecx, 0x104
lea esi, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.004058b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
call fcn.0040bb70
push dword [ebp - 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47fa3e
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], vtable.Json::FastWriter.0
mov dword [ebp - 0x34], 0xf
call fcn.00402390
mov byte [ebp - 0x30], bl
push dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004775f0
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ebx
jle 0x47fab5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x47fa83
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
add edi, 8
push eax
push edi
call fcn.0047fc23
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402400
lea ecx, [ebp - 0x50]
call fcn.00476dd0
lea ecx, [ebp - 0x54]
call fcn.00406090
mov eax, esi
call fcn.00495339
ret 4
push str.SaveToFile
call fcn.00408b50
mov edx, str.SaveCycleData
mov ecx, eax
call fcn.00408ca0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x47fad8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
mov edi, dword [edi]
push eax
push edi
call fcn.0047b91f
add esp, 0xc
jmp 0x47fa91
Function at 0x47fed5
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x4b25e2
call fcn.0049524d
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x47ff08
cmp ecx, ebx
je 0x47ff08
lea eax, [ebp - 0x10]
push eax
call fcn.00405a20
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x47ff12
lea ecx, [ebp - 0x10]
call fcn.00406090
xor eax, eax
call fcn.00495325
ret 8
cmp dword [esi + 0x18], ebx
jne 0x47ff2c
push ebx
push 0x3e8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x47ff00
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], ebx
jne 0x47ff5f
push esi
call edi
push esi
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push ebx
push esi
push 0x48005b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x48000d
push esi
mov dword [ebp - 0x18], esi
call edi
lea ecx, [ebp - 0x24]
call fcn.004054e0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x47ffba
cmp dword [edi + 0xc], ebx
jl 0x47ffac
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x47ffac
call fcn.0040bbd0
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00406070
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x47ffba
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x24]
call fcn.00405920
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
lea edi, [esi + 0x28]
mov ecx, dword [edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x14]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00480745
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x44]
push eax
call fcn.004803af
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
call fcn.00406090
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x47ff00
lea ecx, [ebp - 0x10]
call fcn.00406090
xor eax, eax
inc eax
jmp 0x47ff0a
Function at 0x481b5a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x448
mov eax, 0x4b25a2
call fcn.004952b6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x216]
push esi
push eax
mov edi, ecx
call fcn.00494b20
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0x104
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x481bd2
xor eax, eax
jmp 0x481cc9
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x481bcb
mov eax, dword [ebp - 0x424]
cmp eax, esi
je 0x481cb2
mov dword [ebp - 0x420], esi
jbe 0x481cb2
lea eax, [ebp - 0x444]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x430], 0xff
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x481c9e
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x418]
call fcn.00405a20
lea ebx, [ebp - 0x428]
mov dword [ebp - 4], esi
call fcn.00435eb0
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00406090
inc dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
cmp dword [ebp - 0x420], eax
jb 0x481c3b
mov ecx, dword [ebp - 0x434]
push dword [ebp - 0x41c]
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.00495339
ret
Function at 0x481eb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7c41
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.004a65a0
mov eax, dword [0x4e1370]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], ebx
mov esi, 0x200
call fcn.0047b6fa
test eax, eax
je 0x481f07
xor esi, esi
lea ecx, [ebp - 0x1024]
call fcn.004054e0
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], ebx
call fcn.004054e0
lea ecx, [ebp - 0x101c]
call fcn.004054e0
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1024]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00481d3b
add esp, 0xc
mov dword [ebp - 0x1040], eax
cmp eax, ebx
je 0x482071
mov dword [ebp - 0x1028], esi
or dword [ebp - 0x1028], 1
mov dword [ebp - 0x1018], ebx
xor eax, eax
cmp dword [ebp - 0x1018], 1
sete al
push eax
push dword [ebp - 0x101c]
lea eax, [ebp - 0x104c]
push eax
call fcn.00481a4a
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x1028]
mov byte [ebp - 4], 3
push ebx
push dword [ebp - 0x1020]
xor esi, esi
push dword [ebp - 0x1040]
mov dword [ebp - 0x102c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x482032
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1030]
push eax
push ebx
push dword [ebp - 0x1024]
mov dword [ebp - 0x103c], 0x1000
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x482026
cmp dword [ebp - 0x1030], 2
je 0x48200a
cmp dword [ebp - 0x1030], 1
jne 0x482026
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1038]
call fcn.0047e7f3
mov dword [ebp - 0x1034], 1
push dword [ebp - 0x102c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 5
je 0x48203c
cmp esi, 5
jne 0x482061
lea eax, [ebp - 0x104c]
push eax
mov byte [ebp - 4], 2
call fcn.00481b08
inc dword [ebp - 0x1018]
cmp dword [ebp - 0x1018], 2
jl 0x481f6f
jmp 0x482071
lea eax, [ebp - 0x104c]
push eax
mov byte [ebp - 4], 2
call fcn.00481b08
lea ecx, [ebp - 0x101c]
call fcn.00406090
lea ecx, [ebp - 0x1020]
call fcn.00406090
lea ecx, [ebp - 0x1024]
call fcn.00406090
mov eax, dword [ebp - 0x1034]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049021b
leave
ret