joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
and dword [ebp - 8], 0
push edi
lea edi, [ecx + eax]
push 2
push 0
push edi
mov esi, pe_overlay
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
call ebx
cmp eax, 0xffffffff
je 0x402fa6
cmp edi, esi
jae 0x402f8a
mov dword [ebp - 4], edi
push 4
mov edi, 0x404
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x402fad
xor eax, eax
jmp 0x40305b
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x403048
jmp 0x402fc3
mov eax, dword [ebp + 0x10]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ecx
mov dword [ebp + 0x10], ecx
ja 0x402fd5
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov esi, eax
sub esi, dword [ebp + 0x10]
sub eax, esi
cmp eax, edi
ja 0x402fe5
mov edi, eax
push 0
push 0
push esi
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x403048
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403048
lea eax, [edi - 3]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x40303c
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx], 0x50
jne 0x40300e
cmp byte [eax + ecx + 1], 0x4b
jne 0x40300e
cmp byte [eax + ecx + 2], 5
jne 0x40300e
cmp byte [eax + ecx + 3], 6
jne 0x40300e
add eax, esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x403048
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jb 0x402fbb
push 0x8000
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403857
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x403872
push 0xffffffffffffff9a
jmp 0x403880
mov esi, dword [eax + 0x7c]
cmp esi, ebx
je 0x40386e
cmp dword [esi + 4], ebx
jne 0x403886
push 0xffffffffffffff9c
pop eax
jmp 0x4039c0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4039b4
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x60]
cmp ecx, eax
jbe 0x4038a4
mov dword [esi + 0x18], eax
cmp dword [esi + 0x18], ebx
jbe 0x4039af
cmp dword [esi + 0xc], ebx
jne 0x40390e
mov eax, dword [esi + 0x5c]
cmp eax, ebx
jbe 0x40390e
mov edi, 0x4000
cmp eax, edi
jae 0x4038cc
mov edi, eax
cmp edi, ebx
je 0x4039b4
mov eax, dword [esi + 0x68]
push ebx
add eax, dword [esi + 0x40]
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4039b8
lea eax, [ebp + 0x10]
push ebx
push eax
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039b8
mov eax, dword [esi + 4]
add dword [esi + 0x40], edi
sub dword [esi + 0x5c], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x64], ebx
jne 0x40395f
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
cmp eax, edi
jae 0x40391f
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x403936
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jb 0x403925
push edi
push dword [esi + 0x14]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
sub dword [esi + 0xc], edi
sub dword [esi + 0x18], edi
add dword [esi + 0x14], edi
add dword [esi + 8], edi
add dword [esi + 0x1c], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x54], eax
jmp 0x4039a1
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
mov dword [ebp + 8], eax
lea eax, [esi + 8]
push 2
push eax
call fcn.00402547
mov edi, dword [esi + 0x1c]
mov dword [ebp - 8], eax
sub edi, ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x54]
call fcn.00401119
sub dword [esi + 0x60], edi
add dword [ebp - 4], edi
add esp, 0x14
cmp dword [ebp - 8], 1
mov dword [esi + 0x54], eax
je 0x4039af
cmp dword [ebp - 8], 0
jne 0x4039bd
xor ebx, ebx
cmp dword [esi + 0x18], ebx
ja 0x4038ad
cmp dword [ebp - 8], ebx
jne 0x4039bd
mov eax, dword [ebp - 4]
jmp 0x4039c0
xor eax, eax
jmp 0x4039c0
or eax, 0xffffffff
jmp 0x4039c0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403a68
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40ca60]
push esi
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x403a7b
push eax
call esi
mov eax, dword [0x40cb84]
test eax, eax
je 0x403a87
push eax
call esi
mov eax, dword [0x40ca54]
pop esi
test eax, eax
je 0x403a98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403b13
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403b3c
cmp al, 0x22
je 0x403b34
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403b28
cmp byte [esi], 0x22
jne 0x403b46
inc esi
jmp 0x403b46
cmp al, 0x20
jle 0x403b46
inc esi
cmp byte [esi], 0x20
jg 0x403b40
mov al, byte [esi]
test al, al
je 0x403b50
cmp al, 0x20
jle 0x403b39
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x403b6a
movzx eax, word [ebp - 0x14]
jmp 0x403b6d
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403e23
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x403e5a
cmp byte [edi], 0
je 0x403e5a
push esi
push edi
mov esi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi - 1]
cmp eax, edi
jbe 0x403e55
mov cl, byte [eax]
xor byte [esi], cl
mov cl, byte [esi]
xor byte [eax], cl
mov cl, byte [eax]
xor byte [esi], cl
inc esi
dec eax
cmp eax, esi
ja 0x403e43
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, 0x104
mov edi, 0x40c008
push ebx
mov esi, 0x408278
push edi
push esi
push ebp
call fcn.00403ccc
push ebx
push edi
push esi
push ebp
call fcn.00403ccc
add esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
pop ebp
mov eax, ecx
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403eb2
xor eax, eax
ret
movzx eax, al
shr eax, 4
and eax, 1
ret

Function at 0x403f17
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403f6c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x404386
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dl, byte [0x40c008]
push ebx
push esi
push edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], dl
push 0x41
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
and dword [ebp - 4], 0
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0
push eax
push 0x104
push dword [ebp + 8]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, 0x40827c
lea eax, [ebp - 0x218]
push esi
push eax
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00403dc5
add esp, 0xc
mov dword [ebp + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x404485
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
test eax, eax
lea eax, [ebp - 0x110]
push eax
jne 0x404438
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40443a
call edi
lea eax, [ebp - 0x110]
push esi
push eax
call edi
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call ebx
lea eax, [ebp - 0x110]
push eax
call fcn.00403ea0
test eax, eax
pop ecx
jne 0x40447d
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
inc dword [ebp - 4]
jmp 0x4043f4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40452b
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x404555
xor eax, eax
pop edi
ret
push ebp
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, edi
je 0x4045b4
push ebx
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x4045ac
cmp word [ebx], 0x5a4d
push esi
jne 0x4045a4
mov esi, dword [ebx + 0x3c]
push 0xf8
add esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4045a4
cmp dword [esi], 0x4550
jne 0x4045a4
push 1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebp
pop edi
ret
Function at 0x4045c3
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x40cb88
mov dword [0x40ca58], eax
call fcn.0040575c
mov dword [esp], 0x40ca68
call fcn.0040575c
mov dword [esp], 0x40befc
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor edi, edi
push edi
call fcn.00404abf
mov esi, 0x40ca80
mov dword [0x40bdd8], 1
push esi
call fcn.00403ea0
pop ecx
test eax, eax
pop ecx
jne 0x404631
push esi
call fcn.00404386
test eax, eax
pop ecx
jne 0x404631
push str.Couldnt_create_output_directory.
call fcn.00403aa0
pop ecx
jmp 0x404688
push edi
call fcn.00404690
mov dword [esp], str..exe_
push dword [esp + 0x18]
call fcn.00403c7c
pop ecx
cmp eax, edi
pop ecx
je 0x404652
add eax, 5
jmp 0x404656
mov eax, dword [esp + 0x14]
push eax
call fcn.0040519d
cmp dword [0x40beec], edi
pop ecx
je 0x40466a
call fcn.00404fe7
cmp dword [0x40bdd0], edi
je 0x404683
push 5
push edi
push edi
push esi
push str.explore
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00403a68
push 1
pop eax
pop edi
pop esi
ret 0x10
Function at 0x404fe7
Capabilities:
Delete directory
Delete file
Hide graphical window
Set current directory

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
push 0x3ef
push dword [0x40ca60]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x40cb88
mov dword [esp + 0x10], eax
push esi
call fcn.004057e6
pop ecx
mov dword [esp + 0x14], eax
push 5
push dword [0x40cb84]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push str.File_Cleanup
push 0x3f7
push dword [0x40cb84]
call edi
push str.Removing_temp_files
push 0x3f9
push dword [0x40cb84]
call edi
mov ebp, 0x3fa
push str.Cleaning_up_...
push ebp
push dword [0x40ca60]
call edi
push esi
call fcn.004057e6
movzx eax, ax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
pop ecx
shl eax, 0x10
push eax
push 0
push 0x401
push dword [esp + 0x1c]
call ebx
push str.The_extracted_files_are_being_removed.
push 0x3f8
push dword [0x40ca60]
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004057e6
test eax, eax
pop ecx
jbe 0x40516c
push esi
call fcn.004057b2
push eax
push 0x40ca80
lea eax, [esp + 0x24]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.004057b2
push eax
lea eax, [esp + 0x138]
push str.Deleting__s_...
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [esp + 0x11c]
push eax
push ebp
push dword [0x40ca60]
call edi
cmp byte [esp + 0x18], 0
je 0x405111
lea eax, [esp + 0x18]
cmp byte [eax], 0x2f
jne 0x40510b
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x405103
lea eax, [esp + 0x18]
push eax
call fcn.00403ea0
test eax, eax
pop ecx
je 0x40512b
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x18]
push eax
call fcn.00403e5e
test eax, eax
pop ecx
je 0x405145
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.004057b9
pop ecx
push 0
push esi
call fcn.004057e6
pop ecx
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push 0x402
push dword [esp + 0x1c]
call ebx
jmp 0x40509f
push 0x40befc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x40ca80
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403a68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
Function at 0x10004f78
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004fb7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004fb7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004fb7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004fb7
cmp dword [ecx + 0x74], 0xe
jbe 0x10004fb7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007b69
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007c06
push ebx
push esi
call fcn.10007b32
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10007ac6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007bb3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007c05
push edi
push eax
call fcn.10006467
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007bd3
call fcn.1000660e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007c04
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007ac6
add esp, 0x20
test eax, eax
jne 0x10007bf2
push edi
call fcn.1000660e
jmp 0x10007bfa
push ebx
call fcn.1000660e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007e73
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa78
push 0x1000fa70
push str.FlsAlloc
push 0x1f
call fcn.10007d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007ea7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
jmp 0x10007ead
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007ef1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa88
push 0x1000fa80
push str.FlsGetValue
push 0x21
call fcn.10007d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007f28
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007f30
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fa90
push 0x1000fa88
push str.FlsSetValue
push 0x22
call fcn.10007d8f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007f6a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d49d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d49d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10006762
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1005f070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10060d58], 0
jne 0x10006812
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push esi
push eax
push 0x20019
push ecx
mov edx, str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 0x70], 0x64
mov ecx, 0x80000002
call fcn.10029dd9
xor esi, esi
inc esi
test eax, eax
jne 0x100067fc
movzx eax, byte [ebp - 0x68]
xor ecx, ecx
cmp dword [ebp - 0x74], esi
cmove eax, ecx
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
push str.Version
push dword [ebp - 0x6c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100067fc
cmp word [ebp - 0x68], ax
je 0x100067fc
push 0xa
pop edx
lea ecx, [ebp - 0x68]
call fcn.10029dd9
mov ecx, dword [0x10060d54]
cmp eax, 4
cmova ecx, esi
mov dword [0x10060d54], ecx
cmp dword [ebp - 0x6c], 0
mov dword [0x10060d58], esi
pop esi
je 0x10006812
push dword [ebp - 0x6c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x10060d54]
xor ecx, ebp
call fcn.1002f764
leave
ret
Function at 0x10009b64
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x10031761
call fcn.10030d83
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov edi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
mov edx, str.SOFTWARE
push eax
lea eax, [ebp - 0x28]
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov edx, 0x10036e08
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov edx, str.Internet_Explorer
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
cmp dword [ebp + 8], edi
mov eax, str.Default_HTML_Editor
mov ecx, dword [ebp - 0x14]
mov esi, str.Default_MHTML_Editor
cmove esi, eax
mov edx, esi
call fcn.1000b7bc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov edx, esi
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov edx, 0x10036e40
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, 0x100364c0
push eax
sub esp, 0x14
call fcn.10029dd9
test eax, eax
jne 0x10009c8d
push str.Description
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x1c]
xor esi, esi
push esi
mov ecx, ebx
call fcn.10029dd9
call fcn.10006762
test eax, eax
je 0x10009c8a
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], 0
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
je 0x10009c9e
push dword [ebp - 0x1c]
call esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x10009cad
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x10], ebx
je 0x10009cba
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x10009cc7
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x24], ebx
je 0x10009cd4
push dword [ebp - 0x24]
call esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
je 0x10009ce1
push dword [ebp - 0x28]
call esi
mov eax, edi
call fcn.10030d61
ret 4
Function at 0x1000eae7
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x10031b12
call fcn.10030db7
mov edi, edx
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x68], eax
xor esi, esi
mov eax, dword [ebp + 0x24]
mov ebx, esi
mov dword [ebp - 0x64], eax
call fcn.10029dd9
push eax
push ecx
push dword [0x10038130]
lea ecx, [ebp - 0x7c]
call fcn.10029dd9
push 7
mov dword [ebp - 4], esi
xor eax, eax
pop ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
call fcn.10021463
test al, al
je 0x1000ebb9
call fcn.10029dd9
test al, al
jne 0x1000ebb9
test edi, edi
je 0x1000ec68
cmp word [edi], si
je 0x1000ec68
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000eb68
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.10029dd9
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.10029dd9
push eax
lea ecx, [ebp - 0x60]
call fcn.10029dd9
lea ecx, [ebp - 0x28]
call fcn.1000ccca
cmp dword [ebp - 0x50], 0
je 0x1000ebb9
cmp dword [ebp - 0x4c], 8
lea ebx, [ebp - 0x60]
lea edi, [ebp - 0x48]
cmovae ebx, dword [ebp - 0x60]
cmp dword [ebp - 0x34], 8
cmovae edi, dword [ebp - 0x48]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push esi
push esi
push 0x400
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x1000ec36
lea ecx, [ebp - 0x9c]
call fcn.10029dd9
push eax
push ecx
push dword [0x1003812c]
lea ecx, [ebp - 0x24]
call fcn.10029dd9
cmp byte [ebp - 0x24], 0
je 0x1000ec36
mov ecx, dword [ebp - 0x14]
call fcn.10029dd9
mov edi, eax
test edi, edi
je 0x1000ec36
cmp byte [ebp - 0x1c], 0
je 0x1000ec22
mov ecx, dword [ebp - 0x14]
call fcn.10029dd9
test eax, eax
je 0x1000ec22
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.10029dd9
push dword [ebp - 0x14]
xor cl, cl
call fcn.10029dd9
mov ecx, dword [ebp - 0x20]
mov edx, edi
call fcn.10029dd9
xor eax, eax
mov dword [ebp - 0x20], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 0x14], ax
mov edx, 0x851
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], str.Param
push eax
push str.HevCreateProcess_
push ecx
push 0x64
mov ecx, 0x170b0c5
mov dword [ebp - 0x18], esi
call fcn.10029dd9
lea ecx, [ebp - 0x48]
call fcn.1000ccca
lea ecx, [ebp - 0x60]
call fcn.1000ccca
cmp byte [ebp - 0x7c], 0
je 0x1000ecbc
mov ecx, dword [ebp - 0x6c]
call fcn.10029dd9
mov edi, eax
test edi, edi
je 0x1000ecbc
cmp byte [ebp - 0x74], 0
je 0x1000eca8
mov ecx, dword [ebp - 0x6c]
call fcn.10029dd9
test eax, eax
je 0x1000eca8
mov ecx, dword [ebp - 0x70]
mov edx, eax
call fcn.10029dd9
push dword [ebp - 0x6c]
xor cl, cl
call fcn.10029dd9
mov ecx, dword [ebp - 0x78]
mov edx, edi
call fcn.10029dd9
mov eax, esi
call fcn.10030d76
ret 0x20