joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004047b1
mov ebx, dword [ebp - 8]
add esp, 0x18
test eax, eax
je 0x404dfa
push esi
push edi
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404880
add esp, 0xc
push pe_nt_image_headers32
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x404df8
push esi
push ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.004048f6
add esp, 0x14
test eax, eax
je 0x404df8
xor eax, eax
cmp word [ebp - 0xfc], 3
sete al
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x140]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404b92
add esp, 0x20
mov dword [ebp - 4], eax
pop edi
pop esi
test ebx, ebx
je 0x404e05
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4052cf
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x405386
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004196e0
and word [ebp - 0x2000], 0
push esi
push edi
mov esi, 0xffe
push esi
lea eax, [ebp - 0x1ffe]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x1000], 0
push esi
lea eax, [ebp - 0xffe]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call esi
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405422
test edi, edi
jne 0x4053dd
test edi, edi
lea eax, [ebp - 0x1000]
jne 0x405432
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 0xc]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40543e
Capabilities:
Enumerate files on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa74
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
mov ebx, 0x401d78
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40554c
and word [ebp - 0x664], ax
push 0x40e
push eax
lea eax, [ebp - 0x662]
push eax
call sub.MSVCRT.dll_memset
push 0x208
lea eax, [ebp - 0x664]
push eax
push 0x401d10
call fcn.00405386
add esp, 0x18
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405622
lea eax, [ebp - 0x664]
push eax
call fcn.00403623
pop ecx
test byte [ebp - 0x254], 0x10
je 0x405527
lea eax, [ebp - 0x228]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x405527
and word [ebp - 0xa74], ax
push 0x40e
push eax
lea eax, [ebp - 0xa72]
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xa74]
push 0x401cfc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0xa74]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40553b
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4054c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x405622
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401cec
push edi
call esi
push 0x401cdc
push edi
mov dword [0x41c840], eax
call esi
push 0x401cc8
push edi
mov dword [0x41c844], eax
call esi
push 0x401cb4
push edi
mov dword [0x41c848], eax
call esi
push 0x401ca0
push edi
mov dword [0x41c850], eax
call esi
push 0x401c8c
push edi
mov dword [0x41c84c], eax
call esi
push 0x401c78
push edi
mov dword [0x41c854], eax
call esi
push 0x401c64
push edi
mov dword [0x41c85c], eax
call esi
push 0x401c50
push edi
mov dword [0x41c858], eax
call esi
push 0x401c3c
push edi
mov dword [0x41c860], eax
call esi
push 0x401c24
push edi
mov dword [0x41c864], eax
call esi
push 0x401c0c
push edi
mov dword [0x41c868], eax
call esi
push 0x401bf4
push edi
mov dword [0x41c86c], eax
call esi
push 0x401bd8
push edi
mov dword [0x41c870], eax
call esi
push 0x401bb8
push edi
mov dword [0x41c874], eax
call esi
push 0x401b94
push edi
mov dword [0x41c878], eax
call esi
mov dword [0x41c87c], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405c6c
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x401df8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x405ccf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401de4
push eax
call edi
push 0x401dd4
push dword [esi]
mov dword [esi + 4], eax
call edi
push 0x401dbc
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x401da8
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x401d9c
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push 0x401d90
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x4065c1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push pe_nt_image_headers32
lea eax, [ebp - 0x40]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - pe_nt_image_headers32], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0x30]
jne 0x4065f4
mov eax, dword [ebp - 0x38]
shr eax, 0x14
leave
ret

Function at 0x40660d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x41f104], esi
mov dword [ebp - 4], esi
jne 0x40665a
push edi
mov ecx, esi
push 8
shl ecx, 0x18
xor edx, edx
pop edi
mov eax, edx
xor eax, ecx
add edx, edx
test eax, eax
jns 0x40663a
xor edx, 0x4c10db7
add ecx, ecx
dec edi
jne 0x40662a
mov dword [esi*4 + 0x41ed00], edx
inc esi
cmp esi, 0x100
jl 0x406620
mov dword [0x41f104], 0x4c10db7
pop edi
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
pop esi
jbe 0x406687
mov eax, dword [ebp + 8]
movzx eax, byte [ecx + eax]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor eax, edx
mov edx, dword [ebp - 4]
shl edx, 8
xor edx, dword [eax*4 + 0x41ed00]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jb 0x406662
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40668c
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
cmp dword [0x41f50c], edx
push ebx
push esi
jne 0x4066dd
mov esi, 0x41f108
push edi
xor eax, eax
mov ah, dl
push 8
pop edi
movzx ecx, ax
xor eax, eax
mov ebx, ecx
xor ebx, eax
add eax, eax
test bx, bx
jns 0x4066bd
xor eax, 0x8005
movzx eax, ax
add ecx, ecx
dec edi
jne 0x4066aa
movzx eax, ax
mov dword [esi], eax
inc edx
add esi, 4
cmp dx, 0x100
jb 0x40669e
mov dword [0x41f50c], 0x8005
pop edi
xor ecx, ecx
xor eax, eax
cmp dword [esp + 0x10], ecx
jbe 0x40670d
mov edx, dword [esp + 0xc]
movzx edx, byte [ecx + edx]
xor ebx, ebx
movzx esi, ax
mov bh, al
shr esi, 8
xor edx, esi
xor bx, word [edx*4 + 0x41f108]
inc ecx
cmp ecx, dword [esp + 0x10]
movzx eax, bx
jb 0x4066e7
pop esi
pop ebx
ret

