joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449889
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x14
mov eax, 0x670728
call fcn.006267e9
mov dword [ebp - 0x1c], edx
push ecx
xor edi, edi
lea ecx, [ebp - 0x14]
and dword [ebp - 0x14], edi
call fcn.0043782b
and dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], edi
jbe 0x44991a
push 0x6d3cb8
lea ecx, [ebp - 0x20]
call fcn.0043782b
mov esi, eax
push ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00449984
cmp dword [esi], edi
jne 0x4498df
push 0x80004005
call fcn.004297e0
push dword [esi]
push dword [eax]
call fcn.006432c8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
lea ecx, [ecx - 0x10]
call fcn.0042470b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0042470b
test bl, bl
je 0x44991a
push 0x6d3cb8
lea ecx, [ebp - 0x14]
call fcn.004375a3
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
mov esi, dword [esi]
jbe 0x449969
cmp esi, dword [eax]
je 0x449969
and dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
push dword [esi + 8]
lea ecx, [ebp - 0x18]
call fcn.00437453
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
cmp eax, 0xffffffff
je 0x449964
mov esi, dword [esi]
inc edi
call fcn.0042470b
mov eax, dword [ebp - 0x1c]
cmp edi, dword [ebp + 8]
jb 0x449927
jmp 0x449969
call fcn.0042470b
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp edi, dword [ebp + 8]
sete bl
add ecx, 0xfffffff0
call fcn.0042470b
mov eax, ebx
call fcn.00626793
ret
Function at 0x44a77f
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x670978
call fcn.006267e9
mov ebx, ecx
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 0x2001f
push str.SoftwareTencentMobileGamePC
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
push closesocket
mov dword [ebp - 0x28], eax
call fcn.00424810
mov edi, str.GlobalConfig::MarkSupplyid
mov esi, str.SupplyId
test eax, eax
jne 0x44a819
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00424412
test eax, eax
jne 0x44a819
push 0xc8
push edi
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x58]
call fcn.00424985
mov esi, eax
push str.read_supplyid__
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004248a8
push dword [ebp - 0x28]
mov ecx, esi
call fcn.0044644d
push str.__from_register
jmp 0x44a88d
push 0
sub esp, 0x10
lea ecx, [ebp - 0x20]
push str.SoftwareTencentMobileGamePC
push closesocket
call fcn.0044953b
test eax, eax
jne 0x44a8a0
mov eax, dword [ebx + 0xc]
push 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 4
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44a8a0
push 0xd8
push edi
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x58]
call fcn.00424985
mov esi, eax
push str.write_supplyid
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004248a8
push dword [ebx + 0xc]
mov ecx, esi
call fcn.0044644d
push str._to_register
mov ecx, esi
call fcn.004248a8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0066af23
push 0xdc
push edi
push str.GlobalConfig.cpp
push str.GConfig
push 1
lea ecx, [ebp - 0x58]
call fcn.00424985
mov esi, eax
push str.runtime_supplyid__
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004248a8
push dword [ebx + 0xc]
mov ecx, esi
call fcn.0044644d
push 0x6d4b34
mov ecx, esi
call fcn.004248a8
lea ecx, [ebp - 0x58]
call fcn.0066af23
lea ecx, [ebp - 0x20]
call fcn.00424889
call fcn.00626793
ret
Function at 0x44b220
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x23c
mov eax, 0x670b25
call fcn.006267e9
xor eax, eax
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
xor ebx, ebx
mov esi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0063e3a0
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea ecx, [ebp - 0x224]
push 0x2001f
push str.SoftwareTencentMobileGamePC
push closesocket
call fcn.00424810
test eax, eax
jne 0x44b350
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x44b350
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x44b2e5
mov eax, ebx
jmp 0x44b2f2
lea eax, [ebp - 0x218]
push eax
call fcn.00643138
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004284f9
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
call fcn.0044b36c
push 0
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00428ecb
test bl, bl
jne 0x44b336
inc esi
xor ebx, ebx
jmp 0x44b294
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 3
push ecx
call fcn.00448318
pop ecx
mov ecx, eax
call fcn.00448386
lea ecx, [ebp - 0x224]
call fcn.00424889
lea ecx, [ebp - 0x224]
call fcn.00424889
call fcn.00626793
ret
Function at 0x44b36c
Capabilities:
Check if file exists

Disassembly:
push 0x270
mov eax, 0x670b6e
call fcn.006267e9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x20a
xor ebx, ebx
push ebx
push eax
call fcn.0063e3a0
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 4], ebx
xor eax, eax
and dword [ebp - 0x254], ebx
mov edi, str.SoftwareTencentMobileGamePC
push edi
mov dword [ebp - 0x24c], 0x105
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.00643138
add esp, 0x10
lea ecx, [ebp - 0x264]
push eax
push edi
call fcn.004284f9
push 0x6d3cb8
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00438bf6
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.004493d5
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x27c]
push esi
push 1
call fcn.00428ecb
push esi
push 1
lea ecx, [ebp - 0x264]
call fcn.00428ecb
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 0x2001f
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
push closesocket
call fcn.00424810
test eax, eax
jne 0x44b493
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.InstallPath
lea ecx, [ebp - 0x230]
call fcn.00424723
lea ecx, [ebp - 0x230]
call fcn.00424889
lea eax, [ebp - 0x224]
push eax
call fcn.00643138
pop ecx
test eax, eax
je 0x44b4c8
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44b4c6
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x44b4c8
mov bl, 1
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.00428ecb
lea ecx, [ebp - 0x230]
call fcn.00424889
mov al, bl
call fcn.00626793
ret 4
Function at 0x44e22e
Capabilities:
Accept command line arguments

Disassembly:
push 0x4c
mov eax, 0x670ff5
call fcn.00626857
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x44e25b
mov eax, dword [esi]
jmp 0x44e25d
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x44e2b6
cmp edi, dword [ebp - 0x1c]
jge 0x44e2ad
push str._installfrom
push dword [ebx + edi*4]
call fcn.006432c8
pop ecx
pop ecx
test eax, eax
jne 0x44e2ed
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x1c]
jge 0x44e2ed
push dword [ebx + edi*4 + 4]
mov ecx, esi
call fcn.00428572
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
push 0x116
push str._anonymous_namespace::GetInstallFromInfo
push str.MainWnd.cpp
push str.GetInstallFromInfo:
push 1
lea ecx, [ebp - 0x58]
call fcn.00424985
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004253e9
lea ecx, [ebp - 0x58]
call fcn.0066af23
jmp 0x44e335
inc edi
jmp 0x44e282
mov eax, esi
call fcn.006267a4
ret
Function at 0x44e785
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671212
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [ebx], vtable.CMainWnd.5.0
mov dword [ebx + 0x10], vtable.CMainWnd.4.0
mov dword [ebx + 0x20], vtable.CMainWnd.3.0
mov dword [ebx + 0x24], vtable.CMainWnd.2.0
mov dword [ebx + 0x28], vtable.CMainWnd.1.0
mov dword [ebx + 0x2c], vtable.CMainWnd.0
cmp dword [ebx + 0x988], edi
je 0x44e7fb
push edi
lea esi, [ebx + 0x984]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00455148
mov eax, dword [ebx + 0x994]
test eax, eax
je 0x44e813
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x44e813
push edi
push eax
call fcn.0051b22f
mov eax, dword [ebx + 0x878]
cmp eax, 0xa
je 0x44e8da
mov esi, dword [ebx + 0x87c]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jmp 0x44e840
cmp byte [eax + 0x50], 0
je 0x44e849
lea ecx, [ebp - 0x14]
call fcn.00424267
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x44e82f
jmp 0x44e8da
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
push 0x2001f
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, str.SoftwareTencent
mov dword [ebp - 0x20], eax
push edi
push closesocket
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00424810
mov esi, 0x6d3d30
lea ecx, [ebp - 0x20]
push esi
call fcn.0044632f
push 0x2001f
push edi
push closesocket
lea ecx, [ebp - 0x20]
call fcn.00424810
push esi
lea ecx, [ebp - 0x20]
call fcn.0044632f
push 0x142
push str.CMainWnd::CMainWnd
push str.MainWnd.cpp
push str.MainWnd
push 1
lea ecx, [ebp - 0x50]
call fcn.00424985
push str.install_failed._clear_all_runtime_register_key.
mov ecx, eax
call fcn.004248a8
lea ecx, [ebp - 0x50]
call fcn.0066af23
lea ecx, [ebp - 0x20]
call fcn.00424889
xor edi, edi
mov eax, dword [ebx + 0x878]
push edi
push edi
push edi
push edi
push edi
push edi
cdq
push edx
push eax
push 0x3eb
push ecx
call fcn.00448318
pop ecx
mov ecx, eax
call fcn.00448386
lea ecx, [ebx + 0x9ac]
call fcn.004531bf
lea ecx, [ebx + 0x9a0]
call fcn.0041e1f8
lea esi, [ebx + 0x98c]
mov ecx, esi
call fcn.004447ba
push 0xe8
push 1
push dword [esi]
call fcn.004295f4
add esp, 0xc
cmp dword [ebx + 0x988], edi
je 0x44e93d
call fcn.00650c0a
lea ecx, [ebx + 0x970]
call fcn.00451eb6
lea eax, [ebx + 0x940]
push eax
call fcn.00611e8c
pop ecx
lea ecx, [ebx + 0x898]
call fcn.00419de6
lea esi, [ebx + 0x888]
lea ecx, [esi + 8]
call fcn.00443b65
mov ecx, esi
call fcn.00443b65
lea ecx, [ebx + 0x87c]
call fcn.00451bbf
mov ecx, ebx
call fcn.004551a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006255fe
mov esp, ebp
pop ebp
ret
Function at 0x44f1dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x64
mov eax, 0x671383
call fcn.006267e9
lea ecx, [ebp - 0x28]
call fcn.0066ac5b
and dword [ebp - 4], 0
mov eax, dword [0x71cd38]
test eax, eax
push 0x6d6064
cmove eax, dword [0x71cd30]
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x44f304
mov ecx, dword [0x71cd38]
test ecx, ecx
push esi
cmove ecx, dword [0x71cd30]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
jne 0x44f247
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x44f304
mov eax, dword [0x71cd38]
test eax, eax
cmove eax, dword [0x71cd30]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x44f304
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.0051806e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0051802c
lea eax, [ebp - 0x70]
push eax
call fcn.00429293
mov ecx, eax
call fcn.00455108
push eax
mov edx, str.locale_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00454058
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov edx, eax
mov dword [esp], str..xml
call fcn.00438bf6
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x44f2d3
mov eax, dword [eax]
push eax
call fcn.00455553
mov ecx, eax
call fcn.00515ddd
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00428ecb
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00428ecb
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00428ecb
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00428ecb
call fcn.00626793
ret
Function at 0x4508a4
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x6717d3
call fcn.006267e9
mov esi, ecx
mov eax, dword [esi + 0x9a4]
sub eax, dword [esi + 0x9a0]
cmp eax, 4
jb 0x4509d4
mov eax, dword [esi + 0x9a4]
xor ebx, ebx
mov ecx, dword [esi + 0x9a0]
mov edx, eax
and dword [ebp - 0x14], ebx
sub edx, ecx
add edx, 3
xor edi, edi
shr edx, 2
cmp ecx, eax
cmova edx, dword [ebp - 0x14]
test edx, edx
je 0x4508f8
add ebx, dword [ecx]
inc edi
lea ecx, [ecx + 4]
cmp edi, edx
jne 0x4508ee
mov ecx, eax
lea edi, [ebp - 0x20]
sub ecx, dword [esi + 0x9a0]
mov eax, ebx
sar ecx, 2
xor edx, edx
div ecx
xor esi, esi
mov ebx, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push esi
sub esp, 0x10
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x20]
push str.SoftwareTencentMobileGamePCGameDownload
push closesocket
call fcn.0044953b
test eax, eax
je 0x450966
push 0x333
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 3
lea ecx, [ebp - 0x50]
call fcn.00424985
mov byte [ebp - 4], 1
mov ecx, eax
push str.record_average_speed_failed:_cant_open_user_reg_path
jmp 0x4509bf
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 4
push esi
push str.DownloadSpeed
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x338
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 1
lea ecx, [ebp - 0x50]
call fcn.00424985
mov esi, eax
push str.record_download_average_speed__
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004248a8
push ebx
mov ecx, esi
call fcn.0044644d
push str._kb_s__success
mov ecx, esi
call fcn.004248a8
lea ecx, [ebp - 0x50]
call fcn.0066af23
lea ecx, [ebp - 0x20]
call fcn.00424889
call fcn.00626793
ret
Function at 0x4559ad
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
mov dword [ebp - 0x41c], edx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov ebx, ecx
call fcn.0063e3a0
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0063e3a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0x104
push eax
push 0x59
push 0x400
call esi
push 0x104
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
push 0x5a
push 0x400
call esi
mov esi, eax
cmp word [ebp - 0x20c], di
jne 0x455a36
mov eax, edi
jmp 0x455a43
lea eax, [ebp - 0x20c]
push eax
call fcn.00643138
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004284f9
test esi, esi
je 0x455aad
mov eax, dword [ebp - 0x418]
push 0x5f
pop ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00650b42
add esp, 0xc
cmp word [ebp - 0x20c], di
je 0x455a9a
lea eax, [ebp - 0x20c]
push eax
call fcn.00643138
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004284f9
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebx + 0x10]
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.006255fe
mov esp, ebp
pop ebp
ret
Function at 0x455bfe
Capabilities:
Identify system language via api

