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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push str.PM_Req_RunSkinupdater_Begin_r_n
mov ebx, 0x55b31c
mov edi, ecx
push ebx
call fcn.004a9913
pop ecx
pop ecx
xor esi, esi
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.004a28b6
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a633d
push 1
push esi
push 0x2710
push str.__skin_updater
push dword [ebp - 4]
call fcn.0049e12c
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4a6325
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push str.PM_Req_RunSkinupdater_RunApp_PathFileExists_ws_errcode_d
push ebx
call fcn.004a9913
add esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 8], 6
push eax
lea ecx, [edi + 0xd8]
call fcn.0041ed40
jmp 0x4a634e
push dword [ebp - 4]
push str.PM_Req_RunSkinupdater_PathFileExists_ws_no_exists_r_n
push ebx
call fcn.004a9913
add esp, 0xc
push esi
push str.PM_Req_RunSkinupdater_End_bRet_d_r_n
push ebx
call fcn.004a9913
mov ecx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004206ab
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a6aec
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
test byte [esi + 0x10c], 2
jne 0x4a6c36
push ebx
push str.PM_Req_XPQuickLanuchIconFirst_Begin_r_n
mov ebx, 0x55b31c
push ebx
call fcn.004a9913
pop ecx
pop ecx
call fcn.0049de27
test eax, eax
jne 0x4a6c28
push edi
push str.PM_Req_XPQuickLanuchIconFirst_OsIsVistaAndAfter_gnf_r_n
push ebx
call fcn.004a9913
pop ecx
pop ecx
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004a24e2
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x46cc8f
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
je 0x4a6c1a
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a6c0b
push str.CreateAndAdjustQuickLaunch_timeout_r_n
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
push esi
push esi
push 0x12
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call fcn.00420bd2
push eax
lea ecx, [ebp - 4]
call fcn.00423e41
push 0x104
lea ecx, [ebp - 4]
call fcn.00423e74
push eax
push esi
push 0x1a
push esi
call fcn.0049e38c
add esp, 0x10
lea ecx, [ebp - 4]
push 0xffffffffffffffff
call fcn.00425bfa
mov esi, 0x4ff428
push esi
call fcn.004241d7
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.0043be5f
mov esi, dword [ebp - 4]
push str.Liebao
push esi
push 0x50f8e0
push edi
call fcn.0049ba7a
add esp, 0x10
lea ecx, [esi - 0x10]
call fcn.004206ab
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.004206ab
mov ebx, 0x55b31c
pop edi
push str.PM_Req_XPQuickLanuchIconFirst_End_r_n
push ebx
call fcn.004a9913
pop ecx
pop ecx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a6c3b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.PM_Requirement_InstallAfter_Begin_r_n
mov ebx, 0x55b31c
mov edi, ecx
push ebx
call fcn.004a9913
mov eax, dword [edi + 0x44]
sub eax, 0x10
push eax
call fcn.00425cc0
add esp, 0xc
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x50], esi
jne 0x4a6c8a
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.00425c4a
mov esi, dword [ebp - 0x50]
push esi
push str.PM_Requirement_InstallAfter_Pid_ws_r_n
push ebx
call fcn.004a9913
add esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a6283
call fcn.0049c70b
test eax, eax
je 0x4a6cc3
mov ecx, edi
call fcn.004a43a3
test eax, eax
jne 0x4a6cc3
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a5e5d
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 0x4fd6cc
push str.3.9.23.0000
push dword [edi + 0x4c]
call fcn.0049b6e4
add esp, 0x10
test eax, eax
je 0x4a6de6
cmp dword [ebp - 0x54], 0
jne 0x4a6cfe
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a65cf
jmp 0x4a6de6
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x50]
call fcn.00423e41
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x50]
call fcn.00425c4a
lea eax, [ebp - 0x50]
push eax
call fcn.0049dfdb
mov ebx, str.Local_State
push ebx
call fcn.004241d7
pop ecx
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x50]
call fcn.0043be5f
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a6dd6
and dword [ebp - 0xc], eax
push 0x10
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], al
call fcn.00481836
pop ecx
test eax, eax
je 0x4a6d6d
mov ecx, eax
call fcn.0040e900
mov ebx, eax
jmp 0x4a6d6f
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004124e0
pop ecx
pop ecx
push dword [ebp - 0x50]
lea ecx, [ebp - 0x34]
call fcn.00406c40
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004086d0
push eax
call fcn.0040ad70
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.00408720
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403650
test ebx, ebx
je 0x4a6dca
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403580
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ebx, 0x55b31c
cmp dword [edi + 0x70], 0
je 0x4a6df7
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.004a65f3
cmp dword [edi + 0x28], 0
jne 0x4a6e04
mov ecx, edi
call fcn.004a62ab
cmp dword [edi + 0x70], 0
je 0x4a6e11
mov ecx, edi
call fcn.004a80e6
mov ecx, edi
call fcn.004a7ff7
mov ecx, edi
call fcn.004a815a
push str.PM_Requirement_InstallAfter_End_r_n
push ebx
call fcn.004a9913
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4a6f07
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x4a6f37
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor eax, eax
inc eax
cmp dword [esi + 0x30], edi
cmove edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4a7632
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
push dword [esi + 0x11c]
mov ecx, dword [esi + 0x120]
call fcn.004aa3eb
mov edi, eax
test edi, edi
js 0x4a76ec
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
push ebx
push ecx
call fcn.00425cc0
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049dfdb
mov ebx, str.install.dat
push ebx
call fcn.004241d7
add esp, 0xc
lea ecx, [ebp - 0x20]
push eax
push ebx
call fcn.0043be5f
push dword [0x55b2b8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4a76af
push dword [0x55b2b8]
jmp 0x4a76bb
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4a76e0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00406c40
mov ecx, dword [esi + 0x120]
lea eax, [ebp - 0x1c]
push eax
call fcn.004abd44
push 0
push 1
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00403650
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004206ab
pop ebx
xor eax, eax
test edi, edi
setns al
mov dword [esi + 0x118], eax
test eax, eax
je 0x4a7708
mov ecx, dword [esi + 0x11c]
call fcn.0046682d
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x118]
xor ecx, ebp
pop edi
pop esi
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x4a7867
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.oleaut32.dll
mov dword [ebp - 4], ecx
call esi
push str.oleacc.dll
mov edi, eax
call esi
push str.winmm.dll
mov dword [ebp - 8], eax
call esi
push str.wininet.dll
mov dword [ebp - 0xc], eax
call esi
push str.netapi32.dll
mov dword [ebp - 0x10], eax
call esi
xor ebx, ebx
xor ecx, ecx
test edi, edi
je 0x4a78c5
cmp dword [ebp - 8], ecx
je 0x4a78c5
cmp dword [ebp - 0xc], ecx
je 0x4a78c5
cmp dword [ebp - 0x10], ecx
je 0x4a78c5
test eax, eax
lea eax, [ecx + 1]
jne 0x4a78c7
mov eax, ebx
push eax
push str.StartInstall_LoadLibrary_:_d
push 0x55b31c
call fcn.004a9913
mov edi, dword [ebp + 8]
add esp, 0xc
mov esi, dword [ebp - 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4a78f5
cmp dword [esi + 0x70], ebx
jne 0x4a78f5
push edi
lea ecx, [esi + 4]
call fcn.00425c4a
cmp dword [edi + 0x18], ebx
je 0x4a7a04
cmp dword [esi + 0x70], ebx
je 0x4a7a04
push dword [esi + 4]
call fcn.0049cc23
pop ecx
test eax, eax
jne 0x4a7a04
push str.bIsNewOverOld__false__return_r_n
push 0x55b31c
call fcn.004a9913
push 0xc
call fcn.00481836
add esp, 0xc
test eax, eax
je 0x4a7940
mov ecx, eax
call fcn.004a0787
mov edi, eax
jmp 0x4a7942
mov edi, ebx
push ebx
lea esi, [edi + 4]
mov dword [edi], 0x1b
push 0x50ddb1
mov ecx, esi
call fcn.00431ab6
push 0x12
push str.reportver2.0.0.0
mov ecx, esi
call fcn.0043bf8a
push 0xc
push 0x4fde8c
mov ecx, esi
call fcn.0043bf8a
push dword [0x55b2bc]
lea ecx, [ebp + 8]
call fcn.00467d43
mov ecx, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0043bf8a
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
push 0xd
push str.vermoreless
mov ecx, esi
call fcn.0043bf8a
push 1
push 0x4fdc68
mov ecx, esi
call fcn.0043bf8a
push ebx
push ebx
push edi
push 0x4a6ffa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4a79ff
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a79f0
push str.Report_timeout
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4a7a80
push edi
lea ecx, [esi + 0xac]
call fcn.004a0a20
push dword [esi + 0xc4]
mov eax, dword [edi + 0x20]
push dword [esi + 0xc0]
mov dword [esi + 0xd4], eax
push dword [esi + 0xbc]
push dword [esi + 0xb4]
push dword [esi + 0xb0]
push str.bSyn_d_bSlient_d_bSetDefaultBrowser_d_bInstallAfterIsRun_d_bVerCheck_d_r_n
push 0x55b31c
call fcn.004a9913
add esp, 0x1c
cmp dword [edi + 4], ebx
je 0x4a7a59
mov ecx, esi
call fcn.004a7a89
mov ebx, eax
jmp 0x4a7a7e
push ebx
push ebx
push esi
push 0x4a3333
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x34], ebx
push 1
mov dword [esi + 0x78], eax
pop eax
cmove ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a7f7c
Capabilities:
Check if file exists
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x120]
call fcn.004aa89a
mov eax, dword [esi + 0x120]
push eax
mov edx, dword [eax]
call dword [edx + 8]
and dword [esi + 0x120], 0
cmp dword [esi + 0x30], 0
je 0x4a7fbb
push 0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004a806d
test eax, eax
jne 0x4a7fe4
cmp dword [esi + 0x34], eax
je 0x4a7fe4
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x34], 0
lea ecx, [esi + 0x80]
call fcn.004a959f
mov ecx, esi
pop esi
jmp fcn.004a0e09

Function at 0x4a7ff7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x705
mov eax, dword [edi]
call dword [eax + 4]
push str.UpRegVer_Begin_r_n
mov ebx, 0x55b31c
push ebx
call fcn.004a9913
pop ecx
pop ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0x512fe4
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
push esi
push dword [edi + 0x4c]
push str.UpRegVer__ver_ws__hr0x_x_r_n
push ebx
call fcn.004a9913
mov edx, dword [edi]
add esp, 0x10
xor ebx, ebx
mov ecx, edi
test esi, esi
push esi
setns bl
push ebx
push 0x705
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4a8e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push 0x600
mov eax, dword [ebx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
call fcn.00425cc0
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0049dfdb
mov esi, str.ModuleqqdlTencentdl.exe
push esi
call fcn.004241d7
add esp, 0xc
lea ecx, [ebp - 4]
push eax
push esi
call fcn.0043be5f
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a8e9d
push 0
push 1
push 0
push str._install
push dword [ebp - 4]
call fcn.0049e12c
add esp, 0x14
mov edi, eax
jmp 0x4a8eb4
push dword [ebp - 4]
push str.no_exists__ws
push 0x55b31c
call fcn.004a9913
add esp, 0xc
xor edi, edi
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x600
mov ecx, ebx
call dword [esi + 8]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8fc0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], eax
call fcn.00491b71
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4a9130
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x4a903d
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x55b31c
call fcn.004a9913
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x20]
add esp, 0x10
jmp 0x4a9125
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push esi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4a9075
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x55b31c
call fcn.004a9913
jmp 0x4a9032
push dword [ebp - 0x30]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4a90a7
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x55b31c
call fcn.004a9913
add esp, 0x10
jmp 0x4a9125
push 0x500a00
push 0x55b31c
call fcn.004a9913
pop ecx
pop ecx
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x30]
push ebx
mov eax, dword [ecx]
push ecx
call dword [eax]
mov esi, eax
xor eax, eax
test esi, esi
sete al
push eax
push str.Extract_return:_d
push 0x55b31c
call fcn.004a9913
add esp, 0xc
test esi, esi
je 0x4a911f
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4a90fe
mov esi, dword [esi]
push esi
call fcn.004241d7
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push esi
add ecx, 0x1c
call fcn.0042415e
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403650
jmp 0x4a9122
xor edi, edi
inc edi
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4a913c
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cmp esi, 0xffffffff
je 0x4a9148
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4a9153
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4a9162
push eax
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.004bc1bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4a9230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x2c]
call fcn.00423e41
push esi
push str.GetPacketData__d
push 0x55b31c
call fcn.004a9913
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push esi
call fcn.004a93d2
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x55b31c
mov dword [ebp - 0x30], esi
call fcn.004a9913
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x2c]
je 0x4a9340
call fcn.00491b71
mov dword [edi + 0x18], eax
test eax, eax
je 0x4a9340
push 0x500a00
push 0x55b31c
call fcn.004a9913
mov eax, dword [edi + 0x18]
pop ecx
pop ecx
push dword [ebp - 0x34]
mov ecx, dword [eax]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push eax
call dword [ecx]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
push ecx
push str.Extract_return:_d
push 0x55b31c
call fcn.004a9913
add esp, 0xc
test edi, edi
je 0x4a9336
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [eax + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4a9315
mov edi, dword [edi]
push edi
call fcn.004241d7
pop ecx
mov ecx, dword [ebp - 0x20]
push eax
push edi
lea ecx, [ecx + 0x1c]
call fcn.0042415e
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403650
jmp 0x4a935f
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], 1
cmp dword [esi - 0xc], ebx
je 0x4a934c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4a935c
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x28]
lea ecx, [esi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4a9487
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a9518
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x55b31c
call fcn.004a9913
add esp, 0x10
jmp 0x4a958c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push edi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test edi, edi
jne 0x4a954b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4a9573
push dword [ebx + 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4a9582
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x55b31c
call fcn.004a9913
add esp, 0x10
jmp 0x4a9585
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x4a978c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a97b7
xor eax, eax
jmp 0x4a97d2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4a97d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov ebx, ecx
lea edi, [ebp - 0xeb]
xor ecx, ecx
mov byte [ebp - 0xec], cl
stosd dword es:[edi], eax
push 0xc6
push ecx
mov dword [ebp - 0xd8], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.004bf240
push esi
call fcn.004241d7
add esp, 0x10
lea ecx, [ebx + 0x14]
push eax
push esi
call fcn.0042415e
mov ecx, ebx
call fcn.004a971d
xor edi, edi
lea eax, [ebp - 0xec]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push edi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004c033a
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push edi
push edi
lea eax, [ebp - 0xd8]
push eax
call esi
push 0
push 0
push edi
xor edi, edi
mov dword [ebx + 8], eax
push edi
call esi
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], edi
je 0x4a98fe
test eax, eax
je 0x4a98fe
push edi
push edi
push ebx
push 0x4a9a75
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [ebx + 0x10], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x4a9900
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 4

Function at 0x4a9a84
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4a9c56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4a9c86
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004c2abe
push dword [esi + 4]
push 2
push 1
push 0x50fac4
call fcn.004c2abe
add esp, 0x20
pop esi
pop ebp
ret 8