joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e1d
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x4c4], 1
call fcn.01005952
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor eax, eax
push 0x4001
mov word [ebp - 0x206], ax
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x4c0]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x4000
push edi
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0x4c0]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x4c8], edi
je 0x1002ed5
cmp eax, edi
je 0x1002ed5
push dword [ebp - 0x4c8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov edi, 0x1003
push edi
push ebx
call esi
push dword [ebp - 0x4cc]
push 0
push edi
push ebx
call esi
jmp 0x1002edb
mov dword [ebp - 0x4c4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4
Function at 0x1003aef
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10095ac]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x210], esi
cmp eax, ebx
je 0x1003b25
push eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x1009be8]
mov dword [0x10095a4], esi
mov dword [0x100903c], eax
cmp word [0x10097bc], bx
je 0x1003b45
push 0x10097bc
jmp 0x1003b61
push ebx
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1003b67
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, 0x10095b4
push edi
push 0x3fa
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor eax, eax
cmp dword [0x1009be8], ebx
setne al
push eax
push 0x3fd
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
cmp dword [0x1009be8], ebx
je 0x1003baa
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003baa
xor eax, eax
inc eax
jmp 0x1003bac
xor eax, eax
push eax
push 0x3fe
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
mov eax, dword [0x1009be4]
neg eax
sbb eax, eax
mov ebx, 0x3fc
add eax, ebx
push eax
push ebx
push 0x3fb
push dword [ebp - 0x210]
call dword [sym.imp.USER32.dll_CheckRadioButton]
push dword [0x1009be8]
push ebx
mov ebx, dword [ebp - 0x210]
push ebx
call esi
push eax
call edi
push dword [0x1009be8]
push 0x3fb
push ebx
call esi
push eax
call edi
push dword [0x1009be8]
push 0x3fa
push ebx
call esi
push eax
call edi
push dword [0x10095a0]
mov esi, dword [sym.imp.USER32.dll_SetForegroundWindow]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01007194
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x3fa
push ebx
call fcn.01003c46
test eax, eax
je 0x1003d53
cmp dword [0x1009be8], 0
je 0x1003d4e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003d4e
xor eax, eax
inc eax
jmp 0x1003d50
xor eax, eax
push eax
jmp 0x1003d55
push 0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fe
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push dword [0x1009be8]
push 0x3fc
push ebx
call esi
push eax
call edi
push dword [0x1009be8]
push 0x3fb
push ebx
call esi
push eax
call edi
push dword [0x1009be8]
push 0x3fa
push ebx
call esi
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4
Function at 0x1003db5
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
cmp word [0x10097bc], bx
je 0x1003df8
push 0x10097bc
push edi
push eax
call fcn.0100170e
test eax, eax
jge 0x1003e10
jmp 0x1003e07
push ebx
push 0x2e
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1003e10
xor eax, eax
mov word [ebp - 0x20c], ax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x3fa
push esi
call fcn.01003c46
test eax, eax
jne 0x1003e30
push 0x21
call fcn.01005799
jmp 0x1003e49
push 5
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4

Function at 0x1003e5f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
mov dword [ebp - 0x218], eax
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x214], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x3fa
push esi
call fcn.01003c46
mov dword [ebp - 0x210], eax
cmp eax, edi
je 0x1003f35
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push edi
mov ebx, 0x80
push ebx
push 3
push edi
push 1
mov edi, 0xc0000000
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x1003ef0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003f25
push 0
push ebx
push 1
push 0
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x1003f1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1003f25
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
pop ebx
jne 0x1003f5d
mov esi, dword [ebp - 0x214]
cmp dword [ebp + 0x14], 0
je 0x1003f54
mov edi, dword [0x10095a0]
push 0x21
mov dword [0x10095a0], esi
call fcn.01005799
mov dword [0x10095a0], edi
cmp dword [ebp - 0x210], 0
je 0x1003f97
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x1003f97
cmp word [ebp - 0x20c], 0
je 0x1003f97
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.0100170e
test eax, eax
jge 0x1003f97
cmp dword [ebp + 0x10], 1
jb 0x1003f90
xor eax, eax
mov word [esi], ax
and dword [ebp - 0x210], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.01007194
leave
ret 0x10
Function at 0x1003fb2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, 0x104
push ebx
mov edi, 0x10095b4
push edi
push dword [ebp + 8]
call fcn.01003e5f
test eax, eax
je 0x1004067
push 0x3fb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [0x1009be4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x100149c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004064
mov dword [ebp - 4], esi
cmp dword [0x1009be8], esi
je 0x1004026
mov dword [ebp - 4], 1
cmp dword [0x1009be4], esi
je 0x1004032
or dword [ebp - 4], 2
push 4
lea eax, [ebp - 4]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001490
push dword [ebp - 8]
call esi
push ebx
push edi
push 1
push 0
push 0x1001480
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100607b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [0x1009bf0], eax
jne 0x10060a5
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x1005d4a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x10061a6
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x660
push esi
push 0x10095a0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4c
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [0x10095b0], edi
call fcn.01005682
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
jne 0x1006265
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
call fcn.01005626
push 0x66
push dword [0x10095b0]
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
mov dword [0x10095ac], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
push esi
push 0x100612c
push esi
push 0x65
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [0x10095ac]
cmp eax, esi
je 0x100626c
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [0x10095ac], esi
jmp 0x100626c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x1009bfc]
pop edi
cmp eax, esi
pop esi
jne 0x1006283
xor eax, eax
cmp eax, dword [0x1009be0]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01007194
leave
ret 0x10
Function at 0x100652a
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x2b4
push edi
xor ebx, ebx
lea eax, [ebp - 0x4c0]
push ebx
push eax
call sub.msvcrt.dll_memset
push dword [esi]
lea eax, [ebp - 0x20c]
push dword [esi + 4]
push 0x10014f8
push 0x104
push eax
call fcn.01003257
add esp, 0x20
test eax, eax
jl 0x10065aa
push 0x4401
push edi
lea eax, [ebp - 0x4c0]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x10065a6
mov eax, dword [ebp - 0x4bc]
mov dword [esi + 0x18], eax
jmp 0x10065aa
or dword [esi + 0x18], 0xffffffff
cmp word [ebp - 0x2ac], bx
je 0x1006612
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [eax + eax + 2]
push ebx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x14], eax
test eax, eax
je 0x1006618
lea ecx, [ebp - 0x2ac]
push ecx
push ebx
push eax
call fcn.010018de
xor ebx, ebx
cmp eax, ebx
jge 0x1006618
cmp eax, 0x8007007a
je 0x1006618
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x100660d
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x14], ebx
jmp 0x1006618
push esi
call fcn.010063de
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4
Function at 0x100662e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x420]
push eax
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
test ebx, ebx
je 0x100678a
lea eax, [ebx + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x100678a
push eax
push ebx
push dword [ebp - 0x420]
push dword [esi]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1006779
and dword [ebp - 0x41c], 0
and dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x1001504
push dword [ebp - 0x418]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1006779
mov ebx, dword [ebp - 0x41c]
push 0x2b
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.01005682
movzx eax, word [ebx + 0xc]
push eax
movzx eax, word [ebx + 0xe]
push eax
movzx eax, word [ebx + 8]
push eax
movzx eax, word [ebx + 0xa]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01003257
add esp, 0x1c
test eax, eax
jge 0x1006722
cmp eax, 0x8007007a
jne 0x1006779
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
push ebx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x1006779
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push eax
call fcn.010018de
test eax, eax
jge 0x1006779
cmp eax, 0x8007007a
je 0x1006779
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x1006776
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 8], ebx
mov dword [esi + 8], ebx
push dword [ebp - 0x418]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi + 8], 0
jne 0x10067fa
push 0x1f
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01005682
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
push ebx
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x10067fa
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push eax
call fcn.010018de
xor ebx, ebx
cmp eax, ebx
jge 0x10067fa
cmp eax, 0x8007007a
je 0x10067fa
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10067f7
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 8], ebx
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007194
leave
ret 4
Function at 0x1007185
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10076a0
call fcn.01007334
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1009c20
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1006f3c
cmp eax, esi
jne 0x1006f2f
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1006f3f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006f16
xor esi, esi
inc esi
mov eax, dword [0x1009c1c]
cmp eax, esi
jne 0x1006f52
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006f81
mov eax, dword [0x1009c1c]
test eax, eax
jne 0x1006f7b
mov dword [0x1009c1c], esi
push 0x10012d8
push 0x10012cc
call fcn.01006e7b
pop ecx
pop ecx
test eax, eax
je 0x1006f81
jmp 0x10070a9
mov dword [0x1009264], esi
mov eax, dword [0x1009c1c]
cmp eax, esi
jne 0x1006fa5
push 0x10012c8
push 0x10012c0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009c1c], 2
test ebx, ebx
jne 0x1006fb1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009c24], 0
je 0x1006fd5
push 0x1009c24
call fcn.010072a9
pop ecx
test eax, eax
je 0x1006fd5
push 0
push 2
push 0
call dword [0x1009c24]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1007031
test al, al
je 0x1006fef
cmp dword [ebp - 0x1c], 0
jne 0x1007031
mov al, byte [esi]
test al, al
je 0x1006fff
cmp al, 0x20
ja 0x1006fff
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006fef
test byte [ebp - 0x3c], 1
je 0x100700b
movzx eax, word [ebp - 0x38]
jmp 0x100700e
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1009260], eax
cmp dword [0x1009254], 0
jne 0x1007085
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1007040
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1007053
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1006fdc
cmp dword [0x1009264], 0
jne 0x1007094
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009260]
jmp 0x10070b5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007379
ret
call fcn.01007481
jmp 0x1006edc
Function at 0x40891f
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x4aac10
call fcn.00469d48
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.0044ff01
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004459c0
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x408994
push str.Failed_to_create_launcher_path
call fcn.00402829
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1b2c4
lea ecx, [esi + 0x55c]
call fcn.00412f33
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x10]
push 0xd
pop edi
jmp 0x408a9e
push str.Launcher_path:
call fcn.00402829
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00414670
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
push 5
push ebx
push dword [eax]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x5163bc], 0x271c8
mov edi, eax
je 0x408a27
cmp edi, 0x21
jl 0x408a27
mov ecx, dword [ebp - 0x18]
push str.ShellExecute_succeded.
mov dword [ecx + 0xe4], 1
lea ecx, [ebp - 0x14]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 5
pop ecx
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x408aa0
push str.ShellExecute_failed
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x187cc
push eax
cmp edi, 5
mov eax, 0x271c8
cmove eax, ecx
mov ecx, dword [ebp - 0x18]
push eax
add ecx, 0x55c
call fcn.00412f33
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp edi, 5
jne 0x408a9e
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 4
push ebx
lea edx, [ebp - 0x18]
inc ecx
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.00402e64
mov eax, ebx
call fcn.00469d11
ret 8
Function at 0x408eb5
Capabilities:
Delete registry key

Disassembly:
push 0x424
mov eax, 0x4aacf7
call fcn.00469d7c
mov esi, ecx
push str.LaunchSafeCleanup...
lea ecx, [ebp - 0x428]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x428]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414da1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.0044ff01
push eax
lea ecx, [ebp - 0x428]
call fcn.00402899
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 1
call fcn.0044591c
test eax, eax
je 0x40908b
mov edi, 0x208
mov dword [ebp - 0x42c], ebx
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004821b0
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004821b0
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x42c]
call fcn.0043c001
add esp, 0x1c
test eax, eax
je 0x40908b
lea ecx, [ebp - 0x424]
mov dword [esi + 0xfc], ebx
push str._ArmCleanup
cmp dword [esi + 0xf4], ebx
je 0x408fbc
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0043bb9b
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
jmp 0x408feb
call fcn.00402829
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0043bd7b
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.00402e64
test edi, edi
jne 0x409013
mov edi, ebx
jmp 0x40900b
cmp edi, 0x14
jge 0x409013
push 0xc8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xfc], ebx
je 0x408ffa
cmp dword [esi + 0xfc], ebx
jne 0x40904d
push str.launch_cleanup_not_confirmed
lea ecx, [ebp - 0x424]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 4
pop ecx
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x430]
push eax
push 0xf003f
push ebx
push 0x4cb968
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40908b
push str.Cleanup
push dword [ebp - 0x430]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.00469d26
ret
Function at 0x40a9b3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x4aafc8
call fcn.00469d48
mov esi, ecx
lea eax, [esi + 0x320]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402829
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40aaaa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aaaa
cmp dword [esi + 0x1c0], ebx
jne 0x40aa2b
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x14]
call fcn.00402829
push 2
pop ecx
push ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], cl
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, 0x30d0e
jmp 0x40aad5
push 0x4cb86c
push str.Reported
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x31c]
call fcn.0040de20
cmp byte [ebp - 0xd], bl
je 0x40aa5f
push str.already_reported
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 3
jmp 0x40aa8d
push ebx
push str.SessionApplication
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
lea ecx, [esi + 0x31c]
call fcn.0040de20
cmp byte [ebp - 0xd], bl
jne 0x40aad5
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x14]
call fcn.00402829
mov byte [ebp - 4], 4
push ebx
push 2
lea edx, [ebp - 0x14]
pop ecx
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x15
pop ebx
jmp 0x40aad5
push str.No_Report_file
lea ecx, [ebp - 0x14]
call fcn.00402829
push ebx
push 2
pop ebx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00414da1
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
call fcn.00469d11
ret