joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ce1
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4aaac1
call fcn.004a9438
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x448d02
xor eax, eax
jmp 0x448eb5
mov eax, dword [0x4dc00c]
mov ecx, 0x4dc00c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.004069c6
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.0048c8d0
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x448d67
cmp dword [ebp - 0x18c], 6
jne 0x448d67
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x448d7b
call fcn.0040a7ad
jmp 0x448d80
call fcn.0040a75d
cmp eax, ebx
jne 0x448e99
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0048c8d0
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040a818
add esp, 0x10
test al, al
jne 0x448de5
cmp dword [ebp - 0x10], ebx
je 0x448ddb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040a992
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], 0x4bc118
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x448e44
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x448e44
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x448e41
mov dword [ebp - 0x14], 0x430
jmp 0x448e44
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x448e74
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x448e82
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x448e8b
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x448e99
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x448ea7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x448ff6
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4c9ef8
call fcn.004a9458
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4490a4
cmp dword [ebp + 0xc], eax
je 0x4490a4
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4490a4
mov ebx, 0x103
cmp esi, ebx
ja 0x4490a4
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004894f5
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4490a0
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0048c8d0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4490a0
cmp eax, ebx
ja 0x4490a0
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0048fd7a
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4490a0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4490b3
push dword [ebp - 0x1c]
call fcn.0048c8c5
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a9493
ret

Function at 0x4490bc
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4ab031
call fcn.004a9438
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.0040646b
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x4490fe
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x449105
call esi
cmp eax, 5
je 0x449108
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405bc5
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x449891
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x4498a2
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4498b4
mov eax, 0x13b
pop ecx
ret
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00448ce1
add esp, 0xc
test eax, eax
je 0x4498cf
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00448b6a
test eax, eax
pop ecx
pop ecx
jne 0x4498cb
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00448a5e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
pop ecx
ret
Function at 0x44ffc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x144]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x450101
push eax
call fcn.00432ec9
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4500ce
mov eax, dword [ebx + 0x14]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x450042
lea eax, [ebx + 0x18]
push eax
call fcn.00433a22
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00433403
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x144], eax
jne 0x450098
mov ecx, dword [ebx + 0x44]
xor eax, eax
cmp ecx, eax
je 0x45008a
cmp word [ecx], ax
je 0x45008a
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4500ce
cmp dword [ebx + 0x14], eax
je 0x4500ce
mov dword [ebp - 4], 1
jmp 0x4500ce
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x4500b7
lea eax, [ebx + 0x18]
push eax
call fcn.00433a22
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00433403
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x144], ecx
je 0x4500df
push 0x67
jmp 0x4500fa
cmp dword [ebp - 8], ecx
je 0x450101
cmp dword [ebp - 0xc], ecx
je 0x450101
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x140]
cmp edx, dword [eax]
jne 0x4500f8
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0044fbf5
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4522cf
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4ab031
call fcn.004a9438
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00405e35
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0042b5dc
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bc5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x453fe8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048c8d0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x454041
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4540ef
mov eax, dword [ebp - 0x94]
dec eax
je 0x4540db
dec eax
jne 0x4540ef
cmp dword [ebp - 0xa0], 6
jne 0x45408c
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x454074
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x454088
cmp dword [ebp - 0x9c], edi
jne 0x4540c8
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4540ef
cmp dword [ebp - 0xa0], 5
jne 0x4540bb
cmp dword [ebp - 0x9c], 2
jne 0x4540a2
push 5
jmp 0x4540d8
cmp dword [ebp - 0x9c], 1
jne 0x4540af
push 6
jmp 0x4540d8
cmp dword [ebp - 0x9c], edi
jne 0x4540ef
push 3
jmp 0x4540d8
cmp dword [ebp - 0xa0], 4
ja 0x4540ef
push 4
jmp 0x4540d8
cmp dword [ebp - 0x9c], 2
jne 0x4540ef
cmp byte [ebp + 0x76], al
jne 0x4540ef
push 0xa
pop edi
jmp 0x4540ef
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x456a04
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [ecx + 8]
push esi
xor esi, esi
inc esi
cmp edx, esi
jne 0x456a51
mov ecx, dword [ecx + 0xc]
cmp ecx, esi
jne 0x456a21
xor ecx, ecx
call fcn.00457015
mov eax, esi
pop esi
ret
cmp ecx, 0x64
jne 0x456a3e
push esi
xor eax, eax
push eax
push eax
push str.https:__www.winzips.com_company_privacy_policy.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x456a1d
cmp ecx, 0x65
jne 0x456a48
push 2
pop ecx
jmp 0x456a18
cmp ecx, 0x66
jne 0x456a51
push 3
jmp 0x456a45
and dword [eax + 0x504], 0
xor eax, eax
pop esi
ret
Function at 0x458640
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x45868c
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x150]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x45868c
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x278]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x3bc], 0
je 0x458704
lea ebx, [esi + 0x3cc]
cmp dword [ebx], 0
je 0x4586a9
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x3bc], edi
jne 0x4586fd
push edi
call fcn.00432ec9
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00433403
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3bc], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x4589ca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3cc]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x4589fb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x458a3f
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x458a3f
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x278]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3b8]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x458b93
push eax
call fcn.00432ec9
mov edi, eax
test edi, edi
pop ecx
je 0x458b12
mov eax, dword [edi + 0x14]
push 2
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x458a86
push 1
push edi
push esi
call fcn.004597db
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00433403
mov eax, dword [ebp - 4]
cmp dword [esi + 0x3b8], eax
jne 0x458adc
mov ecx, dword [edi + 0x44]
xor eax, eax
cmp ecx, eax
je 0x458ace
cmp word [ecx], ax
je 0x458ace
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x458b12
cmp dword [edi + 0x14], eax
je 0x458b12
mov dword [ebp - 0xc], 1
jmp 0x458b12
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x458afb
push 1
push edi
push esi
call fcn.004597db
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00433403
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x3b8], eax
je 0x458b54
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x458b93
cmp dword [ebp - 0x10], eax
je 0x458b93
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x458b93
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x3b4
cmp eax, dword [esi]
jne 0x458b93
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45a5c3
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4adf9c
call fcn.004a9438
sub esp, 0x21c
mov eax, dword [0x4dc00c]
push ebx
push esi
push edi
mov ecx, 0x4dc00c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x228], bx
call fcn.0048c8d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406050
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406050
push 0x2e
lea esi, [ebp - 0x10]
call fcn.00406516
cmp eax, 0xffffffff
je 0x45a678
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00406620
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00405107
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [0x4dc00c]
mov ecx, 0x4dc00c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x10]
fstp qword [ebp - 0x20]
push eax
call fcn.0045a2c3
test eax, eax
jne 0x45a6d5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x45a710
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, ebx
jmp 0x45a6c4
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x45a778
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408360
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x45a76e
cmp dword [ebp - 0x14], edi
jne 0x45a76e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x45a756
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.00409d3c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x45a6f6
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.00408386
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x45a6f6
Function at 0x45ceda
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ab3f7
call fcn.004a9438
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [ebp - 4], 2
mov dword [esi + 0x70], edi
call fcn.00464d26
lea ecx, [esi + 0x78]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x7c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46022c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov ecx, dword [eax + 8]
inc edi
cmp ecx, edi
jne 0x460348
mov eax, dword [eax + 0xc]
cmp eax, edi
jne 0x460252
call fcn.004623c3
mov eax, edi
jmp 0x460351
cmp eax, 2
jne 0x460264
push 6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46024b
cmp eax, 0x65
jne 0x460272
mov eax, esi
call fcn.004627bf
jmp 0x46024b
cmp eax, 0x67
je 0x460269
cmp eax, 0x6f
jne 0x460283
call fcn.0046283b
jmp 0x46024b
cmp eax, 0x66
jne 0x46029b
xor eax, eax
cmp dword [esi + 0x524], eax
sete al
push eax
call fcn.004630df
jmp 0x46024b
cmp eax, 0x191
jne 0x4602a9
call fcn.00462972
jmp 0x46024b
cmp eax, 0x96
jne 0x4602d2
push dword [esi + 0x550]
push dword [esi + 0x528]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push eax
mov eax, esi
call fcn.0046232c
jmp 0x46024b
cmp eax, 0x1f5
jne 0x4602e7
xor ecx, ecx
mov eax, esi
call fcn.00457015
jmp 0x46024b
cmp eax, 0x68
jne 0x4602f8
mov ebx, esi
call fcn.00462e2e
jmp 0x46024b
cmp eax, 0x6e
jne 0x460317
add esi, 0x24
push eax
mov eax, esi
call fcn.00463c72
push eax
push 0x67
mov eax, esi
call fcn.00463cdc
jmp 0x46024b
cmp eax, 0x6c
jne 0x460337
push edi
xor eax, eax
push eax
push eax
push str.https:__www.winzips.com_company_license_agreement.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46024b
cmp eax, 0x6d
jne 0x460348
push edi
xor eax, eax
push eax
push eax
push str.https:__www.winzips.com_company_privacy_policy.html
jmp 0x460326
and dword [esi + 0x560], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x46065a
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4606d1
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4606d1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4c1dd8]
fcomp qword [0x4c1dd0]
fnstsw ax
test ah, 1
jne 0x4606d1
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x460b7b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x558], 0
jne 0x460bb7
push esi
lea esi, [ebp - 4]
call fcn.00460bbf
push dword [eax]
push 2
push 0x4bc66c
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x558], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405bc5
pop esi
mov eax, dword [edi + 0x558]
leave
ret
Function at 0x460edf
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push str.install_run_begin
mov esi, 0x4dcf70
mov edi, eax
call fcn.0042a904
pop ecx
push edi
call fcn.00460ff4
call fcn.0046aa09
cmp dword [eax + 0x3c], 0
je 0x460f0e
cmp dword [edi + 0x968], 0
jne 0x460f79
xor ebx, ebx
cmp dword [edi + 0x964], 1
sete bl
call fcn.00409578
cmp eax, 6
jg 0x460f54
test ebx, ebx
jne 0x460f47
push 2
push 2
push 0x4c0e38
push dword [edi + 0x960]
push 0x4c0e44
push dword [edi + 4]
call fcn.00440dd2
add esp, 0x18
push str.system_is_xp
call fcn.0042a904
pop ecx
jmp 0x460f79
push edi
call fcn.004610ad
test eax, eax
je 0x460f79
mov ecx, edi
call fcn.004612ad
test eax, eax
je 0x460f79
call fcn.0046137a
test eax, eax
jne 0x460f79
mov eax, edi
call fcn.00463987
call fcn.004467ee
mov edi, eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x460f99
test al, 0x10
jne 0x460f99
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.install_run_end
call fcn.0042a904
pop ecx
pop edi
pop esi
pop ebx
ret

Function at 0x460ff4
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ae1ed
call fcn.004a9438
push ecx
push ecx
and dword [ebp - 0x10], 0
push ebx
push esi
and dword [ebp - 4], 0
call fcn.0046aa09
lea esi, [ebp - 0x14]
call fcn.0046aaf1
mov eax, dword [eax]
push 1
push eax
push SysReAllocString
lea esi, [ebp - 0x10]
call fcn.00406094
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405bc5
test bl, bl
jne 0x46108e
mov eax, dword [0x4dc00c]
mov ecx, 0x4dc00c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x4bacd4
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.0040617c
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x461086
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461086
mov eax, dword [ebp + 8]
mov dword [eax + 0x968], 1
lea eax, [esi - 0x10]
call fcn.00405bc5
cmp dword [ebp - 0x10], 0
je 0x46109d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4