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

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x1c]
push edi
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push 0xf003f
push edi
push 0x1001f48
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1029098
lea eax, [ebp + 8]
push esi
push eax
mov esi, dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
mov dword [ebp + 8], esi
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102908e
push dword [ebp + 0x18]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
dec esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 0x18

Function at 0x102909d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov esi, 0x1001f48
cmp ebx, edi
jbe 0x10290be
push esi
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 4]
mov dword [ebp + 0x14], edi
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0x20019
push edi
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102910d
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 0x10]
push dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1029104
push 1
pop edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1029116
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0x20019
push esi
push 0x1001f48
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102917b
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1029172
cmp dword [ebp + 0x14], 4
jne 0x1029172
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1029182
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push 0x1001f48
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10291e0
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10291d7
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x10291e7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp + 8]
push esi
push ecx
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push eax
push 0xf003f
push eax
push 0x1001f48
push eax
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1029234
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x102922b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x102be60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008280
push 0x102c170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
or ebx, 0xffffffff
mov dword [0x103ac60], ebx
mov dword [0x103ac64], ebx
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x103ab48]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x103ab44]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x103ac5c], ecx
call fcn.0102c160
mov eax, dword [0x103a4e0]
test eax, eax
jne 0x102beec
push 0x102c150
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.0102c130
push 0x1039030
push 0x103902c
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x103ab40]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x103ab3c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x14
push 0x1039028
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [edx]
test esi, esi
jne 0x102bf5e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x74], esi
cmp word [esi], 0x22
jne 0x102c037
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x102bf7f
cmp ax, 0x22
jne 0x102bf6b
cmp word [esi], 0x22
jne 0x102bf8b
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x102bfa1
cmp ax, 0x20
ja 0x102bfa1
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x102bf8b
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x30], 1
je 0x102bfc2
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x102bfc7
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x20
jbe 0x102bf8b
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x102c037

Function at 0x102c1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1008658
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102c1f8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1008694
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102c1eb
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x102c1fa
xor eax, eax
pop esi
leave
ret 4
Function at 0x102de2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 1
xor ebp, ebp
pop ebx
mov dword [esp + 0x10], ebp
push 2
mov dword [esp + 0x18], ebp
push dword [esp + 0x28]
mov dword [esp + 0x20], ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebp
mov edi, 0x10087ac
mov esi, 0x1008774
jne 0x102de6c
push 0x2ca
jmp 0x102de80
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x102de87
push 0x2cd
push edi
push esi
push 3
push ebp
jmp 0x102ded0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x102de9b
push 0x2d0
jmp 0x102deca
push 0
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x102deb2
push 0x2d3
jmp 0x102deca
lea eax, [esp + 0x24]
push eax
push ebp
call sym.Dialer.exe__CreateDIBPalette_8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x102dedc
push 0x2d6
push edi
push esi
push 3
push 0
call sym.Dialer.exe_TracePrintf
add esp, 0x14
xor ebx, ebx
jmp 0x102df37
push 0
push eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp eax, 0xffffffff
jne 0x102deff
push 0x2dc
jmp 0x102df28
mov eax, dword [esp + 0x24]
push 0
push ebp
lea eax, [ebp + eax*4]
add eax, dword [ebp]
push eax
push 4
push ebp
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x102df37
push 0x2e3
push edi
push esi
xor ebx, ebx
push 3
push ebx
call sym.Dialer.exe_TracePrintf
add esp, 0x14
cmp dword [esp + 0x10], 0
je 0x102df4a
push dword [esp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebp, dword [esp + 0x28]
test ebx, ebx
je 0x102df56
test ebp, ebp
jne 0x102df7f
cmp dword [esp + 0x14], 0
je 0x102df7f
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x102df7f
push 0x2f7
push edi
push esi
xor ebx, ebx
push 3
push ebx
call sym.Dialer.exe_TracePrintf
add esp, 0x14
test ebx, ebx
je 0x102df8e
test ebp, ebp
je 0x102df8e
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, ebx
pop edi
neg eax
sbb eax, eax
pop esi
and eax, dword [esp + 0x10]
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x102e2d6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, 0x100
xor eax, eax
xor esi, esi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], 1
jne 0x102e2fc
cmp dword [ebp + 0xc], eax
jne 0x102e304
mov dword [ebp - 4], eax
jmp 0x102e458
cmp dword [0x103ab68], eax
jle 0x102e31a
mov esi, dword [0x103ab64]
cmp esi, eax
jne 0x102e458
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x102e33b
and dword [ebp - 4], eax
jmp 0x102e458
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 8], eax
call fcn.0102e745
push eax
push 0
mov edi, 0x10088d4
push 0x10088c8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [esi + 0x18], 0xffffffff
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
call fcn.0102e745
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x1001f48
push 0x10088b4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
cmp word [ebp - 0x20c], di
je 0x102e41a
lea eax, [ebp - 0x20c]
push 0x10088a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x102e3eb
mov dword [esi + 0x10], 8
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov word [ebp + 0xc], 0x50
mov word [ebp + 0xe], 0x3e8
push dword [ebp + 0xc]
mov dword [esi + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
jmp 0x102e439
push 3
lea eax, [ebp - 0x20c]
push 0x100889c
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x102e423
push 4
push dword [ebp - 0x206]
call dword [sym.imp.MSVCRT.dll_iswctype]
pop ecx
test eax, eax
pop ecx
je 0x102e423
mov dword [esi + 0x10], 1
jmp 0x102e439
lea eax, [ebp - 0x20c]
push eax
push 0x1008860
call fcn.0102e717
pop ecx
mov dword [ebp - 4], edi
pop ecx
cmp dword [ebp - 4], edi
je 0x102e458
push 0x800
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x102e458
mov dword [ebp - 4], edi
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x102e472
push esi
call fcn.0102e700
push eax
call sym.Dialer.exe__TraceTerm_4
xor esi, esi
cmp dword [ebp - 4], edi
je 0x102e494
inc dword [0x103ab68]
cmp dword [0x103ab68], 1
jne 0x102e487
mov dword [0x103ab64], esi
cmp dword [ebp - 4], edi
je 0x102e494
push esi
call fcn.0102e700
jmp 0x102e496
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102e5cc
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 1
push dword [ebp + 8]
call fcn.0102e697
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x102e5f1
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
jne 0x102e5f6
mov dword [ebp - 4], edi
jmp 0x102e639
mov eax, dword [ebp + 0xc]
cmp eax, edi
jle 0x102e639
cmp eax, dword [esi + 0xc]
jg 0x102e639
mov eax, dword [esi + 0x10]
sub eax, edi
je 0x102e639
dec eax
je 0x102e632
dec eax
je 0x102e632
sub eax, 6
jne 0x102e639
cmp dword [esi + 0x14], edi
je 0x102e639
lea eax, [ebp + 8]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x102e639
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
setne al
dec eax
pop ebx
leave
ret 0xc
Function at 0x4016bb
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push esi
mov esi, 0x4074e8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4016e4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4016e4
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
xor eax, eax
inc eax
pop esi
ret

Function at 0x401731
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x4b4
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], ecx
push edi
inc esi
xor eax, eax
cmp esi, 1
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 2
pop eax
push 0x17
pop edx
cmove eax, edx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40181d
lea ecx, [esp + 0x14]
call fcn.004015c6
mov edx, str.7_Zip_
lea ecx, [esp + 0x14]
call fcn.004010ac
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [esp + 0x14]
xor ebx, ebx
xor edi, edi
lea ebp, [ebp + eax*2]
mov eax, str.7_Zip_Help.lnk
test edi, edi
mov edx, str.7_Zip_File_Manager.lnk
mov ecx, ebp
cmovne edx, eax
call fcn.004010c5
push 0x4074e8
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, str.7_zip.chm
lea ecx, [esp + 0x26c]
test edi, edi
mov edx, 0x405770
cmovne edx, eax
call fcn.004010ac
lea edx, [esp + 0x26c]
lea ecx, [esp + 0x14]
call fcn.004010d8
test eax, eax
jne 0x401802
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, 2
jb 0x40179c
test ebx, ebx
je 0x40181d
xor eax, eax
mov word [ebp], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, 3
jb 0x401742
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b4
ret
Function at 0x401836
Capabilities:
Delete registry key
Delete registry value
Get installed programs

Disassembly:
sub esp, 0x450
lea eax, [esp + 4]
mov edx, str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32
push ebx
push ebp
push esi
push edi
push eax
mov edi, 0x80000000
push 0
mov ecx, edi
call fcn.0040154a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [edi + 2]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40193f
mov edx, 0x4074e8
lea ecx, [esp + 0x14]
call fcn.00401498
test eax, eax
je 0x40193f
push 0x4074e8
call ebp
lea ecx, [esp + 0x14]
mov edx, str.7_zip.dll
lea ecx, [ecx + eax*2]
call fcn.00401052
test eax, eax
je 0x40193f
push str.CLSID23170F69_40C1_278A_1000_000100020000InprocServer32
push edi
call ebx
test eax, eax
jne 0x4018b9
push str.CLSID23170F69_40C1_278A_1000_000100020000
push edi
call ebx
xor esi, esi
mov edx, dword [esi + 0x4051bc]
lea edi, [esp + 0x258]
mov cl, byte [edx]
inc edx
movzx eax, cl
mov word [edi], ax
lea edi, [edi + 2]
test cl, cl
jne 0x4018c8
mov edx, 0x40579c
lea ecx, [esp + 0x258]
call fcn.004010ac
lea eax, [esp + 0x258]
push eax
push 0x80000000
call ebx
add esi, 4
cmp esi, 0x14
jb 0x4018bb
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40193f
push str.23170F69_40C1_278A_1000_000100020000
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe
push eax
push 0
mov ecx, esi
call fcn.0040154a
test eax, eax
je 0x40198a
mov edi, 0x4074e8
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.00401498
test eax, eax
je 0x40198a
push edi
call ebp
lea ecx, [esp + 0x14]
mov edx, str.7zFM.exe
lea ecx, [ecx + eax*2]
call fcn.00401052
test eax, eax
je 0x40198a
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths7zFM.exe
push esi
call ebx
lea eax, [esp + 0x14]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip
push eax
push str.UninstallString
mov ecx, esi
call fcn.0040154a
test eax, eax
je 0x401a11
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
je 0x4019dd
push 0x22
pop ecx
cmp word [esp + 0x14], cx
jne 0x4019dd
cmp word [esp + eax*2 + 0x12], cx
jne 0x4019dd
test eax, eax
je 0x4019d6
mov ecx, eax
lea esi, [esp + 0x16]
lea edi, [esp + 0x14]
rep movsw word es:[edi], word [esi]
mov esi, 0x80000002
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
mov edi, 0x4074e8
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.00401498
test eax, eax
je 0x401a11
push edi
call ebp
lea ecx, [esp + 0x14]
mov edx, 0x405320
lea ecx, [ecx + eax*2]
call fcn.00401052
test eax, eax
je 0x401a11
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall7_Zip
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
Function at 0x402763
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027a2
cmp dword [ecx + 0x74], 0xe
jbe 0x4027a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x402f90
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00402ec0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x50001
jae 0x402fba
add eax, 0x74
ret
cmp edx, 0x60000
jae 0x402fc6
add eax, 0x78
ret
add eax, 0x88
ret

Function at 0x402fd0
Capabilities:
Get process heap force flags

Disassembly:
call fcn.00402ec0
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60000
jae 0x402ffa
add eax, 0x7c
ret
add eax, 0x8c
ret

Function at 0x4033b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004033e0
mov esi, dword [ebp + 8]
test al, al
je 0x4033ce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004033f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40357c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40357c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40357c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40357c
cmp dword [ecx + 0x74], 0xe
jbe 0x40357c
cmp dword [ecx + 0xe8], 0
je 0x40357c
push dword [ebp + 8]
call fcn.004033f0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x409250
call fcn.004031c0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4035b1
push dword [ebp + 8]
call fcn.004033b0
mov esp, ebp
pop ebp
ret

Function at 0x4035f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40364c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40364c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40364c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40364c
cmp dword [ecx + 0x74], 0xe
jbe 0x40364c
cmp dword [ecx + 0xe8], 0
je 0x40364c
push dword [ebp + 8]
call fcn.004033f0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x409250
call fcn.004031c0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x403681
push dword [ebp + 8]
call fcn.004033b0
mov esp, ebp
pop ebp
ret
Function at 0x403830
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x40385a
mov eax, 2
pop ebp
ret
push esi
call fcn.00402ec0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x40387a
jmp dword [eax*4 + 0x4038b0]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00403ec0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x403ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x403f17
mov ecx, 5
int 0x29
push 2
call fcn.00402807
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x404022
test esi, esi
jne 0x404022
push 2
call fcn.00402807
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402bee
mov esp, ebp
pop ebp
ret

Function at 0x4043d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4043fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4043fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret