joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e6c0]
sub esp, 0x904
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x401039
cmp word [0x41e6c2], bx
je 0x401027
call eax
mov dword [0x41e6c0], eax
push eax
call fcn.004025a3
push eax
call fcn.00408d1f
pop ecx
jmp 0x4010cc
push 0x27
call fcn.004025a3
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
jbe 0x40109d
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401066
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010c0
push ebx
push 3
call fcn.004025a3
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010cd
lea eax, [ebp - 0x904]
push eax
call fcn.00408d1f
pop ecx
call fcn.004046cc
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40143b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.00408f80
push dword [ebp + 0xc]
lea ecx, [esi + 0x10]
call fcn.00411391
push 0x5c
lea ecx, [esi + 0x10]
call fcn.004011ee
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401333
push edi
push edi
mov dword [0x41e6c4], esi
mov dword [0x41e6cc], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x41e6c8], eax
cmp eax, edi
je 0x4014ae
cmp dword [0x41e730], 2
je 0x4014a0
call fcn.00408c7f
mov eax, dword [0x41e6c8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41e6c8]
mov ecx, dword [0x41e6cc]
mov dword [0x41e7d0], edi
cmp ecx, edi
je 0x4014f4
cmp ecx, 1
je 0x4014e8
cmp ecx, 2
je 0x4014e4
cmp ecx, 3
je 0x4014e0
cmp ecx, 0x67
jle 0x4014db
cmp ecx, 0x6b
jle 0x40155d
push ecx
push 0x14
jmp 0x40152e
push 0x12
jmp 0x4014ea
push 0x13
jmp 0x4014ea
push 0x11
push edi
call fcn.00408e03
pop ecx
pop ecx
jmp 0x40155d
mov dword [ebp + 8], edi
cmp dword [0x41e7d8], edi
jne 0x40155d
cmp eax, edi
je 0x40151b
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x40151b
cmp dword [ebp + 8], edi
jne 0x40151b
xor eax, eax
jmp 0x401562
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401531
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401555
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401547
cmp dword [0x41e734], 0xffffffff
je 0x40155d
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408e03
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401d66
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x401da7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401d91
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401da7
test al, 0x10
jne 0x401da7
push esi
jmp 0x401d87
xor eax, eax
inc eax
pop esi
ret

Function at 0x4021e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
movzx ecx, word [0x41e6e4]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x40222b
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402255
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40223e
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402255
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x4022bf
cmp dword [0x41e6f4], 0
jne 0x4022bd
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e6f8]
mov dword [0x41e6f4], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e6e4]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x4022b3
push str.SetThreadPreferredUILanguages
push dword [0x41e6f8]
call esi
mov ebx, eax
test ebx, ebx
je 0x4022bd
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025a3
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0a0], ebx
je 0x4025d6
mov eax, 0x41e0a0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4025d6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0a0]
cmp dword [eax], ebx
jne 0x4025bf
shl esi, 4
cmp dword [esi + 0x41e0a0], ebx
jne 0x4025eb
mov eax, 0x41a650
jmp 0x40275f
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40269b
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402692
call edi
test eax, eax
jne 0x402692
mov eax, dword [esi + 0x41e0ac]
test eax, eax
je 0x402687
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402684
push dword [esi + 0x41e0ac]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0ac], edi
jmp 0x40269a
push edi
jmp 0x402695
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0ac], eax
jmp 0x40269b
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x41e0ac]
test eax, eax
jne 0x40275e
mov ebx, dword [esi + 0x41e0a4]
cmp dword [esi + 0x41e0a8], eax
je 0x4026d3
call fcn.00402548
cmp eax, dword [0x41b4c4]
jne 0x4026d3
mov ebx, dword [esi + 0x41e0a8]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41e074], 0xffffffff
pop ecx
mov dword [esi + 0x41e0ac], eax
jne 0x40273e
and dword [0x41e074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e6e4]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x40273e
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0ac]
push edi
push ebx
push 0
push dword [0x41e074]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40285a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4028ad
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402a0b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00411362
push 0x41a764
lea ecx, [ebp - 0xc]
call fcn.004113e9
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402ae7
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00411391
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004011ee
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004113e9
test byte [ebp - 0x25c], 0x10
je 0x402ab2
push 0x41a760
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402aca
push 0x41a758
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402aca
push dword [ebp - 0xc]
call fcn.00402a0b
pop ecx
jmp 0x402ac6
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402b18
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x402b18
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402a56
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [0x41e760]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402b18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x402b18
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402b22
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b28
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e7e4], 0
je 0x402b3f
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402b5b
xor eax, eax
inc eax
jmp 0x402b8c
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402b85
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x402b81
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x402b8c
xor eax, eax
jmp 0x402b8c
push esi
call fcn.00402a0b
pop ecx
pop esi
leave
ret

Function at 0x40341e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00411362
push 0
lea ecx, [ebp - 0x18]
call fcn.00403001
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x40345a
cmp eax, 0x2f
jne 0x403488
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x403488
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x40347a
cmp eax, 0x5c
je 0x40347a
dec esi
test esi, esi
jg 0x403467
test esi, esi
je 0x40352c
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00401d66
pop ecx
test eax, eax
je 0x403476
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x4034bf
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403117
pop ecx
pop ecx
test eax, eax
je 0x4034bf
xor esi, esi
jmp 0x40354f
push edi
call fcn.00401d66
pop ecx
test eax, eax
jne 0x403519
push edi
push 0xc
push 1
call fcn.00408e03
add esp, 0xc
jmp 0x4034b8
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40350b
jmp 0x40350a
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x403511
cmp eax, 0x2f
je 0x403511
inc esi
cmp word [edi + esi*2], cx
jne 0x4034fc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4034bf
cmp esi, dword [ebp - 4]
jl 0x4034d9
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403573
cmp dword [ebp - 4], 2
jne 0x40355c
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40355c
cmp ax, 0x7a
ja 0x40355c
cmp word [ebx + 2], 0x3a
jne 0x40355c
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403573
push ebx
push 0xc
push 1
call fcn.00408e03
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403891
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00410f2d
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4038d0
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403001
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], esi
mov word [eax + esi*2], cx
mov eax, edi
pop edi
pop esi
ret

Function at 0x403a9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00410f2d
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403001
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403001
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401d03
pop ecx
mov dword [esi + 4], eax
xor ecx, ecx
mov word [edi + eax*2], cx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403f58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x41e6f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418250
call fcn.00402548
push 3
call fcn.004025a3
push 0x28
mov dword [0x41e720], eax
call fcn.004025a3
push 2
mov dword [0x41e71c], eax
call fcn.004025a3
push 5
mov dword [0x41e718], eax
call fcn.004025a3
push 0x15
mov dword [0x41e714], eax
call fcn.004025a3
push 0x16
mov dword [0x41e710], eax
call fcn.004025a3
push 0x17
mov dword [0x41e70c], eax
call fcn.004025a3
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e708], eax
mov dword [0x41e700], ebx
mov dword [0x41e704], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40404c
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403b4f
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3a4], edi
jne 0x404044
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3a8]
call fcn.00403b4f
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404026
inc edi
cmp edi, 0x40
jl 0x403feb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00410f2d
lea ecx, [ebp - 0x18]
call fcn.00410f2d
push 0x3c
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
test byte [ebp + 0xc], bl
je 0x404ac2
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404acf
mov dword [ebp - 0x48], str.runas
mov eax, dword [0x41e6e0]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004042ca
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00411391
cmp dword [ebp - 8], edi
jne 0x404b19
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, ebx
jmp 0x404b64
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404b52
test dword [ebp + 0xc], 0x10000
jne 0x404b47
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404e30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00410f2d
push 2
mov ecx, esi
call fcn.00403001
mov edi, dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
test eax, eax
je 0x404e85
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403001
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401d03
pop ecx
xor ecx, ecx
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00403001
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401d03
xor ecx, ecx
add esp, 0x10
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404edb
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404e95
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404ee2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e7ac], esi
jle 0x404f36
mov eax, dword [0x41e7a8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00410f51
lea eax, [ebp - 0xc]
push eax
call fcn.0040408b
mov eax, dword [0x41e7a8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x41e7ac]
jl 0x404ef3
pop esi
leave
ret
Function at 0x405016
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x4051ca
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x40503e
cmp ecx, 0x2f
jne 0x4051ca
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x405070
push dword [ebp + 8]
jmp 0x4051cb
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404e30
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405192
push esi
lea ecx, [ebp - 0x18]
call fcn.00410f2d
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00411391
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
mov esi, 0x41b9b4
push esi
lea ecx, [ebp - 0x18]
call fcn.004113e9
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004113e9
push edi
lea ecx, [ebp - 0x18]
call fcn.004113e9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410fd1
push esi
lea ecx, [ebp - 0x18]
call fcn.004113e9
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403094
mov eax, dword [eax]
add esp, 0xc
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, edi
pop esi
je 0x4051a5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4051a5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4051d0
push dword [ebp - 0x24]
call fcn.00402b28
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4051d1
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x40869a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004070e3
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407100
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407100
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407750
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408361
mov ecx, esi
mov edi, eax
call fcn.00407d5f
mov eax, edi
pop edi
pop esi
leave
ret