joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435761
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4b3bc8
call fcn.0049dfc4
sub esp, 0x18
push esi
push edi
mov esi, ecx
call fcn.00402f35
mov esi, dword [esi + 4]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4358dd
push ebx
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040235c
cmp word [0x4e6c50], di
mov esi, 0x4e6c50
mov dword [ebp - 4], edi
mov eax, esi
je 0x4357c6
inc eax
inc eax
cmp word [eax], di
jne 0x4357bf
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00403753
lea eax, [ebx + 0x10]
lea ecx, [ebp - 0x24]
push eax
call fcn.004163cd
cmp word [0x4e6c50], di
mov eax, esi
je 0x4357f2
inc eax
inc eax
cmp word [eax], di
jne 0x4357eb
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00403753
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x24]
push eax
call fcn.004163cd
cmp word [0x4e6c50], di
mov eax, esi
je 0x43581e
inc eax
inc eax
cmp word [eax], di
jne 0x435817
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00403753
lea eax, [ebx + 0x30]
lea ecx, [ebp - 0x24]
push eax
call fcn.004163cd
cmp word [0x4e6c50], di
mov eax, esi
je 0x43584a
inc eax
inc eax
cmp word [eax], di
jne 0x435843
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00403753
add ebx, 0x50
lea ecx, [ebp - 0x24]
push ebx
call fcn.004163cd
cmp word [0x4e6c58], di
mov eax, 0x4e6c58
mov ecx, eax
pop ebx
je 0x43587c
inc ecx
inc ecx
cmp word [ecx], di
jne 0x435875
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00403753
push 2
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
jne 0x4358a3
xor esi, esi
jmp 0x4358ae
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.00402f35
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004012b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43639d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x436434
mov eax, dword [esi + 0x90]
test eax, eax
je 0x436434
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x436434
push edi
lea edi, [esi + 0x84]
mov ecx, edi
call fcn.00402f35
push 1
push 0
push 0
push dword [edi + 4]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esi + 0x94], 0xa00000
mov byte [esi + 0x98], 1
pop edi
jmp 0x43643a
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x438530
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4b3f7c
call fcn.0049dfc4
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.00402f35
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438623
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 0x64
jge 0x4385d3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x43858a
xor eax, eax
jmp 0x4385b7
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4385d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [ebp - 0x14]
jmp 0x438573
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.004404ef
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x4385ed
xor esi, esi
jmp 0x438614
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
add eax, 3
and al, 0xfc
call fcn.0049dff0
mov esi, esp
push ebx
push ebx
push dword [ebp - 0x18]
mov byte [esi], bl
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push ebx
push ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x30]
call fcn.004036b2
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43d988
Capabilities:
Create thread

Disassembly:
mov eax, 0x4b493e
call fcn.0049dfc4
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x20
mov dword [ebp - 4], ebx
call fcn.0049e01f
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x43d9be
call fcn.0043da3c
mov esi, eax
jmp 0x43d9c0
xor esi, esi
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00410f26
push dword [esi + 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x43d60d
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43f877
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x43f911
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x43f911
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x43f911
push edi
lea edi, [esi + 0xe4]
mov ecx, edi
call fcn.00402f35
push 1
push 0
push 0
push dword [edi + 4]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esi + 0xd8], 0xa00000
mov byte [esi + 0xf4], 1
pop edi
jmp 0x43f917
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x4403ab
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b4ecd
call fcn.0049dfc4
sub esp, 0x128
and byte [ebp - 0x134], 0
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x134], 0
push 1
pop ebx
lea eax, [ebp - 0x134]
push eax
je 0x440421
lea ecx, [ebp - 0x30]
call fcn.004038ec
mov dword [ebp - 0x30], vtable.zpath.0
mov dword [ebp - 0x10], ebx
push 0x4e53c8
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.00403949
jmp 0x44043c
lea ecx, [ebp - 0x20]
call fcn.004038ec
push 2
mov dword [ebp - 0x20], vtable.zpath.0
pop ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.00403913
or dword [ebp - 0x10], 4
mov dword [edi], vtable.zpath.0
test byte [ebp - 0x10], 2
mov dword [ebp - 4], ebx
je 0x440466
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.004036b2
and dword [ebp - 4], 0
test byte [ebp - 0x10], bl
je 0x44047b
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x30]
call fcn.004036b2
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44060f
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4b4f50
call fcn.0049dfc4
sub esp, 0x34
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
push 0x104
mov edi, ecx
push eax
call fcn.0041120a
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00440770
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00402f35
mov ecx, dword [ebp + 8]
mov esi, dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
call fcn.004406d8
mov ebx, eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00402f35
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebx + 4]
call fcn.00411336
push eax
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebx, eax
lea ecx, [ebp - 0x20]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.004036b2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004036b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401d79
test bl, bl
je 0x4406b5
xor al, al
jmp 0x4406c7
mov ecx, edi
call fcn.00402f35
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x44191f
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jae 0x44199a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x44195b
push 0x4e63ac
jmp 0x441985
cmp ax, 0x404
jne 0x441968
push 0x4e63a4
jmp 0x441985
and eax, 0xff
cmp ax, 0x11
jne 0x44197a
push str.MS_UI_Gothic
jmp 0x441985
cmp ax, 0x12
jne 0x44199a
push 0x4e638c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov word [eax], 9
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x441f53
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4b51d7
call fcn.0049dfc4
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, vtable._zstring_class_ztraits_0__.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [ecx], edi
lea ebx, [esi + 0x44]
mov dword [ebx], edi
mov word [esi + 0x48], di
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
push ecx
mov byte [ebp - 4], 8
mov dword [esi], 0x4c09c4
mov dword [esi + 0x28], eax
call fcn.00406dcb
push edi
push ebx
call fcn.00406dcb
or word [esi + 0x10], 0xffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0xc], 2
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x443be8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4b5520
call fcn.0049dfc4
sub esp, 0x160
push ebx
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00443d72
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402f35
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x443c8f
cmp eax, 0x10
je 0x443c8f
lea ecx, [ebp - 0x2c]
call fcn.00402f35
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x154]
push eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, 0x2a69c000
cmp dword [ebp - 0x14], eax
jae 0x443c70
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x10]
jmp 0x443c73
sub dword [ebp - 0x14], eax
sub dword [ebp - 0x10], 0xc9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setg bl
jmp 0x443c91
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004012b4
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x443cac
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x4b5534
call fcn.0049dfc4
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push 1
mov esi, ecx
push eax
call fcn.00443d72
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402f35
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.00402f35
mov ebx, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x1c]
call fcn.00402f35
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.0045f30e
mov eax, dword [esi + 0x24]
test eax, eax
je 0x443d57
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call edi
test eax, eax
je 0x443d57
mov eax, dword [esi + 0x34]
test eax, eax
je 0x443d57
push eax
call edi
test eax, eax
je 0x443d57
lea ecx, [ebp - 0x1c]
call fcn.00402f35
mov edi, dword [ebp - 0x18]
mov ecx, esi
call fcn.0045f30e
add esi, 0x18
mov ecx, esi
call fcn.00402f35
mov esi, dword [esi + 4]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004012b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4465a7
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x4b5cc5
call fcn.0049dfc4
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 1
mov dword [esi], 0x4c09f4
push dword [ebp + 8]
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
call fcn.0040235c
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040235c
push 0x4f1ed4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x38], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], vtable._zstring_class_ztraits_0__.0
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov ecx, edi
mov dword [esi], 0x4c09fc
call fcn.00402f35
mov edi, dword [edi + 4]
push 0xa
push edi
call fcn.004113c0
pop ecx
mov dword [esi + 0x28], eax
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x44836d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4b6150
call fcn.0049dfc4
sub esp, 0x1c
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], vtable._zstring_class_ztraits_0__.0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00447589
add esp, 0xc
test al, al
je 0x448449
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402f35
push 0x20019
lea ecx, [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00403674
test eax, eax
jne 0x448438
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00402f35
mov esi, dword [esi + 4]
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop esi
jne 0x448438
mov eax, dword [ebp - 0x14]
cmp eax, 3
je 0x448412
cmp eax, 4
je 0x448412
cmp eax, 5
je 0x448412
cmp eax, 0xb
mov byte [ebp + 0xb], bl
jne 0x448416
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x10], ebx
je 0x448427
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012b4
mov al, byte [ebp + 0xb]
jmp 0x448457
cmp dword [ebp - 0x10], ebx
je 0x448449
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012b4
xor al, al
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45b9ff
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x4c14cc
jmp fcn.0045cce4

Function at 0x45bcc6
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x4c14e4
jmp fcn.0045cce4

Function at 0x45bdaf
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x4c14f0
jmp fcn.0045cce4

Function at 0x45bf95
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4b8888
call fcn.0049dfc4
sub esp, 0x178
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
push 0x20019
push str.SOFTWAREInstallShieldUpdate_ServiceWebAgent
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00403674
test eax, eax
jne 0x45c0b5
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.ScriptFile
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x45c0b5
push ebx
lea ecx, [ebp - 0x80]
call fcn.004495ff
lea eax, [ebp - 0x11]
push edi
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0x4c0924
mov dword [ebp - 0x24], 0x4c091c
call fcn.004344b0
push edi
push edi
push 2
push 0x80
push 1
lea eax, [ebp - 0x44]
push 0x40000000
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00449718
mov ebx, eax
lea ecx, [ebp - 0x44]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.00434e1a
test bl, bl
je 0x45c095
mov eax, dword [esi + 0x34]
cmp eax, edi
jne 0x45c075
xor ebx, ebx
jmp 0x45c07e
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
add esi, 0x28
mov ecx, esi
call fcn.00402f35
mov esi, dword [esi + 4]
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.0045c35b
mov dword [ebp - 0x80], 0x4c0a0c
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00449ca3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00434e1a
pop ebx
cmp dword [ebp - 0x10], edi
pop edi
pop esi
je 0x45c0c5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x45c35b
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 0x45c371
mov dword [ebp + 0xc], 1
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 0x45c3a6
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00434e7c
lea eax, [ebp - 0x48]
push 0x4d2b70
push eax
call fcn.0049e682
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x45cce4
Capabilities:
Delete file

Disassembly:
mov eax, 0x4b8ae2
call fcn.0049dfc4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4c1514
mov eax, dword [esi + 0x24]
mov dword [ebp - 4], 5
test eax, eax
je 0x45cd3d
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x45cd3d
xor ebx, ebx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402f35
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45cd3d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x45cd1b
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 4
call fcn.0045cd91
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 3
call fcn.004012b4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.004012b4
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.004012b4
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004012b4
push dword [esi + 4]
call fcn.0049f623
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45df07
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4b8da6
call fcn.0049dfc4
sub esp, 0x94
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
push 0xf003f
push esi
push str.SOFTWAREInstallShieldUpdate_Service
push SysReAllocStringLen
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x45df53
lea ecx, [ebp - 0x10]
call fcn.0041623e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], vtable._zstring_class_ztraits_0__.0
mov eax, 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0041120a
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00411336
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.HttpLogFile
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
lea ecx, [ebp - 0x3c]
sete bl
mov byte [ebp - 4], 1
call fcn.00401d79
test bl, bl
je 0x45e079
lea ecx, [ebp - 0xa0]
call fcn.004495ff
lea eax, [ebp - 0x15]
push esi
push eax
lea ecx, [ebp - 0x64]
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
mov dword [ebp - 0x64], 0x4c0924
mov dword [ebp - 0x44], 0x4c091c
call fcn.0042faf1
push esi
push esi
push 2
push 0x80
push 1
lea eax, [ebp - 0x64]
push 0x40000000
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.00449718
mov ebx, eax
lea ecx, [ebp - 0x64]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00434e1a
test bl, bl
je 0x45e051
mov eax, dword [edi + 0x34]
cmp eax, esi
jne 0x45e02e
xor ebx, ebx
jmp 0x45e037
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
add edi, 0x28
mov ecx, edi
call fcn.00402f35
mov edi, dword [edi + 4]
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0045c35b
mov dword [ebp - 0xa0], 0x4c0a0c
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00449ca3
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00434e1a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004012b4
cmp dword [ebp - 0x10], esi
pop edi
pop esi
pop ebx
je 0x45e096
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x45e1d6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b8ddc
call fcn.0049dfc4
sub esp, 0x218
push esi
lea eax, [ebp - 0x120]
push edi
push eax
mov edi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
mov dword [ebp - 0x1c], vtable._zstring_class_ztraits_0__.0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov eax, dword [0x4f1ed0]
push 0xc9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
push dword [eax + 8]
call fcn.00401b9f
lea ecx, [ebp - 0x1c]
call fcn.00402f35
lea eax, [ebp - 0x224]
push eax
push esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [edi + 0x24]
lea esi, [edi + 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x224]
push 0xffffffffffffffff
push eax
push esi
call fcn.004126aa
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004012b4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x45f994
Capabilities:
Delete file

Disassembly:
mov dword [ecx], 0x4c1520
jmp fcn.0045cce4