joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bee
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]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x4187ac]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c32
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c58
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c43
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401cd2
cmp dword [0x4187bc], 0
jne 0x401cd0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x4187bc], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x4187ac]
push 0x409
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
cmp dword [ebp - 4], 0
jne 0x401cc5
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401cd0
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fac
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x418080], ebx
je 0x401fdf
mov eax, 0x418080
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fdf
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x418080]
cmp dword [eax], ebx
jne 0x401fc8
shl esi, 4
cmp dword [esi + 0x418080], ebx
jne 0x401ff4
mov eax, 0x4143ac
jmp 0x402166
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_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 - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4020a4
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 - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40209b
call edi
test eax, eax
jne 0x40209b
mov eax, dword [esi + 0x41808c]
test eax, eax
je 0x402090
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40208d
push dword [esi + 0x41808c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41808c], edi
jmp 0x4020a3
push edi
jmp 0x40209e
mov eax, dword [ebp - 8]
mov dword [esi + 0x41808c], eax
jmp 0x4020a4
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 + 0x41808c]
test eax, eax
jne 0x402165
mov ebx, dword [esi + 0x418084]
lea edi, [esi + 0x418088]
cmp dword [edi], eax
je 0x4020da
call fcn.00401f56
cmp eax, dword [0x415164]
jne 0x4020da
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 [0x418054], 0xffffffff
pop ecx
mov dword [esi + 0x41808c], eax
jne 0x402145
and dword [0x418054], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x4187ac]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402145
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418054], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41808c]
push edi
push ebx
push 0
push dword [0x418054]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41808c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40225e
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 0x4022bb
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 0x4024e1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4024f1
xor eax, eax
leave
ret
test byte [0x4187ec], 2
mov dword [ebp - 0x40], 0x40
jne 0x402546
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402546
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402546
jb 0x402522
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402546
push 0x2b
call fcn.00401fac
push eax
call fcn.00408c28
cmp eax, 1
pop ecx
pop ecx
je 0x40253f
or dword [0x4187ec], 0xffffffff
jmp 0x4024ed
or dword [0x4187ec], 2
xor eax, eax
inc eax
leave
ret

Function at 0x40298b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401411
cmp dword [ebp - 4], 1
jg 0x4029a9
push 1
lea ecx, [ebp - 0xc]
call fcn.0040112b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x4029cd
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402a04
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004022be
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401117
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401362
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402d3d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
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.00402583
push 0x4144a4
lea ecx, [ebp - 0xc]
call fcn.004025bc
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402e19
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401329
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401429
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004025bc
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402de8
push 0x4144a0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402dfc
push 0x414498
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402dfc
push edi
call fcn.00402d3d
pop ecx
jmp 0x402df8
push 0
push edi
call esi
test eax, eax
je 0x402e3c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402e3c
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402d83
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402e3c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402e3c
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402e44
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x418884], 0
je 0x402e57
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402e6d
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402e8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402e87
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402d3d
pop ecx
pop esi
ret

Function at 0x402f41
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401411
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402f7f
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004022be
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4030d4
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.00401411
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004022be
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004022be
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401117
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4031de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4031fb
xor eax, eax
jmp 0x403254
test al, 0x10
je 0x40320c
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403254
mov eax, dword [0x4187f0]
test eax, eax
jne 0x40321e
push esi
call fcn.004031b1
pop ecx
jmp 0x403254
cmp eax, 2
jne 0x403251
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403215
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403215
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40355c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402583
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40358d
push esi
lea ecx, [ebp - 0x18]
call fcn.0040112b
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x4035a1
cmp ax, 0x2f
jne 0x4035aa
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x4035d0
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x4035c3
cmp ax, 0x5c
je 0x4035c3
dec esi
test esi, esi
jg 0x4035ae
test esi, esi
je 0x40367f
and word [edi + esi*2], 0
push edi
call fcn.00401986
test eax, eax
pop ecx
je 0x4035bf
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403607
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004031de
test eax, eax
pop ecx
pop ecx
je 0x403607
xor esi, esi
jmp 0x4036a4
push edi
call fcn.00401986
test eax, eax
pop ecx
jne 0x403621
push edi
push 0xc
push 1
call fcn.00408c95
add esp, 0xc
jmp 0x403600
cmp esi, ebx
jge 0x403673
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 0x403659
jmp 0x403658
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x40365f
cmp ax, 0x2f
je 0x40365f
inc esi
cmp word [edi + esi*2], cx
jne 0x403648
push edi
mov word [edi + esi*2], cx
call fcn.00401986
test eax, eax
pop ecx
je 0x403612
cmp esi, dword [ebp - 4]
jl 0x403625
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4036c4
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4036af
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4036af
cmp ax, 0x7a
ja 0x4036af
cmp word [ecx + 2], 0x3a
jne 0x4036af
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4036c4
push ecx
push 0xc
push 1
call fcn.00408c95
push edi
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 0x40435f
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.00401411
push 2
mov ecx, esi
call fcn.004022be
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x4043b2
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004022be
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401117
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
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.004022be
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.00401117
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404407
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4043c2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40440e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4183b4], esi
jle 0x404462
mov eax, dword [0x4183b8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012f7
lea eax, [ebp - 0xc]
push eax
call fcn.0040402e
mov eax, dword [0x4183b8]
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 [0x4183b4]
pop ecx
jl 0x40441f
pop esi
leave
ret
Function at 0x40479b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f56
push 3
call fcn.00401fac
push 0x28
mov dword [0x4187e4], eax
call fcn.00401fac
push 2
mov dword [0x4187e0], eax
call fcn.00401fac
push 5
mov dword [0x4187dc], eax
call fcn.00401fac
push 0x15
mov dword [0x4187d8], eax
call fcn.00401fac
push 0x16
mov dword [0x4187d4], eax
call fcn.00401fac
push 0x17
mov dword [0x4187d0], eax
call fcn.00401fac
add esp, 0x1c
xor ebx, ebx
mov dword [0x4187cc], eax
mov dword [0x4187c4], ebx
mov dword [0x4187c8], ebx
mov edi, 0x4183ac
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4048bf
push ebx
lea eax, [ebp - 0x98]
push 0x415554
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401411
lea ecx, [ebp - 0xc]
call fcn.00401411
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401329
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401329
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403130
cmp dword [esi + 0x418384], ebx
jne 0x4048af
push dword [esi + 0x418388]
lea ecx, [ebp - 0x18]
call fcn.00401329
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401329
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403130
add esi, 8
cmp esi, 0x28
jb 0x40487f
lea ecx, [ebp - 0x18]
call fcn.004024ac
inc ebx
cmp ebx, 0x40
jl 0x404816
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404dda
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401411
lea ecx, [ebp - 0x18]
call fcn.00401411
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]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404e2b
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404e38
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040492a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401329
cmp dword [ebp - 8], edi
jne 0x404e6d
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__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404ead
test dword [ebp + 0xc], 0x10000
jne 0x404e9b
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x404e5f
xor ebx, ebx
jmp 0x404ea4
Function at 0x40522b
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
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4053dd
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x405255
cmp ax, 0x2f
jne 0x4053dd
mov ax, word [esi]
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
jne 0x4053dd
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.0040435f
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 0x4053a7
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401411
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401329
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004025bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013e2
mov esi, 0x415614
push esi
lea ecx, [ebp - 0x1c]
call fcn.004025bc
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004025bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013e2
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004025bc
push edi
lea ecx, [ebp - 0x1c]
call fcn.004025bc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013e2
push esi
lea ecx, [ebp - 0x1c]
call fcn.004025bc
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040293a
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]
cmp esi, ebx
pop edi
je 0x4053b8
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4053b8
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__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4053e3
push dword [ebp - 0x28]
call fcn.00402e4a
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 0x4053e4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406ccf
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.00406c91
add esp, 0x1c
leave
ret
Function at 0x4088eb
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.00407087
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004070a4
push 1
inc edi
push edi
mov ecx, esi
call fcn.004070a4
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4076ed
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004085ba
mov ecx, esi
mov edi, eax
call fcn.00407a5f
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40910b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x409113
mov dword [ecx*4 + 0x4189c0], eax
inc ecx
cmp ecx, 0x100
jb 0x40910e
mov edx, 0x800
jmp 0x409160
mov eax, dword [ecx*4 + 0x4185c0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4189c0]
inc ecx
mov dword [ecx*4 + 0x4189bc], eax
cmp ecx, edx
jb 0x40913f
mov dword [0x418894], 0x413510
call fcn.0040e2fe
test eax, eax
pop esi
jne 0x409182
mov dword [0x418894], 0x413430
ret