joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40179c
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 0x401932
cmp dword [ebp + 0x3a8], esi
je 0x401932
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
push 0x40cc74
push 1
push esi
push 0x40cc84
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 0x401803
cmp eax, esi
jne 0x401932
cmp dword [ebp + 0x3b4], esi
je 0x401820
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.00404a55
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 0x40cc94
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x80]
jge 0x4018b9
test eax, eax
jne 0x401930
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.00404a55
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.0040412d
add ebp, 0x39c
leave
ret
Function at 0x401993
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.00404b6d
test eax, eax
pop ecx
pop ecx
je 0x401a13
lea eax, [ebp + 0x39c]
push 0x40c430
push eax
call fcn.00404b6d
test eax, eax
pop ecx
pop ecx
je 0x401a96
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.00404a55
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404a55
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 0x401a83
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 0x401b49
add dword [ebp - 0x78], esi
add ebx, esi
cmp dword [ebp - 0x78], 0x1658
jb 0x401a26
jmp 0x401b49
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.00404a55
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.00404a55
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 0x401b15
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404a55
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 0x401b36
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 0x401b49
add dword [ebp - 0x80], esi
add dword [ebp - 0x78], esi
cmp dword [ebp - 0x80], 0x1658
jb 0x401ab1
mov ecx, dword [ebp + 0x3b0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.0040412d
add ebp, 0x3b4
leave
ret
Function at 0x401e23
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.00404a55
lea eax, [ebp - 0x25c]
push 0x40c398
push eax
call fcn.00404a2b
lea eax, [ebp - 0x25c]
push str.XMDownloader.exe
push eax
call fcn.00404a2b
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.004016f5
pop edi
pop esi
push 1
test eax, eax
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
jle 0x401ea8
push str.runas
jmp 0x401ead
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x74]
xor eax, eax
inc eax
call fcn.0040412d
add ebp, 0x78
leave
ret

Function at 0x401ec5
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 0x401fbe
push ebx
push edi
lea eax, [ebp - 0x7c]
push 0x40c398
push eax
call fcn.00404a2b
lea eax, [ebp - 0x7c]
push 0x40c608
push eax
call fcn.00404a2b
add esp, 0x10
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.00404a2b
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 0x40c58c
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x40c588
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.0040412d
add ebp, 0x1a4
leave
ret
Function at 0x4026dc
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.00404c11
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x264], eax
call fcn.00404830
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 0x402762
push 0x104
push eax
push 0x40c2f0
call ebx
jmp 0x40276d
push dword [ebp + 0xc]
push eax
call fcn.00404a55
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.0040249b
push esi
call fcn.00404d38
push eax
push str.000047
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push str.gsfcdlinstallersrc_spid_sop_dgameid_stsp_d
push dword [ebp - 0x264]
call fcn.00404a76
add esp, 0x28
push esi
push esi
push dword [ebp - 0x264]
push 0x401714
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.0040412d
leave
ret
Function at 0x402df6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x40b596
call fcn.00405214
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 0x402e24
xor al, al
jmp 0x402f93
push esi
push edi
lea ecx, [ebp + 8]
call fcn.00402201
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, edi
call fcn.004021bf
dec esi
cmp eax, esi
je 0x402e50
push 0x5c
lea ecx, [ebp + 8]
call fcn.00402b2b
push 0x40c700
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00402c7a
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.004027e0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f75
lea eax, [ebp - 0x234]
push 0x40c6fc
push eax
call fcn.00405233
test eax, eax
pop ecx
pop ecx
je 0x402f3e
lea eax, [ebp - 0x234]
push 0x40c6f4
push eax
call fcn.00405233
test eax, eax
pop ecx
pop ecx
je 0x402f3e
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00402c7a
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 2
je 0x402efe
lea eax, [ebp - 0x264]
push eax
call fcn.00402df6
mov bl, al
test bl, bl
pop ecx
jne 0x402f2c
jmp 0x402f2c
push 0x80
lea ecx, [ebp - 0x264]
call fcn.004027e0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.004027e0
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.00401369
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402e90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x402f75
mov ecx, edi
call fcn.004027e0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402f75
mov bl, 1
jmp 0x402f77
xor bl, bl
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00401369
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401369
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.0040412d
leave
ret
Function at 0x40301b
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b5ab
call fcn.00405214
mov eax, 0x1030
call fcn.00404b30
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 0x403153
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.00404a55
lea eax, [ebp - 0x1010]
push eax
call fcn.004052bb
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.00404a55
lea eax, [ebp - 0x810]
push eax
call fcn.004052bb
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x103c]
call fcn.00402ff9
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00402479
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.004027fa
test bl, bl
jne 0x40314b
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x403076
jmp 0x403151
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.0040412d
leave
ret
Function at 0x403182
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b5c0
call fcn.00405214
mov eax, 0x1048
call fcn.00404b30
mov eax, dword [0x410eec]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x40332f
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 0x403318
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.00404a55
lea eax, [ebp - 0x102c]
push eax
call fcn.004052bb
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.00404a55
lea eax, [ebp - 0x82c]
push eax
call fcn.004052bb
add esp, 0x18
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1054]
call fcn.00402ff9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, eax
call fcn.00402479
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.004027fa
test bl, bl
mov ebx, dword [ebp - 0x1030]
je 0x4032e2
mov ecx, dword [ebp - 0x1034]
lea eax, [ebx + 1]
dec ecx
cmp eax, ecx
jg 0x4032e2
push dword [esi + ebx*4 + 4]
lea ecx, [ebp - 0x2c]
call fcn.00402ff9
push edi
push 0
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1030], 0x2f
call fcn.00402290
test eax, eax
jne 0x4032f7
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004027fa
inc ebx
cmp ebx, dword [ebp - 0x1034]
mov dword [ebp - 0x1030], ebx
jl 0x4031e3
jmp 0x403316
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
call fcn.00404a55
pop ecx
pop ecx
push 0
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1038], edi
call fcn.004027fa
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.0040412d
leave
ret
Function at 0x403590
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 0x40c92c
xor ebx, ebx
mov word [ebp + 0x84], si
call fcn.00403182
lea eax, [ebp + 0x84]
push str.thunder
push eax
call fcn.00404b6d
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
jne 0x4035f9
push 0x40c434
jmp 0x40361e
lea eax, [ebp + 0x84]
push 0x40c914
push eax
call fcn.00404b6d
test eax, eax
pop ecx
pop ecx
jne 0x403619
mov ebx, edi
push 0x40c430
jmp 0x40361e
push 0x40c588
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp ebx, esi
mov dword [ebp + 0x80], esi
jne 0x4036a1
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 0x4037e0
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.004049e5
test eax, eax
pop ecx
pop ecx
je 0x4037e0
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.004049e5
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411a38
call fcn.00404a55
add esp, 0x10
mov dword [ebp + 0x80], edi
jmp 0x4037e0
cmp ebx, edi
jne 0x4037e0
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 0x4037e0
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.004049e5
test eax, eax
pop ecx
pop ecx
je 0x40370e
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.004049e5
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411628
call fcn.00404a55
add esp, 0x10
mov dword [ebp + 0x80], edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x4037e0
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40379c
lea ecx, [ebp + 0x7c]
push ecx
push esi
push esi
push 0x40c298
mov dword [ebp + 0x7c], esi
call eax
test eax, eax
jl 0x4037e0
push dword [ebp + 0x7c]
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.00402036
push dword [ebp - 0x88]
lea eax, [ebp + 0x174]
push eax
call fcn.00404a55
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
pop ecx
pop ecx
je 0x403791
push dword [ebp - 0x88]
call fcn.00404aea
pop ecx
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4037ae
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.00404a55
pop ecx
pop ecx
mov ecx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x80]
pop edi
pop esi
pop ebx
call fcn.0040412d
add ebp, 0x380
leave
ret
Function at 0x403f74
Capabilities:
Delete file

