joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x25076ac9
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c641701
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401c59
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.004147df
lea ecx, [ebp - 0x1c]
call fcn.004147df
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 0x401cb1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401cbd
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401ccc
or dword [ebp - 0x54], 0x100
mov eax, dword [0x42272c]
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.00403022
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414864
cmp dword [ebp - 0xc], edi
jne 0x401d14
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 0x401d5b
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 0x401d49
cmp ebx, edi
jne 0x401d3d
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 0x402766
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004023c3
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40266d
push edi
push edi
mov dword [0x422724], esi
mov dword [0x422728], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x422720], eax
cmp eax, edi
je 0x4027c1
cmp dword [0x422770], 2
je 0x4027b3
call fcn.00408c2e
mov eax, dword [0x422720]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x422720]
mov ecx, dword [0x422728]
mov dword [0x4228c4], edi
cmp ecx, edi
je 0x402807
cmp ecx, 1
je 0x4027fb
cmp ecx, 2
je 0x4027f7
cmp ecx, 3
je 0x4027f3
cmp ecx, 0x67
jle 0x4027ee
cmp ecx, 0x6b
jle 0x402870
push ecx
push 0x14
jmp 0x402841
push 0x12
jmp 0x4027fd
push 0x13
jmp 0x4027fd
push 0x11
push edi
call fcn.00409684
pop ecx
pop ecx
jmp 0x402870
mov dword [ebp + 8], edi
cmp dword [0x4228cc], edi
jne 0x402870
cmp eax, edi
je 0x40282e
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x40282e
cmp dword [ebp + 8], edi
jne 0x40282e
xor eax, eax
jmp 0x402875
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402844
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402868
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40285a
cmp dword [0x422774], 0xffffffff
je 0x402870
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409684
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x403092
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 0x4030d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4030bd
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4030d3
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4030d0
test al, 0x10
jne 0x4030d0
push esi
jmp 0x4030b3
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x403327
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.00414803
push 0x41dbcc
lea ecx, [ebp - 0xc]
call fcn.00414922
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 0x403405
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414864
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401585
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414922
test byte [ebp - 0x260], 0x10
je 0x4033cc
push 0x41dbc8
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
push 0x41dbc0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
mov ecx, dword [ebp - 0xc]
call fcn.00403327
jmp 0x4033e0
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x403432
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x403373
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [0x422794]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x403432
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40343c
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 0x403442
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x4228d8], 0
push esi
mov esi, ecx
je 0x40345c
xor eax, eax
inc eax
jmp 0x4034a0
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403457
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403499
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x403495
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4034a0
xor eax, eax
jmp 0x4034a0
mov ecx, esi
call fcn.00403327
pop esi
leave
ret
Function at 0x403908
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 [0x422730]
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 0x403956
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403980
mov esi, dword [ebp + 8]
test esi, esi
je 0x403969
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 0x403980
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x4039ea
cmp dword [0x422734], 0
jne 0x4039e8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42275c]
mov dword [0x422734], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422730]
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 0x4039de
push str.SetThreadPreferredUILanguages
push dword [0x42275c]
call esi
mov ebx, eax
test ebx, ebx
je 0x4039e8
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 0x403ce0
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 [0x422158], ebx
je 0x403d13
mov eax, 0x422158
cmp dword [eax], ecx
je 0x403d13
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x422158]
cmp dword [eax], ebx
jne 0x403cff
shl esi, 4
cmp dword [esi + 0x422158], ebx
jne 0x403d28
mov eax, 0x41da3c
jmp 0x403e9c
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 0x403dd8
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 0x403dcf
call edi
test eax, eax
jne 0x403dcf
mov eax, dword [esi + 0x422164]
test eax, eax
je 0x403dc4
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x403dc1
push dword [esi + 0x422164]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x422164], edi
jmp 0x403dd7
push edi
jmp 0x403dd2
mov eax, dword [ebp - 4]
mov dword [esi + 0x422164], eax
jmp 0x403dd8
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 + 0x422164]
test eax, eax
jne 0x403e9b
mov ebx, dword [esi + 0x42215c]
cmp dword [esi + 0x422160], eax
je 0x403e10
call fcn.00403c85
cmp eax, dword [0x41ea18]
jne 0x403e10
mov ebx, dword [esi + 0x422160]
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 [0x42211c], 0xffffffff
pop ecx
mov dword [esi + 0x422164], eax
jne 0x403e7b
and dword [0x42211c], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x422730]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x403e7b
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x42211c], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x422164]
push edi
push ebx
push 0
push dword [0x42211c]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x422164]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f0a
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 0x403f5d
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 0x4042b5
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.004147df
push 2
mov ecx, esi
call fcn.0040420b
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 0x4042ff
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040420b
push eax
push ebx
call edi
mov ecx, esi
call fcn.004041f0
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.0040420b
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.004041f0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40433e
inc ebp
cmp ebp, 0xfff
jl 0x404308
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40468a
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.00414803
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040420b
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x4046c8
cmp eax, 0x2f
jne 0x4046f6
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4046f6
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4046e8
cmp eax, 0x5c
je 0x4046e8
dec esi
test esi, esi
jg 0x4046d5
test esi, esi
je 0x404798
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403092
test eax, eax
je 0x4046e4
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 0x40472b
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404402
test eax, eax
je 0x40472b
xor esi, esi
jmp 0x4047bb
mov ecx, edi
call fcn.00403092
test eax, eax
jne 0x404785
push edi
push 0xc
push 1
call fcn.00409684
add esp, 0xc
jmp 0x404724
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 0x404777
jmp 0x404776
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x40477d
cmp eax, 0x2f
je 0x40477d
inc esi
cmp word [edi + esi*2], cx
jne 0x404768
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40472b
cmp esi, dword [ebp - 4]
jl 0x404745
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4047df
cmp dword [ebp - 4], 2
jne 0x4047c8
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4047c8
cmp ax, 0x7a
ja 0x4047c8
cmp word [ebx + 2], 0x3a
jne 0x4047c8
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4047df
push ebx
push 0xc
push 1
call fcn.00409684
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 0x404ce5
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.004147df
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.0040420b
inc edi
push edi
push ebp
mov ecx, esi
call fcn.0040420b
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.004041f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40541a
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 [0x42275c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0041bd00
call fcn.00403c85
push 3
pop ecx
call fcn.00403ce0
push 0x28
pop ecx
mov dword [0x422760], eax
call fcn.00403ce0
push 2
pop ecx
mov dword [0x42274c], eax
call fcn.00403ce0
push 5
pop ecx
mov dword [0x422738], eax
call fcn.00403ce0
push 0x15
pop ecx
mov dword [0x42273c], eax
call fcn.00403ce0
push 0x16
pop ecx
mov dword [0x422754], eax
call fcn.00403ce0
push 0x17
pop ecx
mov dword [0x422748], eax
call fcn.00403ce0
xor ebx, ebx
mov dword [0x422744], eax
mov dword [0x422758], ebx
mov dword [0x422750], 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 0x40550c
push edi
lea eax, [ebp - 0x5c]
push 0x41ead4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404f69
xor esi, esi
cmp dword [esi + 0x42246c], edi
jne 0x405504
mov ecx, dword [esi + 0x422470]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404f69
add esi, 8
cmp esi, 0x28
jb 0x4054ea
inc edi
cmp edi, 0x40
jl 0x4054b1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a7a
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x422740], 0
jne 0x405a8e
mov ecx, dword [0x42289c]
jmp fcn.00403442
ret
Function at 0x405aa6
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 0x405c52
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405ace
cmp ecx, 0x2f
jne 0x405c52
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 0x405b00
push dword [ebp + 8]
jmp 0x405c53
mov edx, str.7ZSfx_03x.cmd
lea ecx, [ebp - 0x24]
call fcn.004042b5
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 0x405c1a
push esi
lea ecx, [ebp - 0x18]
call fcn.004147df
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00414864
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
mov esi, 0x41eb70
push esi
lea ecx, [ebp - 0x18]
call fcn.00414922
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00414922
push edi
lea ecx, [ebp - 0x18]
call fcn.00414922
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414962
push esi
lea ecx, [ebp - 0x18]
call fcn.00414922
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040438b
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 0x405c2d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405c2d
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 0x405c58
mov ecx, dword [ebp - 0x24]
call fcn.00403442
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 0x405c59
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc
Function at 0x405d92
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x42278c], esi
jle 0x405de4
mov eax, dword [0x422788]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00414839
lea ecx, [ebp - 0xc]
call fcn.00405546
mov eax, dword [0x422788]
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 [0x42278c]
jl 0x405da3
pop esi
leave
ret
Function at 0x40709f
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.0040705a
pop esi
pop ebp
ret 4

Function at 0x408c93
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407597
test eax, eax
jne 0x408cb1
push eax
push eax
push esi
push 0x4082d6
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
ret
push dword [0x422738]
mov ecx, esi
push dword [esi + 4]
call fcn.0040790b
push 0x2d
pop ecx
call fcn.00403ce0
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.0040790b
pop esi
ret
Function at 0x409190
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.00407925
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.004079b7
push 1
inc edi
push edi
mov ecx, esi
call fcn.004079b7
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 0x40808c
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e57
mov ecx, esi
mov edi, eax
call fcn.004085bd
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x413dfa
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 0x413e20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x413e20
xor al, al
jmp 0x413e35
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
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