joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402980
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4233a0]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jg 0x4029cd
mov eax, dword [0x4233b0]
add eax, 0x208
push eax
push 0x104
push dword [esi + 0x1c]
push 0x41e848
push str.pageurl
push str.HomePage
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402a1f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0
push str.Start_Page
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
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]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x41ea04
push eax
call edi
mov esi, dword [0x4233a0]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402ab0
push 0x41e9e8
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi + 0x18]
lea eax, [ebp - 0x20c]
push eax
call edi
push str._Data_
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, dword [0x4233a0]
mov edx, dword [esi]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x210], eax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ae0
sub ecx, dword [ebp - 0x210]
sar ecx, 1
jne 0x402b12
push 0
push 0x24
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x41edbc
push dword [esi]
call edi
mov edx, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edx
call esi
push 0
call fcn.00403c70
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
test eax, eax
jne 0x402b45
lea ecx, [ebp - 0x20c]
call fcn.00406540
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
Function at 0x403100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push ecx
push 0x403060
push 0
push 0
mov dword [ecx], 0x403710
call fcn.0040d294
mov esi, eax
add esp, 0x18
mov eax, 0x403710
test eax, eax
jne 0x40317b
test esi, esi
je 0x40317b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40317b
cmp dword [ebp - 8], 0
jne 0x40317b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4

Function at 0x403480
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [0x42339c]
mov esi, ecx
push 0
push dword [esi + 4]
lea eax, [esi + 0x10]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x41e848
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x4034c5
pop esi
pop ebp
ret 4
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [0x42339c]
push 0
push dword [esi]
push 0x14
push 0x1f7
push 0x3a
push 0
push 0x50000010
push 0x41e848
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, esi
call fcn.00403350
mov ecx, esi
call fcn.00403280
mov ecx, esi
call fcn.00403410
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4037f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x403841
mov edx, dword [eax + 0x1b4]
mov ecx, dword [eax + 0x1b8]
mov ebx, dword [eax + 0x1bc]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], ecx
test edx, edx
je 0x40382f
push 0
push edx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x403838
push 0
push ecx
call edi
test ebx, ebx
je 0x403841
push 0
push ebx
call edi
mov eax, dword [esi]
test eax, eax
jne 0x403884
mov ecx, esi
call fcn.00403530
push 5
mov ecx, esi
call fcn.00403480
test eax, eax
je 0x40387b
push 0x403790
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x403790
push 0
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c70
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4233a0]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x403d4b
push edi
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call edi
cmp dword [ebp - 0x114], 5
jne 0x403ce1
cmp dword [ebp - 0x110], 1
jne 0x403ce1
push 0x41ed74
jmp 0x403d12
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call edi
cmp dword [ebp - 0x114], 6
jne 0x403d0d
cmp dword [ebp - 0x110], 1
jne 0x403d0d
push 0x41ed8c
jmp 0x403d12
push 0x41eda8
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x403d38
push 0x41e9e8
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi + 0x14]
push dword [esi + 4]
call edi
push 0x41ea04
push dword [esi + 4]
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.0040d13e
mov esp, ebp
pop ebp
ret

Function at 0x403d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x4233a0]
push edi
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d73
sub ecx, edi
sar ecx, 1
je 0x403d8c
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x24
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x41edbc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41ef4c
mov esi, eax
push 0x12e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x404043
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404042
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40403b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.0040d219
push esi
mov ebx, eax
push edi
push ebx
call fcn.00412590
add esp, 0x10
mov byte [ebx + esi], 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test ebx, ebx
je 0x40403b
push ebx
call fcn.0040d28f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4040b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [0x42339c]
mov esi, ecx
push 0
push dword [esi + 4]
lea eax, [esi + 8]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x41e848
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x4040f5
pop esi
pop ebp
ret 4
push 0
push dword [0x42339c]
push 0
push eax
push 0x14
push 0x1f7
push 0x3a
push 0
push 0x50000010
push 0x41e848
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, esi
call fcn.00403e90
mov ecx, esi
call fcn.00403f50
mov ecx, esi
call fcn.00404050
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4048d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x4c], ebx
call fcn.00404830
push 0
push dword [0x42339c]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
lea eax, [ebx + 0xcc]
push 0
push 0
push 0x185
push 0x1f7
push 0
push 0
push 0xca0000
push eax
lea eax, [ebx + 4]
push eax
push 0
call esi
mov dword [ebx], eax
test eax, eax
jne 0x40493a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
push 1
push dword [0x423398]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0xffffffffffffffeb
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [0x42339c]
push 0
push dword [ebx]
push 0x14
push 0x1f7
push 0x13a
push 0
push 0x50000010
push 0x41e848
push str.Static
push 4
call esi
mov ecx, ebx
call fcn.004046b0
mov ecx, dword [ebx + 0x194]
mov eax, dword [ebx]
cmp dword [ecx], 0
mov dword [ecx + 4], eax
jne 0x40499f
call fcn.00406e90
mov ecx, dword [ebx + 0x198]
mov eax, dword [ebx]
cmp dword [ecx], 0
mov dword [ecx + 4], eax
jne 0x4049b4
call fcn.00404360
mov esi, dword [ebx + 0x1a4]
mov eax, dword [ebx]
cmp dword [esi], 0
mov dword [esi + 4], eax
jne 0x404a15
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00411080
mov eax, dword [0x42339c]
add esp, 0xc
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0x401300
push 5
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x28], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
mov ecx, esi
call fcn.004011e0
mov ecx, dword [ebx + 0x1ac]
mov eax, dword [ebx]
cmp dword [ecx], 0
mov dword [ecx + 4], eax
jne 0x404a2a
call fcn.004038b0
mov ecx, dword [ebx + 0x1b0]
mov eax, dword [ebx]
cmp dword [ecx], 0
mov dword [ecx + 4], eax
jne 0x404a3f
call fcn.00401e50
mov ecx, dword [ebx + 0x194]
call fcn.00406dd0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x4c]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
sub edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edi
cdq
sub ebx, ecx
sub eax, edx
mov esi, eax
mov eax, ebx
mov ebx, dword [ebp - 0x4c]
push 0x40
push ecx
push dword [ebp - 0x10]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
push eax
push esi
push 0
push dword [ebx]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
Function at 0x404ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x421280]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c0]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
cmp eax, 1
jne 0x404b6f
mov eax, dword [edi + 0x194]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax]
call ebx
mov esi, dword [edi + 0x198]
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x404b4a
mov edi, dword [eax + 0x1b4]
test edi, edi
je 0x404b4a
push 0x41ef6c
push dword [eax + 0x1b8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push edi
call ebx
mov eax, dword [esi]
test eax, eax
jne 0x404b65
mov ecx, esi
call fcn.00404160
push 5
mov ecx, esi
call fcn.004040b0
jmp 0x404cde
push 5
push eax
call ebx
jmp 0x404cde
cmp eax, 2
jne 0x404b94
mov eax, dword [edi + 0x198]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1a4]
call fcn.00401480
jmp 0x404cde
cmp eax, 3
jne 0x404bb9
mov eax, dword [edi + 0x1a4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1ac]
call fcn.004037f0
jmp 0x404cde
cmp eax, 4
jne 0x404bde
mov eax, dword [edi + 0x1ac]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1b0]
call fcn.00401dc0
jmp 0x404cde
cmp eax, 5
jne 0x404cde
push 0xc
call fcn.0040d219
add esp, 4
test eax, eax
je 0x404c19
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
jmp 0x404c1b
xor eax, eax
mov dword [0x4233a8], eax
mov eax, dword [0x4233a0]
push 0x206
mov ebx, dword [eax + 0xb4]
xor eax, eax
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00411080
add esp, 0xc
call fcn.00403d60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [esp + 0x14]
push eax
call esi
call fcn.00403dc0
push eax
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [edi + 0x1b0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x404c98
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
je 0x404c98
mov eax, dword [0x4233a0]
cmp dword [eax + 0x28], 0
je 0x404c98
call fcn.00402980
mov eax, dword [edi + 0x1b0]
mov eax, dword [eax + 8]
test eax, eax
je 0x404cc3
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
je 0x404cc3
sub esp, 8
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00404ed0
test ebx, ebx
jle 0x404cd6
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00402e70
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x21c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret
Function at 0x404d00
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x1c0], 0
push edi
lea edi, [esi + 0x1c0]
jle 0x404d1b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [edi]
test eax, eax
jne 0x404d44
push eax
mov eax, dword [esi + 0x198]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x194]
call fcn.00406dd0
mov eax, 1
pop edi
pop esi
pop ecx
ret
cmp eax, 1
jne 0x404d64
mov eax, dword [esi + 0x1a4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x198]
call fcn.004042f0
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404ed0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x404fa7
cmp dword [ebp - 0x110], 1
jne 0x404fa7
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call ebx
test eax, eax
jne 0x404f5f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._f:y
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
inc edi
mov esi, eax
cmp edi, 0x3e8
jl 0x404f35
push esi
call ebx
test eax, eax
je 0x404f92
push 0x80
push 0
push 0
push 0xfffff448
push 0xfffff448
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405390
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x421280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411080
add esp, 0xc
call fcn.00403c70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x405424
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x41ea04
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x41f070
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41a340
push 1
push 0
push 0x41a350
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4054fc
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x218]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x41e848
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41a360
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4054fc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4054e7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x40550f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x40551f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405540
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
mov eax, dword [0x421280]
xor eax, esp
mov dword [esp + 0x718], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
push 0
push 2
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x405592
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405579
lea eax, [esp + 0x14]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405630
lea eax, [esp + 0x248]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x405626
mov eax, dword [esp + 0x248]
push 0
push 0
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x254]
push 0
mov dword [esp + 0x264], eax
lea eax, [esp + 0x25c]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x268], ebx
mov dword [esp + 0x274], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2b4
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00411080
add esp, 0xc
lea eax, [esp + 0x260]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4056b9
push dword [esp + 0x20]
push eax
push 0x1fffff
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 [esp + 0x10]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405630
mov ecx, dword [esp + 0x724]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d13e
mov esp, ebp
pop ebp
ret 4

Function at 0x4056f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x4056fb
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x405702
sub edi, ecx
inc edi
push edi
call fcn.0040d4c1
push edi
mov esi, eax
push 0
push esi
call fcn.00411080
push ebx
push edi
push esi
call fcn.0040d58b
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x40573a
mov edi, edi
xor byte [esi], 0x22
inc eax
inc esi
cmp byte [esi], 0
jne 0x405730
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret