joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea ecx, [ebp - 0xc]
call fcn.0040dc8c
lea ecx, [ebp - 0x18]
call fcn.0040dc8c
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x401718
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x401725
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x401737
or dword [ebp - 0x50], 0x100
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00402b06
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dfeb
cmp dword [ebp - 8], 0
jne 0x40176c
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
xor eax, eax
pop ecx
inc eax
pop esi
leave
ret
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4017b7
test esi, esi
jne 0x401795
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
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
mov eax, esi
jmp 0x401769
xor esi, esi
jmp 0x4017a1
Function at 0x401c78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00401bb0
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401c23
push edi
push edi
mov dword [0x41b448], esi
mov dword [0x41b450], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41b44c], eax
cmp eax, edi
je 0x401cd3
cmp dword [0x41b480], 2
je 0x401cc5
call fcn.00406fcd
mov eax, dword [0x41b44c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41b44c]
mov ecx, dword [0x41b450]
mov dword [0x41b538], edi
cmp ecx, edi
je 0x401d19
cmp ecx, 1
je 0x401d0d
cmp ecx, 2
je 0x401d09
cmp ecx, 3
je 0x401d05
cmp ecx, 0x67
jle 0x401d00
cmp ecx, 0x6a
jle 0x401d82
push ecx
push 0x14
jmp 0x401d53
push 0x12
jmp 0x401d0f
push 0x13
jmp 0x401d0f
push 0x11
push edi
call fcn.004070b5
pop ecx
pop ecx
jmp 0x401d82
mov dword [ebp + 8], edi
cmp dword [0x41b540], edi
jne 0x401d82
cmp eax, edi
je 0x401d40
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x401d40
cmp dword [ebp + 8], edi
jne 0x401d40
xor eax, eax
jmp 0x401d87
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401d56
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401d7a
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401d6c
cmp dword [0x41b484], 0xffffffff
je 0x401d82
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004070b5
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

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

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x402340
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402356
test al, 0x10
jne 0x402356
push esi
jmp 0x402336
xor eax, eax
inc eax
pop esi
ret
Function at 0x40272f
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
cmp dword [0x41b090], ebx
je 0x402762
mov eax, 0x41b090
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402762
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41b090]
cmp dword [eax], ebx
jne 0x40274b
shl esi, 4
cmp dword [esi + 0x41b090], ebx
jne 0x402777
mov eax, 0x41772c
jmp 0x4028eb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
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 - 4], eax
call edi
test eax, eax
jne 0x402827
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 - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40281e
call edi
test eax, eax
jne 0x40281e
mov eax, dword [esi + 0x41b09c]
test eax, eax
je 0x402813
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402810
push dword [esi + 0x41b09c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41b09c], edi
jmp 0x402826
push edi
jmp 0x402821
mov eax, dword [ebp - 8]
mov dword [esi + 0x41b09c], eax
jmp 0x402827
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 + 0x41b09c]
test eax, eax
jne 0x4028ea
mov ebx, dword [esi + 0x41b094]
cmp dword [esi + 0x41b098], eax
je 0x40285f
call fcn.004026d4
cmp eax, dword [0x418224]
jne 0x40285f
mov ebx, dword [esi + 0x41b098]
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 [0x41b068], 0xffffffff
pop ecx
mov dword [esi + 0x41b09c], eax
jne 0x4028ca
and dword [0x41b068], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41b454]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4028ca
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41b068], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41b09c]
push edi
push ebx
push 0
push dword [0x41b068]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41b09c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040dfb9
push 0x417804
lea ecx, [ebp - 0xc]
call fcn.0040e046
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402d4c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040dfeb
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040123a
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e046
test byte [ebp - 0x25c], 0x10
je 0x402d17
push 0x417800
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402d2f
push 0x4177f8
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402d2f
push dword [ebp - 0xc]
call fcn.00402c70
pop ecx
jmp 0x402d2b
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402d7d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402d7d
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402cbb
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x41b4a0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402d7d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402d7d
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402d87
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 0x402d8d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402db2
xor eax, eax
inc eax
jmp 0x402de3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402ddc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402dd8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402de3
xor eax, eax
jmp 0x402de3
push esi
call fcn.00402c70
pop ecx
pop esi
leave
ret
Function at 0x403180
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.0040dc8c
push 2
mov ecx, esi
call fcn.004030cb
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
test eax, eax
je 0x4031d5
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004030cb
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00402278
pop ecx
xor ecx, ecx
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
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.004030cb
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.00402278
xor ecx, ecx
add esp, 0x10
mov dword [esi + 4], eax
mov word [edi + eax*2], cx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40322b
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4031e5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40358b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.0040dfb9
push 0
lea ecx, [ebp - 0x18]
call fcn.004030cb
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x4035c7
cmp eax, 0x2f
jne 0x4035f5
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4035f5
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4035e7
cmp eax, 0x5c
je 0x4035e7
dec esi
test esi, esi
jg 0x4035d4
test esi, esi
je 0x403699
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00402315
pop ecx
test eax, eax
je 0x4035e3
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 0x40362c
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004032fe
pop ecx
pop ecx
test eax, eax
je 0x40362c
xor esi, esi
jmp 0x4036bc
push edi
call fcn.00402315
pop ecx
test eax, eax
jne 0x403686
push edi
push 0xc
push 1
call fcn.004070b5
add esp, 0xc
jmp 0x403625
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 0x403678
jmp 0x403677
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x40367e
cmp eax, 0x2f
je 0x40367e
inc esi
cmp word [edi + esi*2], cx
jne 0x403669
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40362c
cmp esi, dword [ebp - 4]
jl 0x403646
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4036e0
cmp dword [ebp - 4], 2
jne 0x4036c9
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4036c9
cmp ax, 0x7a
ja 0x4036c9
cmp word [ebx + 2], 0x3a
jne 0x4036c9
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4036e0
push ebx
push 0xc
push 1
call fcn.004070b5
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039fe
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.0040dc8c
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403a3d
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004030cb
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], esi
mov word [eax + esi*2], cx
mov eax, edi
pop edi
pop esi
ret

Function at 0x403ab9
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.0040dc8c
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004030cb
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004030cb
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00402278
pop ecx
mov dword [esi + 4], eax
xor ecx, ecx
mov word [edi + eax*2], cx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403f8a
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 [0x41b458], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.004071d3
push 3
call fcn.0040272f
push 2
mov dword [0x41b47c], eax
call fcn.0040272f
push 5
mov dword [0x41b478], eax
call fcn.0040272f
push 0x15
mov dword [0x41b474], eax
call fcn.0040272f
push 0x16
mov dword [0x41b470], eax
call fcn.0040272f
push 0x17
mov dword [0x41b46c], eax
call fcn.0040272f
xor ebx, ebx
add esp, 0x18
mov dword [0x41b468], eax
mov dword [0x41b460], ebx
mov dword [0x41b464], 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 0x40406d
push edi
lea eax, [ebp - 0x5c]
push 0x418300
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403b6c
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x4182d8], edi
jne 0x404065
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x4182dc]
call fcn.00403b6c
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404047
inc edi
cmp edi, 0x40
jl 0x40400c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4046a5
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 0x404859
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4046cd
cmp ecx, 0x2f
jne 0x404859
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 0x4046ff
push dword [ebp + 8]
jmp 0x40485a
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403180
pop ecx
pop ecx
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 0x404821
push esi
lea ecx, [ebp - 0x18]
call fcn.0040dc8c
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040dfeb
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.0040e046
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dd36
mov esi, 0x418408
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e046
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0040e046
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dd36
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0040e046
push edi
lea ecx, [ebp - 0x18]
call fcn.0040e046
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dd36
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e046
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040327b
mov eax, dword [eax]
add esp, 0xc
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 0x404834
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x404834
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 0x40485f
push dword [ebp - 0x24]
call fcn.00402d8d
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, 0x10
jmp 0x404860
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404864
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41b518], esi
jle 0x4048b8
mov eax, dword [0x41b514]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040dcb0
lea eax, [ebp - 0xc]
push eax
call fcn.004040ac
mov eax, dword [0x41b514]
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
pop ecx
cmp esi, dword [0x41b518]
jl 0x404875
pop esi
leave
ret
Function at 0x406b79
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.0040571a
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.00405737
push 1
inc edi
push edi
mov ecx, esi
call fcn.00405737
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 0x405d87
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004068a8
mov ecx, esi
mov edi, eax
call fcn.00406370
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4071d3
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 0x4071db
mov dword [ecx*4 + 0x41bb00], eax
inc ecx
cmp ecx, 0x100
jb 0x4071d6
mov edx, 0x800
jmp 0x407228
mov eax, dword [ecx*4 + 0x41b700]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41bb00]
inc ecx
mov dword [ecx*4 + 0x41bafc], eax
cmp ecx, edx
jb 0x407207
mov eax, 0x415ec0
mov esi, 0x415de0
mov dword [0x41baf0], eax
mov dword [0x41db00], eax
mov dword [0x41baec], esi
call fcn.0040c5e6
test eax, eax
jne 0x407255
mov dword [0x41db00], esi
pop esi
ret
Function at 0x40c7bb
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 0x40c7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c7e1
xor al, al
jmp 0x40c7f6
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

Function at 0x40e9d5
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.0040e997
add esp, 0x1c
leave
ret

Function at 0x40eb9b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x40ebbb
xor eax, eax
jmp 0x40ecd0
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x40ebdd
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x40ebe2
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40ebd4
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x40ecb9
cmp ecx, 2
jbe 0x40ec39
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x40ec57
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp - 4]
add dword [ebp - 4], 5
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
cmp dword [ebp + 0x18], 0
je 0x40ec64
add eax, edi
jmp 0x40ec66
shr esi, cl
test esi, esi
je 0x40ebff
cmp esi, 4
ja 0x40ec57
cmp esi, 3
je 0x40ec57
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x40ebff
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x40ebcc
sub eax, edi
test esi, esi
je 0x40ec97
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x40ec92
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x40ec90
add eax, edi
jmp 0x40ec92
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x40ebcc
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret