joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4200b0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x480e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4200fb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042024f
test al, al
jne 0x4200f5
sub edx, 2
cmp edx, edi
jne 0x4200db
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42011d
lea eax, [edi + 2]
cmp edx, eax
je 0x42011d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041fffc
add esp, 0x10
jmp 0x420217
push esi
lea ecx, [ebp - 0x255]
call fcn.0042024f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420160
push dword [ebp - 0x25c]
jmp 0x42010d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42019d
cmp word [ebp - 0x226], 0
je 0x4201be
cmp word [ebp - 0x226], ax
jne 0x42019d
cmp word [ebp - 0x224], 0
je 0x4201be
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041fffc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42020a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x420177
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4201f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x420217
push 0x41fe2c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00425a20
add esp, 0x10
jmp 0x4201e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4e1
leave
ret

Function at 0x4274f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42751d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42751d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4296fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42977c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42977b
push ebx
mov ebx, 0x482bc8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402703
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a5b8
mov byte [edi + esi], al
call fcn.00410a6e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42971e
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00405663
pop edi
pop ebp
ret 0x14

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40d050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40d05b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40d117
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
sub edi, 1
jne 0x40d070
pop edi
test esi, esi
je 0x40d13a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6216e0]
sub esi, 1
jne 0x40d120
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40d920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x40d95b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d956
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40d988
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40d96c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004d0350
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x40d99c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40d993
cmp byte [esi + 8], 0
je 0x40d993
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
cmp byte [ebx], 0
je 0x40daa9
cmp byte [ebx + 1], 0
je 0x40dadc
push 2
push 0
push 0
push dword [ebx + 4]
call esi
cmp byte [ebx], 0
je 0x40daaf
cmp byte [ebx + 1], 0
je 0x40daa2
push 1
push 0
push 0
push dword [ebx + 4]
call esi
sub eax, dword [ebx + 0xc]
jmp 0x40dab2
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40dac1
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x18]
mov esi, 0xffff
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
cmp eax, esi
jae 0x40dac6
mov esi, eax
mov dword [ebp - 0xc], eax
push 0x404
call fcn.004d8626
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x40dae5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0
cmp esi, eax
jbe 0x40dbfb
nop dword [eax]
mov edx, dword [ebp - 4]
add eax, 0x400
cmp eax, esi
mov ecx, esi
cmovbe ecx, eax
mov eax, 0x404
sub edx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x404
mov dword [ebp - 0x1c], edx
mov esi, ecx
cmova esi, eax
cmp byte [ebx], 0
mov dword [ebp - 0x18], esi
je 0x40db71
cmp byte [ebx + 1], 0
je 0x40dbfb
mov eax, dword [ebx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebx], 0
mov edx, esi
je 0x40db76
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40db6c
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x40dba7
mov dword [ebx + 0x18], edx
mov edx, esi
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
lea eax, [edi + esi]
mov esi, dword [ebx + 0x14]
sub esi, edi
cmp eax, dword [ebx + 0x14]
cmovbe esi, edx
add ecx, edi
push esi
push ecx
push dword [ebp - 8]
call fcn.004d0350
lea ecx, [esi + edi]
mov eax, esi
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov edi, dword [ebp - 8]
mov dword [ebx + 0x18], ecx
xor edx, edx
div esi
cmp eax, 1
jne 0x40dbfb
lea ecx, [esi - 3]
test ecx, ecx
jle 0x40dbed
lea eax, [edi + 3]
add eax, ecx
nop dword [eax]
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x40dbdd
cmp byte [edx + edi], 0x4b
jne 0x40dbdd
cmp byte [eax - 1], 5
jne 0x40dbdd
cmp byte [eax], 6
je 0x40dbe3
test ecx, ecx
jg 0x40dbc0
jmp 0x40dbed
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x10], eax
jne 0x40dbfb
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
cmp eax, esi
jb 0x40db00
push edi
call fcn.004d2e13
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ec30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x40edcc
cmp dword [ebx + 4], 0xffffffff
jne 0x40edcc
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40ec61
mov eax, dword [0x6294f0]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x40ec98
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, edi
je 0x40ecb3
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x40ecb0
cmp edi, 3
je 0x40ecb0
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp + 0x13], 0
cmp edi, 1
je 0x40ecf7
cmp edi, 2
jne 0x40ed39
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40ed2b
mov eax, 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push 2
push 0
push 0
push eax
call esi
push eax
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40ed28
mov eax, 0x100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
sete byte [ebp + 0x13]
push 0x1c
call fcn.004ce3cc
add esp, 4
mov esi, eax
cmp edi, 1
je 0x40ed85
cmp edi, 2
je 0x40ed85
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], 0
call fcn.0040dc10
mov dword [ebx], eax
mov eax, dword [0x64c9dc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov cl, byte [ebp + 0x13]
mov byte [esi], 1
mov byte [esi + 1], cl
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test cl, cl
je 0x40edb5
push 1
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.0040dc10
mov dword [ebx], eax
mov eax, dword [0x64c9dc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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.004d00d0
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.004d2e13
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.004d2e13
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 0x41f870
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 0x434
movups xmmword [eax], xmm0
call fcn.00403890
add esp, 0x70
lea ecx, [ebp - 0x24]
call fcn.0042e900
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.00432d00
push str.update.data
lea ecx, [ebp - 0x24]
call fcn.00406cf0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x41f954
cmp word [esi], 0
mov eax, esi
jne 0x41f959
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41f96d
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f97d
push eax
call fcn.004d2e13
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 0x421240
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.004ce3cc
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 8
mov dword [ebp - 4], 0
call fcn.004ce3cc
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 0x421a10
push 0
push 0
call fcn.004dac09
add esp, 0x20
mov dword [ebx], eax
test eax, eax
je 0x4212d0
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.004b6fa0
int3
Function at 0x429890
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.00428b30
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 0x42e440
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 0x42e48e
cmp word [eax], 0
jne 0x42e493
mov eax, 0x628fa4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x42e4c9
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 0x42e621
mov eax, dword [ebp + 8]
test eax, eax
je 0x42e4d6
cmp word [eax], 0
jne 0x42e4db
mov eax, 0x628fa4
sub esp, 0xc
lea ecx, [ebp - 0x544]
push eax
call fcn.004379b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x544]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x538], 6
je 0x42e52b
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 0x42e616
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 0x42e5d0
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 0x42e5bd
mov eax, dword [ebp - 0x53c]
jg 0x42e5aa
test eax, eax
je 0x42e5bd
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 0x42e580
lea ecx, [ebp - 0x534]
call fcn.00405ec0
test eax, eax
jne 0x42e60a
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.0042e680
mov eax, dword [ebp + 8]
test eax, eax
je 0x42e638
push eax
call fcn.004d2e13
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 0x42e656
push eax
call fcn.004d2e13
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.004cdf2e
mov esp, ebp
pop ebp
ret
Function at 0x42e780
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 0x42e80c
push 0x64cbc4
call fcn.004ce06f
add esp, 4
cmp dword [0x64cbc4], 0xffffffff
jne 0x42e80c
mov dword [ebp - 4], 0
call fcn.00419dc0
push 0x5bfcc0
call fcn.004ce381
add esp, 4
push 0x64cbc4
call fcn.004ce025
add esp, 4
push 0x64cc88
lea ecx, [ebp - 0x230]
call fcn.00406930
mov edi, dword [ebp - 0x230]
test edi, edi
je 0x42e84f
cmp word [edi], 0
je 0x42e84f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e84f
shr eax, 4
and al, 1
je 0x42e84f
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00406930
jmp 0x42e8bc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d00d0
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 0x42e8c5
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x42e8d8
push eax
call fcn.004d2e13
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.004cdf2e
mov esp, ebp
pop ebp
ret

Function at 0x42e900
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.004d00d0
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d00d0
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 0x42e9b1
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42e9b1
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.0042f0c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cdf2e
mov esp, ebp
pop ebp
ret