joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40176c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x410eec]
push esi
xor esi, esi
cmp dword [ebp + 0x3a4], esi
mov dword [ebp + 0x398], eax
je 0x401902
cmp dword [ebp + 0x3a8], esi
je 0x401902
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
push 0x40ccb8
push 1
push esi
push 0x40ccc8
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x7c]
jge 0x4017d3
cmp eax, esi
jne 0x401902
cmp dword [ebp + 0x3b4], esi
je 0x4017f0
push dword [ebp + 0x3b8]
mov ecx, dword [eax]
push dword [ebp + 0x3b4]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
push edi
push dword [ebp + 0x3a8]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x3ac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x3b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp + 0x3a8]
xor eax, eax
mov word [ebp + 0x190], si
mov ecx, 0x81
lea edi, [ebp + 0x192]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x190]
push eax
call fcn.004047c5
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ecx
pop ecx
mov ebx, 0x40c384
push ebx
lea eax, [ebp + 0x190]
push eax
call esi
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x190]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push 0x40ccd8
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x80]
jge 0x401889
test eax, eax
jne 0x401900
mov ecx, dword [eax]
push 2
push dword [ebp + 0x3a4]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and word [ebp - 0x78], 0
push dword [ebp + 0x3a4]
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push eax
call fcn.004047c5
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x78]
push eax
call esi
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea eax, [ebp - 0x78]
push eax
mov ebx, 0x8001005
push ebx
mov edi, 0x88001000
push edi
call esi
push 0
push dword [ebp + 0x3a4]
push ebx
push edi
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop ebx
mov ecx, dword [ebp + 0x398]
pop esi
call fcn.00403e9d
add ebp, 0x39c
leave
ret
Function at 0x401963
Capabilities:
Check if file exists
Copy file
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x434
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x3b0], eax
xor eax, eax
xor esi, esi
mov word [ebp + 0x39c], si
lea edi, [ebp + 0x39e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp + 0x39c]
push eax
push str.InstallSource
mov dword [ebp - 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x39c]
push 0x40c434
push eax
call fcn.004048dd
test eax, eax
pop ecx
pop ecx
je 0x4019e3
lea eax, [ebp + 0x39c]
push 0x40c430
push eax
call fcn.004048dd
test eax, eax
pop ecx
pop ecx
je 0x401a66
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x78], esi
mov ebx, str..zlib1.dll
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.004047c5
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.004047c5
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401a53
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b19
add dword [ebp - 0x78], esi
add ebx, esi
cmp dword [ebp - 0x78], 0x1658
jb 0x4019f6
jmp 0x401b19
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], str..zlib1.dll
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.004047c5
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411628
push eax
call fcn.004047c5
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp + 0x194]
push eax
call ebx
test eax, eax
jne 0x401ae5
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.004047c5
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x401b06
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b19
add dword [ebp - 0x80], esi
add dword [ebp - 0x78], esi
cmp dword [ebp - 0x80], 0x1658
jb 0x401a81
mov ecx, dword [ebp + 0x3b0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.00403e9d
add ebp, 0x3b4
leave
ret
Function at 0x401df3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d4
mov eax, dword [0x410eec]
push esi
push edi
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x25c]
push 0x411c40
push eax
call fcn.004047c5
lea eax, [ebp - 0x25c]
push 0x40c398
push eax
call fcn.0040479b
lea eax, [ebp - 0x25c]
push str.FCDownloader.exe
push eax
call fcn.0040479b
mov esi, str._first
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsw word es:[edi], word [esi]
push 0x2e
pop ecx
xor eax, eax
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016c5
pop edi
pop esi
push 1
test eax, eax
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
jle 0x401e78
push str.runas
jmp 0x401e7d
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x74]
xor eax, eax
inc eax
call fcn.00403e9d
add ebp, 0x78
leave
ret