Disassembly:
push 0x6c
mov eax, 0x67210b
call fcn.006267e9
mov esi, ecx
mov dword [ebp - 0x5c], esi
push 7
xor ecx, ecx
xor eax, eax
pop ebx
push ecx
mov dword [ebp - 0x60], ecx
mov edi, 0x6d2f48
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x58]
push edi
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x58], ax
call fcn.004284f9
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
push ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], ax
call fcn.004284f9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x40], ax
push ebx
push edi
mov dword [ebp - 0x30], ebx
call fcn.004284f9
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004559ad
lea ecx, [ebp - 0x78]
call fcn.00455ac7
push eax
lea ecx, [ebp - 0x40]
call fcn.0042525f
xor edi, edi
lea ecx, [ebp - 0x78]
push ebx
inc edi
push edi
call fcn.00428ecb
cmp dword [ebp - 0x30], ebx
je 0x455cbc
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.00455b9e
test eax, eax
je 0x455cbc
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00427058
jmp 0x455d37
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
cmp ax, cx
je 0x455d2b
cmp dword [ebp - 0x18], 0
je 0x455d0c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00455950
test eax, eax
je 0x455ced
push 0x6d5d0c
jmp 0x455d30
cmp dword [ebp - 0x18], 0
je 0x455d0c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00455b9e
test eax, eax
je 0x455d0c
lea eax, [ebp - 0x28]
jmp 0x455cb2
cmp dword [ebp - 0x48], 0
je 0x455d2b
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
call fcn.00455b9e
test eax, eax
je 0x455d2b
lea eax, [ebp - 0x58]
jmp 0x455cb2
push 0x6d44d4
mov ecx, esi
call fcn.00428599
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00428ecb
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00428ecb
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00428ecb
mov eax, esi
call fcn.00626793
ret

Function at 0x455f87
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
push esi
push 0x208
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.0063e3a0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x455fea
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00428599
jmp 0x455ff9
push esi
push ecx
call fcn.00429293
pop ecx
mov ecx, eax
call fcn.004493b5
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.006255fe
mov esp, ebp
pop ebp
ret
Function at 0x456501
Capabilities:
Delete file

Disassembly:
push 0x74
mov eax, 0x672265
call fcn.006267e9
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x45651b
mov eax, dword [esi]
jmp 0x45651d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x28
lea ecx, [ebp - 0x4c]
mov eax, esp
xor ebx, ebx
mov edx, edi
push esi
mov dword [eax + 0x24], ebx
call fcn.00456d6f
add esp, 0x2c
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x4c], bl
jne 0x4565ce
push 0x72
push str.pcyyb_sdk::Download
push str.pcyyb_sdkpcyyb_sdk_downloader.cpp
push str.PcyybSdk
push 3
lea ecx, [ebp - 0x80]
call fcn.00424985
mov esi, eax
push str.download_component_failed._error_code:
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004248a8
push dword [ebp - 0x44]
mov ecx, esi
call fcn.0044945c
push str._http_status:
mov ecx, esi
call fcn.004248a8
push dword [ebp - 0x48]
mov ecx, esi
call fcn.0044945c
lea ecx, [ebp - 0x80]
call fcn.0066af23
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push dword [ebp - 0x48]
xor dl, dl
push eax
push dword [ebp - 0x44]
push edi
push 9
push 4
pop ecx
call fcn.00457d9c
add esp, 0x14
lea ecx, [ebp - 0x68]
push ebx
jmp 0x456613
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
add edi, 0x18
mov ecx, esi
push eax
mov edx, edi
call fcn.0045646a
pop ecx
test al, al
jne 0x45660c
push ebx
lea eax, [ebp - 0x28]
xor dl, dl
push eax
push ebx
push edi
push 0xd
push 4
pop ecx
call fcn.00457d9c
add esp, 0x14
jmp 0x45660e
mov bl, 1
push 0
lea ecx, [ebp - 0x28]
push 1
call fcn.00429656
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00429656
mov al, bl
call fcn.00626793
ret
Function at 0x459501
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x6c
mov eax, 0x672cbd
call fcn.006267e9
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x64], 7
xor ebx, ebx
mov word [ebp - 0x78], ax
mov edi, str.0C196968_D540_49D0_A765_8F113FBECF04_TGBDownloader
mov dword [ebp - 0x68], ebx
cmp word [str.0C196968_D540_49D0_A765_8F113FBECF04_TGBDownloader], ax
je 0x459536
push edi
call fcn.00643138
pop ecx
push eax
push edi
lea ecx, [ebp - 0x78]
call fcn.004284f9
lea edx, [ebp - 0x78]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.0045946f
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00428ecb
push 0x30
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0063e3a0
sub esp, 0x1c
mov ecx, esp
push dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00447f13
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00447e7c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x459641
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x459641
lea ecx, [ebp - 0x5c]
call fcn.004480ac
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x459634
push 0xe8
push str.CheckSingleton
push str.TGBDownloader.cpp
push str.Main
push 3
lea ecx, [ebp - 0x5c]
call fcn.00424985
mov esi, eax
push str.Create_singleton_mutex
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004248a8
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004253e9
push str._failed._error_code:
mov ecx, esi
call fcn.004248a8
call edi
push eax
mov ecx, esi
call fcn.0044644d
lea ecx, [ebp - 0x5c]
call fcn.0066af23
call edi
cmp eax, 0xb7
je 0x459649
mov bl, 1
jmp 0x459649
lea ecx, [ebp - 0x5c]
call fcn.004480ac
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00428ecb
mov al, bl
call fcn.00626793
ret