joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afd0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [esi], 0x1b58
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.mshtml.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
xor edi, edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x210], eax
test eax, eax
je 0x40b0cf
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40b0cf
push ebx
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x218]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b0bd
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], edi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], edi
push eax
push 0x42b930
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b0bd
cmp dword [ebp - 0x214], edi
je 0x40b0bd
mov eax, dword [ebp - 0x210]
movzx edi, word [eax + 0xa]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xb
jne 0x40b0e8
mov dword [esi], 0x2af8
pop edi
mov dword [esi], 0x1b58
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xa
jne 0x40b106
pop edi
mov dword [esi], 0x2710
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
cmp edi, 9
jne 0x40b124
pop edi
mov dword [esi], 0x2328
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
cmp edi, 8
jne 0x40b142
pop edi
mov dword [esi], 0x1f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
cmp edi, 7
je 0x40b0cf
cmp edi, 6
jne 0x40b0cf
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi], 0x1770
xor ecx, ebp
pop esi
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4

Function at 0x40b200
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x425460
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x425468
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a55
mov esp, ebp
pop ebp
ret
Function at 0x40b280
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
push 0
push 2
mov dword [ebp - 0x704], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
jne 0x40b2c8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x6fc]
mov dword [ebp - 0x6fc], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b2b3
lea eax, [ebp - 0x700]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b370
lea eax, [ebp - 0x70c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40b35b
mov eax, dword [ebp - 0x70c]
push 0
push 0
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x708]
push 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x700]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x700]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b370
push 0x2b4
lea eax, [ebp - 0x4d0]
push 0
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6d8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b3fd
push dword [ebp - 0x6f4]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x704]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x6fc]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b370
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
Function at 0x40b430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b4a1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40b46f
cmp eax, 2
jne 0x40b48b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40b49b
test ecx, ecx
je 0x40b496
test cl, 1
jne 0x40b48b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40b49b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40b4b0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00414430
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x425458
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b567
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 8
push esi
push 0x577302
mov dword [section..ndata], 0xafbc7a37
mov dword [0x435004], 0x3001c27
call fcn.00413a9c
mov esi, eax
add esp, 4
test esi, esi
je 0x40b60b
push 0x577301
push section..ndata
push esi
call fcn.00413de0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
push 0x577301
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00413a64
add esp, 4
mov ecx, edi
call fcn.0040b200
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040b740
mov esi, eax
push edi
push esi
call fcn.004011b0
test esi, esi
je 0x40b5f3
push esi
call fcn.00413a64
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret 8
Function at 0x40b620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], 0x4253d0
push dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b6ab
cmp dword [ebp + 0x14], 0
je 0x40b691
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
xor al, al
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40c020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x40c09c
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40c055
push edi
mov ecx, esi
call fcn.0040c8f0
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x40c07d
mov ecx, dword [esi]
test ecx, ecx
je 0x40c081
push dword [ecx - 8]
push ecx
call fcn.0041467f
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x40c09c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40c09c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.0040bcc0
int3

Function at 0x40c0b0
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x430a10]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 0x10

