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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e6e0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41e6e2], bx
je 0x40104b
call eax
mov dword [0x41e6e0], eax
push eax
call fcn.00402fad
push eax
call fcn.00408ef4
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402fad
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
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
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 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402fad
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408ef4
pop ecx
call fcn.00404f8f
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40121c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004110c6
lea ecx, [ebp - 0x18]
call fcn.004110c6
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x40126e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40127b
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x40128d
or dword [ebp - 0x50], 0x100
mov eax, dword [0x41e700]
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.00402704
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004114e2
cmp dword [ebp - 8], edi
jne 0x4012d8
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__
xor eax, eax
inc eax
jmp 0x40131f
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 0x40130d
cmp esi, edi
jne 0x401301
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
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 esi
leave
ret
Function at 0x401d68
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.00401ae1
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004114e2
push 0x5c
mov ecx, edi
call fcn.0040119e
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401c6b
push edi
push edi
mov dword [0x41e6e4], esi
mov dword [0x41e6ec], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x41e6e8], eax
je 0x401ddc
cmp dword [0x41e750], 2
je 0x401dce
call fcn.00408e62
mov eax, dword [0x41e6e8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e6e8]
mov ecx, dword [0x41e6ec]
cmp ecx, edi
mov dword [0x41e818], edi
je 0x401e22
cmp ecx, 1
je 0x401e16
cmp ecx, 2
je 0x401e12
cmp ecx, 3
je 0x401e0e
cmp ecx, 0x67
jle 0x401e09
cmp ecx, 0x6b
jle 0x401e8b
push ecx
push 0x14
jmp 0x401e5c
push 0x12
jmp 0x401e18
push 0x13
jmp 0x401e18
push 0x11
push edi
call fcn.00408fd8
pop ecx
pop ecx
jmp 0x401e8b
cmp dword [0x41e820], edi
mov dword [ebp + 8], edi
jne 0x401e8b
cmp eax, edi
je 0x401e49
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401e49
cmp dword [ebp + 8], edi
jne 0x401e49
xor eax, eax
jmp 0x401e90
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401e5f
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401e83
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401e75
cmp dword [0x41e754], 0xffffffff
je 0x401e8b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408fd8
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x402773
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 0x4027b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40279e
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 0x4027b4
test al, 0x10
jne 0x4027b4
push esi
jmp 0x402794
xor eax, eax
inc eax
pop esi
ret
Function at 0x402bf2
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 [0x41e704]
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
test ebx, ebx
mov edi, 0x409
jne 0x402c3a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402c64
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402c4d
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 0x402c64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x402cce
cmp dword [0x41e714], 0
jne 0x402ccc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e718]
mov dword [0x41e714], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e704]
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 0x402cc2
push str.SetThreadPreferredUILanguages
push dword [0x41e718]
call esi
mov ebx, eax
test ebx, ebx
je 0x402ccc
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 0x402fad
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 [0x41e0b8], ebx
je 0x402fe0
mov eax, 0x41e0b8
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402fe0
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0b8]
cmp dword [eax], ebx
jne 0x402fc9
shl esi, 4
cmp dword [esi + 0x41e0b8], ebx
jne 0x402ff5
mov eax, 0x41a64c
jmp 0x403167
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 0x4030a5
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 0x40309c
call edi
test eax, eax
jne 0x40309c
mov eax, dword [esi + 0x41e0c4]
test eax, eax
je 0x403091
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40308e
push dword [esi + 0x41e0c4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0c4], edi
jmp 0x4030a4
push edi
jmp 0x40309f
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0c4], eax
jmp 0x4030a5
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 + 0x41e0c4]
test eax, eax
jne 0x403166
mov ebx, dword [esi + 0x41e0bc]
lea edi, [esi + 0x41e0c0]
cmp dword [edi], eax
je 0x4030db
call fcn.00402f57
cmp eax, dword [0x41b5f0]
jne 0x4030db
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
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 [0x41e084], 0xffffffff
pop ecx
mov dword [esi + 0x41e0c4], eax
jne 0x403146
and dword [0x41e084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e704]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403146
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0c4]
push edi
push ebx
push 0
push dword [0x41e084]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0c4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403262
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 byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4032bf
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 0x403440
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.004114b3
push 0x41a85c
lea ecx, [ebp - 0xc]
call fcn.0041153a
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 0x40351c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004114e2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040119e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041153a
test byte [ebp - 0x25c], 0x10
je 0x4034e7
push 0x41a858
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034ff
push 0x41a850
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034ff
push dword [ebp - 0xc]
call fcn.00403440
pop ecx
jmp 0x4034fb
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x40354d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40354d
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40348b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41e780]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x40354d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40354d
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403557
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 0x40355d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e82c], 0
je 0x403574
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 0x403590
xor eax, eax
inc eax
jmp 0x4035c1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4035ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4035b6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4035c1
xor eax, eax
jmp 0x4035c1
push esi
call fcn.00403440
pop ecx
pop esi
leave
ret

Function at 0x403ac2
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.004110c6
push 2
mov ecx, esi
call fcn.00403a1b
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x403b15
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403a1b
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00402637
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
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.00403a1b
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.00402637
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b6a
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403b25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403f3d
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 edi, eax
mov dword [ebp - 4], eax
call fcn.004114b3
push 0
lea ecx, [ebp - 0x18]
call fcn.00403a1b
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x403f7b
cmp ax, 0x2f
jne 0x403fa9
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x403fa9
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x403f9c
cmp ax, 0x5c
je 0x403f9c
dec edi
test edi, edi
jg 0x403f87
test edi, edi
je 0x40404d
and word [esi + edi*2], 0
push esi
call fcn.00402773
test eax, eax
pop ecx
je 0x403f98
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403fe0
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00403c3c
test eax, eax
pop ecx
pop ecx
je 0x403fe0
xor esi, esi
jmp 0x404070
push esi
call fcn.00402773
test eax, eax
pop ecx
jne 0x40403a
push esi
push 0xc
push 1
call fcn.00408fd8
add esp, 0xc
jmp 0x403fd9
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40402e
jmp 0x40402d
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x404034
cmp ax, 0x2f
je 0x404034
inc edi
cmp word [esi + edi*2], cx
jne 0x40401d
mov word [esi + edi*2], cx
jmp 0x403fe0
cmp edi, dword [ebp - 4]
jl 0x403ffa
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x404094
cmp dword [ebp - 4], 2
jne 0x40407d
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40407d
cmp ax, 0x7a
ja 0x40407d
cmp word [ebx + 2], 0x3a
jne 0x40407d
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x404094
push ebx
push 0xc
push 1
call fcn.00408fd8
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 0x4043a5
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004110c6
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4043e3
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403a1b
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x4045af
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.004110c6
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403a1b
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403a1b
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00402637
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404a2b
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 [0x41e718], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418370
call fcn.00402f57
push 3
call fcn.00402fad
push 0x28
mov dword [0x41e740], eax
call fcn.00402fad
push 2
mov dword [0x41e73c], eax
call fcn.00402fad
push 5
mov dword [0x41e738], eax
call fcn.00402fad
push 0x15
mov dword [0x41e734], eax
call fcn.00402fad
push 0x16
mov dword [0x41e730], eax
call fcn.00402fad
push 0x17
mov dword [0x41e72c], eax
call fcn.00402fad
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e728], eax
mov dword [0x41e720], ebx
mov dword [0x41e724], 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 0x404b1f
push edi
lea eax, [ebp - 0x5c]
push 0x41b6a8
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.00404663
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3bc], edi
jne 0x404b17
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3c0]
call fcn.00404663
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404af9
inc edi
cmp edi, 0x40
jl 0x404abe
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053f1
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, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x4055a7
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x40541a
cmp cx, 0x2f
jne 0x4055a7
mov ax, word [eax]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40544a
push dword [ebp + 8]
jmp 0x4055a8
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403ac2
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40556f
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004110c6
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004114e2
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
mov esi, 0x41ba70
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0041153a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403bb9
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x405582
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405582
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
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 0x4055ad
push dword [ebp - 0x28]
call fcn.0040355d
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
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 0x4055ae
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x4055d4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e7f4], esi
jle 0x405628
mov eax, dword [0x41e7f0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004110e9
lea eax, [ebp - 0xc]
push eax
call fcn.00404b5e
mov eax, dword [0x41e7f0]
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
cmp esi, dword [0x41e7f4]
pop ecx
jl 0x4055e5
pop esi
leave
ret
Function at 0x406e90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406e43
add esp, 0x1c
leave
ret