joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e44
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0x63c
mov eax, 0x4be3eb
call fcn.00425b5e
mov esi, ecx
mov dword [ebp - 0x648], esi
mov edi, 0x208
mov dword [ebp - 0x648], esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push edi
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x62c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x62c]
push str.ThunderInstall
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
push edi
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x403efc
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
call edi
lea ecx, [ebp - 0x644]
call fcn.00403d61
and dword [ebp - 4], 0
lea eax, [ebp - 0x644]
cmp dword [ebp - 0x630], 8
cmovae eax, dword [ebp - 0x644]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call ebx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403f4d
push eax
lea eax, [ebp - 0x424]
push eax
push 0
call edi
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.00402468
lea ecx, [ebp - 0x644]
call fcn.00402600
mov eax, esi
call fcn.00425b19
ret

Function at 0x404096
Capabilities:
Get common file path
Get disk size

Disassembly:
push 0x25c
mov eax, 0x4be461
call fcn.00425b5e
xor ebx, ebx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], ebx
test ecx, ecx
jne 0x4040f7
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
jmp 0x4040f8
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040263f
lea eax, [ebp - 0x249]
push eax
push 2
push ebx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040441d
mov byte [ebp - 0x24d], bl
lea eax, [ebp - 0x248]
push dword [ebp - 0x24d]
lea ecx, [ebp - 0x230]
push eax
call fcn.004027b4
lea ecx, [ebp - 0x248]
call fcn.00402600
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x268]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x404193
cmp dword [ebp - 0x254], ebx
ja 0x404193
jb 0x404196
cmp dword [ebp - 0x258], 0x23c34600
jb 0x404196
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x230]
call fcn.00402600
mov eax, ebx
call fcn.00425b19
ret
Function at 0x4041a9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
push 0x4dc8a4
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.00404392
cmp eax, 0xffffffff
je 0x4041d8
push str._T
jmp 0x40427d
mov eax, dword [edi + 0x10]
sub eax, 2
cmp eax, 1
ja 0x40420f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4041ed
mov eax, dword [edi]
cmp word [eax + 2], 0x3a
jne 0x40420f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4041fe
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x404278
cmp eax, 3
je 0x404278
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x404219
mov eax, dword [edi]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x40425a
cmp eax, 0xb7
je 0x40425a
sub eax, 0x50
je 0x404253
sub eax, 0x51
je 0x40424c
mov ecx, esi
sub eax, 0x2d
je 0x404245
push str.S_MR
jmp 0x40427f
push 0x4dc8e8
jmp 0x40427f
push str.__rT
jmp 0x40427d
push str.__rTX__W
jmp 0x40427d
cmp dword [edi + 0x14], 8
jb 0x404262
mov edi, dword [edi]
push ecx
push ecx
mov ecx, edi
call fcn.00404096
pop ecx
pop ecx
test eax, eax
jne 0x404278
push str.iRYOzz
jmp 0x40427d
push 0x4dbf70
mov ecx, esi
call fcn.00402468
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40428c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404317
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push esi
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x404307
lea eax, [ebp - 0x20c]
push str.Thunder.exe
push eax
call fcn.004a4a19
pop ecx
pop ecx
test eax, eax
je 0x40430d
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4042e2
jmp 0x404310
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004250ca
leave
ret
Function at 0x40603b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x3e8
push esi
push edi
mov edi, ecx
jne 0x4060e1
mov eax, dword [0x4ee758]
xor ecx, ecx
inc eax
inc ecx
cmp eax, 3
push str.install_page
cmovg eax, ecx
lea ecx, [edi + 0x30]
mov dword [0x4ee758], eax
call fcn.00429740
push dword [0x4ee758]
mov esi, eax
lea eax, [ebp - 0xcc]
push str.fileresourceinstall_static_bkg_d.png_fade255
push 0x64
push eax
call fcn.0040458d
add esp, 0x10
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
call fcn.004388d0
mov esi, 0x3e9
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x3c
push esi
push dword [edi + 4]
mov dword [0x4ee75c], eax
call dword [sym.imp.USER32.dll_SetTimer]
push esi
mov ecx, edi
call fcn.0040603b
jmp 0x406181
cmp dword [ebp + 8], 0x3e9
jne 0x406181
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ee75c]
mov esi, 0x258
cmp eax, esi
ja 0x40610b
imul eax, eax, 0xff
jmp 0x40611c
mov ecx, 0x1770
sub ecx, eax
cmp ecx, esi
ja 0x406124
imul eax, ecx, 0xff
xor edx, edx
div esi
mov esi, eax
jmp 0x406129
mov esi, 0xff
push str.install_page
lea ecx, [edi + 0x30]
call fcn.00429740
push esi
push dword [0x4ee758]
mov edi, eax
lea eax, [ebp - 0xcc]
push str.fileresourceinstall_static_bkg_d.png_fade_d
push 0x64
push eax
call fcn.0040458d
add esp, 0x14
mov ecx, edi
call fcn.00435e70
test eax, eax
je 0x406173
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.004a4a19
pop ecx
pop ecx
test eax, eax
je 0x406181
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.004388d0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004250ca
leave
ret 4
Function at 0x4065db
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push 0x634
mov eax, 0x4be94b
call fcn.00425b5e
push str.Enter
push 0x5b
push str.CBugReporter::Init
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallBugReporter.h
push 5
call fcn.00403339
add esp, 0x14
lea eax, [ebp - 0x628]
mov esi, 0x208
xor edi, edi
push esi
push edi
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x628]
mov ebx, 0x104
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0049d5c0
add esp, 0xc
lea ecx, [ebp - 0x640]
call fcn.00403e44
mov dword [ebp - 4], edi
lea eax, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x640]
push eax
call esi
cmp eax, 1
jne 0x406717
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push ebx
cmovae eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004a5115
add esp, 0x10
lea eax, [ebp - 0x218]
push str..XLBugHandler.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp eax, 1
jne 0x406717
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmovae eax, dword [ebp - 0x640]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4eebf4], eax
lea eax, [ebp - 0x420]
push eax
call esi
mov eax, dword [0x4eebf4]
test eax, eax
jne 0x40674b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push str.LoadLibrary_failed__XLBugHandler_path:_s___errno:__d
push 0x76
push str.CBugReporter::Init
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallBugReporter.h
push 4
call fcn.00403339
add esp, 0x1c
jmp 0x4067bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push eax
call esi
push str._XL_InitBugHandler_20
push dword [0x4eebf4]
mov dword [0x4eebdc], eax
call esi
push str._XL_SetPeerID_4
push dword [0x4eebf4]
mov dword [0x4eebe0], eax
call esi
push str._XL_SetReportShowMode_4
push dword [0x4eebf4]
mov dword [0x4eebe4], eax
call esi
push str._XL_SetAlwaysSendReport_4
push dword [0x4eebf4]
mov dword [0x4eebe8], eax
call esi
push str._XL_SetReportPath_4
push dword [0x4eebf4]
mov dword [0x4eebec], eax
call esi
xor edi, edi
mov dword [0x4eebf0], eax
inc edi
lea ecx, [ebp - 0x640]
call fcn.00402600
mov eax, edi
call fcn.00425b19
ret
Function at 0x4067ce
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049d5c0
add esp, 0xc
mov dword [ebp - 0x210], esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], esi
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4068c1
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425578
pop ecx
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push ebx
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4068b4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x4dc390
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4068b4
mov ecx, dword [ebp - 0x210]
mov esi, 0x4ee830
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
push str.10._d._d._d
push 0x168
push esi
call fcn.0040635e
add esp, 0x18
push 2
push edi
call fcn.0042556a
pop ecx
pop ecx
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004250ca
leave
ret
Function at 0x4068cf
Capabilities:
Get common file path

Disassembly:
push 0x64c
mov eax, 0x4be990
call fcn.00425b5e
push str.Enter
push 0xce
push str.CBugReporter::Start
mov esi, str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallBugReporter.h
push esi
push 5
call fcn.00403339
add esp, 0x14
lea eax, [ebp - 0x218]
xor ebx, ebx
push 0x208
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.ThundeInstallDump__
push eax
call edi
push str.Enter
push 0xef
push str.CBugReporter::XL_SetBugReportRootDir
push esi
push 5
call fcn.00403339
mov eax, dword [0x4eebdc]
add esp, 0x14
test eax, eax
je 0x406973
lea ecx, [ebp - 0x218]
push ecx
call eax
mov eax, dword [0x4eebec]
test eax, eax
je 0x406980
push 1
call eax
lea ecx, [ebp - 0x658]
call fcn.004155e0
push str.Enter
push 0x105
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x658]
cmp dword [ebp - 0x644], 0x10
push str.CBugReporter::XL_SetPeerID
cmovae esi, dword [ebp - 0x658]
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallBugReporter.h
push 5
call fcn.00403339
mov eax, dword [0x4eebe4]
add esp, 0x14
test eax, eax
je 0x4069d0
test esi, esi
je 0x4069d0
push esi
call eax
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea ecx, [ebp - 0x640]
call fcn.00403e44
mov byte [ebp - 4], 1
lea eax, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
mov ecx, 0x104
push ecx
cmovae eax, dword [ebp - 0x640]
push eax
push ecx
lea eax, [ebp - 0x420]
push eax
call fcn.004a5115
add esp, 0x10
lea eax, [ebp - 0x420]
push str.XLBugReport.exe
push eax
call edi
mov esi, str.Enter
mov edi, str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallBugReporter.h
push esi
push 0x124
push str.CBugReporter::XL_SetReportPath
push edi
push 5
call fcn.00403339
mov eax, dword [0x4eebf0]
add esp, 0x14
test eax, eax
je 0x406a5f
lea ecx, [ebp - 0x420]
push ecx
call eax
lea eax, [ebp - 0x420]
push eax
push str.XL_SetReportPath:__s
push 0xe1
push str.CBugReporter::Start
push edi
push 4
call fcn.00403339
push esi
push 0x110
push str.CBugReporter::XL_SetReportShowMode
push edi
push 5
call fcn.00403339
mov eax, dword [0x4eebe8]
add esp, 0x2c
test eax, eax
je 0x406a9f
push ebx
call eax
mov eax, dword [0x4eebec]
test eax, eax
je 0x406aac
push 1
call eax
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004067ce
push str.Enter
push 0xf9
push str.CBugReporter::XL_InitBugHandler
push edi
push 5
mov esi, eax
call fcn.00403339
mov ecx, dword [0x4eebe0]
add esp, 0x14
test ecx, ecx
je 0x406b14
push esi
push str.thunder9
push ebx
lea eax, [ebp - 0x628]
push eax
push str.ThunderInstall
call ecx
lea ecx, [ebp - 0x640]
call fcn.00402600
lea ecx, [ebp - 0x658]
call fcn.004027e0
call fcn.00425b19
ret
Function at 0x406bef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00426250
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
mov ebx, 0x1000
mov esi, ecx
push ebx
push 0
mov dword [ebp - 0x1008], esi
push eax
mov dword [ebp - 0x1008], esi
call fcn.0049d5c0
add esp, 0xc
mov dword [ebp - 0x1008], ebx
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x406c5d
cmp dword [ebp - 0x1010], 0
mov eax, 0x20219
jne 0x406c62
mov eax, 0x20019
lea ecx, [ebp - 0x100c]
xor ebx, ebx
push ecx
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_thunder_is1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406caa
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1004]
mov ecx, esi
push eax
call fcn.00402468
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004250ca
leave
ret
Function at 0x4073b4
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x240
mov eax, 0x4beada
call fcn.00425b5e
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x24c], esi
cmp dword [edi + 0xa8], ebx
jbe 0x4073f1
lea ecx, [edi + 0x98]
mov dword [esi + 0x10], ebx
push ecx
mov ecx, esi
mov dword [esi + 0x14], ebx
call fcn.0040274c
jmp 0x407520
push str.Inno_Setup:_App_Path
push ecx
lea ecx, [ebp - 0x248]
call fcn.00406bef
pop ecx
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x238], 0
jne 0x407453
push str.InstallLocation
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406bef
pop ecx
pop ecx
lea ecx, [ebp - 0x248]
cmp ecx, eax
je 0x40743f
mov byte [ebp - 0x24c], bl
push dword [ebp - 0x24c]
push eax
call fcn.004027b4
lea ecx, [ebp - 0x230]
call fcn.00402600
cmp dword [ebp - 0x238], 0
je 0x407482
push ebx
push str.InstallerIPCListenerPort
lea ecx, [ebp - 0x248]
call fcn.00404392
cmp eax, 0xffffffff
jne 0x407482
add edi, 0x98
lea eax, [ebp - 0x248]
push eax
mov ecx, edi
call fcn.004023e5
jmp 0x407507
lea eax, [ebp - 0x218]
add edi, 0x98
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4074fb
xor eax, eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
push eax
call fcn.0040263f
push str.Thunder_NetworkThunder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004023ac
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.004023e5
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call fcn.00402600
jmp 0x407507
push str.C:Thunder
mov ecx, edi
call fcn.0040263f
push edi
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040274c
lea ecx, [ebp - 0x248]
call fcn.00402600
mov eax, esi
call fcn.00425b19
ret 4

Function at 0x40752a
Capabilities:
Set current directory

Disassembly:
push 0x224
mov eax, 0x4beb14
call fcn.00425b5e
mov esi, ecx
push str.Enter
push 0x17c
push str.CThunderAgent::InitWorkPath
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 5
call fcn.00403339
add esp, 0x14
lea ecx, [ebp - 0x230]
call fcn.00403e44
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0049d5c0
add esp, 0xc
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x230]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40759a
lea eax, [ebp - 0x218]
add esi, 0x68
push eax
mov ecx, esi
call fcn.0040263f
cmp dword [esi + 0x14], 8
jb 0x4075c2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x230]
call fcn.00402600
call fcn.00425b19
ret
Function at 0x4077d0
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.Enter
push 0x1a8
push 0x4de010
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 5
mov esi, ecx
call fcn.00403339
add esi, 0x68
add esp, 0x14
xor edi, edi
cmp dword [esi + 0x14], 8
jb 0x407813
mov esi, dword [esi]
push edi
push edi
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x220]
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0049d5c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40789d
push str.CreateFile_get_INVALID_HANDLE_VALUE
push 0x1ba
push 0x4de010
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 2
call fcn.00403339
add esp, 0x14
jmp 0x4078f3
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, eax
test edi, edi
jne 0x4078d1
push str.GetFileSizeEx_failed
push 0x1c1
push 0x4de010
push str.D:_thunder11_thunder11_cppsrc_setupThunderInstallThunderInstallThunderAgent.cpp
push 2
call fcn.00403339
add esp, 0x14
jmp 0x4078ec
mov eax, dword [ebp - 0x214]
cmp dword [ebp - 0x224], eax
ja 0x4078ec
jb 0x4078e9
cmp dword [ebp - 0x228], ebx
jae 0x4078ec
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004250ca
leave
ret
Function at 0x408072
Capabilities:
Accept command line arguments

Disassembly:
push 0x5c
mov eax, 0x4bebb6
call fcn.00425b5e
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x5c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov ebx, eax
cmp dword [ebp - 0x5c], edi
jle 0x40816c
push dword [ebx + edi*4]
lea ecx, [ebp - 0x28]
call fcn.00402468
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
mov esi, 0x4dbf70
mov dword [ebp - 0x44], 7
push esi
mov word [ebp - 0x58], ax
call fcn.0040263f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
and dword [ebp - 0x30], 0
xor eax, eax
push esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040263f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
je 0x40810b
mov esi, eax
cmp word [esi], 0x3a
je 0x408174
add esi, 2
sub ecx, 1
jne 0x4080fd
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00408f12
push 0x4dbf70
lea ecx, [ebp - 0x40]
call fcn.0040263f
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00408f50
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [eax]
add ecx, 0x28
call fcn.004023e5
lea ecx, [ebp - 0x40]
call fcn.00402600
lea ecx, [ebp - 0x58]
call fcn.00402600
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402600
inc edi
cmp edi, dword [ebp - 0x5c]
jl 0x408099
xor eax, eax
call fcn.00425b19
ret
test esi, esi
je 0x40810b
sub esi, eax
sar esi, 1
cmp esi, 0xffffffff
je 0x40810b
cmp esi, 1
jbe 0x408128
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00408f12
inc esi
cmp esi, dword [ebp - 0x18]
jae 0x408128
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408f12
jmp 0x408128