joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415460
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4af491
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d5784]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x4154d9
cmp dword [esi + 0x10], 1
jne 0x4154d9
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x4154d9
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0043d6d1
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.00438563
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.00432830
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x415502
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x415545
mov edx, dword [esi + 0x34]
test edx, edx
je 0x415545
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x415545
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x415545
cmp dword [esi + 0x10], 0
jne 0x415524
cmp byte [esi + 8], 0
je 0x41551a
mov edx, dword [esi + 0xc]
push edx
call fcn.0043314c
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x415545
push eax
jmp 0x41553d
mov edi, dword [esi]
test edi, edi
je 0x415545
cmp byte [edi + 0x18], 0
je 0x41553c
mov eax, dword [edi + 4]
push eax
call fcn.0043314c
add esp, 4
push edi
call fcn.0042f8dc
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x41555c
push eax
call fcn.00430546
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x415570
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x415587
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x415700
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4af44b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d5784]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x415820
push 0x1c
call fcn.0042fde5
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x415773
mov eax, 0x10000
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov byte [esi], bl
mov byte [esi + 0x18], 1
mov dword [esi + 8], eax
call fcn.004332a4
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x415775
mov byte [esi], 1
jmp 0x415775
xor esi, esi
push 1
push 0x100000
mov dword [esp + 0x28], 0xffffffff
call fcn.00449d06
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4157d1
call fcn.00438563
push eax
push 0x100000
push 1
push ebp
call fcn.00433c85
add esp, 0x10
cmp eax, ebx
jle 0x4157d1
lea esp, [esp]
mov ecx, ebp
call fcn.00415280
call fcn.00438563
push eax
push 0x100000
push 1
push ebp
call fcn.00433c85
add esp, 0x10
cmp eax, ebx
jg 0x4157b0
cmp byte [esi], bl
je 0x4157dd
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x4157fc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.0043d6d1
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x14]
add esp, 8
mov dword [edi + 0x18], edx
cmp byte [esi + 0x18], bl
je 0x41580d
mov eax, dword [esi + 4]
push eax
call fcn.0043314c
add esp, 4
push esi
call fcn.0042f8dc
push ebp
call fcn.0043314c
add esp, 8
mov byte [edi + 8], 1
call fcn.00415600
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x423afa
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push 0x408
mov eax, 0x4ac80c
call fcn.004303ac
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileSize]
xor edi, edi
push edi
push edi
call esi
push edi
push 0x8000000
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
push edi
push ebx
call esi
mov esi, eax
push esi
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00423aa7
push edi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004228cc
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.00423a7d
xor eax, eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x423b84
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x423b86
shr ecx, 1
dec edx
jne 0x423b75
mov dword [ebp + eax*4 - 0x414], ecx
inc eax
cmp eax, 0x100
jl 0x423b70
mov eax, dword [ebp - 0x10]
mov ecx, esi
cmp esi, edi
je 0x423bbe
movzx esi, byte [eax]
mov edx, ebx
and edx, 0xff
xor edx, esi
shr ebx, 8
xor ebx, dword [ebp + edx*4 - 0x414]
dec ecx
inc eax
cmp ecx, edi
jne 0x423ba1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004222af
mov eax, ebx
not eax
call fcn.00430484
ret

Function at 0x423bd3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0042f8e7
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f8d1
lea ecx, [esi + esi + 2]
push ecx
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.00430560
movzx ecx, word [edi]
add esp, 0x14
mov eax, edi
cmp cx, bx
je 0x423c30
movzx ecx, cx
cmp cx, 0x20
je 0x423c30
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x423c20
mov esi, dword [ebp + 8]
sub eax, edi
sar eax, 1
push eax
push edi
push esi
call fcn.004305f9
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 2
push ebx
push 0x10
mov ecx, 0x4da128
call fcn.0042d5c5
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x423c87
push esi
call fcn.0042f8e7
pop ecx
add eax, eax
push eax
push esi
push 1
push ebx
push 0x4b1728
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x423c97
mov bl, 1
push esi
call fcn.00430546
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x423c87
Function at 0x423ca2
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
push esi
xor esi, esi
push esi
push esi
push 0x104
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x41]
call fcn.00427b6c
test eax, eax
jne 0x423d2d
push str.KuaiZip.exe
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423d2d
push 0x38
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00430560
lea eax, [ebp - 0x40]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov ecx, dword [ebp + 0x1c8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043039d
add ebp, 0x1cc
leave
ret

Function at 0x423d45
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00430560
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test esi, esi
je 0x423db5
test edi, edi
je 0x423db5
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x423db5
and dword [esi], eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4246fa
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
push eax
push 0x424690
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push dword [esp + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret

Function at 0x42482f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.00430560
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0043039d
leave
ret
Function at 0x4248a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4248b6
xor eax, eax
inc eax
jmp 0x42494d
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424948
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, str.ProgramW6432Dir
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x42493f
inc dword [ebp - 8]
push dword [ebp - 8]
call fcn.0042f8d1
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x42493f
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x42492c
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00430546
pop ecx
mov eax, ebx
jmp 0x42494b
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004304d7
add esp, 0xc
jmp 0x424916
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x424bf8
Capabilities:
Get common file path
Get program files directory
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4da120], 8
mov eax, dword [0x4da10c]
push ebx
push esi
push edi
mov esi, ecx
jae 0x424c23
mov eax, 0x4da10c
push eax
push 0x410
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f0
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3ee
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x3ee
push dword [esi + 4]
call edi
push 0x64
push 0
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
mov ebx, 0x3ec
push ebx
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
push 0
push 0
push 0x104
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x415]
call fcn.00427b6c
cmp eax, 1
jne 0x424d35
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00430560
add esp, 0xc
cmp dword [esi + 0x58], 0
je 0x424ce9
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004248a0
test eax, eax
je 0x424cfc
push 0
push 0x26
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x15
mov ecx, 0x4da128
call fcn.0042d5c5
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x3ed
push dword [esi + 4]
call edi
push 1
jmp 0x424d5b
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esi + 0x58], 1
mov ecx, esi
sete al
mov byte [0x4da02a], al
call fcn.00424952
push ecx
mov eax, esp
lea ecx, [esi + 0x60]
mov dword [ebp - 0x41c], esp
mov dword [eax], 0xca
call fcn.00424b7c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043039d
leave
ret 0x10
Function at 0x424dd3
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00430560
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00430560
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Softlink
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.SLDefault.xml
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [0x4da0b0], 8
mov eax, dword [0x4da09c]
jae 0x424e75
mov eax, 0x4da09c
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004306b4
pop ecx
pop ecx
push str.Softlink.xml
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424eb8
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043039d
leave
ret
Function at 0x424f90
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x4ac85d
call fcn.004303ac
mov eax, dword [ebp + 0x420]
mov ecx, dword [ebp + 0x428]
mov edi, dword [ebp + 0x41c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x424]
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424fe7
xor eax, eax
jmp 0x4250e5
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x208]
push eax
mov esi, 0x104
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
cmp eax, ebx
jne 0x425026
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x42501c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x4250e5
lea eax, [ebp - 0x10]
push eax
push 0x4b2948
push 1
push ebx
push 0x4b2968
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x4250d2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00424f71
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp + 0x208]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov edi, eax
cmp edi, ebx
jl 0x4250c2
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jne 0x425078
mov ecx, 0x4b16a0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov edi, eax
cmp edi, ebx
jl 0x4250c2
cmp dword [ebp - 0x18], ebx
je 0x4250a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x44]
mov edi, eax
cmp edi, ebx
jl 0x4250c2
push esi
push dword [ebp - 0x20]
lea eax, [ebp]
push esi
push eax
call fcn.00430784
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add esp, 0x10
push 1
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4250d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4250e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0043039d
add ebp, 0x414
leave
ret 0x10
Function at 0x42510a
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp + 0x394], eax
cmp dword [0x4da0b0], 8
mov eax, dword [0x4da09c]
mov dword [ebp - 0x80], ecx
jae 0x42513b
mov eax, 0x4da09c
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x7c]
push 0x104
push eax
call fcn.004304d7
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str.KuaiZip.exe
lea eax, [ebp - 0x7c]
push eax
call esi
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x10
lea eax, [ebp + 0x18c]
push eax
push 0
call ebx
mov edi, 0x4da128
push 0x1f
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
mov ecx, dword [ebp - 0x80]
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.00424f90
push 0
push 0xb
lea eax, [ebp + 0x18c]
push eax
push 0
call ebx
push 0x1f
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
mov ecx, dword [ebp - 0x80]
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.00424f90
push 0
push 2
lea eax, [ebp + 0x18c]
push eax
push 0
call ebx
push 0xf
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
push 0
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x42526d
push 0x20
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
cmp dword [0x4da0b0], 8
mov eax, dword [0x4da09c]
jae 0x425239
mov eax, 0x4da09c
push eax
lea eax, [ebp - 0x7c]
push 0x104
push eax
call fcn.004304d7
add esp, 0xc
push str.Uninstaller.exe
lea eax, [ebp - 0x7c]
push eax
call esi
mov ecx, dword [ebp - 0x80]
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.00424f90
push 0
push 2
lea eax, [ebp + 0x18c]
push eax
push 0
call ebx
push 0xf
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4252fa
push 0x1f
mov ecx, edi
call fcn.0042d5c5
push eax
lea eax, [ebp + 0x18c]
push eax
call esi
cmp dword [0x4da0b0], 8
mov eax, dword [0x4da09c]
jae 0x4252c6
mov eax, 0x4da09c
push eax
lea eax, [ebp - 0x7c]
push 0x104
push eax
call fcn.004304d7
add esp, 0xc
push str.KuaiZip.exe
lea eax, [ebp - 0x7c]
push eax
call esi
mov ecx, dword [ebp - 0x80]
push 0
lea eax, [ebp + 0x18c]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.00424f90
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043039d
add ebp, 0x398
leave
ret 4
Function at 0x4253a0
Capabilities:
Get disk information

Disassembly:
push 4
mov eax, 0x4ac88d
call fcn.004303ac
mov edi, dword [ebp + 8]
test edi, edi
je 0x425430
cmp word [edi], 0
je 0x425430
push 0x5c
push edi
call fcn.00430857
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425430
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00424f56
mov edi, dword [ebp - 0x10]
and dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
je 0x425428
cmp eax, 5
je 0x425428
add esi, 2
push esi
lea ecx, [ebp + 8]
call fcn.00422e6f
push str._:____
lea ecx, [ebp + 8]
call fcn.00424b5a
mov ecx, dword [ebp + 8]
mov esi, eax
inc esi
neg esi
sbb esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.004222af
lea ecx, [edi - 0x10]
call fcn.004222af
mov eax, esi
jmp 0x425432
lea ecx, [edi - 0x10]
call fcn.004222af
xor eax, eax
call fcn.00430484
ret 4
Function at 0x425766
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x58], 1
push edi
mov edi, dword [ebp + 0xc]
sete al
push edi
mov byte [0x4da02a], al
call fcn.004253a0
xor ebx, ebx
test eax, eax
jne 0x42579b
xor edi, edi
cmp byte [ebp + 8], bl
je 0x4257bc
cmp edi, ebx
je 0x4257bc
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004304d7
add esp, 0xc
jmp 0x425803
mov edi, 0x104
lea eax, [ebp - 0x20c]
cmp dword [esi + 0x58], ebx
je 0x4257de
push edi
push eax
mov ecx, esi
call fcn.004248a0
cmp eax, ebx
je 0x4257e9
jmp 0x425888
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x15
mov ecx, 0x4da128
call fcn.0042d5c5
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x4da098
call fcn.004052b0
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004253a0
test eax, eax
jne 0x42582b
xor eax, eax
inc eax
jmp 0x425888
push edi
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x5c]
call fcn.0042863a
test eax, eax
jl 0x425826
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
mov dword [esi + 0x54], 1
call fcn.00424ec6
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [ebp + 8], bl
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.0042510a
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043039d
leave
ret 8

Function at 0x425c1b
Capabilities:
Check if file exists
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
xor edi, edi
mov dword [esi], vtable.CExtractOutFile.0
cmp eax, 0xffffffff
je 0x425c45
lea ecx, [esi + 0x14]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi + 8], 0xffffffff
cmp dword [esi + 0x10], edi
je 0x425c6e
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x425c6e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425c6e
push 1
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x425c7f
push eax
call fcn.00430546
pop ecx
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x425c90
push eax
call fcn.00430546
pop ecx
mov dword [esi + 0xc], edi
pop edi
pop esi
ret