joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c51
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.0040eb1f
lea ecx, [ebp - 0x1c]
call fcn.0040eb1f
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 0x401ca9
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401cb5
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401cc4
or dword [ebp - 0x54], 0x100
mov eax, dword [0x41b68c]
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.00403091
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040eba4
cmp dword [ebp - 0xc], edi
jne 0x401d0c
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 0x401d53
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 0x401d41
cmp ebx, edi
jne 0x401d35
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 0x4027d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004023bb
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4026bb
push edi
push edi
mov dword [0x41b684], esi
mov dword [0x41b688], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41b680], eax
cmp eax, edi
je 0x402830
cmp dword [0x41b6d0], 2
je 0x402822
call fcn.00408b8f
mov eax, dword [0x41b680]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b680]
mov ecx, dword [0x41b688]
mov dword [0x41b824], edi
cmp ecx, edi
je 0x402876
cmp ecx, 1
je 0x40286a
cmp ecx, 2
je 0x402866
cmp ecx, 3
je 0x402862
cmp ecx, 0x67
jle 0x40285d
cmp ecx, 0x6b
jle 0x4028df
push ecx
push 0x14
jmp 0x4028b0
push 0x12
jmp 0x40286c
push 0x13
jmp 0x40286c
push 0x11
push edi
call fcn.00409601
pop ecx
pop ecx
jmp 0x4028df
mov dword [ebp + 8], edi
cmp dword [0x41b82c], edi
jne 0x4028df
cmp eax, edi
je 0x40289d
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40289d
cmp dword [ebp + 8], edi
jne 0x40289d
xor eax, eax
jmp 0x4028e4
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x4028b3
push dword [ebp + 8]
push 0x21
push edi
jmp 0x4028d7
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x4028c9
cmp dword [0x41b6d4], 0xffffffff
je 0x4028df
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409601
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x403101
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 0x40313f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40312c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403142
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40313f
test al, 0x10
jne 0x40313f
push esi
jmp 0x403122
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x403396
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.0040eb43
push 0x417c2c
lea ecx, [ebp - 0xc]
call fcn.0040ec62
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 0x403474
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040eba4
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040157d
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ec62
test byte [ebp - 0x260], 0x10
je 0x40343b
push 0x417c28
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403453
push 0x417c20
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403453
mov ecx, dword [ebp - 0xc]
call fcn.00403396
jmp 0x40344f
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4034a1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4034a1
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4033e2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41b6f4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x4034a1
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4034a1
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x4034ab
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 0x4034b1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41b838], 0
push esi
mov esi, ecx
je 0x4034cb
xor eax, eax
inc eax
jmp 0x40350f
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4034c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403508
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403504
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40350f
xor eax, eax
jmp 0x40350f
mov ecx, esi
call fcn.00403396
pop esi
leave
ret
Function at 0x403977
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 [0x41b690]
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 0x4039c5
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x4039ef
mov esi, dword [ebp + 8]
test esi, esi
je 0x4039d8
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 0x4039ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403a59
cmp dword [0x41b694], 0
jne 0x403a57
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41b6bc]
mov dword [0x41b694], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41b690]
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 0x403a4d
push str.SetThreadPreferredUILanguages
push dword [0x41b6bc]
call esi
mov ebx, eax
test ebx, ebx
je 0x403a57
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 0x403d4f
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 [0x41b0c8], ebx
je 0x403d82
mov eax, 0x41b0c8
cmp dword [eax], ecx
je 0x403d82
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41b0c8]
cmp dword [eax], ebx
jne 0x403d6e
shl esi, 4
cmp dword [esi + 0x41b0c8], ebx
jne 0x403d97
mov eax, 0x417a9c
jmp 0x403f0b
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 0x403e47
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 0x403e3e
call edi
test eax, eax
jne 0x403e3e
mov eax, dword [esi + 0x41b0d4]
test eax, eax
je 0x403e33
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403e30
push dword [esi + 0x41b0d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41b0d4], edi
jmp 0x403e46
push edi
jmp 0x403e41
mov eax, dword [ebp - 4]
mov dword [esi + 0x41b0d4], eax
jmp 0x403e47
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 + 0x41b0d4]
test eax, eax
jne 0x403f0a
mov ebx, dword [esi + 0x41b0cc]
cmp dword [esi + 0x41b0d0], eax
je 0x403e7f
call fcn.00403cf4
cmp eax, dword [0x418a78]
jne 0x403e7f
mov ebx, dword [esi + 0x41b0d0]
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 [0x41b08c], 0xffffffff
pop ecx
mov dword [esi + 0x41b0d4], eax
jne 0x403eea
and dword [0x41b08c], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41b690]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403eea
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41b08c], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41b0d4]
push edi
push ebx
push 0
push dword [0x41b08c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41b0d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f79
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 0x403fcc
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 0x404324
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.0040eb1f
push 2
mov ecx, esi
call fcn.0040427a
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 0x40436e
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040427a
push eax
push ebx
call edi
mov ecx, esi
call fcn.0040425f
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.0040427a
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.0040425f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043ad
inc ebp
cmp ebp, 0xfff
jl 0x404377
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4046f9
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.0040eb43
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040427a
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x404737
cmp eax, 0x2f
jne 0x404765
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x404765
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x404757
cmp eax, 0x5c
je 0x404757
dec esi
test esi, esi
jg 0x404744
test esi, esi
je 0x404807
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403101
test eax, eax
je 0x404753
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 0x40479a
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404471
test eax, eax
je 0x40479a
xor esi, esi
jmp 0x40482a
mov ecx, edi
call fcn.00403101
test eax, eax
jne 0x4047f4
push edi
push 0xc
push 1
call fcn.00409601
add esp, 0xc
jmp 0x404793
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 0x4047e6
jmp 0x4047e5
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x4047ec
cmp eax, 0x2f
je 0x4047ec
inc esi
cmp word [edi + esi*2], cx
jne 0x4047d7
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40479a
cmp esi, dword [ebp - 4]
jl 0x4047b4
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x40484e
cmp dword [ebp - 4], 2
jne 0x404837
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x404837
cmp ax, 0x7a
ja 0x404837
cmp word [ebx + 2], 0x3a
jne 0x404837
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x40484e
push ebx
push 0xc
push 1
call fcn.00409601
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 0x404d54
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.0040eb1f
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.0040427a
inc edi
push edi
push ebp
mov ecx, esi
call fcn.0040427a
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.0040425f
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x405489
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 [0x41b6bc], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00415d80
call fcn.00403cf4
push 3
pop ecx
call fcn.00403d4f
push 0x28
pop ecx
mov dword [0x41b6c0], eax
call fcn.00403d4f
push 2
pop ecx
mov dword [0x41b6ac], eax
call fcn.00403d4f
push 5
pop ecx
mov dword [0x41b698], eax
call fcn.00403d4f
push 0x15
pop ecx
mov dword [0x41b69c], eax
call fcn.00403d4f
push 0x16
pop ecx
mov dword [0x41b6b4], eax
call fcn.00403d4f
push 0x17
pop ecx
mov dword [0x41b6a8], eax
call fcn.00403d4f
xor ebx, ebx
mov dword [0x41b6a4], eax
mov dword [0x41b6b8], ebx
mov dword [0x41b6b0], 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 0x40557b
push edi
lea eax, [ebp - 0x5c]
push 0x418b04
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404fd8
xor esi, esi
cmp dword [esi + 0x41b3dc], edi
jne 0x405573
mov ecx, dword [esi + 0x41b3e0]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404fd8
add esi, 8
cmp esi, 0x28
jb 0x405559
inc edi
cmp edi, 0x40
jl 0x405520
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405ae9
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x41b6a0], 0
jne 0x405afd
mov ecx, dword [0x41b7fc]
jmp fcn.004034b1
ret
Function at 0x405b15
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 0x405cc1
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405b3d
cmp ecx, 0x2f
jne 0x405cc1
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 0x405b6f
push dword [ebp + 8]
jmp 0x405cc2
mov edx, str.7ZSfx_03x.cmd
lea ecx, [ebp - 0x24]
call fcn.00404324
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 0x405c89
push esi
lea ecx, [ebp - 0x18]
call fcn.0040eb1f
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040eba4
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.0040ec62
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040eca2
mov esi, 0x418bd0
push esi
lea ecx, [ebp - 0x18]
call fcn.0040ec62
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0040ec62
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040eca2
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040ec62
push edi
lea ecx, [ebp - 0x18]
call fcn.0040ec62
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040eca2
push esi
lea ecx, [ebp - 0x18]
call fcn.0040ec62
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.004043fa
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 0x405c9c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405c9c
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 0x405cc7
mov ecx, dword [ebp - 0x24]
call fcn.004034b1
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 0x405cc8
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc
Function at 0x405e01
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41b6ec], esi
jle 0x405e53
mov eax, dword [0x41b6e8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040eb79
lea ecx, [ebp - 0xc]
call fcn.004055b5
mov eax, dword [0x41b6e8]
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
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 [0x41b6ec]
jl 0x405e12
pop esi
leave
ret
Function at 0x40701c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00406fd4
pop esi
pop ebp
ret 4

Function at 0x408bf4
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407514
test eax, eax
jne 0x408c12
push eax
push eax
push esi
push 0x408253
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x41b698]
mov ecx, esi
push dword [esi + 4]
call fcn.00407888
push 0x2d
pop ecx
call fcn.00403d4f
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.00407888
pop esi
ret
Function at 0x40910d
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.004078a2
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.00407934
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407934
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 0x408009
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408dd4
mov ecx, esi
mov edi, eax
call fcn.0040851e
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a370
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
push esi
add eax, 3
xor esi, esi
mov dword [esp + 0xc], ebp
mov dword [ecx], eax
test ebx, ebx
je 0x40a39f
mov eax, dword [edx]
mov dword [ecx + esi*4 + 0x10], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x40a391
cmp esi, ebp
jae 0x40a490
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4 + 0x10]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 + 0xc]
test edx, edx
jne 0x40a41d
movzx eax, byte [eax + 0x419168]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x40a473
cmp ebx, 6
jbe 0x40a473
cmp edx, 4
jne 0x40a473
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
or eax, edx
shl eax, 8
or edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4 + 0x10], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x40a3b4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4