Function at 0x401e95
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x410eec]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x39c]
push 0x411c40
push eax
call fcn.004047c5
lea eax, [ebp - 0x39c]
push str.FCDownloaderHelper.exe
push eax
call fcn.0040479b
and word [ebp - 0x194], 0
add esp, 0x10
push 0x63
pop ecx
xor eax, eax
cmp dword [ebp + 8], 0
lea edi, [ebp - 0x192]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
jne 0x401f1c
lea eax, [ebp - 0x194]
push str._show_caller:packer
push eax
call fcn.004047c5
pop ecx
pop ecx
push 1
push 0
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x39c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.00403e9d
leave
ret
Function at 0x401f29
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x410eec]
push esi
xor esi, esi
push esi
mov dword [ebp + 0x1a0], eax
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x402013
push ebx
push edi
lea eax, [ebp - 0x7c]
push 0x40c660
push eax
call fcn.0040479b
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x7c]
push str.config.ini
push eax
call fcn.0040479b
pop ecx
pop ecx
push 0xa
lea eax, [ebp + 0x18c]
push eax
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push eax
push str.source
mov edi, str.config
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
mov ebx, str.0100000001
push ebx
push str.Main_Ver
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x40c5e4
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x40c5e0
push ebx
push str.initcount
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.show_cnt
mov edi, str.helper
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push 0x40c434
push str.show
push edi
call esi
pop edi
pop ebx
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x80]
pop esi
call fcn.00403e9d
add ebp, 0x1a4
leave
ret
Function at 0x402727
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov esi, 0x1fe
push esi
mov dword [ebp - 4], eax
call fcn.00404981
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x264], eax
call fcn.004045a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x18], si
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x18]
push eax
push str.InstallSource
call ebx
xor eax, eax
cmp dword [ebp + 0xc], esi
mov word [ebp - 0x260], si
mov ecx, 0x81
lea edi, [ebp - 0x25e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x260]
jne 0x4027ad
push 0x104
push eax
push 0x40c2f4
call ebx
jmp 0x4027b8
push dword [ebp + 0xc]
push eax
call fcn.004047c5
pop ecx
pop ecx
push 0xf
xor eax, eax
pop ecx
mov word [ebp - 0x58], si
lea edi, [ebp - 0x56]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004024e6
push esi
call fcn.00404aa8
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push str.gsfcdlinstallersrc_spid_sop_dtsp_d
push dword [ebp - 0x264]
call fcn.004047e6
add esp, 0x24
push esi
push esi
push dword [ebp - 0x264]
push 0x4016e4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00403e9d
leave
ret
Function at 0x4032e2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x40b2f4
call fcn.00404f84
sub esp, 0x25c
mov eax, dword [0x410eec]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
xor bl, bl
cmp dword [eax - 0xc], 0
jne 0x403310
xor al, al
jmp 0x40347f
push esi
push edi
lea ecx, [ebp + 8]
call fcn.0040229a
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, edi
call fcn.00402258
dec esi
cmp eax, esi
je 0x40333c
push 0x5c
lea ecx, [ebp + 8]
call fcn.004030d7
push 0x40cb9c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004031b6
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00402dd6
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403461
lea eax, [ebp - 0x234]
push 0x40cb98
push eax
call fcn.00404fa3
test eax, eax
pop ecx
pop ecx
je 0x40342a
lea eax, [ebp - 0x234]
push 0x40cb90
push eax
call fcn.00404fa3
test eax, eax
pop ecx
pop ecx
je 0x40342a
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004031b6
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 2
je 0x4033ea
lea eax, [ebp - 0x264]
push eax
call fcn.004032e2
mov bl, al
test bl, bl
pop ecx
jne 0x403418
jmp 0x403418
push 0x80
lea ecx, [ebp - 0x264]
call fcn.00402dd6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.00402dd6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401373
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40337c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x403461
mov ecx, edi
call fcn.00402dd6
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403461
mov bl, 1
jmp 0x403463
xor bl, bl
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00401373
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401373
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00403e9d
leave
ret
Function at 0x403507
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b31b
call fcn.00404f84
mov eax, 0x1030
call fcn.004048a0
mov eax, dword [0x410eec]
and dword [ebp - 0x101c], 0
and dword [ebp - 0x1018], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1020], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
jle 0x40363f
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1010], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x100e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1014]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1020]
push dword [eax + ecx*4]
lea eax, [ebp - 0x1010]
push eax
call fcn.004047c5
lea eax, [ebp - 0x1010]
push eax
call fcn.0040502b
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
call fcn.004047c5
lea eax, [ebp - 0x810]
push eax
call fcn.0040502b
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x103c]
call fcn.004034e5
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004024c4
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x103c]
inc bl
call fcn.00402df0
test bl, bl
jne 0x403637
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x403562
jmp 0x40363d
mov dword [ebp - 0x101c], edi
pop edi
pop ebx
push dword [ebp - 0x1020]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x101c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403e9d
leave
ret
Function at 0x40366e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b330
call fcn.00404f84
mov eax, 0x1048
call fcn.004048a0
mov eax, dword [0x410eec]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x40381b
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], eax
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], eax
jle 0x403804
push ebx
push edi
and word [ebp - 0x102c], 0
xor eax, eax
mov ebx, 0x1ff
mov ecx, ebx
lea edi, [ebp - 0x102a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1030]
push dword [esi + eax*4]
lea eax, [ebp - 0x102c]
push eax
call fcn.004047c5
lea eax, [ebp - 0x102c]
push eax
call fcn.0040502b
and word [ebp - 0x82c], 0
push dword [ebp + 8]
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x82a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x82c]
push eax
call fcn.004047c5
lea eax, [ebp - 0x82c]
push eax
call fcn.0040502b
add esp, 0x18
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1054]
call fcn.004034e5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, eax
call fcn.004024c4
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x1054]
inc bl
call fcn.00402df0
test bl, bl
mov ebx, dword [ebp - 0x1030]
je 0x4037ce
mov ecx, dword [ebp - 0x1034]
lea eax, [ebx + 1]
dec ecx
cmp eax, ecx
jg 0x4037ce
push dword [esi + ebx*4 + 4]
lea ecx, [ebp - 0x2c]
call fcn.004034e5
push edi
push 0
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1030], 0x2f
call fcn.0040231f
test eax, eax
jne 0x4037e3
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402df0
inc ebx
cmp ebx, dword [ebp - 0x1034]
mov dword [ebp - 0x1030], ebx
jl 0x4036cf
jmp 0x403802
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
call fcn.004047c5
pop ecx
pop ecx
push 0
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1038], edi
call fcn.00402df0
pop edi
pop ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1038]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403e9d
leave
ret
Function at 0x403a78
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x380]
sub esp, 0x408
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x37c], eax
push 0x3b
pop ecx
xor eax, eax
lea edi, [ebp + 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x84]
push eax
xor esi, esi
push 0x40ccb0
xor ebx, ebx
mov word [ebp + 0x84], si
call fcn.0040366e
lea eax, [ebp + 0x84]
push str.thunder
push eax
call fcn.004048dd
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
jne 0x403ae1
push 0x40c434
jmp 0x403b06
lea eax, [ebp + 0x84]
push 0x40cc98
push eax
call fcn.004048dd
test eax, eax
pop ecx
pop ecx
jne 0x403b01
mov ebx, edi
push 0x40c430
jmp 0x403b06
push 0x40c5e0
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp ebx, esi
mov dword [ebp + 0x80], esi
jne 0x403b89
push esi
lea eax, [ebp + 0x174]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x403cc8
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404755
test eax, eax
pop ecx
pop ecx
je 0x403cc8
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404755
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411a38
call fcn.004047c5
add esp, 0x10
mov dword [ebp + 0x80], edi
jmp 0x403cc8
cmp ebx, edi
jne 0x403cc8
push esi
lea eax, [ebp + 0x174]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x403cc8
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404755
test eax, eax
pop ecx
pop ecx
je 0x403bf6
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404755
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411628
call fcn.004047c5
add esp, 0x10
mov dword [ebp + 0x80], edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x403cc8
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x403c84
lea ecx, [ebp + 0x7c]
push ecx
push esi
push esi
push 0x40c29c
mov dword [ebp + 0x7c], esi
call eax
test eax, eax
jl 0x403cc8
push dword [ebp + 0x7c]
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.0040208b
push dword [ebp - 0x88]
lea eax, [ebp + 0x174]
push eax
call fcn.004047c5
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
pop ecx
pop ecx
je 0x403c79
push dword [ebp - 0x88]
call fcn.0040485a
pop ecx
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403c96
lea eax, [ebp + 0x174]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp + 0x174]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Thunder_NetworkXMP4coreprogram_
lea eax, [ebp + 0x174]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x174]
push eax
push 0x411a38
call fcn.004047c5
pop ecx
pop ecx
mov ecx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x80]
pop edi
pop esi
pop ebx
call fcn.00403e9d
add ebp, 0x380
leave
ret
Function at 0x403ce4
Capabilities:
Delete file

Disassembly:
mov eax, 0x40b342
call fcn.00404f84
push 0x411830
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 1
je 0x403d22
push 0x411c40
lea ecx, [ebp + 8]
call fcn.00403495
and dword [ebp - 4], 0
push eax
call fcn.004032e2
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401373
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret

Function at 0x403d30
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2fc
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x70], eax
push 0x3b
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
push 0x40ccb0
mov word [ebp - 0x80], bx
call fcn.0040366e
lea eax, [ebp - 0x80]
push str.thunder
push eax
call fcn.004048dd
add esp, 0x10
test eax, eax
jne 0x403d84
xor esi, esi
push 0x40c434
jmp 0x403da4
lea eax, [ebp - 0x80]
push 0x40cc98
push eax
call fcn.004048dd
test eax, eax
pop ecx
pop ecx
jne 0x403e42
xor esi, esi
inc esi
push 0x40c430
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x288], bx
mov ecx, 0x81
lea edi, [ebp - 0x286]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x403ddf
push ebx
lea eax, [ebp - 0x288]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
jmp 0x403df6
cmp esi, 1
jne 0x403e3d
push ebx
lea eax, [ebp - 0x288]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x403e3d
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.00404755
test eax, eax
pop ecx
pop ecx
je 0x403e3d
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.00404755
mov word [eax + 2], bx
lea eax, [ebp - 0x288]
push eax
push dword [ebp + 0x7c]
call fcn.00402727
add esp, 0x10
xor eax, eax
inc eax
jmp 0x403e44
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.00403e9d
add ebp, 0x74
leave
ret