joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116c9
Capabilities:
Get common file path

Disassembly:
push 0x448
mov eax, 0x4af5be
call fcn.0047a6c1
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0
push esi
call fcn.0047f9b4
pop ecx
push eax
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.00432ce4
add esp, 0x10
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x411743
push 0x412
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x424]
push esi
push eax
call fcn.0047f9b4
pop ecx
push eax
lea eax, [ebp - 0x424]
push eax
jmp 0x41174d
push esi
push edi
call fcn.0047f9b4
pop ecx
push eax
push edi
lea eax, [ebp - 0x454]
push eax
call fcn.00432ce4
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x411764
mov eax, dword [eax]
push eax
mov edi, 0x209
mov esi, 0x501ec8
push edi
push esi
call fcn.0047fc84
add esp, 0xc
lea ecx, [ebp - 0x454]
call fcn.00411f7c
push esi
call fcn.0047fe20
pop ecx
test eax, eax
je 0x4117a7
cmp byte [eax + 0x501ec7], 0x5c
je 0x4117a7
push 0x4b8d90
push edi
push esi
call fcn.0047fcde
add esp, 0xc
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
push ebx
cmovae eax, dword [ebp - 0x43c]
push eax
call fcn.004123cb
pop ecx
pop ecx
lea ecx, [ebp - 0x43c]
mov esi, eax
call fcn.00411f7c
mov eax, esi
call fcn.0047a67f
ret 0xc

Function at 0x411d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411d6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411d6a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x411d5a
cmp esi, ecx
jae 0x411d6a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x411d48
cmp esi, ecx
jae 0x411d6a
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x411d6c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x414f59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push 0x4b8fb4
push dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], esi
call fcn.004889c7
mov dword [ebp - 0x114], eax
pop ecx
pop ecx
test eax, eax
jne 0x414fcd
test ebx, ebx
je 0x414fc6
lea eax, [ebp - 0x10c]
push eax
call fcn.004163a2
pop ecx
push eax
mov ecx, ebx
call fcn.00409f50
lea ecx, [ebp - 0x10c]
call fcn.00411fa2
xor al, al
jmp 0x4150fc
xor ebx, ebx
test esi, esi
je 0x414fdd
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
jmp 0x414fe3
mov dword [ebp - 0x11c], ebx
push edi
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x118]
push ebx
call fcn.0040a6e0
mov edi, dword [ebp - 0x114]
push 2
pop eax
push eax
push ebx
push edi
call fcn.00489184
push edi
call fcn.004898df
push ebx
push ebx
push edi
mov dword [ebp - 0x110], eax
call fcn.00489184
mov eax, dword [ebp - 0x110]
add esp, 0x1c
test eax, eax
je 0x4150a6
mov esi, eax
push esi
call fcn.0047aaad
mov edi, eax
mov eax, dword [ebp - 0x114]
push eax
push 1
push esi
push edi
call fcn.00488d1e
push esi
push edi
push ebx
call fcn.004151e0
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047aaad
push dword [ebp - 0x110]
mov esi, eax
push edi
push esi
call fcn.004151e0
mov ecx, dword [ebp - 0x118]
add esp, 0x30
push ebx
push esi
call fcn.00412041
push esi
call fcn.0047aa26
push edi
call fcn.0047aa26
mov esi, dword [ebp - 0x120]
mov edi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
pop ecx
pop ecx
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf4]
push str._s_d_bytes_to__d_wide_chars
push eax
call fcn.00417e04
mov ebx, dword [ebp - 0x124]
add esp, 0x14
test ebx, ebx
je 0x4150e6
lea eax, [ebp - 0xf4]
push eax
call fcn.0047f9b4
pop ecx
push eax
lea eax, [ebp - 0xf4]
mov ecx, ebx
push eax
call fcn.00412041
push edi
call fcn.00488b1a
pop ecx
pop edi
test esi, esi
je 0x4150fa
mov ecx, dword [ebp - 0x11c]
mov dword [esi], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a65d
leave
ret
Function at 0x41b743
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x4b96b0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414703
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.00411fa2
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0047a65d
leave
ret 4

Function at 0x41b8bf
Capabilities:
Delete file

Disassembly:
push 0x238
mov eax, 0x4b03e6
call fcn.0047a6c1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, 0x208
xor edi, edi
push ebx
push edi
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41b92a
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esi + 0x14], 8
jb 0x41b93a
mov esi, dword [esi]
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x230]
push str._s_s
push eax
call fcn.00432c76
add esp, 0x10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 4], edi
call ebx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.CUpdateCore::PrepareInstall__strTestFile_s
call fcn.004336ac
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push edi
push 0x80
push 1
push edi
push 7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test esi, esi
je 0x41b9de
cmp esi, 0xffffffff
je 0x41b9de
cmp ecx, 5
je 0x41b9de
cmp ecx, 0xb7
jne 0x41ba08
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
push str.CUpdateCore::PrepareInstall__start_launcher_use_runas_appdata_start_fail._file:_s__ld_._n
call fcn.004336ac
xor edi, edi
add esp, 0xc
inc edi
test esi, esi
je 0x41ba26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
call ebx
lea ecx, [ebp - 0x230]
call fcn.00411fa2
mov eax, edi
call fcn.0047a67f
ret 4
Function at 0x41be1a
Capabilities:
Get common file path
Set registry value

Disassembly:
push 0x24c
mov eax, 0x4b04d1
call fcn.0047a6c1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x258]
mov edi, dword [ebp + 0xc]
xor esi, esi
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push esi
push 0xf013f
push esi
push esi
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41bf9c
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x254], 0xa
push esi
push eax
mov dword [ebp - 0x250], 2
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00410cc6
push str.duowan
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], esi
push eax
call fcn.004146cd
add esp, 0xc
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00411fa2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 4
lea eax, [ebp - 0x254]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.DumpCount
push dword [ebp - 0x24c]
call esi
push 4
lea eax, [ebp - 0x250]
push eax
push 4
push 0
push str.DumpType
push dword [ebp - 0x24c]
call esi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
add eax, eax
push eax
push ecx
push 2
push 0
push str.DumpFolder
push dword [ebp - 0x24c]
call esi
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push edi
push str.CUpdateCore::_writeDumpRegeditEx___s_count___d__type___d__path___s
call fcn.004336ac
add esp, 0x14
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.00411fa2
jmp 0x41bfa9
push edi
push str.CUpdateCore::_writeDumpRegedit___s_RegCreateKey_STR_YY_REG_DUMP_fail.
call fcn.004336ac
pop ecx
pop ecx
call fcn.0047a67f
ret 8
Function at 0x41c92c
Capabilities:
Delete file

Disassembly:
push 0x4a4
mov eax, 0x4b0671
call fcn.0047a6c1
lea eax, [ecx + 0x50]
push 0x5021a4
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040a800
xor ebx, ebx
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x440]
push eax
push str.CUpdateCore::removeDownloadedVersion__DeleteFile__strDownloadStateFile_s
call fcn.004336ac
add esp, 0x14
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41cb20
push 0x20a
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.0047bc10
xor eax, eax
lea edi, [ebp - 0x468]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, 0x104
lea eax, [ebp - 0x428]
push esi
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0047bc10
push 8
pop edi
cmp dword [ebp - 0x42c], edi
lea eax, [ebp - 0x440]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00489cda
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.00410cc6
push 0x4b8d3c
push eax
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 1
push eax
call fcn.004146cd
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.004146cd
push str..xml
push eax
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 3
push eax
call fcn.004146cd
add esp, 0x24
lea ecx, [ebp - 0x480]
call fcn.00411fa2
lea ecx, [ebp - 0x498]
call fcn.00411fa2
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 7
call fcn.00411fa2
lea ecx, [ebp - 0x458]
cmp dword [ebp - 0x444], edi
lea eax, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x458]
cmp dword [ebp - 0x42c], edi
push ecx
cmovae eax, dword [ebp - 0x440]
push eax
push str.CUpdateCore::removeDownloadedVersion__RenameFile__strExistFileName_s__strNewFileName_s
call fcn.004336ac
cmp dword [ebp - 0x444], edi
lea ecx, [ebp - 0x458]
lea eax, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x458]
cmp dword [ebp - 0x42c], edi
push ecx
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0043292b
add esp, 0x14
lea ecx, [ebp - 0x458]
test eax, eax
je 0x41cb1b
call fcn.00411fa2
jmp 0x41cb22
call fcn.00411fa2
mov bl, 1
lea ecx, [ebp - 0x440]
call fcn.00411fa2
mov al, bl
call fcn.0047a67f
ret
Function at 0x41d13e
Capabilities:
Delete registry value
Get common file path
Query or enumerate registry value

Disassembly:
push 0xa64
mov eax, 0x4b077c
call fcn.0047a6c1
mov ebx, ecx
mov dword [ebp - 0xa6c], ebx
lea eax, [ebp - 0xa64]
xor edi, edi
push eax
push 0xf013f
push edi
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingLocalDumps
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0xa70], esi
test esi, esi
jne 0x41d31e
lea eax, [ebp - 0xa68]
mov dword [ebp - 0xa68], 0x7fe
push eax
lea eax, [ebp - 0xa18]
push eax
push edi
push edi
push str.DumpFolder
push dword [ebp - 0xa64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d301
mov eax, dword [ebp - 0xa68]
test al, 1
jne 0x41d1df
mov ecx, 0x800
cmp eax, ecx
jae 0x41d1df
and eax, 0xfffffffe
cmp eax, ecx
jae 0x41d36a
xor ecx, ecx
mov word [ebp + eax - 0xa18], cx
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0xa30]
call fcn.00410cc6
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa60]
call fcn.00410cc6
mov edi, str.duowan
mov byte [ebp - 4], 1
push edi
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.004146cd
add esp, 0xc
lea ecx, [ebp - 0xa60]
mov byte [ebp - 4], 3
call fcn.00411fa2
push 0
push edi
lea ecx, [ebp - 0xa30]
call fcn.0041c3f5
push str._temp__duowan
lea ecx, [ebp - 0xa30]
mov edi, eax
call fcn.004155c7
test al, al
jne 0x41d295
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp - 0xa30]
call fcn.00414606
test al, al
jne 0x41d295
cmp edi, 0xffffffff
je 0x41d2e5
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.DumpFolder
push dword [ebp - 0xa64]
call edi
push str.DumpType
push dword [ebp - 0xa64]
mov ebx, eax
call edi
push str.DumpCount
push dword [ebp - 0xa64]
mov esi, eax
call edi
push dword [ebp + 8]
push eax
push esi
push ebx
push str.CUpdateCore::_writeDumpRegedit__del_folder___d__type___d__count___s_from_d
call fcn.004336ac
mov ebx, dword [ebp - 0xa6c]
add esp, 0x14
mov esi, dword [ebp - 0xa70]
lea ecx, [ebp - 0xa48]
call fcn.00411fa2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa30]
call fcn.00411fa2
jmp 0x41d310
push dword [ebp + 8]
push str.CUpdateCore::_writeDumpRegedit__RegQueryValueEx_fail._from_d
call fcn.004336ac
pop ecx
pop ecx
push dword [ebp - 0xa64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41d32d
push dword [ebp + 8]
push str.CUpdateCore::_writeDumpRegedit__RegOpenKeyEx_fail._from_d
call fcn.004336ac
pop ecx
pop ecx
push str.yy.exe
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingLocalDumpsyy.exe
mov ecx, ebx
call fcn.0041be1a
push str.yyexternal.exe
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingLocalDumpsyyexternal.exe
mov ecx, ebx
call fcn.0041be1a
push str.yyhost.exe
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingLocalDumpsyyhost.exe
mov ecx, ebx
call fcn.0041be1a
mov eax, esi
call fcn.0047a67f
ret 4
call fcn.0047a379
int3
Function at 0x41f148
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x4b0b27
call fcn.0047a6c1
lea eax, [ecx + 0xf0]
xor edi, edi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00411e48
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push eax
call fcn.004341aa
lea eax, [ebp - 0x40]
mov dword [esp], 0x4bb788
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00414703
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x41f1aa
mov ecx, eax
call fcn.00411fa2
push esi
lea ecx, [ebp - 0x40]
call fcn.00411ee1
lea ecx, [ebp - 0x58]
call fcn.00411fa2
push 7
mov eax, edi
mov dword [ebp - 0x28], edi
pop ebx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ecx
je 0x41f1e8
mov esi, 0x4bb69c
push esi
call fcn.0047f9b4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00412041
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
je 0x41f21e
test eax, eax
je 0x41f208
mov esi, 0x4b946c
push esi
call fcn.0047f9b4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00411fe6
mov esi, 0x4bb6f4
push esi
call fcn.0047f9b4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00411fe6
push 8
pop esi
cmp dword [ebp - 0x14], esi
lea ecx, [ebp - 0x28]
push 5
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], esi
push edi
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edx, edx
lea ecx, [ebp - 0x28]
cmp eax, 0x20
lea eax, [ebp - 0x40]
setg dl
cmp dword [ebp - 0x14], esi
push edx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], esi
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push str.CUpdateCore::LaunchUpdate__strUpdateEntryFile_s__strParam_s__nResult_d
call fcn.004336ac
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, esi
jb 0x41f2ae
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x41f2a5
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00411cec
mov eax, dword [ebp - 0x5c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00479ff8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, esi
jb 0x41f2f6
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
cmp eax, 0x1000
jb 0x41f2ed
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00411cec
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
push eax
push ecx
call fcn.00479ff8
pop ecx
pop ecx
xor eax, eax
call fcn.0047a67f
ret 8
Function at 0x421127
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
push 0x25c
mov eax, 0x4b0e7d
call fcn.0047a6c1
mov ebx, ecx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0047bc10
add esp, 0xc
mov dword [ebp - 0x230], esi
xor eax, eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
push 7
pop ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x248], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x248], ax
push esi
push 0x10
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4bb80c
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push 0x4b9c68
push eax
call fcn.00432c76
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4211dd
mov ecx, eax
call fcn.00411fa2
push esi
lea ecx, [ebp - 0x230]
call fcn.00411ee1
lea ecx, [ebp - 0x260]
call fcn.00411fa2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4bb828
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push 0x4b9c68
push eax
call fcn.00432c76
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x421242
mov ecx, eax
call fcn.00411fa2
push esi
lea ecx, [ebp - 0x230]
call fcn.00411ee1
lea ecx, [ebp - 0x260]
call fcn.00411fa2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, ebx
call fcn.00422bca
mov ecx, ebx
call fcn.00422ba5
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4212cb
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x4212c2
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00411cec
mov eax, dword [ebp - 0x264]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.00479ff8
pop ecx
pop ecx
call fcn.0047a67f
ret
Function at 0x4212d1
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0x1c
mov eax, 0x4b0320
call fcn.0047a6c1
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x4212ef
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421309
cmp dword [esi + 0x14], ebx
jb 0x421301
mov esi, dword [esi]
push esi
push str.CUpdateCtrl::_moveFiles___s_is_not_exist.
jmp 0x42134a
mov ecx, edi
cmp dword [edi + 0x14], ebx
jb 0x421312
mov ecx, dword [edi]
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x42131b
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x421356
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421335
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x421344
mov esi, dword [esi]
push esi
push str.CUpdateCtrl::_moveFiles__move__s_successfully.
call fcn.004336ac
pop ecx
pop ecx
jmp 0x421420
push str..old
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00414703
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x421393
mov eax, dword [edi]
push ecx
push eax
call fcn.0043292b
pop ecx
pop ecx
test eax, eax
jne 0x4213fb
cmp dword [edi + 0x14], 8
jb 0x4213a8
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4213b2
mov eax, dword [esi]
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4213e4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4213c6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4213d5
mov esi, dword [esi]
push esi
push str.CUpdateCtrl::_moveFiles__move__s_successfully.
call fcn.004336ac
pop ecx
pop ecx
jmp 0x421418
cmp dword [esi + 0x14], 8
jb 0x4213ec
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CUpdateCtrl::_moveFiles__copy__s_fail__error_is__d
jmp 0x421410
cmp dword [esi + 0x14], 8
jb 0x421403
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CUpdateCtrl::_moveFiles__rename__s_fail__error_is__d
call fcn.004336ac
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00411fa2
call fcn.0047a67f
ret 8