joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462335
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4a8547
call fcn.004a55b8
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.0048ae50
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x4d7074]
mov edi, 0x4d7074
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.00405abd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x4623c2
push 0x80070057
call fcn.00405aa5
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x4bc484
lea eax, [ebp - 0x18]
push eax
call fcn.00405e21
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0040c01b
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x4bc490
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x4624cf
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.0048ae50
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x4d7074]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004482ae
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040682f
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405981
mov eax, dword [ebx + 0x96c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040682f
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0x528]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.0046226d
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405981
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405981
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x462855
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4aa168
call fcn.004a55b8
sub esp, 0xc
push esi
push edi
call fcn.00469941
lea esi, [ebp - 0x10]
call fcn.0046a04d
xor esi, esi
lea edi, [ebx + 0x550]
mov dword [ebp - 4], esi
call fcn.00404ed0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405981
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x4628d4
push esi
push 0x26
push 0x104
mov esi, edi
call fcn.00405abd
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4628be
push eax
call fcn.0048b77a
pop ecx
mov edx, edi
call fcn.00405a79
test esi, esi
jne 0x4628d4
push 0x4bc594
push edi
call fcn.00405e21
mov ecx, edi
call fcn.0040a27f
push 0x4b6494
push edi
call fcn.0040621d
mov eax, dword [ebx + 0x96c]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.0040682f
call fcn.00445ad1
push eax
call fcn.00446ad1
test al, al
je 0x462930
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.00445ad1
pop ecx
push eax
mov ecx, edi
call fcn.00446e9b
mov dword [ebp - 4], 1
call fcn.00404ed0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405981
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x46293e
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x560], 0
cmp dword [esp + 8], 0x61
je 0x462956
cmp dword [esp + 8], 0x41
jne 0x46298a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x46298a
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0x528
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4

Function at 0x46298e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4a745d
call fcn.004a55b8
push ecx
mov eax, dword [0x4d7074]
push esi
push edi
mov ecx, 0x4d7074
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.00405abd
push 0x104
push eax
push dword [ebx + 0x528]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4629dc
xor eax, eax
jmp 0x4629e3
push esi
call fcn.0048b77a
pop ecx
lea edx, [ebp - 0x10]
call fcn.00405a79
lea edi, [ebp - 0x10]
call fcn.0046226d
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.00405981
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x462ad1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a6e6c
call fcn.004a55b8
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4d7074
mov dword [ebp - 0x10], edi
call fcn.00405c49
push 0x208
lea eax, [ebp - 0x21a]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x21c], di
call fcn.0048ae50
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x462b5f
lea eax, [ebp - 0x21c]
push eax
call fcn.0048b77a
test eax, eax
pop ecx
je 0x462b5f
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00405e21
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x462e1e
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x4d808c]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x462e3b
mov edi, dword [eax + 4]
jmp 0x462e3d
xor edi, edi
cmp edi, esi
jne 0x462e4d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
cmp edi, esi
je 0x462e72
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x462e72
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x462e72
push esi
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push edi
mov ecx, ebx
mov dword [ebx + 0x438], esi
call fcn.00463459
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x462e9a
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x462fba
mov eax, dword [0x4d808c]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x462eb1
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, edi
call fcn.00441a68
cmp dword [ebx + 0x428], esi
je 0x462f56
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x462eff
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x462f37
push esi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x462f56
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x438], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x462f9b
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, esi
je 0x462f9b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x462f9b
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4d808c]
cmp eax, esi
je 0x462fab
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x465568
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a7529
call fcn.004a55b8
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov ebx, ecx
call fcn.00405c06
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00405c06
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00405c06
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0046569b
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00405981
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405981
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405981
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x465605
add eax, 0xfffffff0
call fcn.00405981
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov eax, dword [0x4d7074]
push edi
mov ecx, 0x4d7074
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.00408a5c
test eax, eax
jbe 0x46567a
lea eax, [ebp - 0x10]
lea edi, [ebp + 0x10]
call fcn.00404ed0
mov eax, edi
push eax
call fcn.00406097
pop ecx
mov eax, ebx
call fcn.00408a5c
cmp esi, eax
jb 0x46564c
call fcn.00489374
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x10]
call fcn.0040682f
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46567e
mov eax, ebx
inc esi
call fcn.00408a5c
cmp esi, eax
jb 0x465628
mov bl, 1
jmp 0x465680
xor bl, bl
lea eax, [edi - 0x10]
call fcn.00405981
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405981
mov al, bl
pop edi
jmp 0x4655f5
Function at 0x46730e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a6b9b
call fcn.004a55b8
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d20ac]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x467366
call fcn.004689ef
mov esi, eax
jmp 0x467467
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x467383
call fcn.004689ef
jmp 0x46745c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x467379
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x4673c9
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4673bf
lea eax, [ebp - 0x424]
call fcn.0046835e
mov eax, 0x8007000e
jmp 0x467482
push 2
push eax
mov byte [ebp - 4], 2
call fcn.004674b4
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x4673ed
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00467493
jmp 0x4673f9
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x467414
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x467425
mov esi, 0x8007000e
jmp 0x46745e
call dword [0x4d20ac]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x467379
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.004674d9
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x467480
lea eax, [ebp - 0x424]
call fcn.0046835e
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x468367
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46837a
push 0x80004005
call fcn.00405aa5
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 0x468381
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 0x468433
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4684fa
xor eax, eax
cmp dword [ebp - 8], esi
je 0x46847c
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x4684fa
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x4684d0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00468433
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x46850d
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], pe_nt_image_headers32
call edi
test eax, eax
je 0x4684a4
cmp dword [ebp - 8], esi
je 0x4684ea
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x468504
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x468517
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x468506
Function at 0x468a2c
Capabilities:
Delete file

