joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b7a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x348
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7c]
push 5
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x78]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp + 0x7c], 0
lea eax, [ebp - 0x2d8]
push str._s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ce1
test byte [ebp - 0xd0], 0x10
je 0x406c18
cmp byte [ebp - 0xa4], 0x2e
je 0x406c18
cmp edi, 3
jg 0x406c18
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x1d4]
push 0x4283c0
push eax
call esi
lea eax, [ebp - 0x1d4]
push edi
push eax
call fcn.00406b7a
add esp, 0x18
test eax, eax
jne 0x406cf4
lea eax, [ebp - 0xa4]
push 0x42855c
push eax
call fcn.00420390
test eax, eax
pop ecx
pop ecx
je 0x406c32
mov byte [eax], 0
lea eax, [ebp - 0xa4]
push str..exe
push eax
call fcn.00412073
test eax, eax
pop ecx
pop ecx
jne 0x406cad
lea eax, [ebp - 0xa4]
push eax
call fcn.004132dd
test al, al
pop ecx
je 0x406cad
lea eax, [ebp - 0xa4]
push eax
call fcn.00406aa7
test al, al
pop ecx
je 0x406cad
lea eax, [ebp - 0xa4]
push eax
call fcn.00406a3f
test al, al
pop ecx
jne 0x406cad
mov eax, dword [0x454798]
mov cl, byte [ebp - 0xa4]
shl eax, 6
cmp cl, byte [eax + 0x451558]
jne 0x406ca0
mov cl, byte [ebp - 0xa3]
cmp cl, byte [eax + 0x451559]
je 0x406cad
lea eax, [ebp - 0xa4]
push eax
call fcn.00406a75
pop ecx
inc dword [ebp + 0x7c]
lea eax, [ebp - 0xd0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406ce1
cmp dword [0x454798], 0xc7
ja 0x406ce1
cmp dword [ebp + 0x7c], 0x1e
jl 0x406bd1
cmp edi, 1
je 0x406bd1
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret
xor esi, esi
inc esi
jmp 0x406ce3

Function at 0x406e34
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x80
push esi
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call edi
push ebx
push esi
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e7f
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call fcn.004123be
cmp byte [ebp + 0x14], bl
pop ecx
je 0x406eab
cmp byte [ebp + 0x14], 1
jne 0x406e9e
push 5
jmp 0x406ea6
cmp byte [ebp + 0x14], 2
jne 0x406eab
push 7
push dword [ebp + 0x10]
call edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x408040
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc0
push ebx
push esi
push edi
push 0x24
lea eax, [ebp + 0x40]
push 0
push eax
call fcn.00420090
mov esi, 0x9c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00420090
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40808f
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x94
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4080b7
lea ecx, [ebp + 0x40]
push ecx
call eax
jmp 0x4080c1
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetProductInfo
push ebx
call esi
push eax
call edi
cmp dword [ebp - 0x4c], 2
pop edi
pop esi
pop ebx
je 0x4080d9
xor al, al
jmp 0x40811b
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp + 0x70]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp + 0x6c]
mov dword [ecx], eax
mov al, 1
cmp byte [ebp + 0x3e], al
setne cl
mov byte [edx], cl
movzx ecx, word [ebp + 0x38]
mov edx, dword [ebp + 0x74]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0x7c]
and ecx, 0xffff
cmp word [ebp + 0x40], 0
mov dword [edx], ecx
mov edx, dword [ebp + 0x78]
sete cl
mov byte [edx], cl
add ebp, 0x64
leave
ret

Function at 0x40829f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ebx, ebx
push 0x7d0
mov byte [0x4549b8], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [0x4549c0], eax
push 0x32
lea eax, [ebp - 0x204]
push eax
push 0x42db20
mov byte [0x4549b8], 1
call fcn.00411df4
add esp, 0xc
push eax
push 0x4547b8
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
mov word [0x4547a8], 2
call fcn.004121ce
add esp, 0x10
push 0x50
mov dword [0x4547ac], eax
call dword [0x455bf0]
mov word [0x4547aa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
cmp esi, 1
mov dword [0x4549bc], eax
jl 0x408341
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x408231
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
dec esi
jne 0x40832b
pop esi
pop ebx
leave
ret

Function at 0x40852b
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call fcn.004123a9
test eax, eax
pop ecx
je 0x40858d
push edi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40858c
push esi
push 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x408584
push esi
push 0x40850b
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
ret
Function at 0x4085ff
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
inc ebx
cmp ebx, 1
lea eax, [ebp - 0x348]
jne 0x408639
push dword [ebp + 0x18]
push dword [ebp + 8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40864b
push dword [ebp + 8]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x40874c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x4086d0
cmp byte [ebp - 0x218], 0x2e
je 0x408734
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x4283c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
call fcn.004085ff
add esp, 0x24
test eax, eax
je 0x408734
cmp ebx, 3
jg 0x408734
xor esi, esi
inc esi
jmp 0x40874e
lea eax, [ebp - 0x218]
push str..exe
push eax
call fcn.00412073
test eax, eax
pop ecx
pop ecx
je 0x408734
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
push 0x4283c8
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.004123a9
test eax, eax
pop ecx
je 0x408734
lea eax, [ebp - 0x104]
push eax
call fcn.004085b9
cmp eax, dword [ebp + 0x10]
pop ecx
jge 0x40875e
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408677
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x14]
call esi
jmp 0x4086cb

Function at 0x40880d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x41
xor eax, eax
pop ecx
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040876f
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.0040852b
add esp, 0xc
pop edi
leave
ret
Function at 0x40885a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov esi, 0x4549d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jbe 0x4088db
push ebx
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x88]
push 0x26
push eax
call fcn.00412044
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4088da
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
push edi
push esi
call fcn.00420090
add esp, 0xc
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40b2d6
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
push 0x455f08
mov esi, 0x456010
push esi
call ebx
call fcn.00412015
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
and eax, 7
add eax, 6
push eax
push esi
call ebp
add eax, esi
push eax
call fcn.00411f79
push esi
call fcn.00412652
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4283c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, 0x456118
push edi
call ebx
call fcn.00412015
push 0xa
pop ecx
xor edx, edx
div ecx
add edx, 0xc
push edx
push edi
call ebp
add eax, edi
push eax
call fcn.00411f79
push edi
call fcn.00412652
add esp, 0xc
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4283c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40b36f
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0xc
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf
xor eax, eax
pop ecx
mov byte [ebp - 0x80], bl
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0xc], 0x32
mov dword [ebp - 8], 0x63
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x40]
push eax
mov esi, 0x455cb0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosw word es:[edi], ax
push 3
stosb byte es:[edi], al
lea eax, [ebp - 4]
push 0x455e00
push eax
call fcn.0041fd50
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0xa
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 8]
call fcn.00427f72
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b6f6
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push edi
push 0xf
xor eax, eax
pop ecx
mov byte [ebp + 0x30], 0
lea edi, [ebp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x50], 0
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp + 0x70], 0x7f
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x50]
push eax
movzx eax, byte [ebp + 0x7c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00411ede
add esp, 0xc
lea eax, [ebp + 0x30]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x40b768
xor al, al
jmp 0x40b771
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add ebp, 0x74
leave
ret
Function at 0x40b89b
Capabilities:
Terminate process

Disassembly:
push dword [0x4564e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push dword [esp + 0xc]
push 0x455cf8
push 0
push 0
call dword [0x455ba0]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c14b
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push 0x4a
pop ecx
xor eax, eax
mov byte [ebp - 0x234], 0
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x428724
lea eax, [ebp - 0x234]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x456228
lea eax, [ebp - 0x234]
push eax
call esi
push 0x428720
lea eax, [ebp - 0x234]
push eax
call esi
mov ebx, 0x455f08
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
push 0x4283c8
lea eax, [ebp - 0x108]
push eax
call esi
call fcn.00412015
push 3
pop ecx
xor edx, edx
div ecx
lea eax, [ebp - 0x108]
add edx, 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
push eax
call fcn.00411f79
pop ecx
pop ecx
push str..exe
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.004123a9
test eax, eax
pop ecx
je 0x40c234
lea eax, [ebp - 0x108]
push eax
call fcn.0041213d
cmp eax, 0x30d40
pop ecx
jae 0x40c267
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x455cf8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x108]
push eax
call fcn.0040180f
pop ecx
push 1
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [0x455ba0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c2e3
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x456228
push ebx
call esi
cmp eax, 8
jl 0x40c39e
push edi
push 0x41
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x10c], 0
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call esi
lea edi, [ebp + eax - 0x10c]
cmp byte [edi - 1], 0x5c
je 0x40c347
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0x10
push dword [ebp - 4]
push edi
call fcn.00411f79
pop ecx
pop ecx
push str..exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x10c]
push eax
call esi
push 0
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 7
lea eax, [ebp - 0x10c]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jle 0x40c354
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c3a2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp byte [0x455cf0], 0
je 0x40c3fe
cmp byte [0x455cf1], 0
jne 0x40c3fe
push 0x455e00
call fcn.0040c2e3
lea eax, [ebp - 0x108]
mov dword [esp], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c3fe
push 0x4283c8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2e3
pop ecx
push 0x455f08
call fcn.0040c2e3
pop ecx
leave
ret
Function at 0x40c613
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
push edi
push 0x41
pop ecx
xor eax, eax
push 0x41
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x150], 0
lea edi, [ebp - 0x14f]
rep stosd dword es:[edi], eax
pop ecx
push 0x41
mov byte [ebp - 0x258], al
lea edi, [ebp - 0x257]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x360], al
push 0xf
lea edi, [ebp - 0x35f]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x48], al
pop ecx
lea edi, [ebp - 0x47]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x456228
lea eax, [ebp - 0x150]
push eax
call ebx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x150]
mov al, 0x5c
cmp byte [esi], al
je 0x40c6a8
lea ecx, [ebp - 0x150]
cmp esi, ecx
jbe 0x40c6a0
dec esi
cmp byte [esi], al
jne 0x40c691
cmp byte [esi], al
jne 0x40c841
lea ecx, [esi + 1]
mov dword [ebp - 8], ecx
jmp 0x40c6b9
cmp esi, ecx
jbe 0x40c841
dec esi
cmp byte [esi], al
lea ecx, [ebp - 0x150]
je 0x40c6b0
cmp esi, ecx
jbe 0x40c841
mov byte [esi + 1], 0
cmp byte [esi], al
je 0x40c6ea
lea ecx, [ebp - 0x150]
cmp esi, ecx
jbe 0x40c6e2
dec esi
cmp byte [esi], al
jne 0x40c6d3
cmp byte [esi], al
jne 0x40c841
inc esi
push esi
call fcn.00412c9c
movzx eax, byte [esi]
push esi
push 5
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x48]
add edx, 6
push edx
push eax
call fcn.00411ede
add esp, 0x10
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x4283c8
push edi
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x258]
push eax
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x360]
push eax
call ebx
push edi
lea eax, [ebp - 0x360]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push 0x42855c
lea eax, [ebp - 0x360]
push eax
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x360]
push eax
call esi
lea eax, [ebp - 0x258]
push eax
mov byte [ebp - 1], 0
call fcn.004123a9
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
pop ecx
je 0x40c836
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
xor esi, esi
push dword [ebp - 8]
call fcn.00412f13
test eax, eax
pop ecx
jle 0x40c7d7
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x40c7b9
lea eax, [ebp - 0x360]
push eax
mov esi, 0x456228
push esi
call fcn.004124e1
test al, al
pop ecx
pop ecx
je 0x40c7f3
mov byte [ebp - 1], 1
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.004124e1
test al, al
pop ecx
pop ecx
push 1
je 0x40c811
xor eax, eax
push eax
push dword [ebp + 8]
push esi
jmp 0x40c81e
xor eax, eax
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x258]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp - 1], 0
je 0x40c836
lea eax, [ebp - 0x360]
push eax
push esi
call ebx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cace
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x455c98
call esi
xor edi, edi
cmp dword [ebp + 0x14], 1
jne 0x40caf2
mov edi, dword [ebp + 0x10]
and dword [ebp + 0x14], 0
test edi, edi
je 0x40cb33
jmp 0x40cafd
inc edi
cmp byte [edi], 0x22
je 0x40cafc
mov ebx, 0x428720
jmp 0x40cb0c
mov byte [eax], 0
push ebx
push edi
call fcn.00412073
test eax, eax
pop ecx
pop ecx
jne 0x40cb09
push 0x428760
push edi
call fcn.00412073
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
je 0x40cb33
inc dword [ebp + 0x14]
mov byte [eax], 0
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x456350
push 0x45634c
push 0x456348
push 0x456344
push 0x456340
call fcn.00408040
add esp, 0x14
test al, al
je 0x40ccd1
push 0x104
mov ebx, 0x455e00
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4283c8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call fcn.0041336d
pop ecx
call fcn.0040b36f
call fcn.0040c51f
xor ebx, ebx
cmp edi, ebx
je 0x40cbed
cmp byte [edi], 0x2d
jne 0x40cbed
push 0x15
call fcn.0040b776
test al, al
pop ecx
je 0x40cbc7
inc edi
push edi
push 0x456228
mov byte [0x4564e0], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x40c8b4
jmp 0x40cc1b
push 0x16
call fcn.0040b776
test al, al
pop ecx
je 0x40ccd1
inc edi
push edi
push 0x456228
mov byte [0x4564e0], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40cc16
push 0x17
call fcn.0040b776
test al, al
pop ecx
je 0x40ccd1
cmp edi, ebx
je 0x40cc16
push edi
push 0x456228
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
call fcn.0040c613
pop ecx
mov edi, 0x40c2db
call fcn.00409c4c
call fcn.0040c846
jmp 0x40cc31
call fcn.00412615
call fcn.004125f4
call fcn.0040c558
test al, al
jne 0x40cc27
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [0x455a9c]
push 0x44c6d8
call esi
push 0x44c6bc
call esi
push 0x456580
call esi
push 0x4566ac
call esi
push 0x44c6f8
call esi
push 0x4564ec
call esi
push 0x456564
call esi
push 0x45654c
call esi
push 0x456534
call esi
push 0x45651c
call esi
push 0x456504
call esi
call fcn.0040c3a2
call fcn.0040ba4c
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x40b659
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push 0x40c40b
push ebx
push ebx
call esi
call fcn.0040b8c7
test al, al
jne 0x40cccf
call fcn.0040b912
call edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10