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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51673e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x56d06c]
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 0x441810
mov eax, dword [ecx]
jmp 0x441812
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp + 8]
push edx
push eax
call fcn.0041d980
lea ecx, [ebp - 0x28]
call fcn.004419c0
add esp, 0x18
mov edi, eax
lea eax, [ebp + 8]
cmp eax, edi
je 0x441869
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x44184c
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0041e1c0
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.0041de40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x441882
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0041e1c0
cmp dword [ebp + 0x18], 0
je 0x4418e5
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 0x4418e5
cmp dword [esi], 0
je 0x4418b6
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.00439d8d
mov esi, 1
jmp 0x4418e7
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.0041d980
mov ecx, esi
call fcn.004414d0
mov esi, eax
jmp 0x4418e7
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4418fc
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0041e1c0
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.00471876
mov esp, ebp
pop ebp
ret 0x18
Function at 0x442cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5169bf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56d06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x442d30
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 0x442d48
push 0xffffffffffffffff
push 0
push eax
call fcn.0041d980
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.004423f0
push 0x18
call fcn.004ed0a4
add esp, 4
test eax, eax
jne 0x442d7f
push 0x56a074
lea eax, [ebp + 0xb]
push eax
call fcn.004e9c0a
mov dword [ebp + 8], eax
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00442760
lea ecx, [esi + 0x28]
push ecx
push 0
push eax
push 0x442ae0
push 0
push 0
call fcn.004fb37b
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 0x4440bb
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 + 0x550610]
or esi, dword [eax*4 + 0x550510]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x550310]
or esi, dword [edx*4 + 0x550110]
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 + 0x550410]
or ecx, dword [eax*4 + 0x550210]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x550010]
or ecx, dword [edx*4 + 0x54ff10]
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 + 0x550610]
or esi, dword [eax*4 + 0x550510]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x550310]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x550110]
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 + 0x550410]
or ecx, dword [eax*4 + 0x550210]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x550010]
or ecx, dword [edx*4 + 0x54ff10]
or ecx, esi
xor ebx, ecx
sub dword [ebp - 8], 1
jne 0x444136
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 0x4443bb
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x56d06c]
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 + 0x550758]
test eax, ecx
setne al
mov byte [ebp + esi - 0x74], al
inc esi
cmp esi, 0x38
jl 0x4443e5
push 0x1e
xor ebx, ebx
pop edi
cmp word [ebp - 0xf6], 1
mov esi, edi
je 0x444423
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x550748]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0xfc], eax
cmp ecx, 0x1c
jge 0x44444f
mov al, byte [ebp + ecx - 0x74]
jmp 0x444456
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x444444
mov ecx, dword [ebp - 0xfc]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x444477
mov al, byte [ebp + ecx - 0x74]
jmp 0x44447e
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x44446c
xor ecx, ecx
movzx eax, byte [ecx + 0x54ee6c]
cmp byte [ebp + eax - 0x3c], 0
je 0x4444a7
mov eax, dword [ecx*4 + 0x550768]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x54ee84]
cmp byte [ebp + eax - 0x3c], 0
je 0x4444c3
mov eax, dword [ecx*4 + 0x550768]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x44448b
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x444414
mov edx, dword [ebp - 0x100]
lea ecx, [ebp - 0xf4]
call fcn.004442cc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471876
mov esp, ebp
pop ebp
ret
Function at 0x444b9d
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 0x444cb6
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x444cb6
push esi
mov esi, dword [ebp + 8]
cmp ebx, 2
jle 0x444c3f
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 0x444be1
mov ebx, dword [ebp - 4]
push 3
pop ecx
test ebx, ebx
je 0x444ca0
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp ebx, 1
jle 0x444c86
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 0x444c9d
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 0x444cae
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [esi], 0
xor eax, eax
pop esi
jmp 0x444cb9
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4471b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516f00
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x56d06c]
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 0x44724b
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0041d980
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x44725e
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.0041d980
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x447271
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0041d980
push 0x577700
mov dword [ebp - 0x70], 0x577700
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00447720
cmp dword [esi + 0xc], 0
jne 0x4472c2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x446ab0
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.004fb37b
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x577700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.00447100
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.00471876
mov esp, ebp
pop ebp
ret 0x20
Function at 0x44c500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5152c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56d06c]
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.004ed0a4
mov edi, eax
add esp, 4
test edi, edi
jne 0x44c54b
push 0x56a074
lea eax, [ebp - 0xd]
push eax
call fcn.004e9c0a
push 1
mov dword [ebp - 4], 0
call fcn.0047059c
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 0x4535a7
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x5179b2
call fcn.00472152
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.004537d1
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 0x453676
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.004537d1
lea ecx, [ebp - 0x44]
call fcn.00453c25
test al, al
jne 0x453649
lea ecx, [ebp - 0x2c]
call fcn.00453c25
test al, al
je 0x453649
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 0x453649
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.0041e2c0
cmp esi, 0xffffffff
je 0x4536ad
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4536a6
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 0x4536a6
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.0041e2c0
mov al, bl
call fcn.004720fc
ret
Function at 0x4536bd
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x5179b2
call fcn.00472152
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor ebx, ebx
call fcn.004537d1
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 0x45373b
xor eax, eax
lea ecx, [ebp - 0x2c]
lea edx, [eax + 1]
call fcn.004537d1
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.0041e2c0
cmp esi, 0xffffffff
je 0x453762
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 0x45375b
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.0041e2c0
mov al, bl
call fcn.004720fc
ret

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

