joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cde3160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
je 0x6cde3220
movzx eax, word [edi]
test ax, ax
je 0x6cde3220
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x6cde319e
cmp ax, 0x5c
jne 0x6cde31a0
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x6cde3192
cmp esi, edi
je 0x6cde31e7
sub esi, edi
lea eax, [ebp - 0x20c]
sar esi, 1
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esi, esi
add esp, 0xc
cmp esi, 0x208
jae 0x6cde3230
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.6cde3160
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push edi
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.6ce11901
mov esp, ebp
pop ebp
ret
call fcn.6ce11dd7
int3
Function at 0x6cde3800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce18f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6ce5c008]
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
cmp byte [0x6ce60048], 0
je 0x6cde385c
xor eax, eax
cmp dword [0x6ce60044], 1
sete al
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.6ce11901
mov esp, ebp
pop ebp
ret
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde3871
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6cde38a7
push 0x104
lea ecx, [ebp - 0x14]
call fcn.6cdbf780
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6cde39fd
cmp eax, dword [esi - 8]
jg 0x6cde39fd
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x6cde38f1
or eax, 0xffffffff
jmp 0x6cde38f5
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.6cddbaa0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.6cddbbc0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3931
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.6cddbc30
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6cde396c
push 0x104
lea ecx, [ebp - 0x18]
call fcn.6cdbf780
mov esi, dword [ebp - 0x18]
push str.qqlive.ini
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6cde39fd
cmp eax, dword [esi - 8]
jg 0x6cde39fd
push esi
push 0xffffffffffffffff
push str.PackType
xor ecx, ecx
mov dword [esi - 0xc], eax
push str.Install
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [0x6ce60044], eax
cmp eax, 1
mov byte [0x6ce60048], 1
mov byte [ebp - 4], 0
mov eax, edi
sete cl
add esi, 0xfffffff0
mov dword [ebp - 0x18], ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x6cde39dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x6cde39f5
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
jmp 0x6cde3840
push 0x80070057
call fcn.6cdc0090
int3
Function at 0x6cde3a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce18fad
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6ce5c008]
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, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
push 0x6ce4378c
mov dword [ebp - 0x22c], esi
mov dword [esi], 0
call fcn.6cdbef90
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], 0
call sym.QQLiveBase.dll_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_base::GetRegQQLiveRootPath_void_
push str.other
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.6cddd660
add esp, 8
lea ecx, [ebp - 0x224]
push ecx
push dword [eax]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov ebx, eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde3ae3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x6cde3b02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x6cde3b92
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push str.installfirstrunchannel
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6cde3b86
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6cde3b67
sub eax, edx
sar eax, 1
je 0x6cde3b86
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.6cdbf1d0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.6ce11901
mov esp, ebp
pop ebp
ret
Function at 0x6cde4510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x6cde4525
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6cde4530
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x6cde4680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6cde470b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x6cde46cd
cmp eax, 2
jne 0x6cde46e9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x6cde4705
test ecx, ecx
je 0x6cde4700
test cl, 1
jne 0x6cde46e9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x6cde4705
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.6ce11901
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6cde55c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
test al, 7
je 0x6cde55df
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x6cde568c
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea edx, [ecx + 2]
sub ecx, eax
lea esi, [eax + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add ecx, 0xfffffffe
dec eax
mov dword [ebp - 0xc], ecx
shr eax, 3
inc eax
mov dword [ebp + 8], eax
nop dword [eax]
movzx eax, byte [esi - 2]
lea edi, [ecx + esi]
xor al, byte [ebx]
mov byte [edi], al
movzx eax, byte [esi - 1]
xor al, byte [ebx + 1]
mov byte [edx - 1], al
movzx eax, byte [ebx + 2]
xor al, byte [esi]
mov byte [edx], al
movzx eax, byte [esi + 1]
xor al, byte [ebx + 3]
mov ecx, dword [ebp - 8]
mov byte [edx + 1], al
movzx eax, byte [esi + 2]
xor al, byte [ebx + 4]
mov byte [edx + 2], al
movzx eax, byte [esi + 3]
xor al, byte [ebx + 5]
mov byte [edx + 3], al
movzx eax, byte [esi + 4]
xor al, byte [ebx + 6]
mov byte [edx + 4], al
movzx eax, byte [esi + 5]
xor al, byte [ebx + 7]
mov byte [edx + 5], al
mov edx, edi
push edi
call fcn.6cde4c30
mov eax, dword [edi]
lea esi, [esi + 8]
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 0xc]
add edx, 8
sub dword [ebp + 8], 1
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [ebp - 4], edx
jne 0x6cde5610
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6cde5990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce18f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6ce5c008]
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
cmp byte [0x6ce6005c], 0
je 0x6cde59ec
xor eax, eax
cmp dword [0x6ce60058], 1
sete al
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.6ce11901
mov esp, ebp
pop ebp
ret
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde5a01
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6cde5a37
push 0x104
lea ecx, [ebp - 0x14]
call fcn.6cdbf780
mov esi, dword [ebp - 0x14]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6cde5b8d
cmp eax, dword [esi - 8]
jg 0x6cde5b8d
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x6cde5a81
or eax, 0xffffffff
jmp 0x6cde5a85
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.6cddbaa0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.6cddbbc0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde5ac1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.6cddbc30
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x6cde5afc
push 0x104
lea ecx, [ebp - 0x18]
call fcn.6cdbf780
mov esi, dword [ebp - 0x18]
push str.qqlive.ini
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x6cde5b8d
cmp eax, dword [esi - 8]
jg 0x6cde5b8d
push esi
push 0xffffffffffffffff
push str.PackType
xor ecx, ecx
mov dword [esi - 0xc], eax
push str.Install
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [0x6ce60058], eax
cmp eax, 1
mov byte [0x6ce6005c], 1
mov byte [ebp - 4], 0
mov eax, edi
sete cl
add esi, 0xfffffff0
mov dword [ebp - 0x18], ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x6cde5b6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x6cde5b85
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
jmp 0x6cde59d0
push 0x80070057
call fcn.6cdc0090
int3
Function at 0x6cde5d20
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce18ca2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], esi
mov dword [esi], 0
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde5d86
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x6cde5dfe
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6cde5de0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.6cdbf900
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde5e0f
test al, 0x10
jne 0x6cde5e16
mov ecx, dword [esi]
call fcn.6cde5f50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret

Function at 0x6cde5e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce19109
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6ce5c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi], 0
call fcn.6cde5d20
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.6cde5990
test eax, eax
mov ecx, 1
mov eax, dword [esi]
jne 0x6cde5ec4
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x6cde5ebd
push 0x104
mov ecx, esi
call fcn.6cdbf780
push str.TencentQQLive_
jmp 0x6cde5ee4
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x6cde5edf
push 0x104
mov ecx, esi
call fcn.6cdbf780
push str.TencentQQLiveAppStore_
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
test eax, eax
jne 0x6cde5ef6
xor ecx, ecx
jmp 0x6cde5f09
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x6cde5f45
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x6cde5f45
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde5f2c
test al, 0x10
jne 0x6cde5f33
mov ecx, dword [esi]
call fcn.6cde5f50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.6cdc0090
int3
Function at 0x6cde5f50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce19138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6ce5c008]
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
test ecx, ecx
jne 0x6cde5f86
xor eax, eax
jmp 0x6cde60e1
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.6cdbef90
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.6cddbe30
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
jl 0x6cde60c1
push 0x6ce43790
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x6cde60be
mov eax, dword [ebp - 0x14]
sub ecx, eax
sar ecx, 1
cmp ecx, 2
jl 0x6cde60c1
lea ecx, [ebp - 0x14]
call fcn.6cddbd10
mov eax, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x6cde60b7
test esi, esi
js 0x6cde60b7
cmp esi, ecx
jge 0x6cde60b7
lea eax, [eax + esi*2]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x6cde60b7
sub esi, eax
sar esi, 1
js 0x6cde60b7
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.6cddbaa0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde604e
test al, 0x10
je 0x6cde604e
mov bl, 1
jmp 0x6cde6050
xor bl, bl
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde606a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x6cde60a8
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.6cddbaa0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x1c]
test eax, eax
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x6cde60a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x6cde60be
mov eax, dword [ebp - 0x14]
inc esi
mov ecx, dword [eax - 0xc]
cmp esi, ecx
jl 0x6cde5ff6
mov esi, 1
jmp 0x6cde60c3
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x6cde60df
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.6ce11901
mov esp, ebp
pop ebp
ret
Function at 0x6cde68d0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce19278
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde69a6
test al, 0x10
je 0x6cde69a6
push esi
test edi, edi
jne 0x6cde6926
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x6cde69a8
lea ecx, [ebp - 0x28]
call fcn.6cdbeeb0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 4
jae 0x6cde693f
xor esi, esi
jmp 0x6cde6990
push ecx
lea ecx, [ebp - 0x28]
call fcn.6cde9090
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov eax, 0x614
mov dword [ebp - 0x48], 0
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
movq qword [ebp - 0x34], xmm0
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x44], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x6cde69a2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.6cdbf220
mov eax, esi
jmp 0x6cde69a8
xor eax, eax
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.6ce11901
mov esp, ebp
pop ebp
ret
Function at 0x6cde6a80
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce192e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6ce5c008]
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
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde6bff
test al, 0x10
je 0x6cde6bff
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.6cdbef90
push 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.6cddd740
mov edx, 0x6ce43790
mov ecx, eax
call fcn.6cddd610
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov bl, al
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x6cde6b15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x6cde6b28
push 1
push 0x6ce43790
lea ecx, [ebp - 0x14]
call fcn.6cdddb50
call fcn.6cdbff80
mov ecx, eax
test ecx, ecx
jne 0x6cde6b3d
push 0x80004005
call fcn.6cdc0090
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push eax
call esi
push eax
lea eax, [ebp - 0x18]
push str.TestCachePath__d__d.tmp
push eax
call fcn.6cde9660
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add esp, 0x10
push dword [esi - 0xc]
push esi
call fcn.6cdddb50
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x6cde6bac
xor ebx, ebx
jmp 0x6cde6bc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x6cde6bdc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x6cde6bfb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x6cde6c01
xor eax, eax
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.6ce11901
mov esp, ebp
pop ebp
ret

Function at 0x6cde6d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6cde6d4c
test al, 0x10
je 0x6cde6d4c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x6cde6d50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.6cde5f50