joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fcd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4733f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044f880
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044f900
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044f900
lea ecx, [esi + 0xc]
call fcn.00464ba3
lea ecx, [esi + 0x10]
call fcn.00464ba3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00452140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00452140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00452140
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00464c18
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00464c18
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x450978
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473618
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x450988
call fcn.00450ea0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x450a6b
cmp byte [edi], 0
je 0x450a6b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4509ad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044f6a0
test eax, eax
jne 0x4509cd
push 0x5a04b8
lea ecx, [esi + 0x38]
call fcn.00464d55
jmp 0x450a6b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044f6f0
test eax, eax
jne 0x4509fc
mov ecx, esi
call fcn.0044f7f0
push edi
add esi, 0x38
push 0x5a0494
push esi
call fcn.0046275a
add esp, 0xc
jmp 0x450a6b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00451730
test eax, eax
je 0x450a64
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00450b40
test eax, eax
jne 0x450a80
push edi
lea eax, [esi + 0x38]
push 0x5a0470
push eax
call fcn.0046275a
add esp, 0xc
mov ecx, esi
call fcn.00450ea0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x450b28
mov ecx, dword [0x5a07d8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046275a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044f7a0
test eax, eax
jne 0x450aea
push 0x5a0454
lea ecx, [esi + 0x38]
call fcn.00464d55
jmp 0x450afa
push 0xfa
mov ecx, esi
call fcn.00451730
test eax, eax
jne 0x450b17
mov ecx, esi
call fcn.00450ea0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464c18
jmp 0x450a6b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464c18
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x466fbc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466ff4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00465073
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046504b
jmp 0x467000
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4686ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4686f0
call fcn.0046e226
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4686f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4686e7
xor eax, eax
jmp 0x4686f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004686fe
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e756
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e784
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e7a2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e6bc
jmp 0x46e7a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e7a2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e6bc
test edi, edi
mov eax, edi
jne 0x46e78c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41d6c0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41d6c2], bx
je 0x40104b
call eax
mov dword [0x41d6c0], eax
push eax
call fcn.00402f91
push eax
call fcn.00408f71
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402f91
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.00402f91
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.00408f71
pop ecx
call fcn.00404fea
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.004104c6
lea ecx, [ebp - 0x18]
call fcn.004104c6
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 [0x41d6e0]
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.004026e8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004108e2
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 0x401d4c
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.004108e2
push 0x5c
mov ecx, edi
call fcn.0040119e
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401c4f
push edi
push edi
mov dword [0x41d6c4], esi
mov dword [0x41d6cc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x41d6c8], eax
je 0x401dc0
cmp dword [0x41d730], 2
je 0x401db2
call fcn.00408edf
mov eax, dword [0x41d6c8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41d6c8]
mov ecx, dword [0x41d6cc]
cmp ecx, edi
mov dword [0x41d7f8], edi
je 0x401e06
cmp ecx, 1
je 0x401dfa
cmp ecx, 2
je 0x401df6
cmp ecx, 3
je 0x401df2
cmp ecx, 0x67
jle 0x401ded
cmp ecx, 0x6b
jle 0x401e6f
push ecx
push 0x14
jmp 0x401e40
push 0x12
jmp 0x401dfc
push 0x13
jmp 0x401dfc
push 0x11
push edi
call fcn.00409055
pop ecx
pop ecx
jmp 0x401e6f
cmp dword [0x41d800], edi
mov dword [ebp + 8], edi
jne 0x401e6f
cmp eax, edi
je 0x401e2d
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401e2d
cmp dword [ebp + 8], edi
jne 0x401e2d
xor eax, eax
jmp 0x401e74
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401e43
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401e67
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401e59
cmp dword [0x41d734], 0xffffffff
je 0x401e6f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409055
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x402757
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 0x402798
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x402782
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 0x402798
test al, 0x10
jne 0x402798
push esi
jmp 0x402778
xor eax, eax
inc eax
pop esi
ret
Function at 0x403246
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 0x4032a3
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 0x40347a
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.004108b3
push 0x41985c
lea ecx, [ebp - 0xc]
call fcn.0041093a
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 0x403556
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004108e2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040119e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041093a
test byte [ebp - 0x25c], 0x10
je 0x403521
push 0x419858
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x403539
push 0x419850
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x403539
push dword [ebp - 0xc]
call fcn.0040347a
pop ecx
jmp 0x403535
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403587
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403587
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4034c5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41d760]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403587
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403587
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403591
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 0x403597
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41d80c], 0
je 0x4035ae
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 0x4035ca
xor eax, eax
inc eax
jmp 0x4035fb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4035f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4035f0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4035fb
xor eax, eax
jmp 0x4035fb
push esi
call fcn.0040347a
pop ecx
pop esi
leave
ret

Function at 0x403b1d
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.004104c6
push 2
mov ecx, esi
call fcn.00403a76
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 0x403b70
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403a76
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.0040261b
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.00403a76
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.0040261b
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 0x403bc5
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403b80
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403f98
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.004108b3
push 0
lea ecx, [ebp - 0x18]
call fcn.00403a76
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x403fd6
cmp ax, 0x2f
jne 0x404004
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x404004
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x403ff7
cmp ax, 0x5c
je 0x403ff7
dec edi
test edi, edi
jg 0x403fe2
test edi, edi
je 0x4040a8
and word [esi + edi*2], 0
push esi
call fcn.00402757
test eax, eax
pop ecx
je 0x403ff3
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 0x40403b
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00403c97
test eax, eax
pop ecx
pop ecx
je 0x40403b
xor esi, esi
jmp 0x4040cb
push esi
call fcn.00402757
test eax, eax
pop ecx
jne 0x404095
push esi
push 0xc
push 1
call fcn.00409055
add esp, 0xc
jmp 0x404034
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 0x404089
jmp 0x404088
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x40408f
cmp ax, 0x2f
je 0x40408f
inc edi
cmp word [esi + edi*2], cx
jne 0x404078
mov word [esi + edi*2], cx
jmp 0x40403b
cmp edi, dword [ebp - 4]
jl 0x404055
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4040ef
cmp dword [ebp - 4], 2
jne 0x4040d8
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4040d8
cmp ax, 0x7a
ja 0x4040d8
cmp word [ebx + 2], 0x3a
jne 0x4040d8
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4040ef
push ebx
push 0xc
push 1
call fcn.00409055
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 0x404400
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004104c6
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x40443e
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403a76
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 0x40460a
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.004104c6
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403a76
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403a76
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.0040261b
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 0x404a86
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 [0x41d6f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00417700
call fcn.00402f3b
push 3
call fcn.00402f91
push 0x28
mov dword [0x41d720], eax
call fcn.00402f91
push 2
mov dword [0x41d71c], eax
call fcn.00402f91
push 5
mov dword [0x41d718], eax
call fcn.00402f91
push 0x15
mov dword [0x41d714], eax
call fcn.00402f91
push 0x16
mov dword [0x41d710], eax
call fcn.00402f91
push 0x17
mov dword [0x41d70c], eax
call fcn.00402f91
xor ebx, ebx
add esp, 0x1c
mov dword [0x41d708], eax
mov dword [0x41d700], ebx
mov dword [0x41d704], 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 0x404b7a
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.004046be
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41d3ac], edi
jne 0x404b72
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41d3b0]
call fcn.004046be
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404b54
inc edi
cmp edi, 0x40
jl 0x404b19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40544c
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 0x405602
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x405475
cmp cx, 0x2f
jne 0x405602
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 0x4054a5
push dword [ebp + 8]
jmp 0x405603
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403b1d
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 0x4055ca
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004104c6
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004108e2
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
mov esi, 0x41aa70
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0041093a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403c14
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 0x4055dd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4055dd
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 0x405608
push dword [ebp - 0x28]
call fcn.00403597
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 0x405609
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x40560c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41d7d4], esi
jle 0x405660
mov eax, dword [0x41d7d0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004104e9
lea eax, [ebp - 0xc]
push eax
call fcn.00404bb9
mov eax, dword [0x41d7d0]
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 [0x41d7d4]
pop ecx
jl 0x40561d
pop esi
leave
ret
Function at 0x40fd8b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fdb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fdb1
xor al, al
jmp 0x40fdd1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00417c80
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4