joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4817e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4877a8
push 0x482c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4bcc64], edx
movzx ecx, al
mov dword [0x4bcc60], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4bcc5c], ecx
shr eax, 0x10
mov dword [0x4bcc58], eax
call fcn.00483bb8
test eax, eax
jne 0x481845
push 0x1c
call fcn.0048199f
add esp, 4
mov dword [ebp - 4], 0
call fcn.004069b0
call fcn.004839c0
call fcn.004839b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4bd888], eax
call fcn.00483370
mov dword [0x4bcc98], eax
test eax, eax
je 0x48187d
mov eax, dword [0x4bd888]
test eax, eax
jne 0x481887
push 0xffffffffffffffff
call fcn.0048163e
add esp, 4
call fcn.004830c0
call fcn.00482fd0
call fcn.004815f6
mov esi, dword [0x4bd888]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
je 0x4818af
cmp byte [esi], 0x20
jbe 0x4818de
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818a4
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4818d5
test al, al
je 0x4818d5
and eax, 0xff
push eax
call fcn.00482f70
add esp, 4
test eax, eax
je 0x4818af
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818af
cmp byte [esi], 0x22
jne 0x4818de
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4818ee
cmp al, 0x20
ja 0x4818ee
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4818de
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x48190f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x481914
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0048163e
jmp 0x481952
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48199f
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4bcca0], 1
jne 0x4819ad
call fcn.00483c03
mov eax, dword [esp + 4]
push eax
call fcn.00483c40
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40127e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401290
xor eax, eax
jmp 0x4012c2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4012b4
cmp esi, eax
jae 0x40128c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012a6
cmp esi, eax
jae 0x40128c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4015fa
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4016b5
lea eax, [esi + esi + 2]
push edi
push eax
call fcn.00404785
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4016b4
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4016ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40c398
push edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4016ad
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 0x40c39c
push dword [ebp + 0xc]
call fcn.00404716
mov eax, dword [ebp + 0x10]
add esp, 0x18
cmp eax, ebx
je 0x4016aa
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0xa]
mov dword [eax], edx
movzx edx, word [ecx + 8]
mov dword [eax + 4], edx
movzx edx, word [ecx + 0xe]
mov dword [eax + 8], edx
movzx ecx, word [ecx + 0xc]
mov dword [eax + 0xc], ecx
xor ebx, ebx
inc ebx
push edi
call fcn.00404711
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x401762
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 0x4018f8
cmp dword [ebp + 0x3a8], esi
je 0x4018f8
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
push 0x40cc1c
push 1
push esi
push 0x40cc2c
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 0x4017c9
cmp eax, esi
jne 0x4018f8
cmp dword [ebp + 0x3b4], esi
je 0x4017e6
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.004046f5
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 0x40cc3c
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x80]
jge 0x40187f
test eax, eax
jne 0x4018f6
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.004046f5
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.00403dcb
add ebp, 0x39c
leave
ret
Function at 0x401959
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.0040480d
test eax, eax
pop ecx
pop ecx
je 0x4019d9
lea eax, [ebp + 0x39c]
push 0x40c430
push eax
call fcn.0040480d
test eax, eax
pop ecx
pop ecx
je 0x401a5c
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.004046f5
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.004046f5
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 0x401a49
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 0x401b0f
add dword [ebp - 0x78], esi
add ebx, esi
cmp dword [ebp - 0x78], 0x1658
jb 0x4019ec
jmp 0x401b0f
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.004046f5
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.004046f5
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 0x401adb
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.004046f5
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 0x401afc
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 0x401b0f
add dword [ebp - 0x80], esi
add dword [ebp - 0x78], esi
cmp dword [ebp - 0x80], 0x1658
jb 0x401a77
mov ecx, dword [ebp + 0x3b0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.00403dcb
add ebp, 0x3b4
leave
ret
Function at 0x401de9
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.004046f5
lea eax, [ebp - 0x25c]
push 0x40c398
push eax
call fcn.004046cb
lea eax, [ebp - 0x25c]
push str.FCDownloader.exe
push eax
call fcn.004046cb
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.004016bb
pop edi
pop esi
push 1
test eax, eax
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
jle 0x401e6e
push str.runas
jmp 0x401e73
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x74]
xor eax, eax
inc eax
call fcn.00403dcb
add ebp, 0x78
leave
ret

Function at 0x401e8b
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 0x401f40
push ebx
push edi
lea eax, [ebp - 0x7c]
push 0x40c5c0
push eax
call fcn.004046cb
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.004046cb
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 str.update_Ver
push edi
call esi
pop edi
pop ebx
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x80]
pop esi
call fcn.00403dcb
add ebp, 0x1a4
leave
ret
Function at 0x402654
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.004048b1
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x264], eax
call fcn.004044d0
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 0x4026da
push 0x104
push eax
push 0x40c2f4
call ebx
jmp 0x4026e5
push dword [ebp + 0xc]
push eax
call fcn.004046f5
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.00402413
push esi
call fcn.004049d8
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.00404716
add esp, 0x24
push esi
push esi
push dword [ebp - 0x264]
push 0x4016da
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.00403dcb
leave
ret
Function at 0x40320f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x40b224
call fcn.00404eb4
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 0x40323d
xor al, al
jmp 0x4033ac
push esi
push edi
lea ecx, [ebp + 8]
call fcn.004021c7
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, edi
call fcn.00402185
dec esi
cmp eax, esi
je 0x403269
push 0x5c
lea ecx, [ebp + 8]
call fcn.00403004
push 0x40cafc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004030e3
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00402d03
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40338e
lea eax, [ebp - 0x234]
push 0x40caf8
push eax
call fcn.00404ed3
test eax, eax
pop ecx
pop ecx
je 0x403357
lea eax, [ebp - 0x234]
push 0x40caf0
push eax
call fcn.00404ed3
test eax, eax
pop ecx
pop ecx
je 0x403357
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004030e3
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 2
je 0x403317
lea eax, [ebp - 0x264]
push eax
call fcn.0040320f
mov bl, al
test bl, bl
pop ecx
jne 0x403345
jmp 0x403345
push 0x80
lea ecx, [ebp - 0x264]
call fcn.00402d03
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.00402d03
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 0x4032a9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x40338e
mov ecx, edi
call fcn.00402d03
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40338e
mov bl, 1
jmp 0x403390
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.00403dcb
leave
ret
Function at 0x403434
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b24b
call fcn.00404eb4
mov eax, 0x1030
call fcn.004047d0
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 0x40356c
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.004046f5
lea eax, [ebp - 0x1010]
push eax
call fcn.00404f5b
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.004046f5
lea eax, [ebp - 0x810]
push eax
call fcn.00404f5b
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x103c]
call fcn.00403412
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004023f1
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.00402d1d
test bl, bl
jne 0x403564
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x40348f
jmp 0x40356a
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.00403dcb
leave
ret
Function at 0x40359b
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b260
call fcn.00404eb4
mov eax, 0x1048
call fcn.004047d0
mov eax, dword [0x410eec]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x403748
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 0x403731
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.004046f5
lea eax, [ebp - 0x102c]
push eax
call fcn.00404f5b
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.004046f5
lea eax, [ebp - 0x82c]
push eax
call fcn.00404f5b
add esp, 0x18
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1054]
call fcn.00403412
and dword [ebp - 4], 0
lea ecx, [ebp - 0x82c]
push ecx
mov ecx, eax
call fcn.004023f1
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.00402d1d
test bl, bl
mov ebx, dword [ebp - 0x1030]
je 0x4036fb
mov ecx, dword [ebp - 0x1034]
lea eax, [ebx + 1]
dec ecx
cmp eax, ecx
jg 0x4036fb
push dword [esi + ebx*4 + 4]
lea ecx, [ebp - 0x2c]
call fcn.00403412
push edi
push 0
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1030], 0x2f
call fcn.0040224c
test eax, eax
jne 0x403710
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402d1d
inc ebx
cmp ebx, dword [ebp - 0x1034]
mov dword [ebp - 0x1030], ebx
jl 0x4035fc
jmp 0x40372f
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
call fcn.004046f5
pop ecx
pop ecx
push 0
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1038], edi
call fcn.00402d1d
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.00403dcb
leave
ret
Function at 0x4039a5
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 0x40cc14
xor ebx, ebx
mov word [ebp + 0x84], si
call fcn.0040359b
lea eax, [ebp + 0x84]
push 0x40cc04
push eax
call fcn.0040480d
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
jne 0x403a0e
push 0x40c434
jmp 0x403a33
lea eax, [ebp + 0x84]
push 0x40cbfc
push eax
call fcn.0040480d
test eax, eax
pop ecx
pop ecx
jne 0x403a2e
mov ebx, edi
push 0x40c430
jmp 0x403a33
push 0x40cbf8
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp ebx, esi
mov dword [ebp + 0x80], esi
jne 0x403ab6
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 0x403bf5
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404685
test eax, eax
pop ecx
pop ecx
je 0x403bf5
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404685
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411a38
call fcn.004046f5
add esp, 0x10
mov dword [ebp + 0x80], edi
jmp 0x403bf5
cmp ebx, edi
jne 0x403bf5
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 0x403bf5
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404685
test eax, eax
pop ecx
pop ecx
je 0x403b23
lea eax, [ebp + 0x174]
push 0x5c
push eax
call fcn.00404685
mov word [eax + 2], si
lea eax, [ebp + 0x174]
push eax
push 0x411628
call fcn.004046f5
add esp, 0x10
mov dword [ebp + 0x80], edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x403bf5
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x403bb1
lea ecx, [ebp + 0x7c]
push ecx
push esi
push esi
push 0x40c29c
mov dword [ebp + 0x7c], esi
call eax
test eax, eax
jl 0x403bf5
push dword [ebp + 0x7c]
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.00401fb8
push dword [ebp - 0x88]
lea eax, [ebp + 0x174]
push eax
call fcn.004046f5
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
pop ecx
pop ecx
je 0x403ba6
push dword [ebp - 0x88]
call fcn.0040478a
pop ecx
push dword [ebp + 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403bc3
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.004046f5
pop ecx
pop ecx
mov ecx, dword [ebp + 0x37c]
mov eax, dword [ebp + 0x80]
pop edi
pop esi
pop ebx
call fcn.00403dcb
add ebp, 0x380
leave
ret