Disassembly:
mov eax, 0x40b629
call fcn.00405214
push 0x411830
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 1
je 0x403fb2
push 0x411c40
lea ecx, [ebp + 8]
call fcn.00402fa9
and dword [ebp - 4], 0
push eax
call fcn.00402df6
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401369
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret

Function at 0x403fc0
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 0x40c92c
mov word [ebp - 0x80], bx
call fcn.00403182
lea eax, [ebp - 0x80]
push str.thunder
push eax
call fcn.00404b6d
add esp, 0x10
test eax, eax
jne 0x404014
xor esi, esi
push 0x40c434
jmp 0x404034
lea eax, [ebp - 0x80]
push 0x40c914
push eax
call fcn.00404b6d
test eax, eax
pop ecx
pop ecx
jne 0x4040d2
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 0x40406f
push ebx
lea eax, [ebp - 0x288]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
jmp 0x404086
cmp esi, 1
jne 0x4040cd
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 0x4040cd
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.004049e5
test eax, eax
pop ecx
pop ecx
je 0x4040cd
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.004049e5
mov word [eax + 2], bx
lea eax, [ebp - 0x288]
push eax
push dword [ebp + 0x7c]
call fcn.004026dc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4040d4
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.0040412d
add ebp, 0x74
leave
ret
Function at 0x4054a7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40cd00
call fcn.00404890
mov edi, 0x94
mov eax, edi
call fcn.00404b30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x412110], ecx
mov eax, dword [esi + 4]
mov dword [0x41211c], eax
mov edx, dword [esi + 8]
mov dword [0x412120], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412114], esi
cmp ecx, 2
je 0x405507
or esi, 0x8000
mov dword [0x412114], esi
shl eax, 8
add eax, edx
mov dword [0x412118], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405542
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405542
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40555a
cmp eax, 0x20b
je 0x405547
mov dword [ebp - 0x1c], esi
jmp 0x40556e
cmp dword [ecx + 0x84], 0xe
jbe 0x405542
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405568
cmp dword [ecx + 0x74], 0xe
jbe 0x405542
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406536
pop ecx
test eax, eax
jne 0x40559a
cmp dword [0x412068], 1
jne 0x405587
call fcn.004082b5
push 0x1c
call fcn.0040813e
push 0xff
call fcn.00407f6b
pop ecx
pop ecx
call fcn.00408b22
mov dword [ebp - 4], esi
call fcn.00408977
test eax, eax
jge 0x4055b3
push 0x1b
call fcn.00405482
pop ecx
call fcn.004088d8
mov dword [0x4137b8], eax
call fcn.0040876e
mov dword [0x412064], eax
call fcn.004086d8
test eax, eax
jge 0x4055d8
push 8
call fcn.00405482
pop ecx
call fcn.004084a5
test eax, eax
jge 0x4055e9
push 9
call fcn.00405482
pop ecx
push 1
call fcn.00407f9b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4055ff
push eax
call fcn.00405482
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040845f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405620
movzx eax, word [ebp - 0x40]
jmp 0x405623
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401020
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405641
push edi
call fcn.004080c6
call fcn.004080e8
jmp 0x405673
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004048cb
ret