joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018b6b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ecx
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x24], ecx
cmp dword [ebx + 0x30], ecx
je 0x10018d17
test edi, edi
je 0x10018d17
test dword [esi + 0x28], 0x100
je 0x10018c2e
push dword [esi + 0x10]
lea eax, [ebp - 0x414]
push dword [ebx + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 2
push 1
push 1
push 1
push 0x3c
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
push dword [esi + 0x14]
call fcn.1001864f
test eax, eax
je 0x10018d17
lea edx, [ebp - 0x414]
lea ecx, [edi + 8]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x41c]
jne 0x10018bf9
sub edx, ebx
lea eax, [ebp - 0x414]
sar edx, 1
push edx
push eax
call fcn.10009f28
lea eax, [esi + 4]
push eax
lea ecx, [edi + 0xc]
call fcn.1000dcf4
xor ecx, ecx
mov eax, ecx
jmp 0x10018d1a
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], ecx
je 0x10018c54
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ecx
je 0x10018c54
mov eax, dword [edi]
cmp dword [eax - 0xc], ecx
je 0x10018c54
push edi
push esi
mov ecx, ebx
call fcn.10018f49
mov edi, eax
xor ecx, ecx
jmp 0x10018c57
push 5
pop edi
cmp edi, 3
je 0x10018c65
cmp edi, 5
jne 0x10018d13
push 2
push 1
push ecx
push 1
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebx + 0x34]
push dword [esi + 0x10]
push dword [esi + 0x14]
call fcn.100184ef
mov edi, eax
test edi, edi
jne 0x10018d13
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0x20
jne 0x10018cbf
push dword [esi + 0x30]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1000ee18
add esp, 0xc
test eax, eax
jne 0x10018cbf
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
pop edi
jmp 0x10018d13
mov ebx, dword [ebp - 0x418]
lea edx, [ebp - 0x20c]
lea eax, [edx + 2]
mov dword [ebp - 0x418], eax
lea ecx, [ebx + 8]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x41c]
jne 0x10018cd7
sub edx, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
sar edx, 1
push edx
push eax
call fcn.10009f28
lea eax, [esi + 4]
push eax
lea ecx, [ebx + 0xc]
call fcn.1000dcf4
lea eax, [esi + 8]
push eax
lea ecx, [ebx + 0x10]
call fcn.1000dcf4
mov eax, edi
jmp 0x10018d1a
push 6
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret 8
Function at 0x10018f49
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax + 4]
mov edi, ecx
push dword [esi + 4]
push dword [eax]
mov ecx, dword [edi + 0x30]
call fcn.1001a4ef
mov dword [edi + 0x24], eax
lea ebx, [esi + 8]
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.10019da0
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10018fcb
cmp dword [ebp - 4], eax
je 0x10018f93
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10018f9a
mov dword [ebp - 4], 1
lea ebx, [esi + 8]
mov ecx, esi
push ebx
call fcn.1000dcf4
lea eax, [esi + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.1000dcf4
mov eax, dword [edi + 0x1c]
add dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [esi + 0xc]
call fcn.1000efbd
pop ecx
pop ecx
test eax, eax
js 0x10018f72
and dword [edi + 0x28], 0
and dword [edi + 0x24], 0
cmp dword [ebp - 4], 0
je 0x10018fdd
xor eax, eax
jmp 0x10018ff7
mov ecx, ebx
call fcn.10009b84
lea ecx, [esi + 0xc]
call fcn.10009b84
lea ecx, [esi + 0x10]
call fcn.10009b84
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100195d6
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x38]
cmp dword [eax - 0xc], edi
je 0x1001968f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1001968f
mov eax, dword [esi + 0x38]
mov ecx, 0x104
cmp dword [eax - 0xc], ecx
jge 0x1001968f
push eax
push ecx
lea eax, [ebp - 0x210]
push eax
call fcn.10005de3
mov eax, dword [esi + 0x38]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x1001969d
xor ecx, ecx
mov dword [ebp - 0x230], edi
mov word [ebp + eax - 0x210], cx
xorps xmm0, xmm0
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x216], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003eec9
leave
ret
call fcn.1003f10e
int3
Function at 0x10019a94
Capabilities:
Delete file

Disassembly:
push 0x22c
mov eax, 0x1005daa9
call fcn.1003efb3
mov eax, ecx
mov dword [ebp - 0x220], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x238], esi
call fcn.1000f1af
mov edi, eax
xor eax, eax
pop ecx
mov ecx, edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], eax
sub ecx, 1
je 0x10019b2b
sub ecx, 1
jne 0x10019b84
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x220]
push 0x10062154
push dword [eax + 0x34]
call fcn.1000f97f
add esp, 0xc
lea eax, [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
push ebx
call fcn.100131a0
add esp, 0xc
jmp 0x10019b84
mov eax, dword [ebp - 0x220]
push dword [ebp - 0x224]
push dword [eax + 0x38]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x220]
push dword [eax + 0x38]
push ebx
call fcn.10009969
pop ecx
pop ecx
jmp 0x10019b84
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x10019b94
push 2
pop eax
jmp 0x10019c3b
lea eax, [ebp - 0x21c]
push eax
call fcn.1000f400
pop ecx
test eax, eax
je 0x10019b8c
cmp dword [ebp + 0x10], 0
je 0x10019bef
lea eax, [ebp - 0x21c]
push eax
call fcn.10018ffe
pop ecx
cmp eax, 1
jne 0x10019bef
lea eax, [ebp - 0x21c]
push eax
call fcn.1000f69c
pop ecx
test eax, eax
jne 0x10019bef
cmp edi, 1
jne 0x10019bde
push ebx
call fcn.1000f69c
pop ecx
test eax, eax
jne 0x10019bf4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
jmp 0x10019b8e
cmp edi, 1
jne 0x10019c22
mov eax, dword [ebp - 0x220]
push esi
push 0x10062154
push dword [eax + 0x34]
call fcn.1000f97f
add esp, 0xc
test eax, eax
je 0x10019c27
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.1000fa0f
pop ecx
pop ecx
test eax, eax
jmp 0x10019c25
cmp edi, 2
jne 0x10019c39
lea eax, [ebp - 0x21c]
push eax
push 0x104
push esi
call fcn.10005de3
xor eax, eax
call fcn.1003ef00
ret 0x10
Function at 0x10019fb3
Capabilities:
Delete file

Disassembly:
push 0x274
mov eax, 0x1005db48
call fcn.1003efb3
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x26c]
push ebx
push eax
mov dword [ebp - 0x280], edi
call fcn.10040d30
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x26c]
add esp, 0xc
push 2
push 1
push ebx
push eax
push str.dat.diff
push esi
call fcn.10018446
mov esi, eax
test esi, esi
jne 0x1001a10d
mov eax, dword [ebp - 0x274]
push 3
pop esi
push edi
push 0x10062078
push dword [eax + 0x34]
mov dword [ebp - 0x27c], esi
call fcn.1000f97f
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x1001a0a2
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], ebx
push eax
call fcn.10005e8c
pop ecx
test eax, eax
je 0x1001a077
push edi
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call fcn.10005eff
add esp, 0xc
mov ebx, eax
or dword [ebp - 4], 0xffffffff
jmp 0x1001a0bd
push eax
push edi
lea eax, [ebp - 0x26c]
mov ecx, 0x1007cec8
push eax
push dword [ebp - 0x270]
call fcn.1000a3af
mov ebx, eax
test ebx, ebx
je 0x1001a0ef
push dword [ebp + 0x18]
lea eax, [ebp - 0x64]
push 0x28
push eax
push edi
call fcn.1000ede2
add esp, 0x10
test eax, eax
je 0x1001a0ef
push 0x20
push dword [ebp - 0x278]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
and esi, eax
test esi, esi
je 0x1001a0fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
jmp 0x1001a104
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
call edi
mov eax, esi
call fcn.1003ef00
ret 0x14

Function at 0x1001a150
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x1005db88
call fcn.1003ef11
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push 7
push str.http:__
push edi
call esi
test eax, eax
je 0x1001a198
push 8
push str.https:__
push edi
call esi
test eax, eax
je 0x1001a198
push edi
push str.__DownloadFileByNetUL_url_s_check_fail
call fcn.1002137f
pop ecx
pop ecx
xor eax, eax
jmp 0x1001a22a
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x14]
call fcn.1000a8c4
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1000a8ed
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.1000a8ed
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax + 0x2c]
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10019a08
mov ecx, dword [ebp + 8]
add esp, 0x14
add ecx, 0xfffffff0
mov esi, eax
call fcn.10009de4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.10009de4
test esi, esi
jne 0x1001a21a
push edi
push str.__DownloadFileByNetUL_url_s_download_fail
call fcn.1002137f
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001a21d
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10009de4
mov eax, ebx
call fcn.1003eeda
ret 8
Function at 0x1001a36a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cdbb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007b4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x68], 0
mov dword [edi], vtable.CRemoteConfig.0
je 0x1001a3c1
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.1000ac47
pop ecx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
je 0x1001a3b9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.10009de4
lea ecx, [edi + 4]
call fcn.1001a2f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1001d96b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
jne 0x1001d9d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1001d9ea
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x1001d9d6
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], ebx
je 0x1001d9e8
cmp dword [edi + 4], ebx
je 0x1001d9e8
cmp dword [edi + 0xc], ebx
je 0x1001d9e8
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1001d9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.10040d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001da5a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esi, 1
jne 0x1001da48
push str.NetBase.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001daa4
lea eax, [ebp - 0x20c]
push eax
call fcn.1000df34
mov ecx, eax
call fcn.10009a38
test eax, eax
je 0x1001daa4
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.1001d96b
jmp 0x1001daa6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret 4
Function at 0x1001e44d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x41c
mov eax, 0x1005de8b
call fcn.1003ef45
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x414], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push eax
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x1001e4bc
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001e4bc
call fcn.1000ddfa
mov esi, eax
jmp 0x1001e564
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001e4dc
call fcn.1000ddfa
jmp 0x1001e557
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001e4d5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001e502
mov esi, 0x8007000e
jmp 0x1001e559
push eax
lea ecx, [ebp - 0x414]
call fcn.1001c6da
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
je 0x1001e4fb
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1001e4d5
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.1001e314
mov esi, eax
test edi, edi
je 0x1001e564
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1001e57d
lea ecx, [ebp - 0x414]
call fcn.1001d4c6
mov eax, esi
call fcn.1003eeef
ret 0x10
Function at 0x1001ed43
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x1001ed56
push 0xd
pop eax
jmp 0x1001ed9a
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x1001ed69
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1001ed61
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1001ed9f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1001edb1
push 0xd
pop eax
jmp 0x1001ede3
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001edba
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x1001f5dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov ecx, 0x1007da30
push edi
push 1
call fcn.1001e5b5
mov esi, eax
test esi, esi
js 0x1001f65a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1007e380]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1001f627
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push dword [0x1007b334]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.1001c2cb
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [section..IShareO], edi
xor ecx, ebp
pop edi
pop esi
call fcn.1003eec9
leave
ret
Function at 0x1002471d
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xd0
mov eax, 0x1005e1b7
call fcn.1003ef45
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002486f
lea ecx, [edi + 0x2c]
mov dword [ebx + 0x58], edi
call fcn.1001222c
lea esi, [ebx + 0x5c]
push edi
mov ecx, esi
call fcn.1001ae52
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x44]
call fcn.1000a8c4
mov ecx, dword [ebx + 0x58]
lea eax, [ebp - 0x44]
and dword [ebp - 4], 0
push eax
mov ecx, dword [ecx + 0x54]
call fcn.1001275b
push dword [ebp - 0x44]
mov ecx, ebx
push esi
call fcn.10019861
call fcn.1003dea0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x10024830
and dword [ebp - 0x30], eax
lea ecx, [ebp - 0x40]
push 0xf
pop esi
push esi
push str.UpdateClass.cpp
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x40], al
call fcn.10021a4d
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 3
push 0x1006480c
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], 0
call fcn.10021a4d
mov byte [ebp - 4], 2
call fcn.1003dea0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xaa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100206bf
mov esi, eax
push str.StartUpdate
push esi
mov byte [ebp - 4], 3
call fcn.10020e4d
push dword [ebp - 0x44]
push esi
call fcn.10020e8f
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.10020fa3
lea ecx, [ebp - 0x28]
call fcn.1002190a
lea ecx, [ebp - 0x40]
call fcn.1002190a
xor eax, eax
push eax
push 4
push ebx
push 0x100276b0
push eax
push eax
call fcn.10049c16
add esp, 0x18
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x10024864
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebx + 0xd8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.10009de4
call fcn.1003eeef
ret 4
Function at 0x10026b6b
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1005e9b7
call fcn.1003ef11
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 0x10]
call fcn.10009b84
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x5c]
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.1001a906
test eax, eax
je 0x10026c96
mov eax, dword [edi + 0x2c]
cmp dword [eax - 0xc], 0
je 0x10026bc9
push esi
push dword [ebx + 0x58]
lea ecx, [ebp + 0xf]
push ecx
push eax
call fcn.1000c743
add esp, 0x10
test eax, eax
je 0x10026c96
cmp byte [ebp + 0xf], 0
je 0x10026c96
test byte [edi + 0x28], 0x10
jne 0x10026beb
test dword [edi + 0x28], 0x800
jne 0x10026beb
push dword [edi + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10026beb
inc eax
jmp 0x10026c98
mov esi, dword [edi + 0x28]
xor ebx, ebx
shr esi, 0xb
inc ebx
and esi, ebx
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x14]
call fcn.1000a8c4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x58]
push 0
push eax
push esi
mov ecx, dword [ecx + 0x54]
push edi
call fcn.1001247c
test eax, eax
je 0x10026c87
push dword [edi + 4]
push dword [esi]
call fcn.1000efbd
pop ecx
pop ecx
test eax, eax
jns 0x10026c85
test dword [edi + 0x28], 0x200
je 0x10026c87
call fcn.1000ada5
push eax
lea ecx, [ebp + 0x10]
call fcn.1000a8c4
push dword [esi]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], bl
push dword [ebp + 8]
push str._s:_s_
push eax
call fcn.1000f096
mov esi, dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push dword [esi - 0xc]
lea ecx, [ecx + 0xf8]
push esi
call fcn.10016e29
lea ecx, [esi - 0x10]
call fcn.10009de4
jmp 0x10026c87
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10009de4
mov eax, ebx
jmp 0x10026c98
xor eax, eax
call fcn.1003eeda
ret 0xc
Function at 0x1002786d
Capabilities:
Check if file exists
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100278e1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
test eax, eax
je 0x100278ae
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100278e1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, edi
call fcn.10027bbb
test eax, eax
je 0x100278e1
lea ebx, [edi + 0xc8]
push esi
mov ecx, edi
call fcn.10027701
test eax, eax
je 0x100278fd
push 3
push esi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.10015159
test eax, eax
je 0x100278fd
push 2
pop eax
jmp 0x100278a7
push 3
push esi
push dword [ebp + 0xc]
lea ebx, [edi + 0xc8]
mov ecx, ebx
call fcn.10015159
test eax, eax
je 0x100278bf
xor eax, eax
inc eax
jmp 0x100278a7
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call fcn.10027913
test eax, eax
je 0x100278a5
push 3
jmp 0x100278de

Function at 0x10027913
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x418], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.10005de3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10027a13
lea eax, [ebp - 0x414]
push eax
call fcn.1000f8f1
pop ecx
test eax, eax
je 0x10027a13
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x10064b24
push eax
call fcn.1000f97f
add esp, 0xc
test eax, eax
je 0x10027a13
xor eax, eax
lea ecx, [edi + 0xc8]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.1001512b
test eax, eax
je 0x10027a13
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 5
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0xc8]
call fcn.10015159
test eax, eax
je 0x10027a06
lea edx, [ebp - 0x20c]
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x100279df
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10009f28
xor eax, eax
inc eax
jmp 0x10027a15
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003eec9
leave
ret 0xc