Disassembly:
push 0x234
mov eax, 0x517a04
call fcn.00472152
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.0041e220
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.004e9ab0
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 0x4538b0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00419a80
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00419e90
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.0041e2c0
mov ecx, esi
test bl, bl
je 0x453888
push str.TencentDeskUpdate
jmp 0x45388d
push str.TencentDesktop
call fcn.00419a30
mov ecx, esi
call fcn.004538b8
test al, al
jne 0x4538a4
mov ecx, esi
call fcn.00453974
push str.Global.db
mov ecx, esi
call fcn.00419a30
mov eax, esi
call fcn.004720fc
ret
Function at 0x453974
Capabilities:
Create directory

Disassembly:
push 0x69c
mov eax, 0x517a8f
call fcn.00472152
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x453993
xor al, al
jmp 0x453c12
push esi
lea ecx, [ebp - 0x678]
call fcn.00419b00
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4539ad
mov esi, dword [esi]
push 0x5c
pop ecx
mov edi, 0x557874
cmp word [esi + eax*2 - 2], cx
je 0x4539e9
push edi
lea ecx, [ebp - 0x660]
call fcn.00419a80
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 1
call fcn.00419e90
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], bl
call fcn.0041e2c0
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.004fabfb
add esp, 0x24
lea ecx, [ebp - 0x690]
push edi
call fcn.00419a80
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x660]
call fcn.00419a80
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x648]
call fcn.004435c0
pop ecx
lea ecx, [ebp - 0x660]
call fcn.0041e2c0
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 6
call fcn.0041e2c0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x630]
call fcn.00419a80
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 7
call fcn.004538b8
test al, al
je 0x453bef
cmp dword [ebp - 0x620], 0
je 0x453bef
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push 0x5c
cmovae eax, dword [ebp - 0x630]
pop ecx
cmp word [eax], cx
jne 0x453afc
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.0041d8d0
push edi
call fcn.0041a5d0
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x630]
call fcn.00453c7b
mov esi, eax
jmp 0x453be4
push esi
push ebx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x630]
call fcn.004399ff
lea eax, [esi + 1]
mov byte [ebp - 4], 8
push eax
push ebx
lea ecx, [ebp - 0x630]
call fcn.0041d8d0
push edi
lea ecx, [ebp - 0x6a8]
call fcn.00419a80
push eax
lea edx, [ebp - 0x660]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x690]
call fcn.00441bf0
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 0xa
call fcn.00419e90
lea ecx, [ebp - 0x690]
call fcn.0041e2c0
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 8
call fcn.0041e2c0
lea ecx, [ebp - 0x648]
call fcn.004538b8
test al, al
jne 0x453bbe
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push eax
call fcn.004fbb8b
pop ecx
test eax, eax
jne 0x453c18
push edi
call fcn.0041a5d0
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x630]
call fcn.00453c7b
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.0041e2c0
cmp esi, 0xffffffff
jne 0x453b18
mov bl, 1
lea ecx, [ebp - 0x630]
call fcn.0041e2c0
lea ecx, [ebp - 0x648]
call fcn.0041e2c0
lea ecx, [ebp - 0x678]
call fcn.0041e2c0
mov al, bl
call fcn.004720fc
ret
lea ecx, [ebp - 0x660]
call fcn.0041e2c0
jmp 0x453bef
Function at 0x456b1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x456ccc
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.00457170
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x456cc4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x456cbc
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.004e9ab0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x456cbc
mov eax, dword [ebp - 0x114]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x456cb6
push esi
lea eax, [ebp - 0x108]
push 0x55c0f0
push eax
call fcn.004faca0
add esp, 0xc
test eax, eax
jne 0x456c88
xor esi, esi
jmp 0x456cbc
mov eax, dword [ebp - 0x114]
cmp eax, ebx
jne 0x456cb6
push esi
lea eax, [ebp - 0x108]
push 0x55c0f0
push eax
call fcn.004faca0
add esp, 0xc
test eax, eax
je 0x456cb0
push 2
pop esi
jmp 0x456cbc
mov eax, dword [ebp - 0x114]
cmp eax, 2
cmove esi, ebx
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471876
mov esp, ebp
pop ebp
ret