joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b9
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0xac], eax
push esi
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWAREGoogleNo_Toolbar_Offer_Until
push 0x80000002
mov dword [ebp - 0x5c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022fe
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 4
pop ebx
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
push esi
jmp 0x402254
cmp dword [ebp - 0x60], ebx
jne 0x40222f
inc dword [ebp - 0x64]
jmp 0x40223c
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x6c], 0x104
mov dword [ebp - 0x60], ebx
call edi
test eax, eax
je 0x402225
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx esi, word [ebp - 0x80]
movzx eax, word [ebp - 0x7e]
imul esi, esi, 0x64
add esi, eax
movzx eax, word [ebp - 0x7a]
imul esi, esi, 0x64
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x60]
push ecx
add esi, eax
xor eax, eax
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x64], eax
push eax
jmp 0x4022ea
cmp dword [ebp - 0x60], ebx
jne 0x4022b3
cmp dword [ebp - 0x70], esi
jbe 0x4022b3
inc dword [ebp - 0x64]
jmp 0x4022c0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x6c], 0x104
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x5c]
call edi
test eax, eax
je 0x4022a4
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.00409ede
add ebp, 0xb0
leave
ret
Function at 0x402314
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x2098]
mov eax, 0x2118
call fcn.0040aae0
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x2094], eax
mov eax, dword [ebp + 0x20a0]
push ebx
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x7c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
je 0x402442
mov edi, 0x2000
cmp eax, edi
ja 0x402442
push edi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0x7c]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402442
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push str.VarFileInfoTranslation
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402442
cmp dword [ebp - 0x70], 4
jne 0x402442
push 4
push dword [ebp - 0x74]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], ebx
call fcn.0040b9f0
mov eax, dword [ebp - 0x78]
mov edx, eax
shr edx, 0x10
mov ecx, 0xff
and edx, ecx
push edx
mov edx, eax
shr edx, 0x18
push edx
movzx edx, al
shr eax, 8
push edx
and eax, ecx
push eax
push str.StringFileInfo_02X_02X_02X_02XCompanyName
inc ecx
lea edi, [ebp + 0x1f94]
call fcn.00401e96
add esp, 0x20
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, edi
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402442
cmp dword [ebp - 0x70], ebx
jbe 0x402442
mov eax, 0x104
cmp dword [ebp - 0x70], eax
jae 0x402442
push eax
push ebx
push dword [ebp - 0x80]
call fcn.00409ef0
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
add esp, 0xc
call fcn.00401e50
mov al, 1
jmp 0x402444
xor al, al
mov ecx, dword [ebp + 0x2094]
pop edi
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x2098
leave
ret
Function at 0x40245b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push ebx
push 0x104
lea eax, [ebp - 0x60]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402494
mov al, 1
jmp 0x402557
push esi
lea eax, [ebp + 0xa8]
push eax
lea esi, [ebp - 0x60]
call fcn.00402314
pop ecx
pop esi
test al, al
je 0x40248d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREGoogleNo_Toolbar_Offer_Until
push 0x80000002
mov byte [ebp - 0x61], 1
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402554
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4024f6
mov byte [ebp - 0x61], bl
jmp 0x40254b
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
add word [ebp - 0x76], 6
cmp word [ebp - 0x76], 0xc
jbe 0x402519
mov eax, 0xfff4
add word [ebp - 0x76], ax
inc word [ebp - 0x78]
movzx eax, word [ebp - 0x78]
movzx ecx, word [ebp - 0x76]
imul eax, eax, 0x64
add eax, ecx
movzx ecx, word [ebp - 0x72]
imul eax, eax, 0x64
add eax, ecx
push 4
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 4
push ebx
lea eax, [ebp + 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x61]
mov ecx, dword [ebp + 0x1ac]
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x1b0
leave
ret
Function at 0x40256d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa4
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
test eax, eax
jne 0x40259c
mov dword [ebp - 0x2c], 0x80000001
push 0x42267c
push str.CLSID2318C2B1_4965_11d4_9B18_009027A5CD4FInprocServer32
push 0x80000000
call fcn.00401ee3
add esp, 0xc
cmp byte [eax], bl
je 0x4025ba
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4025dd
cmp dword [ebp - 0x24], 5
ja 0x4025e0
jne 0x4025dd
cmp dword [ebp - 0x20], 1
jae 0x4025e0
or ebx, 0x20
push dword [ebp - 0x2c]
call fcn.0040205f
pop ecx
test al, al
jne 0x4025f0
or ebx, 4
push esi
push edi
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call fcn.00401ee3
mov edi, eax
add esp, 0xc
lea esi, [ebp - 0x30]
mov dword [ebp - 0x30], edi
call fcn.00401f69
cmp eax, 6
jg 0x402631
jl 0x40262e
mov edi, dword [ebp - 0x30]
call fcn.00401f69
test eax, eax
setge al
test al, al
jne 0x402631
or ebx, 0x10
push str.Enable_Browser_Extensions
push str.SoftwareMicrosoftInternet_ExplorerMain
push dword [ebp - 0x2c]
call fcn.00401ee3
add esp, 0xc
push 0x4227f0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop edi
pop esi
test eax, eax
jne 0x40265b
or ebx, 8
call fcn.004020d8
test al, al
jne 0x402667
or ebx, 2
call fcn.004021b9
test ebx, ebx
jne 0x40267c
call fcn.0040245b
test al, al
jne 0x40267c
push 0x40
pop ebx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402685
mov dword [eax], ebx
mov ecx, dword [ebp + 0x6c]
xor eax, eax
test ebx, ebx
sete al
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x70
leave
ret 8

Function at 0x402b75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x402b99
xor eax, eax
jmp 0x402bce
push dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.00402afe
add esp, 0xc
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402bcb
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x402c13
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b0]
push ebx
mov ebx, dword [ebp + 0x7b8]
push esi
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7b4]
push 0x23
mov dword [ebp - 0x80], eax
mov esi, 0x30d
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00402b75
mov edi, 0x41c674
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040a47e
push 0x41c664
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040a47e
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040a47e
push str.WZPRODINFO.DAT
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040a47e
lea eax, [ebp - 0x78]
push eax
call fcn.00402bd1
add esp, 0x40
test al, al
je 0x402d4d
xor eax, eax
mov edi, 0xfe
push edi
push eax
mov word [ebp + 0x6a4], ax
lea eax, [ebp + 0x6a6]
push eax
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea esi, [edi - 0x7e]
push esi
lea eax, [ebp + 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
jne 0x402ce6
xor al, al
jmp 0x402db7
xor eax, eax
push edi
push eax
mov word [ebp + 0x5a4], ax
lea eax, [ebp + 0x5a6]
push eax
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp + 0x5a4]
push eax
push 0x41c660
push dword [ebp - 0x80]
lea eax, [ebp + 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402cdf
and dword [ebp - 0x7c], 0
push 0xffffffffffffffff
lea eax, [ebp + 0x5a4]
push eax
push dword [ebp + 0x7bc]
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040a45e
add esp, 0x14
neg eax
sbb al, al
inc al
jmp 0x402db7
push dword [ebp - 0x80]
mov byte [ebx], 0
push str.ProductID
call fcn.0040a0a4
pop ecx
pop ecx
test eax, eax
jne 0x402d6b
push ebx
push 0x9bdd
jmp 0x402d9f
push dword [ebp - 0x80]
push 0x41c644
call fcn.0040a0a4
pop ecx
pop ecx
test eax, eax
jne 0x402d86
push ebx
push 0x9be0
jmp 0x402d9f
push dword [ebp - 0x80]
push 0x41c624
call fcn.0040a0a4
pop ecx
pop ecx
test eax, eax
jne 0x402db0
push ebx
push 0x9bde
push dword [ebp - 0x7c]
mov eax, dword [ebp + 0x7bc]
call fcn.00402a82
add esp, 0xc
xor eax, eax
cmp byte [ebx], al
setne al
mov ecx, dword [ebp + 0x7a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x7a8
leave
ret
Function at 0x4030fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1ac]
push ebx
mov ebx, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403146
xor eax, eax
jmp 0x4031e9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x42267c
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x208
call esi
test eax, eax
jne 0x4031dd
cmp dword [ebp - 0x7c], 1
jne 0x4031dd
mov eax, dword [ebp + 0x1a8]
cmp dword [ebp - 0x74], eax
jae 0x4031dd
lea ecx, [ebp - 0x70]
push ecx
push eax
push ebx
call fcn.00402889
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x208
call esi
push dword [ebp - 0x78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4031e6
cmp dword [ebp - 0x7c], 1
jne 0x4031e6
mov eax, dword [ebp + 0x1b0]
cmp dword [ebp - 0x74], eax
jae 0x4031e6
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [ebp - 0x80]
call fcn.00402889
xor eax, eax
inc eax
jmp 0x4031e8
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x19c
leave
ret

Function at 0x40332d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x403342
mov dword [edi], ebx
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
jle 0x40337d
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x40336e
test edi, edi
je 0x403363
mov dword [edi], eax
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403393
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x40334d
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x403398
test edi, edi
je 0x403393
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x40339a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403454
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x40347b
xor eax, eax
pop edi
pop ebx
leave
ret
push edi
call fcn.0040aa0a
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x403475
push eax
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4034a3
push dword [ebp - 4]
call fcn.0040a92d
pop ecx
jmp 0x403475
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41c5c0
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4034c9
push dword [ebp - 4]
call fcn.0040a92d
pop ecx
mov eax, ebx
jmp 0x403477
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
xor ebx, ebx
mov dword [esi + 4], eax
inc ebx
jmp 0x4034bc

Function at 0x4034dc
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
mov edi, 0x2001f
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x4035b0
cmp dword [ebp - 8], ebx
je 0x4035b0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403573
cmp dword [ebp - 4], ebx
je 0x403573
push 2
push 0x41c614
push 1
push ebx
mov esi, str.X13D5SY3FG7WZ
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403569
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x403569
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
call edi
mov dword [ebp - 4], ebx
jmp 0x4035ab
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4035ab
cmp dword [ebp - 4], ebx
je 0x4035ab
push dword [ebp - 4]
call edi
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4035ab
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x74], eax
test ebx, ebx
je 0x403b7f
and dword [ebx], 0
and dword [ebx + 4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x104
push edi
lea eax, [ebp + 0x29c]
push eax
push 0x43b
push dword [0x426798]
mov dword [ebp - 0x7c], 0x20019
mov byte [ebp - 0x69], 0
call esi
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x198]
push eax
push 0x43c
push dword [0x426798]
call esi
cmp dword [ebp - 0x78], 0
jbe 0x403a86
test eax, eax
jbe 0x403a86
cmp dword [ebp - 0x78], eax
jne 0x403a86
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x29c]
push eax
call fcn.0040a8db
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 0x69], al
call fcn.00403611
test al, al
je 0x403a9c
cmp byte [ebp - 0x69], 0
jne 0x403a9c
mov dword [ebp - 0x7c], 0x20119
call fcn.00403611
test al, al
push edi
lea eax, [ebp + 0x4a4]
push eax
je 0x403ac5
push 0x441
push dword [0x426798]
call esi
test eax, eax
jne 0x403ae8
push str.WINZIP64.EXE
jmp 0x403adb
push 0x440
push dword [0x426798]
call esi
test eax, eax
jne 0x403ae8
push str.WINZIP32.EXE
push edi
lea eax, [ebp + 0x4a4]
push eax
call fcn.00402889
lea eax, [ebp + 0x4a4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x41c92c
lea eax, [ebp - 0x68]
push 0x200
push eax
call fcn.00402923
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b7d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x3a0]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x70]
test eax, eax
je 0x403b4e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403b7d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], esi
je 0x403b6e
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp + 0x5b8]
push dword [ebp - 0x74]
call fcn.00402889
lea eax, [ebp + 0x3a0]
push eax
mov esi, ebx
call fcn.00403454
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.00409ede
add ebp, 0x5ac
leave
ret
Function at 0x403b94
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8]
sub esp, 0x178
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0xf4], eax
mov eax, dword [ebp + 0x100]
mov dword [ebp - 0x7c], eax
test ebx, ebx
je 0x403ccc
and dword [ebx], 0
and dword [ebx + 4], 0
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x78]
push eax
push str.SOFTWAREClassesWinZipCourier.RegFileDefaultIcon
mov esi, 0x80000002
push esi
call edi
test eax, eax
je 0x403c08
lea eax, [ebp - 0x78]
push eax
push str.SOFTWAREClassesWinZipCompanion.RegFileDefaultIcon
push esi
call edi
test eax, eax
je 0x403c08
lea eax, [ebp - 0x78]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathswzoutlok.dll
push esi
call edi
test eax, eax
jne 0x403cca
mov eax, 0x168
push eax
mov dword [ebp - 0x80], eax
xor esi, esi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00409ef0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x78]
test eax, eax
je 0x403c44
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403cca
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x74], 0
je 0x403cca
lea eax, [ebp - 0x74]
push eax
call fcn.00409f90
mov edi, eax
lea eax, [ebp - 0x74]
dec eax
add edi, eax
lea eax, [ebp - 0x74]
pop ecx
cmp edi, eax
jbe 0x403c94
movzx eax, byte [edi]
push eax
call fcn.0040a63a
pop ecx
test eax, eax
je 0x403c8d
mov byte [edi], 0
dec edi
lea eax, [ebp - 0x74]
cmp edi, eax
ja 0x403c69
jmp 0x403c8d
cmp byte [edi], 0x2c
jne 0x403c94
mov byte [edi], 0
dec edi
lea eax, [ebp - 0x74]
cmp edi, eax
ja 0x403c84
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403cca
test al, 0x10
jne 0x403cca
cmp dword [ebp - 0x7c], esi
je 0x403cbe
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x104]
push dword [ebp - 0x7c]
call fcn.00402889
lea eax, [ebp - 0x74]
push eax
mov esi, ebx
call fcn.00403454
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0xf4]
xor ecx, ebp
call fcn.00409ede
add ebp, 0xf8
leave
ret
Function at 0x403e17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push edi
push dword [0x426664]
call esi
push 0x3c
pop edi
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00409ef0
mov dword [ebp - 0x44], edi
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x40], 0x440
cmp edi, ebx
je 0x403e57
mov dword [edi], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], str.wzglinst32.exe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], str.runas
cmp dword [0x4268dc], ebx
jne 0x403e7a
mov dword [ebp - 0x38], str.open
push str.WinZip32_SETUP_COURIERRUNNING
push ebx
push 1
push ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x403eb6
push 0x30
push 0x3fd
call fcn.00408f47
pop ecx
push eax
push 0x437
call fcn.00408f47
pop ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403f17
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403f09
push dword [ebp - 0xc]
call fcn.00403df3
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403ef7
cmp edi, ebx
je 0x403ef7
mov eax, dword [ebp - 8]
and eax, 0xffffff
mov dword [edi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call esi
mov al, 1
jmp 0x403f19
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a82
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push edi
push dword [0x426664]
call esi
xor edi, edi
mov ebx, eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], str.runas
cmp dword [0x4268dc], edi
jne 0x405ac7
mov dword [ebp - 0x34], str.open
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x405b13
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x405b38
push ebx
call esi
push 0x30
push 0x3fd
call fcn.00408f47
pop ecx
push eax
push dword [ebp + 0x10]
call fcn.00408f47
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret