joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 0x18]
mov eax, edx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
push edi
cmp esi, 0x10
jb 0x410bc6
mov eax, esi
shr eax, 4
mov dword [ebp - 8], eax
nop word [eax + eax]
mov edi, dword [ebp - 0xc]
mov eax, ecx
sub edi, ecx
mov edx, 4
mov ecx, ebx
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov esi, ecx
mov ecx, dword [edi + eax]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [esi + eax - 4], ecx
sub edx, 1
jne 0x410b86
push dword [ebp + 0x14]
push ebx
push ebx
call dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov eax, ebx
mov ecx, dword [ebp - 4]
sub esi, 0x10
add ecx, 0x10
mov dword [ebp - 0xc], eax
add esp, 0xc
mov dword [ebp + 0x10], esi
add ebx, 0x10
mov dword [ebp - 4], ecx
sub dword [ebp - 8], 1
jne 0x410b70
mov edx, dword [ebp + 0x18]
test esi, esi
je 0x410cf0
nop
mov esi, eax
mov dword [ebp - 8], eax
sub esi, dword [ebp - 4]
lea edi, [ebx + 2]
mov dword [ebp - 0x18], esi
xor edx, edx
mov esi, ebx
inc ecx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov esi, 1
sub esi, dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov esi, 2
sub esi, dword [ebp - 4]
sub dword [ebp - 8], ebx
mov dword [ebp - 0x24], esi
mov esi, ebx
not esi
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x10]
nop dword [eax]
cmp edx, esi
jae 0x410c8f
add eax, edx
mov dword [ebp - 0x10], eax
mov esi, eax
mov al, byte [ecx - 1]
xor al, byte [esi]
mov esi, dword [ebp + 0x10]
mov byte [edi - 2], al
mov eax, dword [ebp - 0x14]
add eax, edi
cmp eax, esi
jae 0x410c89
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov al, byte [ecx + eax]
xor al, byte [ecx]
mov byte [ecx + esi], al
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0x10]
add eax, ecx
cmp eax, esi
jae 0x410c84
mov eax, dword [ebp - 8]
mov al, byte [eax + edi]
xor al, byte [ecx + 1]
mov byte [edi], al
mov eax, dword [ebp - 0x24]
add eax, ecx
cmp eax, esi
jae 0x410c7f
mov esi, dword [ebp - 0x10]
add edx, 4
mov al, byte [ecx + 2]
add ecx, 4
xor al, byte [esi + 3]
mov esi, dword [ebp + 0x10]
mov byte [edi + 1], al
add edi, 4
mov eax, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x410c10
jmp 0x410cb1
add edx, 3
jmp 0x410c8a
add edx, 2
jmp 0x410c8a
inc edx
cmp edx, 0x10
jae 0x410cb1
mov esi, dword [ebp - 8]
lea ecx, [edx + ebx]
mov edi, 0x10
sub edi, edx
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x410ca0
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
push ebx
call dword [ebp + 0x1c]
add esp, 0xc
mov eax, ebx
mov dword [ebp - 0xc], eax
cmp esi, 0x10
jbe 0x410ce0
mov ecx, dword [ebp - 4]
sub esi, 0x10
add ecx, 0x10
mov dword [ebp + 0x10], esi
add ebx, 0x10
mov dword [ebp - 4], ecx
test esi, esi
jne 0x410bd0
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
movups xmmword [eax], xmm0
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [eax]
pop edi
pop esi
movups xmmword [edx], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4114e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4c
push 0
lea eax, [esi + 0x10]
push eax
call fcn.004d0100
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x41d8e0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9c40
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallWeChat
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x41d9b3
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov esi, esp
movups xmmword [eax], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov ecx, esp
push edi
call fcn.004197f0
push str.setDisplayVersionReg._open_reg_faild._ret_d__lastErr_d
push str.UpdateMgr
push str.UpdateMgr::setDisplayVersionReg
push 0x23e
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov ecx, 4
call fcn.00403890
add esp, 0x70
jmp 0x41da58
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41d9c0
cmp word [ecx], 0
jne 0x41d9c5
mov ecx, 0x628fa4
mov eax, dword [ebx + 0xc]
add eax, eax
push eax
push ecx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x41da4f
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov esi, esp
movups xmmword [eax], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004182c0
sub esp, 0x10
mov ecx, esp
push edi
call fcn.004197f0
push str.setDisplayVersionReg._write_reg_faild.ret_d__lastErr_d
push str.UpdateMgr
push str.UpdateMgr::setDisplayVersionReg
push 0x247
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov ecx, 4
call fcn.00403890
add esp, 0x70
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 8]
test eax, eax
je 0x41da6f
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
test eax, eax
je 0x41da8d
push eax
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
Function at 0x41f880
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9eed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x14
push esi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdatemanagerUpdateMgr.cpp
mov eax, esp
mov ecx, 2
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
push str.cleanConfigInfo__
push str.UpdateMgr
push str.UpdateMgr::cleanConfigInfo
push 0x435
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
lea ecx, [ebp - 0x24]
call fcn.0042e970
push str.All_Users
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00406cf0
push str.config_
lea ecx, [ebp - 0x24]
call fcn.00406cf0
lea ecx, [ebp - 0x24]
call fcn.00432d70
push str.update.data
lea ecx, [ebp - 0x24]
call fcn.00406cf0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x41f964
cmp word [esi], 0
mov eax, esi
jne 0x41f969
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41f97d
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f98d
push eax
call fcn.004d2e43
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x421250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba09c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
call fcn.004ce3fc
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 8
mov dword [ebp - 4], 0
call fcn.004ce3fc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [esi]
mov dword [eax + 4], ecx
lea esi, [ebx + 4]
mov byte [ebp - 4], 1
push esi
push 0
push eax
push 0x421a20
push 0
push 0
call fcn.004dac39
add esp, 0x20
mov dword [ebx], eax
test eax, eax
je 0x4212e0
mov dword [edi], ebx
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
push 6
mov dword [esi], 0
call fcn.004b6fd0
int3
Function at 0x4298f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba738
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x64c6f8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x64c6f8
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x628f39
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00428b90
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e4b0
Capabilities:
Check if file exists
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x488], esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42e4fe
cmp word [eax], 0
jne 0x42e503
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x42e539
push 0
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x628f39
mov byte [esi], 0
call fcn.00402570
jmp 0x42e691
mov eax, dword [ebp + 8]
test eax, eax
je 0x42e546
cmp word [eax], 0
jne 0x42e54b
mov eax, 0x628fa4
sub esp, 0xc
lea ecx, [ebp - 0x544]
push eax
call fcn.00437a30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x544]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x538], 6
je 0x42e59b
push 0
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x628f39
mov byte [esi], 0
call fcn.00402570
jmp 0x42e686
mov byte [ebp - 0x41c], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x484], 0x67452301
mov dword [ebp - 0x480], 0xefcdab89
mov dword [ebp - 0x47c], 0x98badcfe
mov dword [ebp - 0x478], 0x10325476
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x538], 1
jne 0x42e640
nop dword [eax + eax]
sub esp, 8
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x544]
push eax
call fcn.00405820
cmp dword [ebp - 0x538], 0
jl 0x42e62d
mov eax, dword [ebp - 0x53c]
jg 0x42e61a
test eax, eax
je 0x42e62d
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x484]
call fcn.00404e10
mov eax, dword [ebp - 0x544]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x538], 1
je 0x42e5f0
lea ecx, [ebp - 0x534]
call fcn.00405ec0
test eax, eax
jne 0x42e67a
mov eax, dword [ebp - 0x544]
lea ecx, [ebp - 0x544]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00404d50
push esi
lea ecx, [ebp - 0x484]
call fcn.004055e0
lea ecx, [ebp - 0x544]
call fcn.0042e6f0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42e6a8
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
test eax, eax
je 0x42e6c6
push eax
call fcn.004d2e43
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
Function at 0x42e7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bab61
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6441a4]
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, ecx
mov dword [ebp - 0x21c], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x21c], esi
mov ecx, dword [eax]
mov eax, dword [0x64cbc4]
cmp eax, dword [ecx + 4]
jle 0x42e87c
push 0x64cbc4
call fcn.004ce09f
add esp, 4
cmp dword [0x64cbc4], 0xffffffff
jne 0x42e87c
mov dword [ebp - 4], 0
call fcn.00419dc0
push 0x5bfcc0
call fcn.004ce3b1
add esp, 4
push 0x64cbc4
call fcn.004ce055
add esp, 4
push 0x64cc88
lea ecx, [ebp - 0x230]
call fcn.00406930
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x42e8bf
cmp word [edi], 0
je 0x42e8bf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e8bf
shr eax, 4
and al, 1
je 0x42e8bf
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00406930
jmp 0x42e92c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d0100
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, esi
mov dword [esi + 8], 0
push eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00406c40
test edi, edi
je 0x42e935
push edi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x42e948
push eax
call fcn.004d2e43
add esp, 4
mov eax, esi
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.004cdf5d
mov esp, ebp
pop ebp
ret