Function at 0x40c370
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x430a18]
cmp dword [eax + 4], 0
jne 0x40c3aa
push 0xcd
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x430a18]
push 0
push eax
call fcn.0040bdb0
mov eax, dword [0x430a18]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop edi
ret 0x10
Function at 0x40ebf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x40ec60
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x40ec60
call fcn.0040d6e0
mov esi, eax
jmp 0x40ed19
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40ec83
call fcn.0040d6e0
jmp 0x40ed0c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40ec98
call fcn.0040d6e0
jmp 0x40ed0c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40ecb0
mov esi, 0x8007000e
jmp 0x40ed0e
push eax
lea ecx, [ebp - 0x408]
call fcn.0040d4c0
cmp dword [ebp - 0x408], 0
jne 0x40eccc
mov esi, 0x8007000e
jmp 0x40ed0e
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40ecec
call fcn.0040d6e0
jmp 0x40ed0c
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.0040ea90
mov esi, eax
test edi, edi
je 0x40ed19
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40ed32
lea ecx, [ebp - 0x408]
call fcn.0040db00
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40f4d9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f4e5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40f4e0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40f535
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40f540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f540
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4106e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push ecx
push 0x410d40
push 0
push 0
mov dword [ecx], esi
call fcn.00414dfb
add esp, 0x18
mov edi, eax
test esi, esi
jne 0x41073b
test edi, edi
je 0x41073b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41073b
cmp dword [ebp + 8], esi
jne 0x41073b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x410750
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x430a28]
push 1
push dword [ecx + 8]
push dword [ecx + 4]
mov ecx, dword [0x430a24]
call fcn.004124d0
mov ecx, dword [0x430a28]
push eax
push esi
call fcn.0040a420
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00414430
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00414430
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.tu8II_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
push str.zxppluginSkins_
push eax
call esi
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00414430
mov ecx, dword [0x430a24]
add esp, 0xc
call fcn.004124d0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.pluginSkins_
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [0x430a28]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a150
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a55
mov esp, ebp
pop ebp
ret
Function at 0x410990
Capabilities:
Create directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x430a24]
push edi
mov edi, ecx
cmp dword [eax + 0x1c], 0
je 0x410bbf
push ebx
push esi
push 0
push 0
push 0x2001f
push 0
push 0
push 0x425484
push 0x80000002
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0
call fcn.00407b90
mov ecx, dword [0x430a24]
call fcn.00412700
mov ebx, dword [ebp - 0x628]
mov edx, eax
test edx, edx
je 0x410a3b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a13
sub ecx, esi
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push edx
push 1
push 0
push str.StartMenuPath
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x430a24]
push 0
call fcn.00412700
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x430a28]
push 0x425b3c
push dword [edi + 8]
call fcn.0040b720
push dword [edi + 4]
mov ecx, dword [0x430a28]
call fcn.0040b6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00414430
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.00414430
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
mov ecx, dword [0x430a24]
add esp, 0x24
call fcn.004124d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
mov ecx, dword [0x430a24]
call fcn.004125c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [0x430a24]
call fcn.004126a0
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [0x430a28]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4253d0
push 0x4253d0
lea eax, [ebp - 0x414]
push eax
call fcn.0040aaa0
mov ecx, dword [0x430a24]
call fcn.004124d0
push eax
lea eax, [ebp - 0x61c]
push eax
call edi
push str.Uninstall.exe
lea eax, [ebp - 0x61c]
push eax
call esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x425b6c
push eax
call edi
mov ecx, dword [0x430a24]
call fcn.004126a0
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [0x430a28]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4253d0
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.0040aaa0
test ebx, ebx
je 0x410bbd
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00413a55
mov esp, ebp
pop ebp
ret
Function at 0x410c40
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x23
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x42b930
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.tu8_Data_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [edi + 8]
mov ecx, dword [0x430a24]
push dword [edi + 4]
call fcn.004124d0
mov ecx, dword [0x430a28]
push eax
call fcn.0040ac60
push dword [edi + 8]
mov ecx, dword [0x430a24]
push dword [edi + 4]
call fcn.00412700
mov ecx, dword [0x430a28]
push eax
call fcn.0040ac60
push dword [edi + 8]
mov ecx, dword [0x430a28]
lea eax, [ebp - 0x20c]
push dword [edi + 4]
push eax
call fcn.0040ac60
mov ecx, dword [0x430a24]
push 0
call fcn.004124d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x430a28]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a950
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00413a55
mov esp, ebp
pop ebp
ret

Function at 0x411000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x430a24]
push esi
mov esi, ecx
cmp dword [eax + 0x18], 0
je 0x41113f
mov ecx, dword [0x430a28]
push 0x425b88
push dword [esi + 8]
call fcn.0040b720
push dword [esi + 4]
mov ecx, dword [0x430a28]
call fcn.0040b6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x425a18
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x430a24]
call fcn.004124d0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [0x430a24]
call fcn.004125c0
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x425a1c
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0
push 0x2001f
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call fcn.00407b90
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411100
mov esi, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x425bf4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x41113f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a55
mov esp, ebp
pop ebp
ret