joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403391
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4033fa
cmp dword [ebp + 0x10], 1
je 0x4033d2
cmp dword [ebp + 0x10], 2
je 0x4033d2
push 0xd
pop eax
jmp 0x4033fa
mov eax, dword [ebp - 4]
test edi, edi
je 0x4033f4
test eax, eax
je 0x4033ef
test al, 1
jne 0x4033cd
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4033f4
jmp 0x4033cd
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403400
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4034ab
cmp dword [ebp + 0xc], ebx
je 0x4034ab
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4034a6
push edi
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137de
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40349e
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x43c9f0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40349e
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call fcn.00421612
add esp, 0x18
inc ebx
push edi
call fcn.0041e83c
pop ecx
pop edi
mov eax, ebx
pop esi
jmp 0x4034ad
xor eax, eax
pop ebx
leave
ret
Function at 0x406c58
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0xac
mov eax, 0x438d90
call fcn.0041f00d
mov eax, dword [0x450d14]
mov edi, dword [ebp + 0x228]
test eax, eax
je 0x406dc9
xor eax, eax
push 0x1fe
mov word [ebp + 0x1c], ax
xor esi, esi
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00420d30
add esp, 0xc
call fcn.00401877
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x43dfd0
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.00420a64
add esp, 0x14
push edi
lea ecx, [ebp - 0x80]
call fcn.004062e4
mov edi, eax
mov dword [ebp - 4], esi
push 0x43dfcc
lea ecx, [ebp - 0x48]
call fcn.004062e4
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004062e4
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405fe6
mov byte [ebp - 4], 3
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00405fe6
mov byte [ebp - 4], 4
push 0x43dfc8
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406973
mov byte [ebp - 4], 5
push str._Module_Unloading____n
push eax
lea eax, [ebp]
push eax
call fcn.00406973
add esp, 0x30
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.004048ea
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0xb8]
call fcn.004048ea
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004048ea
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x9c]
call fcn.004048ea
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.004048ea
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.004048ea
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x406db4
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp]
call fcn.004048ea
mov eax, dword [0x450d14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x220
leave
ret
Function at 0x407369
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x490
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x490], eax
push 0x24
mov eax, 0x438e49
call fcn.0041f00d
push 7
pop esi
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x250]
mov dword [ebp + 0x268], esi
call fcn.0040422c
mov dword [ebp - 4], ebx
lea eax, [edi + 0xf8]
push eax
lea ecx, [ebp - 0x30]
call fcn.004062a1
mov byte [ebp - 4], 1
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406ed6
pop ecx
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040489f
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x4073f1
lea eax, [ebp + 0x254]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
mov word [ebp + 0x288], ax
lea eax, [ebp + 0x28a]
push ebx
push eax
call fcn.00420d30
add esp, 0xc
push dword [ebp + 0x49c]
mov ecx, edi
call fcn.004017ad
push eax
push str.TSLOG
push dword [ebp - 0x10]
lea eax, [ebp + 0x288]
push str._s_s._s__d_..log
push 0x104
push eax
call fcn.00420a64
add esp, 0x1c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
lea ecx, [ebp + 0x26c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x284], esi
call fcn.0040422c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0xffffffff
je 0x4074ef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
lea ecx, [ebp + 0x26c]
call fcn.00405f18
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x26c]
call fcn.00405efb
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x4074a9
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4074de
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x4074c9
lea eax, [ebp + 0x270]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push edi
call fcn.0040b8ff
add esp, 0x14
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407477
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x26c]
call fcn.004048ea
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x250]
call fcn.004048ea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x494
leave
ret 4
Function at 0x407540
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x114
mov eax, 0x438e9d
call fcn.0041f00d
mov eax, dword [ebp + 0x230]
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x18], 7
call fcn.0040422c
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00420d30
add esp, 0xc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
jne 0x4075da
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00405c66
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
push esi
push ebx
lea ecx, [ebp]
call fcn.004048ea
mov eax, edi
jmp 0x40771c
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x407662
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push 0x44289c
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
jge 0x40760b
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00405c66
jmp 0x4075c2
push dword [ebp - 0x18]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
call fcn.00404337
mov byte [ebp - 4], 2
push dword [ebp - 0x120]
lea eax, [ebp + 0x1c]
push eax
call fcn.00421be9
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x407657
push dword [ebp - 0x120]
call fcn.00421538
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x407671
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Thunder_Network_
lea eax, [ebp + 0x1c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp + 0x1c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4076a1
test al, 0x10
jne 0x4076b1
push 0
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4076fb
push str.XMP5_
lea eax, [ebp + 0x1c]
push eax
call esi
lea eax, [ebp + 0x1c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4076cb
test al, 0x10
jne 0x4076db
push 0
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4076fb
cmp dword [ebp - 0x1c], 0
je 0x4076ef
push dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.00421bbb
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00405f18
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.00405c66
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp]
call fcn.004048ea
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x228
leave
ret
Function at 0x40b37c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x450d14]
push ebp
push esi
mov esi, ecx
test eax, eax
je 0x40b390
xor eax, eax
jmp 0x40b448
mov eax, dword [esi + 0x24]
push ebx
or ebx, 0xffffffff
push edi
cmp eax, ebx
jne 0x40b3f0
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x40b443
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, ebx
jne 0x40b3e5
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40b3e5
push ebp
call edi
cmp eax, 0xffffffff
jne 0x40b3e5
push ebx
call edi
cmp eax, 0xffffffff
je 0x40b416
push 0
mov ecx, esi
call fcn.0040a644
jmp 0x40b443
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x40b41a
cmp eax, 0x102
je 0x40b416
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
jmp 0x40b446
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push edi
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.0040a644
test eax, eax
je 0x40b443
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x40d1f9
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 0xa8
mov eax, 0x4394e4
call fcn.0041f00d
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [0x450d10]
lea eax, [eax + ecx*2]
push eax
push 0x43fd78
push str._s_s
lea eax, [ebp + 0x1c]
push 0xff
push eax
call fcn.00420a64
xor esi, esi
add esp, 0x14
cmp dword [0x44efc8], esi
jne 0x40d39f
xor eax, eax
push 0x1fe
mov word [ebp + 0x21c], ax
lea eax, [ebp + 0x21e]
push esi
push eax
call fcn.00420d30
add esp, 0xc
call fcn.00401877
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x43fd4c
lea eax, [ebp + 0x21c]
push 0x100
push eax
call fcn.00420a64
add esp, 0x14
push 0x43dfcc
lea ecx, [ebp - 0x44]
call fcn.004062e4
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x98]
call fcn.004062e4
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405fe6
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00406973
mov byte [ebp - 4], 3
push 0x43f5fc
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00406973
mov byte [ebp - 4], 4
push 0x43f5d0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00406973
mov byte [ebp - 4], 5
push 0x43f5cc
push eax
lea eax, [ebp]
push eax
call fcn.00406973
add esp, 0x3c
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x60]
call fcn.004048ea
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004048ea
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0xb4]
call fcn.004048ea
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004048ea
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x98]
call fcn.004048ea
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.004048ea
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40d388
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp]
call fcn.004048ea
jmp 0x40d3fd
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40d3e5
xor ecx, ecx
cmp dword [edi], esi
sete cl
push ecx
push eax
push dword [edi + 0xc]
call fcn.0040ca6a
add esp, 0xc
push 1
push esi
push esi
push eax
push esi
push dword [edi]
lea eax, [ebp + 0x1c]
push eax
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040b44b
mov eax, dword [0x44efc8]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40d3fd
push dword [edi + 8]
lea eax, [ebp + 0x1c]
push dword [edi]
push eax
call fcn.0040af0a
pop ecx
pop ecx
push eax
call fcn.0040b934
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x420
leave
ret
Function at 0x40d54e
Capabilities:
Download url
Receive data

Disassembly:
push 0xc
push 0x447750
call fcn.00420b38
xor esi, esi
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d5c2
mov dword [ebp - 4], 0xfffffffe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00420b7d
ret

Function at 0x40d691
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x439558
call fcn.0041f00d
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebp
push 1
push dword [ebp - 0x10]
push str.int___cdecl_ToolBox_XmpSetup::SendHttpStat_wchar_t__
call fcn.0040ca6a
mov esi, eax
add esp, 0xc
mov eax, 0x43ffe8
cmp esi, ebx
jne 0x40d6c4
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x43ffa8
push esi
lea ecx, [ebp - 0x30]
call fcn.0040b9b3
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x40d6e0
push ebp
pop ebp
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.00403d64
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push 0x40d5d8
push ebx
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 4], bl
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d1f9
xor eax, eax
inc eax
call fcn.0041f0e5
ret
Function at 0x40e086
Capabilities:
Download url
Receive data

Disassembly:
push 0xc
push 0x4478a0
call fcn.00420b38
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e0fa
mov dword [ebp - 4], 0xfffffffe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00420b7d
ret
Function at 0x40e2fd
Capabilities:
Check if file exists

Disassembly:
push 0x248
mov eax, 0x43968c
call fcn.0041f076
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x21c], ebp
xor edi, edi
inc edi
push edi
push dword [ebp - 0x21c]
push str.int___cdecl_ToolBox_XmpSetup::GetInstallType_void_
call fcn.0040ca6a
mov esi, eax
add esp, 0xc
mov eax, 0x440df8
cmp esi, ebx
jne 0x40e33e
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x440db0
push esi
lea ecx, [ebp - 0x254]
call fcn.0040b9b3
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x40e35d
push ebp
pop ebp
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 1
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x22c]
call fcn.00403318
mov esi, 0x440d30
cmp eax, ebx
jne 0x40e3de
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Path
lea ecx, [ebp - 0x22c]
call fcn.00403391
cmp eax, ebx
jne 0x40e3de
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x40e3de
mov dword [ebp - 0x224], edi
jmp 0x40e509
lea eax, [ebp - 0x220]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x220], ebx
call fcn.00403359
push esi
mov edi, eax
call fcn.00406c58
pop ecx
test eax, eax
jne 0x40e433
push 1
push dword [ebp - 0x220]
push str._XmpSetup_lastuninstalltime_
push ebx
push esi
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf55
mov ecx, eax
call fcn.00401342
mov ecx, eax
call fcn.0040b982
cmp edi, ebx
jne 0x40e509
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40e509
push ebx
mov dword [ebp - 0x234], eax
call fcn.00420a13
push esi
mov edi, eax
mov dword [ebp - 0x238], edx
call fcn.00406c58
pop ecx
pop ecx
test eax, eax
jne 0x40e48f
push 1
push edi
push str._XmpSetup_time_now_
push ebx
push esi
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf55
mov ecx, eax
call fcn.004012c5
mov ecx, eax
call fcn.0040b982
push esi
call fcn.00406c58
pop ecx
test eax, eax
jne 0x40e4da
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push edi
call fcn.0042094d
add esp, 0x10
push 1
push ecx
push ecx
fstp qword [esp]
push 0x440cb0
push ebx
push esi
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf55
mov ecx, eax
call fcn.004013bf
mov ecx, eax
call fcn.0040b982
xor eax, eax
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push edi
call fcn.0042094d
fcomp qword [0x440ca8]
add esp, 0x10
fnstsw ax
test ah, 5
jp 0x40e509
mov dword [ebp - 0x224], 1
push esi
call fcn.00406c58
pop ecx
test eax, eax
jne 0x40e53f
push 1
push dword [ebp - 0x224]
push str._XmpSetup_install_type_
push ebx
push esi
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf55
mov ecx, eax
call fcn.004011cb
mov ecx, eax
call fcn.0040b982
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x22c]
call fcn.004032a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.0040d1f9
mov eax, dword [ebp - 0x224]
call fcn.0041f0f9
ret
Function at 0x40e568
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x3e
xor edi, edi
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push edi
push eax
call fcn.00420d30
add esp, 0xc
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.IS_MLITE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x44]
push eax
push 0x43ede4
call fcn.00422e56
pop ecx
pop ecx
test eax, eax
jne 0x40e5f1
push esi
mov esi, str.ToolBox_XmpSetup::IsMiniXmpInstall
push esi
inc edi
call fcn.00406c58
pop ecx
test eax, eax
jne 0x40e5f0
push edi
lea eax, [ebp - 0x44]
push eax
push str._XmpSetup_IS_PACKAGE_MLITE
push 0
push esi
call fcn.0040af0a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040cf55
mov ecx, eax
call fcn.004014be
mov ecx, eax
call fcn.0040b982
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0041effe
leave
ret
Function at 0x40ed8e
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.0040eabb
cmp dword [esi + 0x18], 8
pop ecx
mov bl, al
jb 0x40eda8
mov eax, dword [esi + 4]
jmp 0x40edab
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40edc7
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040eabb
pop ecx
mov bl, al
pop esi
mov al, bl
pop ebx
ret
Function at 0x40f767
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x3004]
mov eax, 0x3004
call fcn.00421b90
push 0xffffffffffffffff
push 0x43988c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x3000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x300c]
mov dword [ebp - 0x20], eax
xor eax, eax
xor edi, edi
push 0x1ffe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00420d30
add esp, 0xc
call fcn.0040e568
test eax, eax
je 0x40f7ec
push 0x104
lea eax, [ebp]
push eax
push str._MiniXmpCmdLine_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40f7fe
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp]
push eax
call fcn.00421be9
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x40f8e3
mov esi, 0x7fe
xor eax, eax
push esi
mov word [ebp + 0x2800], ax
lea eax, [ebp + 0x2802]
push edi
push eax
call fcn.00420d30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [eax + ecx*4]
lea eax, [ebp + 0x2800]
push eax
call fcn.00421be9
lea eax, [ebp + 0x2800]
push eax
call fcn.00421e74
xor eax, eax
push esi
mov word [ebp + 0x2000], ax
lea eax, [ebp + 0x2002]
push edi
push eax
call fcn.00420d30
push dword [ebp - 0x20]
lea eax, [ebp + 0x2000]
push eax
call fcn.00421be9
lea eax, [ebp + 0x2000]
push eax
call fcn.00421e74
add esp, 0x30
lea eax, [ebp + 0x2800]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004062e4
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x2000]
push ecx
mov ecx, eax
call fcn.00404638
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004048ea
test bl, bl
jne 0x40f8dc
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x40f823
jmp 0x40f8e3
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3000]
xor ecx, ebp
call fcn.0041effe
add ebp, 0x3004
leave
ret
Function at 0x40fcec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408791
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test edi, edi
jne 0x40fd08
call ebx
mov edi, eax
push edi
call fcn.0041f168
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137de
pop ecx
pop ecx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x40fd30
xor eax, eax
jmp 0x40fd5c
test edi, edi
je 0x40fd38
push edi
push eax
jmp 0x40fd3e
call ebx
push eax
push dword [esi + 0x40]
call fcn.00421be9
pop ecx
pop ecx
mov ecx, esi
call fcn.0040e600
test eax, eax
jne 0x40fd59
mov ecx, esi
call fcn.00408791
jmp 0x40fd2c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret 4