joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12b6f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x12b6ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x12b7035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.012b6e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x12b6fc5
mov edi, 0x12d18b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x12b7035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.012b6e00
add edi, 4
add esp, 0xc
cmp edi, 0x12d18c0
jb 0x12b7000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x12b7070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.012bd082
mov esi, eax
add esp, 8
test esi, esi
je 0x12b7107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x12b7102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.012bc946
add esp, 8
test eax, eax
je 0x12b70e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x12b70e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.012bc946
add esp, 8
test eax, eax
jne 0x12b70c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x12b7102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x12b7f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x12cc9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x12b8002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.012bbdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x12b8002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.012b36e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.012bc20b
push 0x10
call fcn.012bc1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x12b7fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.012a81c0
jmp 0x12b7fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.012b7b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x12b7ff0
mov ecx, edi
call fcn.012a82c0
push edi
call fcn.012bc1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x12b8021
inc ebx
cmp ebx, 0x20
jb 0x12b7f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x12b9250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x12cd808
push 0x12bd288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x12b9329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x12b9329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.012bc1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x12b9329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x12b9329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x12b932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.012b9351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x12b9d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12b9d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x12b9d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x12b9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12b9d94
push eax
push esi
call fcn.012bc20b
add esp, 8
pop esi
ret 0x10

Function at 0x12b9da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x12b9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x12b9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x12d2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.012bbdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x12b9dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x12b9e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x12b9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x12b9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x12d2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.012bbdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x12b9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x12b9e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x12ba000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x12ba131
push esi
call fcn.012bd145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.012ac080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x12ba131
push 0
push ebp
call fcn.012ac3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.012ac260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x12ba08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.012ac2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x12ba121
push 0x12d2918
push edi
call fcn.012bb3f0
push eax
push ebx
push esi
call fcn.012b9f60
push 0x12d28f8
push edi
call fcn.012bb3f0
push eax
push ebx
push esi
call fcn.012b9f60
push 0x12d28d8
push edi
call fcn.012bb3f0
push eax
push ebx
push esi
call fcn.012b9f60
push 0x12d28c0
push edi
call fcn.012bb3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.012b9f60
push 0x12d28a0
push edi
call fcn.012bb3f0
push eax
push ebx
push esi
call fcn.012b9f60
push 0x12d2888
push edi
call fcn.012bb3f0
push eax
push ebx
push esi
call fcn.012b9f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x12bb1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.012bb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.012bb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.012bb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.012bb140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x12bbbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x12bbc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x12cd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12bbc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x12bbc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401047
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.00404228
pop ecx
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [eax - 1]
neg edi
sbb edi, edi
neg edi
test esi, esi
je 0x401076
push dword [esp + 0xc]
call fcn.00401ece
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4019a8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x427eb4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4019d5
push edi
mov edi, dword [esp + 0xc]
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4276c0]
inc edi
sub esi, 1
jne 0x4019bc
pop edi
mov dword [0x427eb4], edx
pop esi
ret
Function at 0x402ec9
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x105
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402eec
cmp byte [esi], 0
je 0x402eec
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402f3a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
push str..wzcloudOpenWithProgids
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402f7d
xor eax, eax
jmp 0x4030ee
push esi
push edi
xor esi, esi
mov dword [ebp - 0x78], 0x104
push 0x208
lea eax, [ebp + 0x3a0]
mov edi, esi
push esi
push eax
call fcn.00403817
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x3a0]
push eax
push esi
jmp 0x4030cb
inc edi
cmp dword [ebp - 0x78], 4
jle 0x4030bb
push 4
lea eax, [ebp + 0x3a0]
push str.AppX
push eax
call fcn.0040c11b
add esp, 0xc
test eax, eax
jne 0x4030bb
push 0x208
lea eax, [ebp + 0x198]
push esi
push eax
call fcn.00403817
push 0x208
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00403817
lea eax, [ebp + 0x3a0]
mov dword [ebp - 0x74], 0x208
push eax
push str._sApplication
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
add esp, 0x28
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push 2
push str.AppUserModelID
lea eax, [ebp + 0x198]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4030bb
push str.WinZipComputing.
call fcn.0040bd22
push eax
lea eax, [ebp - 0x70]
push str.WinZipComputing.
push eax
call fcn.0040c11b
add esp, 0x10
test eax, eax
jne 0x4030bb
lea eax, [ebp + 0x3a0]
push eax
push str._sShellopen
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
mov eax, dword [ebp + 0x5b8]
add esp, 0x10
add eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push esi
push 2
push str.PackageRelativeExecutable
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4030de
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x3a0]
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402fb4
jmp 0x4030e1
xor esi, esi
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.004088ba
add ebp, 0x5ac
leave
ret
Function at 0x403103
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c300
pop ecx
cmp eax, 8
jae 0x4031cc
push esi
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push esi
push esi
push esi
push esi
push 0x20
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4031c5
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.004037ca
add esp, 0xc
test eax, eax
jne 0x4031c5
mov al, byte [ebp - 0x2c]
lea edx, [ebp - 0x2c]
test al, al
je 0x4031c5
mov cl, al
cmp al, 0x2e
je 0x403184
cmp al, 0x20
je 0x403184
inc edx
mov al, byte [edx]
mov cl, al
test al, al
jne 0x403171
test cl, cl
je 0x4031c5
cmp cl, 0x30
jb 0x403192
cmp cl, 0x39
jbe 0x403197
inc edx
mov cl, byte [edx]
jmp 0x403188
push edi
movzx edi, cl
imul esi, esi, 0xa
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x4031b2
inc edx
add esi, 0xffffffd0
add esi, edi
mov cl, byte [edx]
test cl, cl
jne 0x403198
mov ax, si
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004088ba
leave
ret 4
mov eax, 0xffff
jmp 0x4031b6
push 0x41f
push str.sfxhead.c
call fcn.00404587
int3

Function at 0x4039c7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
push edi
push 8
add esi, esi
pop edi
mov ecx, edx
sar esi, 1
shr ecx, 1
mov eax, edx
xor eax, esi
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
dec edi
test edi, edi
jg 0x4039d4
pop edi
mov eax, edx
pop esi
ret 4
Function at 0x404286
Capabilities:
Create process on windows
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
sub esp, 0xa40
mov eax, dword [0x4241a4]
xor eax, esp
mov dword [esp + 0xa3c], eax
push ebx
push ebp
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x404456
mov ebx, 0x105
mov ebp, 0x427480
push ebx
push ebp
call fcn.00405d54
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x230]
push ebx
push eax
call fcn.0040bbf5
add esp, 0x18
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x10]
mov edi, 0x209
push eax
lea eax, [esp + 0x430]
mov dword [esp + 0x14], edi
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x40437e
lea eax, [esp + 0x840]
push 0x104
push eax
call fcn.00402f3a
pop ecx
pop ecx
test eax, eax
je 0x404456
push 0xffffffffffffffff
push str.WinZipUWPHelper.exe
lea eax, [esp + 0x434]
push edi
push eax
call fcn.0040bbf5
push 0x20a
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00403817
push ebp
lea eax, [esp + 0x860]
push eax
push str.RunExe20083F0D_D8B0_49E2_B454_D6DA05DFFB81_s20083F0D_D8B0_49E2_B454_D6DA05DFFB81__s_
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push eax
push edi
push ebp
call fcn.0040bbf5
add esp, 0x40
jmp 0x4043ff
xor esi, esi
lea edi, [esp + 0x42c]
mov ebx, esi
cmp word [esp + 0x42c], bx
je 0x4043b0
push 4
push str.___1
push edi
call fcn.0040c11b
add esp, 0xc
test eax, eax
je 0x4043b0
add edi, 2
inc ebx
cmp word [edi], si
jne 0x404393
add ebx, ebx
cmp ebx, 0x412
jae 0x404495
xor eax, eax
push 0x20a
mov word [esp + ebx + 0x430], ax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00403817
push ebp
push str.__s_
mov edi, 0x105
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push edi
push ebp
call fcn.0040bbf5
add esp, 0x2c
mov eax, dword [0x424048]
test eax, 0x1000
je 0x404434
test eax, 0x8000
jne 0x404434
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x7a
pop ecx
push 0x69
lea eax, [eax*2 + 0x427478]
mov word [eax], cx
pop ecx
push 0x70
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 1
lea eax, [esp + 0x224]
push eax
push ebp
lea eax, [esp + 0x438]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
setne al
jmp 0x40447c
push 0
push 0x7d0
call fcn.00403845
push eax
push 0x40e
call fcn.00403845
push eax
push dword [0x427468]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0xa4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004088ba
add esp, 0xa40
ret
call fcn.004087e0
int3
Function at 0x404587
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x118], eax
mov eax, dword [0x424e5c]
mov ecx, eax
mov edx, dword [ebp + 0x124]
inc eax
mov dword [0x424e5c], eax
push esi
test ecx, ecx
jne 0x404695
push dword [ebp + 0x128]
push edx
push 0x7d4
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427468]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404695
push 0x41c5ac
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040c294
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c300
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403c47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WZSFX32.RPT
push 0x7d1
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427468]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4046e3
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xfe8
mov eax, dword [0x4241a4]
xor eax, esp
mov dword [esp + 0xfe4], eax
push ebx
mov ebx, dword [esp + 0xff0]
lea eax, [esp + 0xa20]
push ebp
mov ebp, dword [esp + 0xffc]
push esi
mov esi, dword [esp + 0xffc]
push edi
push ebx
push 0x2e3
push eax
call fcn.0040bac6
xor edi, edi
add esp, 0xc
cmp word [esi], di
je 0x40475a
push 0x41c308
lea eax, [esp + 0xa30]
push 0x2e3
push eax
call fcn.0040bac6
push esi
lea eax, [esp + 0xa3c]
push 0x2e3
push eax
call fcn.0040ba51
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4047b2
push 0x10
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403817
push 0x44
pop edi
push edi
xor ecx, ecx
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.00403817
add esp, 0x18
mov dword [esp + 0x20], edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0xa4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4047b2
mov eax, dword [esp + 0x10]
jmp 0x4048ea
lea eax, [esp + 0x464]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableW]
mov edi, eax
cmp edi, 0x1f
jne 0x404829
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x427
call fcn.00403845
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
push eax
push edi
push edi
call esi
push ebx
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x46c]
push 0x2e3
push eax
call fcn.004046ba
add esp, 0x10
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
push eax
push edi
push edi
call esi
push 0x10
jmp 0x4048cc
cmp edi, 0x20
jbe 0x40486f
xor eax, eax
xor ecx, ecx
cmp word [esi], cx
push 1
cmovne eax, esi
push ecx
push eax
mov eax, dword [0x424048]
and eax, 0x20000
neg eax
push ebx
sbb eax, eax
and eax, 0x41c30c
push eax
push dword [0x427468]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
test ebp, ebp
je 0x404866
mov dword [ebp], edi
cmp edi, 0x20
jbe 0x40486f
mov eax, edi
jmp 0x4048ea
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x400
call fcn.00403845
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
xor eax, eax
push eax
push eax
call esi
push ebx
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x470]
push 0x2e3
push eax
call fcn.004046ba
add esp, 0x14
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
push eax
xor ebx, ebx
push ebx
push ebx
call esi
push ebx
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x46c]
push eax
push dword [0x427468]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xff4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004088ba
add esp, 0xfe8
ret