Function at 0x40692f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
push 0x400
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.0040342a
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
test esi, esi
je 0x4069cd
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4069c7
push ebx
lea ebx, [edi + 1]
push ebx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4069c6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4069bf
push ebx
lea ecx, [ebp - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x406abb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x406b32
cmp word [esi], bx
je 0x406b32
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x406b28
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x406b1c
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406b22
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406afd
jmp 0x406b28
mov ebx, dword [ebp - 0x224]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x406b41
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00406a77
pop ecx
mov ebx, eax
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x406b47
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x2c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x406b6b
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx ecx, word [esi]
test cx, cx
mov edi, eax
mov dword [ebp - 4], edi
je 0x406bed
push ebx
cmp cx, 0x2b
sete al
inc esi
inc esi
movzx ecx, word [esi]
xor edx, edx
cmp cx, 0x41
sete dl
xor ebx, ebx
cmp cx, 0x53
sete bl
lea edx, [ebx + edx*8]
xor ebx, ebx
cmp cx, 0x48
sete bl
lea edx, [ebx + edx*2]
xor ebx, ebx
cmp cx, 0x52
sete bl
lea ecx, [ebx + edx*2]
test ecx, ecx
je 0x406bcb
test al, al
je 0x406bc7
or edi, ecx
jmp 0x406bcb
not ecx
and edi, ecx
inc esi
inc esi
movzx ecx, word [esi]
test cx, cx
jne 0x406b82
cmp dword [ebp - 4], edi
pop ebx
je 0x406bed
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc eax
neg eax
sbb eax, eax
inc eax
jmp 0x406bef
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x406c3d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x86c]
push 0x401e70
push eax
xor edi, edi
xor ebx, ebx
call esi
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406d21
test eax, eax
jbe 0x406d21
test byte [ebp - 0x254], 0x10
je 0x406cef
lea eax, [ebp - 0x228]
push eax
call fcn.00405358
test eax, eax
pop ecx
jne 0x406d00
and word [ebp - 0x45c], ax
push 0x206
push eax
lea eax, [ebp - 0x45a]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push 0x401e64
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00406c3d
add esp, 0x20
add edi, eax
adc ebx, edx
jmp 0x406d00
mov eax, dword [ebp - 0x234]
sub eax, dword [ebp - 0x238]
add edi, eax
adc ebx, 0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406c8f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
leave
ret

Function at 0x406d2a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406424
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x406e49
cmp word [esi], bx
je 0x406e49
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x406e49
mov word [eax], bx
add eax, 2
push edi
push eax
call fcn.00406343
mov edi, eax
mov dword [esp], 0x40e
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push edi
call esi
cmp eax, 1
jbe 0x406da5
cmp word [edi + 2], 0x3a
jne 0x406dad
push edi
call esi
cmp eax, 2
jae 0x406dda
cmp edi, ebx
je 0x406dd3
cmp word [edi], bx
je 0x406dd3
push edi
push 0x41d450
lea eax, [ebp - 0x410]
push 0x401e64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x406de8
push 0x41d450
jmp 0x406ddb
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.00406424
lea eax, [ebp - 0x410]
push eax
call fcn.0040366a
pop ecx
pop ecx
test eax, eax
pop edi
lea eax, [ebp - 0x410]
push eax
je 0x406e15
call fcn.00406c3d
jmp 0x406e1a
call fcn.00406bf3
pop ecx
push edx
push eax
lea eax, [ebp - 0x410]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x406e54
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x4072b1
Capabilities:
Create directory
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.004196e0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
cmp word [edi], bx
jne 0x4073cf
cmp dword [ebp + 0x10], ebx
je 0x4073c0
and word [ebp - 0x1800], si
push 0xffe
lea eax, [ebp - 0x17fe]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 1
lea edi, [ebx + 0x401998]
push dword [edi]
lea eax, [ebp - 0x1800]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4073af
cmp dword [edi], 0x1a
jne 0x40732f
push 0x401f88
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x800
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call fcn.00405386
lea eax, [ebp - 0x800]
push eax
push dword [ebx + 0x40199c]
lea eax, [ebp - 0x1800]
push 0x401f7c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
cmp byte [ebp + 0xc], 0
jne 0x40739c
lea eax, [ebp - 0x800]
push eax
call fcn.0040366a
test eax, eax
pop ecx
jne 0x40739c
lea eax, [ebp - 0x800]
push eax
call fcn.00403692
pop ecx
push 0
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [ebp - 0x1800]
push 0
push eax
call fcn.004072b1
add esp, 0xc
add ebx, 8
cmp ebx, 0x48
jb 0x4072da
jmp 0x407487
push 0x1388
push 0x401f64
jmp 0x407480
cmp byte [ebp + 0xc], 1
mov ebx, 0x401f64
jne 0x407404
push edi
push ebx
push 0x401ed4
lea eax, [ebp - 0x800]
push 0x401cfc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x800]
push eax
call fcn.00406e58
add esp, 0x18
jmp 0x407437
cmp byte [ebp + 0xc], 2
jne 0x407437
push edi
push ebx
push 0x401f08
push 0x401ee0
lea eax, [ebp - 0x800]
push 0x401eec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x800]
push eax
call fcn.00406e58
add esp, 0x1c
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x40745f
and word [esi], 0
add esi, 2
push esi
call fcn.00406343
push edi
mov esi, eax
call fcn.00406343
pop ecx
pop ecx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp byte [ebp + 0xc], 1
je 0x40747a
cmp byte [ebp + 0xc], 2
jne 0x407487
push 0x1388
push ebx
call fcn.0040722d
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40748e
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x4c4
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
push esi
call fcn.00403ae6
cmp eax, 3
pop ecx
je 0x4074c2
cmp eax, 0x10002
je 0x4074c2
cmp eax, 0x10001
je 0x4074c2
cmp eax, 6
jne 0x4075e7
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp - 0x456]
push ebx
push eax
mov word [ebp - 0x458], bx
call sub.MSVCRT.dll_memset
mov eax, dword [0x402030]
mov dword [ebp - 0x48], eax
mov eax, dword [0x402034]
push 0x98
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [esi]
add esp, 0x18
mov word [ebp - 0x48], ax
push 0x104
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x42], bx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4075e7
mov esi, 0x402020
push esi
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x4075e7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x68]
lea eax, [ecx + eax*2]
push eax
mov dword [ebp + 0x68], eax
call fcn.00406424
pop ecx
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x4075e7
push edi
lea eax, [ebp - 0x24e]
push ebx
push eax
mov word [ebp - 0x250], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 0x68]
lea eax, [ebp - 0x250]
push esi
push dword [ebp + 0x7c]
push 0x402010
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
cmp dword [ebp + 0x78], ebx
push 4
sete al
pop ebx
push ebx
mov edi, SysReAllocString
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x78]
push eax
push ebx
push 0x401ff8
lea eax, [ebp - 0x250]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x401fdc
lea eax, [ebp - 0x250]
push eax
push edi
call esi
xor eax, eax
jmp 0x4075ea
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret

Function at 0x407607
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
inc edi
test eax, eax
jne 0x407629
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
mov dword [esi], eax
je 0x407636
and eax, 0xffffffd8
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x40774a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x3b6]
push ebx
push eax
mov word [ebp - 0x3b8], bx
call sub.MSVCRT.dll_memset
push 0x2c
push 4
push dword [ebp + 8]
lea eax, [ebp - 0x1b0]
push eax
call fcn.00406477
add esp, 0x1c
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x4078fd
cmp word [eax], bx
je 0x4078fd
mov esi, dword [ebp - 0x50]
cmp esi, ebx
je 0x4078cf
cmp word [esi], bx
je 0x4078cf
push esi
call fcn.00403642
test eax, eax
pop ecx
je 0x4078cf
lea eax, [ebp - 4]
push eax
push esi
call fcn.0040359f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4078e6
push 0x23
push 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 8], 1
call fcn.00406477
add esp, 0x10
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x407823
cmp word [eax], bx
je 0x407823
push eax
call fcn.00403470
pop ecx
mov esi, eax
jmp 0x407825
mov esi, ebx
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x407849
cmp word [eax], bx
je 0x407849
push eax
call fcn.00403470
pop ecx
mov dword [ebp - 8], eax
push 0x28
pop eax
cmp dword [ebp - 8], eax
jbe 0x407849
mov dword [ebp - 8], eax
cmp esi, ebx
jl 0x4078ac
cmp esi, dword [ebp - 4]
jae 0x4078ac
mov edi, dword [ebp - 8]
cmp edi, ebx
jle 0x4078c4
push 0x9e
lea eax, [ebp - 0x12e]
push ebx
push eax
mov word [ebp - 0x130], bx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
movzx eax, byte [esi + eax]
push eax
lea eax, [ebp - 0x130]
push 0x401e94
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
dec edi
cmp esi, dword [ebp - 4]
jb 0x407855
jmp 0x4078c4
push dword [ebp - 4]
lea eax, [ebp - 0x3b8]
push 0x4019e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x4078e6
push 0xffffffffffffffff
lea eax, [ebp - 0x3b8]
push 0x401e84
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3b8]
push eax
call fcn.00406343
pop ecx
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret