joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b50
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x46342e
call fcn.0045a480
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xd]
mov ebx, 0x104
push edi
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], 0x46bb80
mov dword [ebp - 0x38], 0x46bb78
call fcn.00408cfb
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x416b9a
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push edi
call fcn.00403312
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416c46
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.004179ae
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 5
call fcn.0041711a
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.LogFile
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x30]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.00416e27
test bl, bl
je 0x416c46
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041711a
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.0041711a
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x416c46
mov ecx, ebx
call fcn.0041711a
push edi
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.0041711a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040c1bb
cmp dword [ebp - 0x14], edi
je 0x416c74
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040c1bb
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
cmp eax, edi
je 0x416c90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418e85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x46367b
call fcn.0045a480
sub esp, 0xf0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
call fcn.004192f9
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
push 1
cmp esi, eax
pop ebx
ja 0x418ed2
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.004192f9
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
test byte [ebp - 0x10], bl
je 0x418ee2
lea ecx, [ebp - 0xb4]
call fcn.0040c1bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.0040c1bb
inc esi
push ebx
lea eax, [ebp - 0x10]
push esi
lea ecx, [edi + 4]
push eax
mov dword [ebp - 0x10], 0x5c
call fcn.00419121
cmp eax, 0xffffffff
je 0x418fa0
mov edi, 0x46bb80
mov esi, 0x46bb78
lea ecx, [ebp + 0x17]
inc eax
push 0
push ecx
push eax
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
call fcn.00416caa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0041711a
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418f65
test al, 0x10
je 0x418f65
cmp dword [ebp + 0x10], 0
je 0x418f71
push dword [ebp - 0x10]
call dword [ebp + 0x10]
pop ecx
jmp 0x418f71
push 0
push dword [ebp - 0x10]
call dword [ebp + 0xc]
test eax, eax
je 0x418faf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040c1bb
push ebx
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x5c
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
call fcn.00419121
cmp eax, 0xffffffff
jne 0x418f1a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea eax, [ebp + 0xb]
push 0
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x10]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00416eab
lea eax, [ebp - 0x64]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00418feb
lea eax, [ebp - 0xfc]
push 0x472ee8
push eax
call fcn.0045a5c9
Function at 0x427b91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x427bd7
cmp eax, 3
je 0x427bd7
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00427bf8
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
xor al, al
leave
ret
test byte [ebp + 0xc], 4
je 0x427be5
test al, 0x10
je 0x427bef
test byte [ebp + 0xc], 8
je 0x427bf4
test al, 0x10
je 0x427bf4
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4290fa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x42913f
mov eax, dword [ebp + 8]
test eax, eax
je 0x429114
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42919b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42919b
cmp dword [ebp + 8], 0
jne 0x429174
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42919b
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00427bf8
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x429647
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x42965a
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42968f
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x42a4c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a554
test al, 1
je 0x42a554
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], 7
call fcn.00417191
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
lea esi, [ebp - 4]
mov edx, dword [ecx]
push esi
push eax
push ecx
call dword [edx + 0x20]
cmp eax, 0x80042000
pop esi
je 0x42a53d
cmp eax, 0x80042001
je 0x42a53d
cmp dword [ebp - 4], 6
je 0x42a539
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.0042a558
lea eax, [ebp - 0x5c]
push 0x4769f0
push eax
call fcn.0045a5c9
mov al, 1
leave
ret
push eax
lea ecx, [ebp - 0x14]
call fcn.0042a17b
lea eax, [ebp - 0x14]
push 0x475230
push eax
call fcn.0045a5c9
xor al, al
leave
ret

Function at 0x42c4d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x465ae1
call fcn.0045a480
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
push eax
call fcn.0042c702
xor ebx, ebx
push 4
lea ecx, [ebp - 0xc4]
push ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004193a6
mov edi, eax
mov esi, str._hx.rra
mov byte [ebp - 4], 1
push esi
call fcn.0045a5ac
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.00417ff4
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0xec]
push eax
call fcn.0042c3e9
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
push esi
and ecx, eax
lea eax, [ebp - 0x58]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.0042cab2
add esp, 0xc
push 1
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.0042c67a
lea eax, [ebp - 0x80]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0x46bb80
mov dword [ebp - 0x28], 0x46bb78
call fcn.00408c11
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
call fcn.0040c1bb
push 1
lea ecx, [ebp - 0x58]
call fcn.00409328
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 8
call fcn.0040c1bb
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.0040c1bb
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 6
call fcn.0040c1bb
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x104
push eax
call fcn.004179ae
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 0xb
call fcn.0041711a
mov edi, eax
lea ecx, [ebp - 0x48]
movzx eax, word [ebp - 0x10]
push eax
mov dword [esi + 8], edi
call fcn.0041711a
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00416e27
mov ecx, dword [ebp - 0x14]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c65d
inc dword [ebp - 0x10]
inc ebx
cmp ebx, 0xffff
jl 0x42c5d8
push 0x50
lea ecx, [ebp - 0x9c]
call fcn.00423c9c
lea eax, [ebp - 0x9c]
push 0x477100
push eax
call fcn.0045a5c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42d842
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x465d24
call fcn.0045a480
sub esp, 0xb0
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0x44
call fcn.0042eccc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0042e902
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x104
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004179ae
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 4
call fcn.0041711a
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00416e27
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0040c1bb
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0040c1bb
pop edi
pop esi
test bl, bl
pop ebx
je 0x42d922
lea ecx, [ebp - 0x44]
call fcn.004191a8
lea eax, [ebp - 0x44]
push 0x477100
push eax
call fcn.0045a5c9
push 0x3a98
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42d952
push 0x5b4
lea ecx, [ebp - 0x44]
call fcn.00423c9c
lea eax, [ebp - 0x44]
push 0x477100
push eax
call fcn.0045a5c9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0042d978
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x2c
Function at 0x42ebd6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x465f57
call fcn.0045a480
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42ec52
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x42ec3b
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x46bb80
mov esi, 0x46bb78
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00416eab
push 0x4817bc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00417f5f
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00408c11
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040c1bb
cmp dword [ebp - 0x10], 0
je 0x42ecbb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x430ea7
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x430ec6
xor al, al
jmp 0x430ee0
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x430ee4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x430f33
Capabilities:
Accept command line arguments
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0
call esi
or ax, 0x8001
push eax
call esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x498f10
mov dword [0x498f80], 0x482770
mov dword [0x498f08], ebx
push 0x482700
push ebx
mov dword [0x498f10], 0x84
mov dword [0x498f74], 0x300
call fcn.004316d7
mov eax, 0x46e008
mov ecx, eax
test ecx, ecx
je 0x430fb9
push 0x10
push eax
push 0x498ef8
call fcn.0045a940
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x482828
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
mov dword [0x498f94], eax
lea eax, [ebp - 4]
movsb byte es:[edi], byte [esi]
xor edi, edi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], edi
call fcn.00430ef2
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x4310bc
push str.UnregServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x431013
push str.RegServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x431034
lea eax, [ebp - 4]
push eax
push esi
jmp 0x430fdb
push edi
push 1
push ebx
call fcn.00431a54
push 0x46d3e8
push 0x46c858
mov dword [ebp + 8], eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
jmp 0x431103
push 5
mov esi, str.SetupLogServices_Class
pop ecx
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x1a
xor eax, eax
pop ecx
lea edi, [ebp - 0x89]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
push edi
push 1
push ebx
mov dword [ebp + 0x10], edi
call fcn.004318db
mov dword [ebp + 8], eax
lea eax, [ebp + 0x10]
push eax
push str.CLSID8c3c1b17_e59d_11d2_b40b_00a024b9dddd
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xa0]
push eax
push 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 0x46e128
push 0x46c858
call dword [sym.imp.ole32.dll_CoTreatAsClass]
cmp dword [ebp + 0x10], edi
je 0x431103
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x431103
mov ecx, ebx
call fcn.00430ea7
push edi
push 4
push ebx
call fcn.0043175a
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call esi
test eax, eax
je 0x4310f2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
jmp 0x4310d9
push ebx
call fcn.004317ef
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.0043182b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4313dd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x431411
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x431434
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x43143f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x431448
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x4314cd
xor eax, eax
cmp dword [ebp - 4], esi
je 0x431489
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x4314cd
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.004313dd
cmp dword [ebp - 4], esi
je 0x4314c9
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x4314eb
cmp eax, esi
push ebx
jle 0x4314dc
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4314e8
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4315df
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4662f0
call fcn.0045a480
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0043139f
mov edi, eax
cmp edi, esi
je 0x431629
cmp dword [ebp - 0x10], esi
je 0x431622
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4316c6
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x43169a
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.004315df
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x431687
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x43164c
cmp dword [ebp - 0x10], esi
je 0x431695
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4316c6
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4316ad
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4316c4
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x435f22
Capabilities:
Create thread

Disassembly:
mov eax, 0x466a98
call fcn.0045a480
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
lea ebx, [esi + 0x14]
jne 0x435fbf
push str.UIManagerStarted
push edi
push edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x10]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x18]
push edi
push eax
push 0x435e0d
push edi
push edi
call fcn.0045b41f
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp eax, dword [ebp - 0x14]
je 0x435f85
cmp eax, edi
je 0x435f7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
push 0x7530
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x46dd38
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov eax, dword [ebx]
push dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x435fbf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx]
push dword [ebp + 8]
mov eax, dword [ebx]
push 0x46dd38
push ebx
call dword [eax]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4368ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x4368de
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x436912
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x436945
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x436945
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x43694d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x436961
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x436995
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004585cd
test al, al
jne 0x4369c8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004291a3
lea eax, [ebp - 0x4c]
push 0x4765d8
push eax
call fcn.0045a5c9
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4369c8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00418feb
lea eax, [ebp - 0x48]
push 0x472ee8
push eax
call fcn.0045a5c9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8