joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402445
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x46adf8
call fcn.00443747
mov edi, ecx
mov ecx, 0x485f6c
lea esi, [ebp - 0x14]
call fcn.00402b4a
and dword [ebp - 4], 0
push dword [edi]
mov dword [ebp - 0x10], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4024d7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [edi]
lea eax, [ebp - 0x14]
push str._s.bak
push eax
call fcn.00402e53
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi]
add esp, 0xc
push 3
push ebx
push eax
call esi
test eax, eax
jne 0x4024da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 3
push ebx
push eax
call esi
test eax, eax
je 0x4024da
mov edi, dword [edi]
push 5
push edi
push ebx
call esi
test eax, eax
je 0x40250f
mov dword [ebp - 0x10], 3
jmp 0x40250f
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0xc]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push eax
call esi
test eax, eax
je 0x4024f3
mov dword [ebp - 0x10], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40250f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40250f
push 6
push eax
push ebx
call esi
lea eax, [ebx - 0x10]
call fcn.004031f6
mov eax, dword [ebp - 0x10]
call fcn.0044381f
ret

Function at 0x402fb1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402fc8
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402ffd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402ff9
cmp edi, eax
jae 0x402ffd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402feb
cmp edi, eax
jb 0x403001
xor eax, eax
jmp 0x40300a
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40341b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x40349c
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x403493
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403493
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40348c
push ebx
call fcn.0043e70c
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40348c
push ebx
push dword [ebp + 8]
push eax
call fcn.0043e250
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x4034d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x474fcc
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034d0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.0043e5b5
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4034e2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push ebx
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x48], ebx
call fcn.0043e1d0
push esi
push 0
push edi
mov dword [ebp - 0x44], esi
call fcn.0043e1d0
add esp, 0x18
push edi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 4], 5
jne 0x403545
call fcn.00403360
test eax, eax
je 0x403545
and dword [ebx + 4], 0
jmp 0x4035f4
lea eax, [ebp - 0x44]
push eax
call fcn.0040332f
mov ebx, dword [edi + 4]
mov eax, dword [ebp - 0x40]
imul ebx, ebx, 0xa
add ebx, dword [edi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jle 0x403578
push esi
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.0043e250
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd8], ax
lea eax, [ebp + 0xda]
push eax
call fcn.0043e1d0
add esp, 0xc
lea esi, [ebp + 0xd8]
call fcn.004033a0
test eax, eax
jl 0x4035ed
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call fcn.0040341b
test eax, eax
je 0x4035ed
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov esi, ecx
imul esi, esi, 0xa
xor eax, eax
add esi, edx
inc eax
cmp ebx, esi
jge 0x4035e4
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 8], edx
mov dword [ecx + 4], eax
jmp 0x4035f7
mov ecx, dword [ebp - 0x48]
and dword [ecx + 4], 0
jmp 0x4035f7
mov eax, dword [ebp - 0x48]
and dword [eax + 4], 0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4e8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b155
add ebp, 0x4ec
leave
ret

Function at 0x403996
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
push edi
push str.SysPager
mov ebx, eax
push edi
push ebx
call esi
push edi
push str.ToolbarWindow32
push edi
cmp eax, edi
je 0x4039d7
push eax
jmp 0x4039d8
push ebx
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x403a2b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
xor ebx, ebx
inc ebx
cmp esi, ebx
jle 0x403a2b
cdq
sub eax, edx
mov dword [ebp - 8], eax
sar dword [ebp - 8], 1
movzx eax, word [ebp - 8]
movzx ecx, bx
shl eax, 0x10
or eax, ecx
push eax
push edi
push 0x200
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
inc ebx
cmp ebx, esi
jl 0x403a0a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a9d
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
mov bl, al
push esi
movzx esi, bl
neg esi
sbb esi, esi
xor eax, eax
and esi, 5
test bl, bl
setne al
push edi
mov edi, ecx
dec eax
and eax, 5
mov dword [esp + 0x10], eax
xor eax, eax
test bl, bl
sete al
mov dword [esp + 0xc], eax
test bl, bl
jne 0x403add
xor eax, eax
cmp dword [edi + 0x48c], eax
setne al
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [edi + 0x6b8]
call ebp
push esi
push dword [edi + 0x6c0]
call ebp
mov eax, dword [esp + 0x10]
call fcn.00404e12
mov esi, dword [esp + 0x14]
push esi
push dword [edi + 0x7f0]
call ebp
push esi
push dword [edi + 0x86c]
call ebp
test bl, bl
sete bl
push ebx
push edi
call fcn.00403b59
push esi
push dword [edi + 0x8e8]
call ebp
push 0
push 0
push 0xf0
push dword [edi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
test eax, eax
jne 0x403b53
mov eax, edi
pop edi
pop esi
mov cl, bl
pop ebx
add esp, 8
jmp fcn.0040682d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret

Function at 0x403c91
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push 0xc8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x73c]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0x738
call fcn.00410151
pop esi
ret

Function at 0x403d24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x403d3f
push dword [ebp + 8]
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and dword [esi + 0x9e8], 0
push 0
push 0xffffffffffffffec
push dword [esi + 0x9c8]
mov dword [ebp - 0x10], 0x1e
mov dword [ebp - 0xc], 0x140
mov dword [ebp - 8], 0x17c
mov dword [ebp - 4], 0x14e
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 0xe
push 0x15e
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0x9c8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
leave
ret 4

Function at 0x404106
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 0xd44]
push eax
xor eax, eax
push eax
push esi
push 0x404099
push eax
push eax
call fcn.0043eaf5
add esp, 0x18
mov dword [esi + 0xd48], eax
ret
Function at 0x4044da
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x7e4], ebx
je 0x404545
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0043e1d0
add esp, 0xc
call fcn.00411758
push str.360DrvMgr.exe
push dword [eax + 0x20]
lea eax, [ebp - 0x210]
push 0x475124
push 0x103
push eax
call fcn.0043f423
add esp, 0x14
call fcn.004179ef
call fcn.00411758
mov ecx, dword [eax + 0x20]
call fcn.00417dcf
call fcn.00403996
cmp dword [edi + 0x5c], ebx
je 0x404583
lea esi, [edi + 0x60]
xor eax, eax
cmp ax, word [esi]
je 0x404583
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404583
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x404583
push esi
call fcn.0041684f
pop ecx
push ebx
call fcn.0040464e
push ebx
push ebx
push 0x1409
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b155
leave
ret
Function at 0x404efc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x475144
lea eax, [ebp - 0x424]
push eax
call fcn.00402ad3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0043e1d0
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043e1d0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x18
mov ebx, 0x3f7
push ebx
push dword [esi + 4]
call edi
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x20
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.0043e1d0
mov eax, dword [esi + 4]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], eax
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 0x438], 0x1041
mov dword [ebp - 0x434], 0x404e6e
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x405054
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x428]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp word [ebp - 0x210], bx
je 0x405054
push ebx
push ebx
push 0xf0
push dword [esi + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
cmp eax, 1
jne 0x405042
push eax
push dword [esi + 0x7f0]
call edi
push 1
jmp 0x40504c
push ebx
push dword [esi + 0x7f0]
call edi
push ebx
push dword [esi + 0x86c]
call edi
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004031f6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b155
leave
ret
Function at 0x4054f6
Capabilities:
Print debug messages

Disassembly:
push 0x154
mov eax, 0x46a2fa
call fcn.004437b0
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
xor edi, edi
lea eax, [ebp - 0xda]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x130], esi
call fcn.0043e1d0
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [esi + 4]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x134], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x134]
lea eax, [ebp - 0xdc]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
push str.__d__d_:__d__d__r_n
push eax
call fcn.0040323a
add esp, 0x18
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x11c]
push ecx
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x124], eax
lea edx, [ebp - 0x140]
mov ecx, eax
lea ebx, [ebp - 0x160]
mov dword [ebp - 4], edi
call fcn.00407b4f
mov byte [ebp - 4], 2
push dword [ebp - 0x124]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
cmp dword [esi + 0x48c], ebx
je 0x4055f5
call fcn.0040e726
mov esi, eax
call fcn.0040eb20
jmp 0x405601
call fcn.0040e726
mov esi, eax
call fcn.0040eb3c
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov ecx, 0x18f
push ecx
mov esi, eax
mov eax, 0x26a
push eax
push ebx
push ebx
push dword [ebp - 0x12c]
push ecx
push eax
push ebx
push ebx
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [ebp - 0x130]
cmp dword [eax + 0xd58], ebx
je 0x4056be
call fcn.0040e726
mov esi, eax
call fcn.0040ec11
push eax
push dword [ebp - 0x12c]
call edi
mov byte [ebp - 0x128], bl
mov byte [ebp - 0x127], bl
mov byte [ebp - 0x126], 0xff
mov byte [ebp - 0x125], 1
push dword [ebp - 0x128]
mov esi, eax
push 0x24
push 0x78
push ebx
push ebx
push dword [ebp - 0x12c]
push 0x24
push 0x78
push 0x145
push 7
push dword [ebp - 0x160]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
push dword [ebp - 0x12c]
call edi
lea esi, [ebp - 0x12c]
call fcn.00407bb4
mov eax, dword [ebp - 0x130]
xor esi, esi
inc esi
lea edi, [ebp - 0x160]
mov dword [eax + 0x58], esi
call fcn.00407a85
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, esi
call fcn.00443833
ret
Function at 0x40619e
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push edi
push 6
call fcn.004080e9
pop ecx
push eax
mov ebp, 0x3e8
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x409
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x407
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push ebp
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
call fcn.004045a8
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x408340
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x4755f0
push esi
push 0x475600
push 0x488520
mov dword [0x487d3c], eax
call fcn.00402e53
add esp, 0xc
xor ebx, ebx
test byte [0x48b720], 1
jne 0x4083c2
mov eax, dword [0x488520]
or dword [0x48b720], 1
push eax
push 1
push ebx
mov edi, eax
mov byte [0x48a4c8], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x48a4cc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4083b7
push edi
call fcn.0040821a
push 0x46c308
call fcn.0043e06b
pop ecx
cmp byte [0x48a4c8], bl
je 0x4083d2
push 3
pop eax
jmp 0x40846c
push esi
push 0x475610
push 0x488524
call fcn.00402e53
add esp, 0xc
call fcn.00418262
test al, al
jne 0x40840e
cmp dword [0x487d40], ebx
jne 0x40840a
push 0x30
push dword [0x488520]
push 0x475630
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 7
jmp 0x4083cc
call fcn.0041b739
call fcn.00418ca8
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0043e1d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408460
push 0xe
pop ebx
mov edi, 0x488190
lea esi, [ebp - 0x210]
call fcn.0041df9a
mov dword [0x4881b4], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b155
leave
ret

Function at 0x409f95
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x409fa3
push 0xd
pop eax
jmp 0x409fd6
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409faa
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409ffb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40a4d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x21c], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040a499
mov ebx, eax
cmp ebx, esi
je 0x40a540
lea esi, [ebp - 0x214]
call fcn.0040a5f9
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b155
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a55e
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a4d7
cmp eax, esi
jne 0x40a5a5
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x40a548
lea esi, [ebp - 0x214]
call fcn.0040a5f9
push dword [ebp - 0x21c]
mov esi, edi
call fcn.0040a61c
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040a5f9
mov eax, edi
jmp 0x40a52f

Function at 0x40a61c
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x489384], 0
jne 0x40a64c
push 0x4756f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a645
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x489388], eax
mov byte [0x489384], 1
mov eax, dword [0x489388]
test eax, eax
je 0x40a664
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40a670
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x40b4a1
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0
mov eax, 0x46b027
call fcn.00443747
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor edi, edi
push ebx
cmp dword [esi + 0xc], edi
je 0x40b569
push str.360zipExt.dll
call fcn.0043f739
pop ecx
pop ecx
test eax, eax
je 0x40b55f
push ebx
push str.MenuMgr.exe
call fcn.0043f739
pop ecx
pop ecx
test eax, eax
je 0x40b55f
cmp dword [esi + 0x10], edi
jne 0x40b4fa
push ebx
push str.msvcp60.dll
call fcn.0043f739
pop ecx
pop ecx
test eax, eax
je 0x40b55f
lea eax, [ebp + 8]
push ebx
lea ecx, [esi + 8]
push eax
call fcn.0040bc02
pop ecx
pop ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b554
lea eax, [ebp + 0x14]
push ebx
lea ecx, [esi + 4]
push eax
call fcn.0040bc02
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], edi
je 0x40b573
push 0x476048
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40b549
mov ebx, dword [ebp + 0x14]
call fcn.0041e235
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.0044381f
ret 0x14
push str.360zipExt64.dll
jmp 0x40b4d9
mov ebx, dword [ebp + 0x14]
call fcn.0041e235
push dword [esi + 0x14]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x14]
call fcn.00402445
pop ecx
pop ecx
push 3
pop ecx
cmp eax, ecx
jne 0x40b59b
mov dword [0x48818c], ecx
jmp 0x40b549
cmp eax, 2
jne 0x40b549
cmp dword [0x487d40], edi
jne 0x40b5e9
mov ecx, 0x485f6c
lea esi, [ebp + 0x18]
call fcn.00402b4a
mov byte [ebp - 4], 2
push dword [ebp + 0x14]
mov eax, esi
push 0x476050
push eax
call fcn.00402e53
mov esi, dword [ebp + 0x18]
add esp, 0xc
push 0x10000
push 0x476084
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004031f6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b5f2
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
add esi, 8
mov eax, esi
call fcn.0040b382
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b620
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40b620
mov ecx, dword [esi]
call fcn.00416bd5
xor eax, eax
pop esi
ret 8

Function at 0x40b659
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
push 0
push edi
call fcn.0043e1d0
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b6aa
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b6a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop esi
pop ebp
ret 0xc