Disassembly:
mov eax, 0x4a850b
call fcn.004a55b8
sub esp, 0x10
mov eax, dword [0x4d7074]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x4d7074
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00468ae9
mov ebx, eax
test ebx, ebx
jne 0x468a7d
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x468acd
push 0x28
call fcn.00417b1a
test eax, eax
pop ecx
je 0x468a91
push eax
call fcn.00427416
jmp 0x468a93
xor eax, eax
test eax, eax
mov esi, eax
je 0x468acd
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x468ac6
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00405981
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x468ada
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x468ae4
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x468aab

Function at 0x468bca
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.0048ae50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x468c72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x468c6b
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x468c6b
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x46b0cf
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4a74cb
call fcn.004a55b8
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.00447d27
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x46b100
add eax, 0xfffffff0
call fcn.00405981
jmp 0x46b20e
push esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.004062c8
cmp eax, 0xffffffff
jne 0x46b120
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405981
jmp 0x46b20d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
dec ecx
lea eax, [ebp - 0x10]
call fcn.00406382
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x18]
cmp dword [ebx - 0xc], 0
je 0x46b157
push str..exe
xor ecx, ecx
lea esi, [ebp - 0x18]
call fcn.00409625
cmp eax, 0xffffffff
jne 0x46b16f
lea eax, [ebx - 0x10]
call fcn.00405981
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405981
jmp 0x46b20c
mov ecx, eax
push edi
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004063d2
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
call fcn.00404ed0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405981
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405c06
push str..exe
xor ecx, ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00409625
cmp eax, 0xffffffff
je 0x46b1ed
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp + 8]
push eax
sub ecx, 5
mov eax, esi
call fcn.00406382
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.00404ed0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405981
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405981
lea eax, [ebx - 0x10]
call fcn.00405981
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405981
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x46b5e9
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
and dword [esp], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x2c]
push eax
mov dword [esp + 0x14], eax
call edi
mov ecx, esi
call sym.installer.exe_public:_bool___thiscall_kbase::kxThreadBase_class_kbase::Locker_::IsRunning_void_
test al, al
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x46b61c
or dword [esp + 0xc], 0xffffffff
jmp 0x46b68a
push ebp
push 8
call fcn.00417b1a
mov ebp, eax
xor eax, eax
cmp ebp, eax
pop ecx
jne 0x46b637
mov dword [esp + 0x10], 0xfffffffa
jmp 0x46b689
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
lea ecx, [esi + 0xc]
push ecx
push eax
push ebp
push sym.installer.exe_private:_static_unsigned_int___stdcall_kbase::kxThreadBase_class_kbase::Locker_::threadFun_void__
push eax
push eax
mov dword [ebp], esi
call fcn.0048e04f
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
je 0x46b67a
lea ebp, [esi + 0x14]
jmp 0x46b66c
call ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call edi
cmp byte [esi + 4], 0
push ebp
je 0x46b662
call ebx
jmp 0x46b689
push ebp
call fcn.00489384
pop ecx
mov dword [esp + 0x10], 0xfffffffe
pop ebp
push dword [esp + 0x10]
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x46b6fc
Capabilities:
Terminate thread

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x2c]
push ebp
call edi
lea ebx, [esi + 0x14]
push ebx
call edi
cmp byte [esi + 4], 0
jne 0x46b729
mov dword [esp + 0x10], 0xfffffffd
jmp 0x46b741
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46b7a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
je 0x46b7cd
call fcn.0048e04f
add esp, 0x18
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x46c267
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46c289
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x46c30a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
je 0x46c2d0
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x46c286
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x46c2ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46c2c0
push dword [ebp + 0x14]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x46c2e4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x46c2c2

Function at 0x46c326
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46c340
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x46c36f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46c392
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x46c36b
push esi
call ebx
xor esi, esi
jmp 0x46c366