joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ad55
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x23c
mov eax, 0x66d3e1
call fcn.00623149
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.0063acc0
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea ecx, [ebp - 0x224]
push 0x2001f
push str.SoftwareTencentMobileGamePC
push closesocket
call fcn.004247d0
test eax, eax
jne 0x44ae85
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 0x44ae85
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x44ae1a
mov eax, ebx
jmp 0x44ae27
lea eax, [ebp - 0x218]
push eax
call fcn.0063fa3d
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004284b9
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
call fcn.0044aea1
push 0
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00428e8b
test bl, bl
jne 0x44ae6b
inc esi
xor ebx, ebx
jmp 0x44adc9
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.004480f8
pop ecx
mov ecx, eax
call fcn.00448166
lea ecx, [ebp - 0x224]
call fcn.00424849
lea ecx, [ebp - 0x224]
call fcn.00424849
call fcn.006230f3
ret
Function at 0x44aea1
Capabilities:
Check if file exists

Disassembly:
push 0x270
mov eax, 0x66d42a
call fcn.00623149
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x20a
xor ebx, ebx
push ebx
push eax
call fcn.0063acc0
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.0063fa3d
add esp, 0x10
lea ecx, [ebp - 0x264]
push eax
push edi
call fcn.004284b9
push 0x6cfd48
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00438ae4
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.0044916c
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x27c]
push esi
push 1
call fcn.00428e8b
push esi
push 1
lea ecx, [ebp - 0x264]
call fcn.00428e8b
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.004247d0
test eax, eax
jne 0x44afc8
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.InstallPath
lea ecx, [ebp - 0x230]
call fcn.004246e3
lea ecx, [ebp - 0x230]
call fcn.00424849
lea eax, [ebp - 0x224]
push eax
call fcn.0063fa3d
pop ecx
test eax, eax
je 0x44affd
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44affb
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x44affd
mov bl, 1
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.00428e8b
lea ecx, [ebp - 0x230]
call fcn.00424849
mov al, bl
call fcn.006230f3
ret 4
Function at 0x44d4d9
Capabilities:
Create process on windows

Disassembly:
push 0x31c
mov eax, 0x66d7c3
call fcn.00623149
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0063acc0
xor eax, eax
mov dword [ebp - 0x268], 0x104
lea edi, [ebp - 0x228]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00424609
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041b7d4
push 0x20119
push str.SOFTWARETencentAndrows
push closesocket
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.004247d0
test eax, eax
jne 0x44d5ef
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x218]
push eax
push str.InstallPath
lea ecx, [ebp - 0x228]
call fcn.004246e3
test eax, eax
jne 0x44d5ef
lea eax, [ebp - 0x218]
push eax
call fcn.0063fa3d
pop ecx
test eax, eax
je 0x44d5ef
lea eax, [ebp - 0x2f4]
mov dword [ebp - 0x2f8], eax
lea ecx, [ebp - 0x2f8]
push 0xfde9
lea eax, [ebp - 0x218]
push eax
call fcn.0041b7fd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x2f8]
call fcn.0041b489
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2f8], eax
je 0x44d5ef
push dword [ebp - 0x2f8]
call fcn.0063fc0d
pop ecx
lea ecx, [ebp - 0x228]
call fcn.00424849
mov esi, str.ApplicationAndrowsLauncher.exe
push esi
call fcn.0063e4a0
pop ecx
mov ecx, dword [ebp - 0x21c]
mov edi, esi
sub edi, ecx
mov ebx, dword [ecx - 0xc]
mov ecx, eax
not ecx
shr ecx, 0x1f
test ecx, ecx
jne 0x44d628
push 0x80070057
call fcn.004297a0
push eax
push esi
call fcn.0064817b
pop ecx
pop ecx
mov ecx, closesocket
mov dword [ebp - 0x268], eax
sub ecx, eax
cmp ecx, ebx
jl 0x44d61e
add eax, ebx
lea ecx, [ebp - 0x21c]
push eax
mov dword [ebp - 0x26c], eax
call fcn.0041bedb
cmp edi, ebx
ja 0x44d65d
lea esi, [eax + edi]
mov edx, dword [ebp - 0x268]
lea ecx, [eax + ebx]
push edx
push esi
call fcn.00426582
pop ecx
pop ecx
push dword [ebp - 0x26c]
lea ecx, [ebp - 0x21c]
call fcn.0041bf57
push 0x38
xor edi, edi
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.0063acc0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x264]
add esp, 0xc
mov dword [ebp - 0x264], 0x3c
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], 0x6d1bb4
mov dword [ebp - 0x254], esi
push eax
mov dword [ebp - 0x250], str.__launch_proc_name__AndrowsStore.exe____silent
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x260], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x44d728
push 0x5f
push str._anonymous_namespace::LaunchPcyybSilent
push str.MainWnd.cpp
push str.InstYYB
push 3
lea ecx, [ebp - 0x328]
call fcn.00424945
mov edi, eax
push str.ShellExecuteExA_failed__filepath:
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00424868
push esi
mov ecx, edi
call fcn.00424868
lea ecx, [ebp - 0x328]
call fcn.00667873
lea ecx, [esi - 0x10]
call fcn.004246cb
lea ecx, [ebp - 0x228]
call fcn.00424849
call fcn.006230f3
ret
Function at 0x44e3e1
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66db30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x705034]
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 0x44e457
push edi
lea esi, [ebx + 0x984]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00454691
mov eax, dword [ebx + 0x994]
test eax, eax
je 0x44e46f
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x44e46f
push edi
push eax
call fcn.005141f4
mov eax, dword [ebx + 0x878]
cmp eax, 0xa
je 0x44e536
mov esi, dword [ebx + 0x87c]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
jmp 0x44e49c
cmp byte [eax + 0x50], 0
je 0x44e4a5
lea ecx, [ebp - 0x14]
call fcn.00424227
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x44e48b
jmp 0x44e536
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.004247d0
mov esi, 0x6cfdc0
lea ecx, [ebp - 0x20]
push esi
call fcn.00445ef4
push 0x2001f
push edi
push closesocket
lea ecx, [ebp - 0x20]
call fcn.004247d0
push esi
lea ecx, [ebp - 0x20]
call fcn.00445ef4
push 0xfc
push str.CMainWnd::CMainWnd
push str.MainWnd.cpp
push str.MainWnd
push 1
lea ecx, [ebp - 0x50]
call fcn.00424945
push str.install_failed._clear_all_runtime_register_key.
mov ecx, eax
call fcn.00424868
lea ecx, [ebp - 0x50]
call fcn.00667873
lea ecx, [ebp - 0x20]
call fcn.00424849
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.004480f8
pop ecx
mov ecx, eax
call fcn.00448166
lea ecx, [ebx + 0x9ac]
call fcn.004527ca
lea ecx, [ebx + 0x9a0]
call fcn.0041e1b8
lea esi, [ebx + 0x98c]
mov ecx, esi
call fcn.004445e0
push 0xe8
push 1
push dword [esi]
call fcn.004295b4
add esp, 0xc
cmp dword [ebx + 0x988], edi
je 0x44e599
call fcn.0064d49a
lea ecx, [ebx + 0x970]
call fcn.004514c1
lea eax, [ebx + 0x940]
push eax
call fcn.00610432
pop ecx
lea ecx, [ebx + 0x898]
call fcn.00419da6
lea esi, [ebx + 0x888]
lea ecx, [esi + 8]
call fcn.00443a2b
mov ecx, esi
call fcn.00443a2b
lea ecx, [ebx + 0x87c]
call fcn.004511ca
mov ecx, ebx
call fcn.004546f8
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.00621f5c
mov esp, ebp
pop ebp
ret
Function at 0x44ec8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x64
mov eax, 0x66dc59
call fcn.00623149
lea ecx, [ebp - 0x28]
call fcn.006675ab
and dword [ebp - 4], 0
mov eax, dword [0x717b60]
test eax, eax
push 0x6d220c
cmove eax, dword [0x717b58]
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x44edb3
mov ecx, dword [0x717b60]
test ecx, ecx
push esi
cmove ecx, dword [0x717b58]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
jne 0x44ecf6
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x44edb3
mov eax, dword [0x717b60]
test eax, eax
cmove eax, dword [0x717b58]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x44edb3
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.00511033
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.00510ff1
lea eax, [ebp - 0x70]
push eax
call fcn.00429253
mov ecx, eax
call fcn.00454651
push eax
mov edx, str.locale_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004535d6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov edx, eax
mov dword [esp], str..xml
call fcn.00438ae4
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x44ed82
mov eax, dword [eax]
push eax
call fcn.00454aa7
mov ecx, eax
call fcn.0050ee3a
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00428e8b
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00428e8b
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00428e8b
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00428e8b
call fcn.006230f3
ret
Function at 0x44ff83
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x66dfd7
call fcn.00623149
mov esi, ecx
mov eax, dword [esi + 0x9a4]
sub eax, dword [esi + 0x9a0]
cmp eax, 4
jb 0x4500b3
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 0x44ffd7
add ebx, dword [ecx]
inc edi
lea ecx, [ecx + 4]
cmp edi, edx
jne 0x44ffcd
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.004492d2
test eax, eax
je 0x450045
push 0x2c3
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 3
lea ecx, [ebp - 0x50]
call fcn.00424945
mov byte [ebp - 4], 1
mov ecx, eax
push str.record_average_speed_failed:_cant_open_user_reg_path
jmp 0x45009e
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 0x2c8
push str.CMainWnd::RecordDownloadAverageSpeed
push str.MainWnd.cpp
push str.Download
push 1
lea ecx, [ebp - 0x50]
call fcn.00424945
mov esi, eax
push str.record_download_average_speed__
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00424868
push ebx
mov ecx, esi
call fcn.00445fd7
push str._kb_s__success
mov ecx, esi
call fcn.00424868
lea ecx, [ebp - 0x50]
call fcn.00667873
lea ecx, [ebp - 0x20]
call fcn.00424849
call fcn.006230f3
ret
Function at 0x454f01
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x705034]
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.0063acc0
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0063acc0
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 0x454f8a
mov eax, edi
jmp 0x454f97
lea eax, [ebp - 0x20c]
push eax
call fcn.0063fa3d
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004284b9
test esi, esi
je 0x455001
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.0064d3d2
add esp, 0xc
cmp word [ebp - 0x20c], di
je 0x454fee
lea eax, [ebp - 0x20c]
push eax
call fcn.0063fa3d
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004284b9
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.00621f5c
mov esp, ebp
pop ebp
ret
Function at 0x455152
Capabilities:
Identify system language via api

