joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478210
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6726a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov esi, dword [eax]
cmp eax, esi
je 0x47825b
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call edi
mov ecx, dword [ebx]
mov eax, dword [esi]
mov esi, dword [ecx]
cmp eax, esi
jne 0x478245
mov eax, ecx
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov dword [ebx + 4], 0
mov eax, dword [ebx]
cmp esi, eax
je 0x4782a0
nop
mov edx, dword [esi + 8]
or eax, 0xffffffff
mov edi, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47828d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xc
push esi
call fcn.00669e69
mov eax, dword [ebx]
add esp, 8
mov esi, edi
cmp edi, eax
jne 0x478270
push 0xc
push eax
call fcn.00669e69
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478f10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6727d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00441f70
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or esi, 0xffffffff
test eax, eax
je 0x47900d
push 0x6d17fc
mov edx, 0x755e18
lea ecx, [ebp - 0x18]
call fcn.004793a0
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x478fce
cmp dword [edi + 0xc], 0
jl 0x478fc2
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x478fc2
push edx
call fcn.00441300
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x478fba
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x478fce
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00441d80
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478fec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478ff1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00440010
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479029
mov edx, dword [ebp - 0x10]
sub esp, 0x10
push edi
call fcn.004584f0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x479048
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47dd60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672c88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x47dd98
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0x38
mov esi, dword [eax]
mov edi, dword [eax + 4]
call fcn.00669e77
mov dword [eax + 4], 1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea ecx, [eax + 0x10]
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
lea edx, [eax + 4]
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__V___Binder_U_Unforced_std__P8LuaScriptHelperImpl__AEXXZPAV3__2___V_std__X__V_std__.0
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ebp + 8], ecx
mov dword [ecx + 0x24], ecx
mov dword [ebp - 0x1c], ecx
lock inc dword [edx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x28]
inc eax
cmp ecx, eax
ja 0x47de0a
push ecx
lea ecx, [ebx + 0x20]
call fcn.00439d60
mov ecx, dword [ebx + 0x28]
lea eax, [ecx - 1]
and dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
dec ecx
and ecx, eax
mov eax, dword [ebx + 0x24]
cmp dword [eax + ecx*4], 0
lea edi, [ecx*4]
jne 0x47de3f
push 0x28
call fcn.00669e77
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [edi + ecx], eax
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + edi]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_49ed3d6915d73b1b5c4c375661d08011___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [ebx + 0x30]
cmp dword [ebx + 0x18], 0
jne 0x47de82
lea eax, [ebx + 0x1c]
push eax
push 0
push ebx
push 0x43f580
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x47de86
mov byte [ebp + 0xb], 0
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, esi
lea ecx, [edi + 4]
lock xadd dword [ecx], eax
jne 0x47deaf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], esi
dec esi
jne 0x47deaf
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x495cc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x674f2b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x74b738]
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, dword [ebp + 8]
push 5
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x20]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
lea ecx, [ebx - 0x24]
call fcn.00496ea0
push 0
push 0
push 0x1511
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x495e62
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 3
push 0x6d1880
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0042a9a0
mov byte [ebp - 4], 1
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xd8]
push 0x7f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042c590
mov esi, eax
push str.Set_download_timeout_:
push esi
mov byte [ebp - 4], 2
call fcn.0042c400
add esp, 8
mov ecx, esi
push 0x927c0
call fcn.0048bb30
push str._ms_
push esi
call fcn.0042c400
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xd8]
call fcn.00428ee0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x495e1a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495e10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495e10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x495e62
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x495e58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x495e58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
push 6
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0x927c0
push 6
push dword [ebx - 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0xb4], 0
mov eax, 1
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.00669a1e
mov esp, ebp
pop ebp
ret 4
Function at 0x498850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675463
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4989e1
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 3
push 0x6d1880
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0042a9a0
mov byte [ebp - 4], 1
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x164
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042c590
mov esi, eax
push str.run_ludashisetup.exe_cmd_:
push esi
mov byte [ebp - 4], 2
call fcn.0042c400
mov ecx, dword [ebp - 0x48]
mov edx, str._null_
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.0043f750
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.00428ee0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x498980
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x498976
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498976
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x4989cf
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4989c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4989c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
push 1
push 0
push dword [eax]
push dword [ebx + 0xe8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
jle 0x498a49
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x48], esp
mov dword [ecx + 0x24], 0
push ecx
push 0
push str.ldsinsrun
mov dword [ebp - 4], 3
call fcn.004364c0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004a4810
push 0
push 0x927c0
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x498a5b
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, ebx
call fcn.0049af00
xor eax, eax
cmp esi, 0x20
setg al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4a0b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
cmp ecx, 0x111
jne 0x4a0cad
movzx eax, dx
mov ebx, 1
cmp bx, ax
jne 0x4a0bcf
sub esp, 0x10
mov ecx, esi
call fcn.004a2060
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
pop ebp
ret 0x14
mov edi, 2
cmp di, ax
jne 0x4a0bf2
mov ecx, esi
call fcn.004a2390
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x14
mov edi, 6
cmp di, ax
jne 0x4a0c26
push 1
push 0
push 0
push str.http:__www.ludashi.com_lisence.html
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x14
mov edi, 4
cmp di, ax
jne 0x4a0ce4
mov edx, dword [esi + 0x30]
mov eax, edx
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x4a0c61
cmp dword [ecx + 0x10], 2
jge 0x4a0c4d
mov ecx, dword [ecx + 8]
jmp 0x4a0c51
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x4a0c42
cmp eax, edx
je 0x4a0c61
cmp dword [eax + 0x10], 2
jle 0x4a0c63
mov eax, edx
cmp eax, edx
je 0x4a0c9b
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a0c9b
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
mov eax, dword [esi + 0x80]
cmp dword [eax + 0x5c], 0
je 0x4a0c96
push 1
push ecx
call edx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x14
push 0
push ecx
call edx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0
mov eax, ebx
pop ebx
pop ebp
ret 0x14
cmp ecx, 0x15ec
jne 0x4a0ce4
cmp dword [esi + 0x88], 0
jne 0x4a0cc5
mov ecx, esi
call fcn.004a2390
mov eax, dword [ebp + 0x18]
pop edi
mov dword [esi + 0x88], 1
pop esi
mov dword [eax], 0
mov eax, 1
pop ebx
pop ebp
ret 0x14
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00454850
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret 0x14
Function at 0x4a0f50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67620f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 5
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x758f8c]
test eax, eax
jne 0x4a0fdb
push 0x74c144
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x758f8c], 0
jne 0x4a0fcb
push 0x70
call fcn.00669e77
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004709e0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp + 8], eax
mov dword [0x758f8c], ecx
push 0x74c144
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x758f8c]
cmp dword [eax + 0x34], 0
je 0x4a0feb
lea ecx, [esi - 0x24]
call fcn.004a2390
jmp 0x4a101e
call fcn.00465320
cmp dword [eax + 0x68], 0
jne 0x4a100c
call fcn.00465320
cmp dword [eax + 0x4c], 0
jne 0x4a100c
call fcn.00465320
cmp dword [eax + 0x48], 0
je 0x4a101e
push 0
push 0
push 0x15ec
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3ae0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6765d8
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a3b84
cmp word [esi], di
je 0x4a3b84
test eax, eax
je 0x4a3b3f
cmp word [eax], di
je 0x4a3b3f
push edi
push edi
push eax
push esi
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x4a3b84
jmp 0x4a3b7f
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToCacheFileW]
test eax, eax
js 0x4a3b84
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x4a3ba2
mov dword [ebp - 0x424], edi
lea ecx, [ebp - 0x424]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp + 0x34]
mov dword [ebp - 4], 1
test esi, esi
je 0x4a3bc0
mov edx, dword [esi]
lea eax, [ebp + 0x10]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4a3be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676600
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
test ebx, ebx
jne 0x4a3c1c
xor edi, edi
jmp 0x4a3d88
cmp dword [ebp + 0x14], 0
je 0x4a3d64
push 0x1440
call fcn.00669e77
mov ecx, dword [ebp + 0x40]
xor edx, edx
add esp, 4
mov dword [ebp - 0x34], edx
mov edi, eax
test ecx, ecx
je 0x4a3c4e
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
push eax
call dword [edx]
mov edx, eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x1418]
mov dword [edi], ecx
mov dword [edi + 0x1414], 1
mov dword [esi + 0x24], 0
test edx, edx
je 0x4a3c78
mov eax, dword [edx]
mov ecx, edx
push esi
call dword [eax]
mov dword [esi + 0x24], eax
push 0x1000
lea esi, [edi + 4]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0x800
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
call esi
push 0x410
lea ebx, [edi + 0x1004]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0x24
test eax, eax
je 0x4a3cc0
push 0x208
push eax
push ebx
call esi
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4a3ce6
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x4a3920
push 0
push 0
mov dword [ebp - 0x18], 0x4a3920
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], vtable.CSimpleThread.0
test eax, eax
je 0x4a3d4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xffffffff
mov edi, 1
mov dword [ebp - 0x18], 0
jmp 0x4a3d88
sub esp, 0x28
mov edi, esp
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x4a3d7f
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
push esi
push ebx
call fcn.004a3ae0
mov edi, eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x4a3da7
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x4a45e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4a4605
test byte [ebp - 4], 7
je 0x4a4605
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4a4700
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0066af60
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0x10]
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4a47fb
test edi, edi
je 0x4a47fb
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4a47fb
cmp eax, 0x3fff
ja 0x4a47fb
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4a47fb
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x6d17fc
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a47fb
mov esi, dword [ebp + 0x14]
lea eax, [esi + esi]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x6d17e4
lea eax, [esi - 1]
push eax
push edi
call fcn.00479c30
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a9530
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a9585
mov eax, dword [esp]
cmp al, 2
jne 0x4a957f
shr eax, 8
cmp al, 2
jne 0x4a957f
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
mov eax, 2
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret