joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bcf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x45e87c
push eax
call fcn.00417570
push 0x45e878
push esi
mov edi, eax
call fcn.0043e1bc
add esp, 0x10
test edi, edi
mov ebx, eax
je 0x408c5f
test ebx, ebx
je 0x408c5f
mov esi, 0x80
push esi
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00417060
add esp, 0xc
jmp 0x408c49
push ebx
push eax
lea eax, [ebp - 0x84]
push 1
push eax
call fcn.0043e076
push esi
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00417060
add esp, 0x1c
test eax, eax
jg 0x408c28
push edi
call fcn.004167d0
push ebx
call fcn.0043de9b
pop ecx
pop ecx
xor eax, eax
jmp 0x408c62
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b0c4
leave
ret

Function at 0x408c71
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f4]
sub esp, 0x874
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x7f0], eax
push ebx
mov ebx, dword [ebp + 0x7fc]
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1da]
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov word [ebp + 0x1d8], di
call fcn.0043b390
push 0x250
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0043b390
push ebx
lea eax, [ebp + 0x1d8]
push str._s.
push eax
call fcn.00408bb9
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x408dd4
mov edi, 0x45e88c
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
neg ebx
lea eax, [ebp - 0x4c]
sbb bl, bl
push 0x45e888
push eax
inc bl
call fcn.0043d91c
test eax, eax
pop ecx
pop ecx
je 0x408dc3
lea eax, [ebp - 0x4c]
push 0x45e880
push eax
call fcn.0043d91c
test eax, eax
pop ecx
pop ecx
je 0x408dc3
and word [ebp + 0x3e0], 0
push esi
lea eax, [ebp + 0x3e2]
push 0
push eax
call fcn.0043b390
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
call fcn.0043d978
and word [ebp + 0x5e8], 0
add esp, 0x14
push esi
lea eax, [ebp + 0x5ea]
push 0
push eax
call fcn.0043b390
test byte [ebp - 0x78], 0x10
lea eax, [ebp + 0x3e0]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x5e8]
push edi
push eax
je 0x408dae
call fcn.00408bb9
lea eax, [ebp + 0x5e8]
push eax
call fcn.00408c71
add esp, 0x20
jmp 0x408dc3
call fcn.00408bb9
add esp, 0x1c
lea eax, [ebp + 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x408cfa
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x7f0]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0043b0c4
add ebp, 0x7f4
leave
ret
Function at 0x408f38
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
mov ebx, 0x80
push ebx
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40904d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [eax - 1]
cmp ecx, 0x27fe
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
ja 0x408f8e
push eax
call fcn.0041db22
pop ecx
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x40904d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x40904d
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041db22
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x40904d
push dword [ebp - 8]
push esi
push eax
call fcn.0043b390
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00408edf
add esp, 0x14
push esi
push ebx
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40904d
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0xfeff
call edi
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push dword [ebp - 0xc]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40904f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409309
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x459b44
call fcn.0043b0d3
mov eax, dword [ebp + 0x214]
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
test byte [0x479900], bl
mov dword [ebp - 0x14], eax
mov edi, 0x45e8e0
mov esi, 0x4798fc
jne 0x409370
or dword [0x479900], ebx
and dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.004014fd
push 0x45c6b4
call fcn.0043b372
or dword [ebp - 4], 0xffffffff
pop ecx
mov eax, dword [0x4798fc]
cmp dword [eax - 0xc], 0
jle 0x409389
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00401d3f
jmp 0x409450
push edi
lea ecx, [ebp - 0x1c]
call fcn.004014fd
push 0
mov dword [ebp - 4], ebx
call fcn.0043b498
push edx
push eax
lea eax, [ebp - 0x1c]
push str.__d_
push eax
call fcn.00409165
add esp, 0x14
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004014d8
push ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00409082
push 0x5c
push eax
call fcn.00409054
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 0xd], al
call fcn.004010ea
cmp byte [ebp - 0xd], 0
je 0x4093ff
push 0x45e7b8
mov ecx, esi
call fcn.00409140
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x45e8c4
push eax
call fcn.00401e09
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004026eb
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010ea
push 0
push dword [0x4798fc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00401d3f
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043b0c4
add ebp, 0x20c
leave
ret
Function at 0x40950a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x459baf
call fcn.0043b106
and dword [ebp - 0x18], 0
call fcn.004225e2
mov esi, dword [eax + 8]
push str.GZ_RES
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4095dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
mov esi, eax
je 0x4095dd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409309
pop ecx
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401da5
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.004010ea
push 0x1001
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0042ba89
push esi
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0042b231
lea ecx, [ebp - 0x2c]
call fcn.0042b317
lea ecx, [ebp - 0x2c]
call fcn.0042b481
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
call fcn.0042b5b7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, dword [ebp - 0x18]
call fcn.0043b1ab
ret
Function at 0x4097e9
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x459c30
call fcn.0043b0d3
mov edi, dword [ebp + 0x218]
mov esi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x214]
and dword [ebp - 4], 0
push edi
push 0
push 0x45ea48
push dword [ebp + 0x21c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 8], eax
mov ebx, 0x104
push ebx
lea eax, [ebp]
push eax
push 0x45e8e0
push str.Name
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0xc]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45e8e0
push str.SubTitle
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x10]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45e8e0
push str.Description
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x14]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push str.1.0.0.0
push str.Version
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x18]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45e8e0
push 0x45e9e8
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x1c]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45e8e0
push 0x45e9e0
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x20]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
push 0
push str.FileLength
push dword [ebp + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x10]
mov dword [esi + 0x24], eax
push 0
push str.InstallSize
push dword [ebp + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push dword [ebp - 0x10]
mov dword [esi + 0x28], eax
push ebx
mov ebx, dword [ebp + 0x21c]
lea eax, [ebp]
push eax
push 0x45e8e0
push str.ExeFileName
push ebx
call edi
lea eax, [ebp]
lea ecx, [esi + 0x2c]
push eax
call fcn.004014d8
push dword [ebp - 0x10]
push 1
push str.SlientSetup
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edi, [esi + 0x1c]
push 0x2f
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.004096f2
test eax, eax
jle 0x4099cc
inc eax
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040880f
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.004087c2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x4099df
push dword [esi]
add esi, 4
push 0x45e964
push esi
call fcn.00409165
add esp, 0xc
lea ecx, [ebx - 0x10]
call fcn.004010ea
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043b0c4
add ebp, 0x20c
leave
ret 0xc
Function at 0x409acf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
mov eax, dword [ebp + 0x3c4]
push esi
lea ecx, [ebp - 0x54]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409ba8
push 0x206
lea eax, [ebp + 0x1b2]
push esi
push eax
mov word [ebp + 0x1b0], si
call fcn.0043b390
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1b0]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x64], 0x104
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x58], esi
je 0x409ba8
push edi
xor edi, edi
cmp dword [ebp - 0x58], esi
jbe 0x409ba7
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0xff
mov word [ebp - 0x50], si
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x409b80
pop edi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x3b8]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043b0c4
add ebp, 0x3bc
leave
ret
Function at 0x40a62f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x7bc], eax
mov eax, dword [ebp + 0x7cc]
push ebx
mov ebx, dword [ebp + 0x7c8]
push edi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
push 0x20019
xor edi, edi
push edi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7bb
push 0x206
lea eax, [ebp + 0x3b6]
push edi
push eax
mov word [ebp + 0x3b4], di
call fcn.0043b390
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x3b4]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0x104
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x4c], edi
je 0x40a7bb
mov dword [ebp - 0x50], edi
jbe 0x40a7bb
push esi
mov esi, 0x45e7b8
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x5bc]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x60], 0xff
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40a7ab
cmp word [ebp + 0x5bc], 0x51
jne 0x40a743
cmp word [ebp + 0x5be], 0x51
jne 0x40a743
cmp word [ebp + 0x5c0], 0x32
jne 0x40a743
cmp word [ebp + 0x5c2], 0x30
je 0x40a75a
lea eax, [ebp + 0x5bc]
push 0x45ead0
push eax
call fcn.0043d91c
test eax, eax
pop ecx
pop ecx
jne 0x40a77b
mov ecx, dword [ebp - 0x58]
push ebx
call fcn.004014d8
mov ecx, dword [ebp - 0x58]
push esi
call fcn.00409140
mov ecx, dword [ebp - 0x58]
lea eax, [ebp + 0x5bc]
push eax
call fcn.00409140
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0043d978
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.0043d94e
lea eax, [ebp + 0x5bc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043d94e
lea eax, [ebp - 0x48]
push eax
call fcn.00409acf
add esp, 0x1c
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x4c]
jb 0x40a6ee
pop esi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x7bc]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043b0c4
add ebp, 0x7c0
leave
ret