Disassembly:
push 0x6c
mov eax, 0x66e918
call fcn.00623149
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, 0x6cefd8
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x58]
push edi
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x58], ax
call fcn.004284b9
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.004284b9
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.004284b9
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00454f01
lea ecx, [ebp - 0x78]
call fcn.0045501b
push eax
lea ecx, [ebp - 0x40]
call fcn.0042521f
xor edi, edi
lea ecx, [ebp - 0x78]
push ebx
inc edi
push edi
call fcn.00428e8b
cmp dword [ebp - 0x30], ebx
je 0x455210
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.004550f2
test eax, eax
je 0x455210
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00427018
jmp 0x45528b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
cmp ax, cx
je 0x45527f
cmp dword [ebp - 0x18], 0
je 0x455260
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00454ea4
test eax, eax
je 0x455241
push 0x6d1eb4
jmp 0x455284
cmp dword [ebp - 0x18], 0
je 0x455260
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004550f2
test eax, eax
je 0x455260
lea eax, [ebp - 0x28]
jmp 0x455206
cmp dword [ebp - 0x48], 0
je 0x45527f
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
call fcn.004550f2
test eax, eax
je 0x45527f
lea eax, [ebp - 0x58]
jmp 0x455206
push 0x6d0564
mov ecx, esi
call fcn.00428559
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00428e8b
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00428e8b
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00428e8b
mov eax, esi
call fcn.006230f3
ret
Function at 0x456197
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x6c
mov eax, 0x66ebe7
call fcn.00623149
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 0x4561cc
push edi
call fcn.0063fa3d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x78]
call fcn.004284b9
lea edx, [ebp - 0x78]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.00456105
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00428e8b
push 0x30
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0063acc0
sub esp, 0x1c
mov ecx, esp
push dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00447cf3
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00447c5c
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 0x4562d7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x4562d7
lea ecx, [ebp - 0x5c]
call fcn.00447e8c
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 0x4562ca
push 0xe8
push str.CheckSingleton
push str.TGBDownloader.cpp
push str.Main
push 3
lea ecx, [ebp - 0x5c]
call fcn.00424945
mov esi, eax
push str.Create_singleton_mutex
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00424868
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.004253a9
push str._failed._error_code:
mov ecx, esi
call fcn.00424868
call edi
push eax
mov ecx, esi
call fcn.00445fd7
lea ecx, [ebp - 0x5c]
call fcn.00667873
call edi
cmp eax, 0xb7
je 0x4562df
mov bl, 1
jmp 0x4562df
lea ecx, [ebp - 0x5c]
call fcn.00447e8c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00428e8b
mov al, bl
call fcn.006230f3
ret
Function at 0x457a26
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x705034]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test edi, edi
je 0x457ab8
cmp dword [esi + 0x10], 0
je 0x457ab8
push 0x6d27b0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x457ab8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x457ab8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x457ab8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x457ab8
cmp dword [esi + 0x14], 8
jb 0x457a91
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x457acb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00621f5c
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x457af0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x457ab8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x457aba
Function at 0x457df2
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push 0x278
mov eax, 0x66f047
call fcn.00623149
mov dword [ebp - 0x238], edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ecx
mov word [ebp - 0x234], ax
push 0x208
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
call fcn.0063acc0
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0063acc0
add esp, 0x18
lea eax, [ebp - 0x21c]
push 1
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x457f90
and dword [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
cmp word [ebp - 0x21c], ax
je 0x457ea9
lea eax, [ebp - 0x21c]
push eax
call fcn.0063fa3d
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004284b9
push 0x6cfd48
lea edx, [ebp - 0x254]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00438ae4
push dword [ebp - 0x238]
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
call fcn.00438ae4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0042521f
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.00428e8b
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00428e8b
push 0
push 1
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
call fcn.00428e8b
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457f66
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x23c]
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ebx
cmovae edx, dword [ebp - 0x234]
mov ecx, esi
push edi
call fcn.00457faa
add esp, 0xc
mov esi, eax
jmp 0x457f93
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.00428e8b
mov eax, esi
call fcn.006230f3
ret
Function at 0x45806f
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x705034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x41
mov edx, eax
mov dword [esp + 0x18], esi
mov eax, dword [0x6d4a8c]
mov edi, dword [esp + 0x18]
pop ebx
mov dword [esp + 0x2c], eax
mov eax, dword [0x6d4a90]
push 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
pop esi
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
test edx, eax
je 0x45814a
lea eax, [esi + 0x41]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x458146
mov ecx, dword [esp + 0x2c]
call fcn.0045817d
test eax, eax
jne 0x458146
mov ecx, dword [esp + 0x2c]
call fcn.00458257
test eax, eax
je 0x458146
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x458146
cmp edi, dword [esp + 0x24]
ja 0x458146
jb 0x458135
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
ja 0x458146
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movzx ebx, word [esp + 0x2c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
inc esi
cmp esi, 0x1a
jl 0x4580ce
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x30], bx
call fcn.00428559
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00621f5c
mov esp, ebp
pop ebp
ret