Function at 0x42e970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004d0100
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d0100
add esp, 0x18
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x42ea21
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42ea21
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00406d80
push str.Tencent
mov ecx, esi
call fcn.00406cf0
push str.WeChat_
mov ecx, esi
call fcn.00406cf0
mov ecx, esi
call fcn.0042f130
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
Function at 0x42ea60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bab9d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
lea eax, [ebp - 0x14]
push eax
push 0
mov dword [ebp - 0x14], 0
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x42eacb
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ce42c
mov cl, byte [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], cl
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 1
push 0x10
mov dword [ebp - 4], 0
call fcn.004ce3fc
mov ecx, dword [ebp - 0x18]
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.._AV___Ref_count_resource_PA_WU__default_delete___BY0A__W_std___std__.0
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
push 0
push ecx
call fcn.004d0100
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x42eb60
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jmp 0x42ebc8
push 0xffffffffffffffff
push dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
call fcn.00406c40
push str.Tencent
lea ecx, [ebp - 0x34]
call fcn.00406cf0
push str.WeChat_
lea ecx, [ebp - 0x34]
call fcn.00406cf0
lea ecx, [ebp - 0x34]
call fcn.0042f130
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00406930
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42ebb8
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42ebc8
push eax
call fcn.004d2e43
add esp, 4
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x42ebed
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x42ebed
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
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 0x42f130
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jle 0x42f32b
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004d0100
mov edi, dword [edi]
add esp, 0xc
test edi, edi
je 0x42f178
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x42f192
movzx eax, word [0x628fa4]
mov ebx, 1
mov edi, 0x628fa4
test ax, ax
je 0x42f277
movzx ecx, ax
mov ebx, 1
lea eax, [ebp - 0x204]
mov edx, 0x5c
sub eax, edi
mov dword [ebp - 0x21c], eax
lea esi, [ebx + 0x2e]
mov eax, 0x3a
cmp dx, cx
je 0x42f1c3
cmp si, cx
jne 0x42f259
cmp ax, word [edi - 2]
je 0x42f259
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
push eax
movups xmmword [ebp - 0x218], xmm0
call fcn.00406c40
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x42f207
cmp word [esi], 0
mov eax, esi
jne 0x42f20c
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x42f231
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x42f30b
test esi, esi
je 0x42f23e
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x42f251
push eax
call fcn.004d2e43
add esp, 4
mov esi, 0x2f
lea edx, [esi + 0x2d]
mov ecx, dword [ebp - 0x21c]
mov ax, word [edi]
mov word [ecx + edi], ax
add edi, 2
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x42f1b0
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
push eax
movups xmmword [ebp - 0x218], xmm0
call fcn.00406c40
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x42f2b1
cmp word [esi], 0
mov eax, esi
jne 0x42f2b6
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x42f2d3
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
setne bl
test esi, esi
je 0x42f2e5
push esi
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 0x20c]
test ecx, ecx
je 0x42f2f8
push ecx
call fcn.004d2e43
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42f318
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x42f32b
push eax
call fcn.004d2e43
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
Function at 0x42fc10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x42fc62
push 0xffffffffffffffff
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push edi
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
call fcn.00406c40
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x42fc47
mov eax, esi
cmp word [esi], bx
jne 0x42fc4c
mov eax, 0x628fa4
push eax
mov ebx, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x42fc65
mov byte [ebp - 1], 0
jmp 0x42fc69
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 1], 1
test bl, 1
je 0x42fc8b
test esi, esi
je 0x42fc7b
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42fc8b
push eax
call fcn.004d2e43
add esp, 4
cmp byte [ebp - 1], 0
je 0x42fc9a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62c5b8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push edi
push eax
call fcn.004dc176
mov edi, dword [ebp - 8]
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x42fced
test eax, eax
jne 0x42fced
push edi
call fcn.004dba8d
push 2
push ebx
push edi
mov esi, eax
call fcn.004dbfb8
push edi
call fcn.004dba8d
push 0
push esi
push edi
mov ebx, eax
call fcn.004dbfb8
push dword [ebp - 8]
call fcn.004d8786
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fdc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
je 0x42fdf6
push 0
lea ecx, [esp + 8]
push ecx
push dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42fdf6
mov eax, dword [esp + 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
movups xmm0, xmmword [0x628d68]
sub esp, 0x10
mov edx, eax
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
mov ecx, esp
movups xmmword [eax], xmm0
push str.writeFile_erro___d
mov eax, edx
mov byte [ecx], 0
cdq
push str.Utils
mov dword [ecx + 0xc], edx
mov edx, str.D:Tools_agentworkspaceWeChatUpdateWechatUpdateutilsUtils.cpp
mov dword [ecx + 8], eax
mov ecx, 4
push str.Utils::writeFile
push 0x337
call fcn.00403890
add esp, 0x70
xor eax, eax
mov esp, ebp
pop ebp
ret