Function at 0x40aff3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x18
cmp dword [eax - 0xc], 2
jl 0x40b023
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b023
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
leave
ret
xor eax, eax
xor edx, edx
leave
ret
Function at 0x40cd08
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
push edi
jb 0x40cd17
mov eax, dword [esi + 0x24]
jmp 0x40cd1a
lea eax, [esi + 0x24]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x40cd3f
xor eax, eax
jmp 0x40cd80
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
je 0x40cd3b
push edi
push edi
push edi
push 2
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 0x18], eax
je 0x40cd3b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x40cd3b
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x40d3b3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
ja 0x40d3c5
xor al, al
jmp 0x40d43e
push ebx
movzx ebx, word [esi + 0x18]
xor edx, edx
mov eax, ecx
div ebx
push edi
movzx edi, word [esi + 0xc]
movzx eax, dx
cmp ax, 1
jae 0x40d3e1
xor eax, eax
inc eax
test ecx, ecx
jbe 0x40d43a
mov ebx, dword [ebp + 8]
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
sub eax, ebx
movzx edi, di
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp - 4]
movzx ecx, word [esi + 0x18]
add eax, edi
cdq
idiv ecx
mov ecx, esi
movzx eax, dx
movzx edi, ax
mov eax, dword [esi + 0x1c]
mov al, byte [eax + edi]
xor al, byte [ebx]
mov byte [ebp + 8], al
movzx eax, byte [esi + 9]
push eax
push dword [ebp + 8]
call dword [esi + 0x14]
xor al, byte [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + ebx], al
mov al, byte [ebx]
inc ebx
dec dword [ebp + 0xc]
mov byte [ebp + 0x14], al
jne 0x40d3fc
pop edi
mov al, 1
pop ebx
pop esi
leave
ret 0x10

