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

Disassembly:
cmp ecx, dword [0x490250]
jne 0x454b9b
repz ret
jmp fcn.00459a76

Function at 0x4638c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045b2e1
and dword [ebp - 0x14], 0
cmp dword [0x492ca0], 0
mov dword [ebp - 0x18], eax
jne 0x463978
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x463a20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x463a20
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x492ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x492ca4], eax
call edi
push eax
call esi
push 0x47dabc
push ebx
mov dword [0x492ca8], eax
call edi
push eax
call esi
mov dword [0x492cb0], eax
test eax, eax
je 0x463978
push 0x47daa4
push ebx
call edi
push eax
call esi
mov dword [0x492cac], eax
mov eax, dword [0x492cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4639d1
cmp dword [0x492cb0], ecx
je 0x4639d1
push eax
call esi
push dword [0x492cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4639d1
test ebx, ebx
je 0x4639d1
call edi
test eax, eax
je 0x4639c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4639c8
test byte [ebp - 8], 1
jne 0x4639d1
or dword [ebp + 0x10], 0x200000
jmp 0x463a04
mov eax, dword [0x492ca4]
cmp eax, dword [ebp - 0x18]
je 0x463a04
push eax
call esi
test eax, eax
je 0x463a04
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x463a04
mov eax, dword [0x492ca8]
cmp eax, dword [ebp - 0x18]
je 0x463a04
push eax
call esi
test eax, eax
je 0x463a04
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x492ca0]
call esi
test eax, eax
je 0x463a20
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x463a22
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00454b91
leave
ret

Function at 0x4686e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x468710
call fcn.00455426
and dword [eax], 0
call fcn.00455413
mov dword [eax], 0x16
call fcn.00459d95
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46872d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00455439
pop ecx
jmp 0x46870b
test byte [ebp + 0xc], 0x80
je 0x468738
and eax, 0xfffffffe
jmp 0x46873b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x46871e
xor eax, eax
pop ebp
ret
Function at 0x46874d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x468774
call fcn.00455426
mov dword [eax], esi
call fcn.00455413
push 0x16
pop esi
mov dword [eax], esi
call fcn.00459d95
mov eax, esi
jmp 0x4687c9
test dword [ebp + 0xc], 0xfffffff9
jne 0x46875a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4687a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00455439
pop ecx
call fcn.00455413
mov eax, dword [eax]
jmp 0x4687c9
test al, 0x10
jne 0x4687c7
test al, 1
je 0x4687c7
test byte [ebp + 0xc], 2
je 0x4687c7
call fcn.00455426
mov dword [eax], 5
call fcn.00455413
mov dword [eax], 0xd
jmp 0x468798
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401c45
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.004119f0
lea ecx, [ebp - 0x1c]
call fcn.004119f0
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401c9d
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401ca9
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401cb8
or dword [ebp - 0x54], 0x100
mov eax, dword [0x41e68c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.00403066
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411a75
cmp dword [ebp - 0xc], edi
jne 0x401d00
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401d47
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401d35
cmp ebx, edi
jne 0x401d29
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x4027aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004023af
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4026b1
push edi
push edi
mov dword [0x41e684], esi
mov dword [0x41e688], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41e680], eax
cmp eax, edi
je 0x402805
cmp dword [0x41e6d0], 2
je 0x4027f7
call fcn.00408b7d
mov eax, dword [0x41e680]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e680]
mov ecx, dword [0x41e688]
mov dword [0x41e824], edi
cmp ecx, edi
je 0x40284b
cmp ecx, 1
je 0x40283f
cmp ecx, 2
je 0x40283b
cmp ecx, 3
je 0x402837
cmp ecx, 0x67
jle 0x402832
cmp ecx, 0x6b
jle 0x4028b4
push ecx
push 0x14
jmp 0x402885
push 0x12
jmp 0x402841
push 0x13
jmp 0x402841
push 0x11
push edi
call fcn.004095d3
pop ecx
pop ecx
jmp 0x4028b4
mov dword [ebp + 8], edi
cmp dword [0x41e82c], edi
jne 0x4028b4
cmp eax, edi
je 0x402872
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402872
cmp dword [ebp + 8], edi
jne 0x402872
xor eax, eax
jmp 0x4028b9
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402888
push dword [ebp + 8]
push 0x21
push edi
jmp 0x4028ac
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40289e
cmp dword [0x41e6d4], 0xffffffff
je 0x4028b4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004095d3
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x4030d6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x403101
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403117
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403114
test al, 0x10
jne 0x403114
push esi
jmp 0x4030f7
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x40336b
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, 0x260
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xc]
call fcn.00411a14
push 0x41ac6c
lea ecx, [ebp - 0xc]
call fcn.00411b33
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x403449
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00411a75
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401571
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.00411b33
test byte [ebp - 0x260], 0x10
je 0x403410
push 0x41ac68
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403428
push 0x41ac60
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403428
mov ecx, dword [ebp - 0xc]
call fcn.0040336b
jmp 0x403424
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403476
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403476
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4033b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41e6f4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x403476
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403476
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403480
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 0x403486
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e838], 0
push esi
mov esi, ecx
je 0x4034a0
xor eax, eax
inc eax
jmp 0x4034e4
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40349b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4034dd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4034d9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4034e4
xor eax, eax
jmp 0x4034e4
mov ecx, esi
call fcn.0040336b
pop esi
leave
ret
Function at 0x40394c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x41e690]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x40399a
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x4039c4
mov esi, dword [ebp + 8]
test esi, esi
je 0x4039ad
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 0x4039c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403a2e
cmp dword [0x41e694], 0
jne 0x403a2c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e6bc]
mov dword [0x41e694], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e690]
push edi
push 0
push eax
lea eax, [ebp - 0x4c]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x403a22
push str.SetThreadPreferredUILanguages
push dword [0x41e6bc]
call esi
mov ebx, eax
test ebx, ebx
je 0x403a2c
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403d24
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
mov dword [ebp - 4], ecx
cmp dword [0x41e0c8], ebx
je 0x403d57
mov eax, 0x41e0c8
cmp dword [eax], ecx
je 0x403d57
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0c8]
cmp dword [eax], ebx
jne 0x403d43
shl esi, 4
cmp dword [esi + 0x41e0c8], ebx
jne 0x403d6c
mov eax, 0x41aadc
jmp 0x403ee0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 4]
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 - 8], eax
call edi
test eax, eax
jne 0x403e1c
mov eax, dword [ebp - 8]
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 - 8]
inc ecx
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 8]
ja 0x403e13
call edi
test eax, eax
jne 0x403e13
mov eax, dword [esi + 0x41e0d4]
test eax, eax
je 0x403e08
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403e05
push dword [esi + 0x41e0d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0d4], edi
jmp 0x403e1b
push edi
jmp 0x403e16
mov eax, dword [ebp - 4]
mov dword [esi + 0x41e0d4], eax
jmp 0x403e1c
push dword [ebp - 4]
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 + 0x41e0d4]
test eax, eax
jne 0x403edf
mov ebx, dword [esi + 0x41e0cc]
cmp dword [esi + 0x41e0d0], eax
je 0x403e54
call fcn.00403cc9
cmp eax, dword [0x41bab8]
jne 0x403e54
mov ebx, dword [esi + 0x41e0d0]
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 [0x41e08c], 0xffffffff
pop ecx
mov dword [esi + 0x41e0d4], eax
jne 0x403ebf
and dword [0x41e08c], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e690]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403ebf
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41e08c], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0d4]
push edi
push ebx
push 0
push dword [0x41e08c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f4e
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 0x403fa1
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 0x4042f9
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov esi, ecx
call fcn.004119f0
push 2
mov ecx, esi
call fcn.0040424f
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor ebp, ebp
xor edx, edx
mov dword [esi + 4], ebp
mov word [ecx], dx
cmp eax, ebp
jbe 0x404343
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040424f
push eax
push ebx
call edi
mov ecx, esi
call fcn.00404234
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.0040424f
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404234
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404382
inc ebp
cmp ebp, 0xfff
jl 0x40434c
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4046ce
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00411a14
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040424f
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x40470c
cmp eax, 0x2f
jne 0x40473a
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x40473a
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x40472c
cmp eax, 0x5c
je 0x40472c
dec esi
test esi, esi
jg 0x404719
test esi, esi
je 0x4047dc
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.004030d6
test eax, eax
je 0x404728
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40476f
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404446
test eax, eax
je 0x40476f
xor esi, esi
jmp 0x4047ff
mov ecx, edi
call fcn.004030d6
test eax, eax
jne 0x4047c9
push edi
push 0xc
push 1
call fcn.004095d3
add esp, 0xc
jmp 0x404768
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 0x4047bb
jmp 0x4047ba
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4047c1
cmp eax, 0x2f
je 0x4047c1
inc esi
cmp word [edi + esi*2], cx
jne 0x4047ac
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40476f
cmp esi, dword [ebp - 4]
jl 0x404789
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x404823
cmp dword [ebp - 4], 2
jne 0x40480c
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40480c
cmp ax, 0x7a
ja 0x40480c
cmp word [ebx + 2], 0x3a
jne 0x40480c
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x404823
push ebx
push 0xc
push 1
call fcn.004095d3
push dword [ebp - 0x1c]
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 0x404d29
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
push edi
push 1
lea eax, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x1c], edx
mov esi, ecx
call ebx
mov ecx, esi
mov edi, eax
call fcn.004119f0
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.0040424f
inc edi
push edi
push ebp
mov ecx, esi
call fcn.0040424f
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.00404234
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40545e
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 [0x41e6bc], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418c70
call fcn.00403cc9
push 3
pop ecx
call fcn.00403d24
push 0x28
pop ecx
mov dword [0x41e6c0], eax
call fcn.00403d24
push 2
pop ecx
mov dword [0x41e6ac], eax
call fcn.00403d24
push 5
pop ecx
mov dword [0x41e698], eax
call fcn.00403d24
push 0x15
pop ecx
mov dword [0x41e69c], eax
call fcn.00403d24
push 0x16
pop ecx
mov dword [0x41e6b4], eax
call fcn.00403d24
push 0x17
pop ecx
mov dword [0x41e6a8], eax
call fcn.00403d24
xor ebx, ebx
mov dword [0x41e6a4], eax
mov dword [0x41e6b8], ebx
mov dword [0x41e6b0], 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 0x405550
push edi
lea eax, [ebp - 0x5c]
push 0x41bb74
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404fad
xor esi, esi
cmp dword [esi + 0x41e3dc], edi
jne 0x405548
mov ecx, dword [esi + 0x41e3e0]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404fad
add esi, 8
cmp esi, 0x28
jb 0x40552e
inc edi
cmp edi, 0x40
jl 0x4054f5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405abe
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x41e6a0], 0
jne 0x405ad2
mov ecx, dword [0x41e7fc]
jmp fcn.00403486
ret
Function at 0x405aea
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 0x405c96
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405b12
cmp ecx, 0x2f
jne 0x405c96
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 0x405b44
push dword [ebp + 8]
jmp 0x405c97
mov edx, str.7ZSfx_03x.cmd
lea ecx, [ebp - 0x24]
call fcn.004042f9
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 0x405c5e
push esi
lea ecx, [ebp - 0x18]
call fcn.004119f0
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00411a75
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.00411b33
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411b73
mov esi, 0x41bc10
push esi
lea ecx, [ebp - 0x18]
call fcn.00411b33
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00411b33
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411b73
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00411b33
push edi
lea ecx, [ebp - 0x18]
call fcn.00411b33
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411b73
push esi
lea ecx, [ebp - 0x18]
call fcn.00411b33
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004043cf
mov eax, dword [eax]
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 0x405c71
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405c71
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 0x405c9c
mov ecx, dword [ebp - 0x24]
call fcn.00403486
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, 0xc
jmp 0x405c9d
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc