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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f20fe
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x54006c]
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
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x435730
mov eax, dword [ecx]
jmp 0x435732
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.004159f0
lea ecx, [ebp - 0x28]
call fcn.004358d0
add esp, 0x18
mov edi, eax
lea eax, [ebp + 8]
cmp eax, edi
je 0x435789
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x43576c
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00418d80
xor eax, eax
mov dword [ebp + 0x1c], 7
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00415130
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4357a2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00418d80
cmp dword [ebp + 0x18], 0
je 0x435805
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435805
cmp dword [esi], 0
je 0x4357d6
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.0042e88b
mov esi, 1
jmp 0x435807
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.004159f0
mov ecx, esi
call fcn.004353f0
mov esi, eax
jmp 0x435807
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x43581c
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00418d80
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.00465694
mov esp, ebp
pop ebp
ret 0x18
Function at 0x436cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f237f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54006c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x436d10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov byte [esi + 0x24], 1
cmp ecx, eax
je 0x436d28
push 0xffffffffffffffff
push 0
push eax
call fcn.004159f0
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], 5
call fcn.004363d0
push 0x18
call fcn.004cab09
add esp, 4
test eax, eax
jne 0x436d5f
push 0x53d214
lea eax, [ebp + 0xb]
push eax
call fcn.004c798a
mov dword [ebp + 8], eax
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00436740
lea ecx, [esi + 0x28]
push ecx
push 0
push eax
push 0x436ac0
push 0
push 0
call fcn.004d0e50
add esp, 0x18
mov dword [esi], eax
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x437e6d
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x4f24cb
call fcn.00465f2e
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea esi, [ebx + 0x34]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x34
push eax
mov dword [ebp - 4], eax
push ebx
mov byte [ebx + 0x40], al
call fcn.004c7830
add esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x437ef3
push edi
mov ecx, esi
call fcn.0042a309
push dword [esi]
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x437ef3
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x52e704
push dword [esi]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x437ef3
mov esi, dword [ebp - 0x14]
mov edi, ebx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x40], 1
mov eax, ebx
call fcn.00465ef7
ret 4
Function at 0x43807f
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
mov dword [ebp - 8], 8
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, edi
shr eax, 0x10
xor eax, esi
movzx eax, ax
xor esi, eax
shl eax, 0x10
xor edi, eax
mov eax, esi
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor esi, eax
mov ebx, esi
shr ebx, 8
xor ebx, edi
and ebx, 0xff00ff
xor edi, ebx
shl ebx, 8
xor ebx, esi
rol ebx, 1
mov eax, ebx
xor eax, edi
and eax, 0xaaaaaaaa
xor ebx, eax
xor eax, edi
rol eax, 1
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x527840]
or esi, dword [eax*4 + 0x527640]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x527440]
or esi, dword [edx*4 + 0x527240]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
xor edx, ebx
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x527940]
or ecx, dword [eax*4 + 0x527740]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x527540]
or ecx, dword [edx*4 + 0x527340]
mov eax, dword [ebp - 4]
or ecx, esi
xor edi, ecx
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x527840]
or esi, dword [eax*4 + 0x527640]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x527440]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x527240]
mov edx, dword [eax]
add eax, 4
xor edx, edi
mov dword [ebp - 4], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x527940]
or ecx, dword [eax*4 + 0x527740]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x527540]
or ecx, dword [edx*4 + 0x527340]
or ecx, esi
xor ebx, ecx
sub dword [ebp - 8], 1
jne 0x4380fa
ror ebx, 1
mov edx, ebx
mov esi, dword [ebp - 0x10]
xor edx, edi
and edx, 0xaaaaaaaa
xor ebx, edx
xor edx, edi
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43837f
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x54006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov word [ebp - 0xf6], dx
mov edi, ecx
mov dword [ebp - 0x100], eax
xor esi, esi
movzx edx, byte [esi + str.80_]
mov eax, edx
and edx, 7
shr eax, 3
movsx ecx, byte [eax + edi]
movzx eax, word [edx*2 + 0x527b18]
test eax, ecx
setne al
mov byte [ebp + esi - 0x74], al
inc esi
cmp esi, 0x38
jl 0x4383a9
push 0x1e
xor ebx, ebx
pop edi
cmp word [ebp - 0xf6], 1
mov esi, edi
je 0x4383e7
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x527a40]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0xfc], eax
cmp ecx, 0x1c
jge 0x438413
mov al, byte [ebp + ecx - 0x74]
jmp 0x43841a
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x438408
mov ecx, dword [ebp - 0xfc]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x43843b
mov al, byte [ebp + ecx - 0x74]
jmp 0x438442
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x438430
xor ecx, ecx
movzx eax, byte [ecx + 0x527a50]
cmp byte [ebp + eax - 0x3c], 0
je 0x43846b
mov eax, dword [ecx*4 + 0x527a80]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x527a68]
cmp byte [ebp + eax - 0x3c], 0
je 0x438487
mov eax, dword [ecx*4 + 0x527a80]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x43844f
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x4383d8
mov edx, dword [ebp - 0x100]
lea ecx, [ebp - 0xf4]
call fcn.00438290
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465694
mov esp, ebp
pop ebp
ret
Function at 0x438b50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
push edi
mov edi, ecx
lea eax, [ebx + 2]
test eax, eax
js 0x438c69
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x438c69
push esi
mov esi, dword [ebp + 8]
cmp ebx, 2
jle 0x438bf2
lea eax, [ebx - 3]
xor edx, edx
div ecx
push 3
lea edx, [eax + 1]
imul ecx, edx, 0xfffffffd
add ebx, ecx
mov dword [ebp - 4], ebx
pop ebx
movzx ecx, byte [edi]
shr ecx, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, ebx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, ebx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x438b94
mov ebx, dword [ebp - 4]
push 3
pop ecx
test ebx, ebx
je 0x438c53
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp ebx, 1
jle 0x438c39
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x438c50
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x438c61
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [esi], 0
xor eax, eax
pop esi
jmp 0x438c6c
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438fb4
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x4f2573
call fcn.00465f62
mov esi, ecx
test esi, esi
je 0x439123
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439123
xor ebx, ebx
mov dword [ebp - 0x20], 0xaac56b
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0x11d0cd44
mov dword [ebp - 0x18], 0xc000c28c
mov dword [ebp - 0x14], 0xee95c24f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 7
call fcn.00418de0
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0042e34b
pop ecx
test al, al
je 0x439117
push 0x532248
lea ecx, [ebp - 0x50]
call fcn.004146c0
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0042e1fc
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.00418e80
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x43906f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x439110
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x43908a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x439105
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x64], esi
pop esi
push esi
push ebx
push eax
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.004c7830
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], 2
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x88], ebx
push eax
push ebx
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 0x100
mov dword [ebp - 0x6c], ebx
call dword [ebp - 0x54]
mov esi, eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
sete bl
lea ecx, [ebp - 0x38]
call fcn.00418e80
mov eax, ebx
jmp 0x439125
xor eax, eax
call fcn.00465f0c
ret
Function at 0x43b630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f28d0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x54006c]
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 esi, ecx
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x6c], 0x1fc5
cmp eax, ecx
je 0x43b6cb
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004159f0
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x43b6de
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004159f0
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x43b6f1
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.004159f0
push 0x547300
mov dword [ebp - 0x70], 0x547300
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0043bba0
cmp dword [esi + 0xc], 0
jne 0x43b742
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x43b030
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.004d0e50
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x547300
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.0043b580
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.00465694
mov esp, ebp
pop ebp
ret 0x20
Function at 0x440a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d76
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54006c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004cab09
mov edi, eax
add esp, 4
test edi, edi
jne 0x440a5b
push 0x53d214
lea eax, [ebp - 0xd]
push eax
call fcn.004c798a
push 1
mov dword [ebp - 4], 0
call fcn.00464898
mov dword [edi + 4], eax
lea ecx, [esi + 8]
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
add esp, 4
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447fc7
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x4f3382
call fcn.00465f62
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.004481f1
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ebx
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448096
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.004481f1
lea ecx, [ebp - 0x44]
call fcn.00448645
test al, al
jne 0x448069
lea ecx, [ebp - 0x2c]
call fcn.00448645
test al, al
je 0x448069
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push ebx
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x448069
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00418e80
cmp esi, 0xffffffff
je 0x4480cd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4480c6
push ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4480c6
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00418e80
mov al, bl
call fcn.00465f0c
ret
Function at 0x4480dd
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x4f3382
call fcn.00465f62
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.004481f1
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ebx
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44815b
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.004481f1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00418e80
cmp esi, 0xffffffff
je 0x448182
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44817b
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00418e80
mov al, bl
call fcn.00465f0c
ret

Function at 0x4481f1
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x234
mov eax, 0x4f33d4
call fcn.00465f62
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
xor eax, eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], eax
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 0x14], 7
call fcn.00418de0
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push 0x208
xor edi, edi
push 0
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.004c7830
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4482d0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004146c0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00414a70
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00418e80
mov ecx, esi
test bl, bl
je 0x4482a8
push str.TencentDeskUpdate
jmp 0x4482ad
push str.TencentDesktop
call fcn.00414620
mov ecx, esi
call fcn.004482d8
test al, al
jne 0x4482c4
mov ecx, esi
call fcn.00448394
push str.Global.db
mov ecx, esi
call fcn.00414620
mov eax, esi
call fcn.00465f0c
ret
Function at 0x448394
Capabilities:
Create directory

Disassembly:
push 0x69c
mov eax, 0x4f348c
call fcn.00465f62
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x4483b3
xor al, al
jmp 0x448632
push esi
lea ecx, [ebp - 0x678]
call fcn.00414740
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4483cd
mov esi, dword [esi]
push 0x5c
pop ecx
mov edi, 0x52e704
cmp word [esi + eax*2 - 2], cx
je 0x448409
push edi
lea ecx, [ebp - 0x660]
call fcn.004146c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 1
call fcn.00414a70
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], bl
call fcn.00418e80
cmp dword [ebp - 0x664], 8
lea ecx, [ebp - 0x418]
mov edx, 0x100
lea eax, [ebp - 0x678]
cmovae eax, dword [ebp - 0x678]
push edx
push ecx
push edx
lea ecx, [ebp - 0x618]
push ecx
push edx
lea ecx, [ebp - 0x218]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004d0cab
add esp, 0x24
lea ecx, [ebp - 0x690]
push edi
call fcn.004146c0
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x660]
call fcn.004146c0
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x648]
call fcn.00437670
pop ecx
lea ecx, [ebp - 0x660]
call fcn.00418e80
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 6
call fcn.00418e80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x630]
call fcn.004146c0
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 7
call fcn.004482d8
test al, al
je 0x44860f
cmp dword [ebp - 0x620], 0
je 0x44860f
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push 0x5c
cmovae eax, dword [ebp - 0x630]
pop ecx
cmp word [eax], cx
jne 0x44851c
cmp dword [ebp - 0x61c], 8
lea ecx, [ebp - 0x630]
lea eax, [ebp - 0x630]
cmovae ecx, dword [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
sub ecx, eax
sar ecx, 1
push 1
push ecx
lea ecx, [ebp - 0x630]
call fcn.00415940
push edi
call fcn.00415250
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x630]
call fcn.0044869b
mov esi, eax
jmp 0x448604
push esi
push ebx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x630]
call fcn.0042e04d
lea eax, [esi + 1]
mov byte [ebp - 4], 8
push eax
push ebx
lea ecx, [ebp - 0x630]
call fcn.00415940
push edi
lea ecx, [ebp - 0x6a8]
call fcn.004146c0
push eax
lea edx, [ebp - 0x660]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x690]
call fcn.00435c80
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 0xa
call fcn.00414a70
lea ecx, [ebp - 0x690]
call fcn.00418e80
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 8
call fcn.00418e80
lea ecx, [ebp - 0x648]
call fcn.004482d8
test al, al
jne 0x4485de
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push eax
call fcn.004d17e8
pop ecx
test eax, eax
jne 0x448638
push edi
call fcn.00415250
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x630]
call fcn.0044869b
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.00418e80
cmp esi, 0xffffffff
jne 0x448538
mov bl, 1
lea ecx, [ebp - 0x630]
call fcn.00418e80
lea ecx, [ebp - 0x648]
call fcn.00418e80
lea ecx, [ebp - 0x678]
call fcn.00418e80
mov al, bl
call fcn.00465f0c
ret
lea ecx, [ebp - 0x660]
call fcn.00418e80
jmp 0x44860f