Function at 0x40d544
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x40d55f
mov eax, dword [esp + 4]
mov dl, byte [esp + 0xc]
add eax, ecx
xor byte [eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jb 0x40d54c
ret 0xc

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40d99d
cmp word [eax], 0
je 0x40d99d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d99d
test al, 0x10
jne 0x40d99d
xor eax, eax
inc eax
jmp 0x40d99f
xor eax, eax
ret 4
Function at 0x40da3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
shr ecx, 1
test eax, eax
mov dword [esi], ecx
pop esi
jne 0x40da87
cmp dword [ebp + 0xc], 1
je 0x40da85
cmp dword [ebp + 0xc], 2
je 0x40da85
push 0xd
pop eax
jmp 0x40da87
xor eax, eax
pop ebp
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40daba
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x40e7c4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x478138]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 8
mov eax, 0x45a25c
call fcn.0043b0d3
mov eax, dword [ebp + 0x230]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x238]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov word [ebp + 0x1c], bx
call fcn.0043b390
add esp, 0xc
push ebx
push dword [ebp + 0x234]
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e8c1
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040d793
push 0x45e7b8
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040e3be
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040e3be
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40e863
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.0040d8e9
test eax, eax
je 0x40e8b6
cmp dword [edi + 0x14], ebx
je 0x40e88d
cmp dword [edi + 0x18], 8
jb 0x40e881
mov edi, dword [edi + 4]
jmp 0x40e884
add edi, 4
call fcn.0040e641
test eax, eax
je 0x40e8b6
cmp dword [esi + 0x18], 8
jb 0x40e898
mov esi, dword [esi + 4]
jmp 0x40e89b
add esi, 4
push esi
call fcn.0040daa8
test eax, eax
pop ecx
je 0x40e8b6
push ebx
push 1
lea ecx, [ebp]
call fcn.00407b38
xor eax, eax
inc eax
jmp 0x40e8c3
push ebx
push 1
lea ecx, [ebp]
call fcn.00407b38
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0043b0c4
add ebp, 0x228
leave
ret
Function at 0x414a2c
Capabilities:
Copy file

Disassembly:
push 0x4c
mov eax, 0x45abdc
call fcn.0043b0d3
lea ecx, [ebp - 0x58]
xor ebx, ebx
xor edi, edi
call fcn.00408434
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.00409309
mov esi, str.CheckAV_D.etf
push esi
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00401da5
add esp, 0x10
push dword [eax]
lea ecx, [ebp - 0x58]
push 0x460710
mov byte [ebp - 4], 2
call fcn.00408832
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x18], eax
call fcn.004010ea
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010ea
cmp dword [ebp - 0x18], ebx
je 0x414b5d
jmp 0x414ab7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], ebx
call fcn.00408553
add edi, dword [ebp - 0x10]
test eax, eax
je 0x414ac6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x178]
test eax, eax
jne 0x414aa1
lea ecx, [ebp - 0x58]
call fcn.004084c9
cmp edi, ebx
jbe 0x414b5d
lea ecx, [ebp - 0x58]
call fcn.004085b8
test eax, eax
je 0x414b5d
lea eax, [ebp - 0x1c]
push eax
call fcn.00409309
mov dword [esp], str.CheckAV.etf
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.00401da5
mov edi, eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00409309
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.00401da5
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x1c
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010ea
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00408486
mov eax, ebx
call fcn.0043b1ab
ret