joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408daa
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 0x408ebf
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 0x408e00
push eax
call fcn.0041cdf2
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 0x408ebf
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x408ebf
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041cdf2
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x408ebf
push dword [ebp - 8]
push esi
push eax
call fcn.0043a680
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00408d51
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 0x408ebf
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 0x408ec1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40917b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x458e2c
call fcn.0043a3cf
mov eax, dword [ebp + 0x214]
and dword [ebp - 0x18], 0
xor ebx, ebx
inc ebx
test byte [0x4788f8], bl
mov dword [ebp - 0x14], eax
mov edi, 0x45d8a8
mov esi, 0x4788f4
jne 0x4091e2
or dword [0x4788f8], ebx
and dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.00401526
push 0x45b904
call fcn.0043a66e
or dword [ebp - 4], 0xffffffff
pop ecx
mov eax, dword [0x4788f4]
cmp dword [eax - 0xc], 0
jle 0x4091fb
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00401d3f
jmp 0x4092c2
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401526
push 0
mov dword [ebp - 4], ebx
call fcn.0043a788
push edx
push eax
lea eax, [ebp - 0x1c]
push str.__d_
push eax
call fcn.00408fd7
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.00401501
push ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00408ef4
push 0x5c
push eax
call fcn.00408ec6
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 0x409271
push 0x45d780
mov ecx, esi
call fcn.00408fb2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push 0x45d88c
push eax
call fcn.00401e09
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004026d1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004010ea
push 0
push dword [0x4788f4]
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.0043a3c0
add ebp, 0x20c
leave
ret
Function at 0x40937c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x458eba
call fcn.0043a402
and dword [ebp - 0x18], 0
call fcn.00421945
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 0x40944f
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 0x40944f
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.0040917b
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.0042ae26
push esi
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0042a5ce
lea ecx, [ebp - 0x2c]
call fcn.0042a6b4
lea ecx, [ebp - 0x2c]
call fcn.0042a81e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
call fcn.0042a954
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, dword [ebp - 0x18]
call fcn.0043a4a7
ret
Function at 0x409651
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x458f3b
call fcn.0043a3cf
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 0x45da10
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 0x45d8a8
push str.Name
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0xc]
push eax
call fcn.00401501
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45d8a8
push str.SubTitle
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x10]
push eax
call fcn.00401501
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45d8a8
push str.Description
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x14]
push eax
call fcn.00401501
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.00401501
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45d8a8
push 0x45d9b0
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x1c]
push eax
call fcn.00401501
push dword [ebp - 0x10]
lea eax, [ebp]
push ebx
push eax
push 0x45d8a8
push 0x45d9a8
push dword [ebp + 0x21c]
call edi
lea eax, [ebp]
lea ecx, [esi + 0x20]
push eax
call fcn.00401501
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 0x45d8a8
push str.ExeFileName
push ebx
call edi
lea eax, [ebp]
lea ecx, [esi + 0x2c]
push eax
call fcn.00401501
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.00409564
test eax, eax
jle 0x409834
inc eax
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00408681
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.00408634
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x409847
push dword [esi]
add esi, 4
push 0x45d92c
push esi
call fcn.00408fd7
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.0043a3c0
add ebp, 0x20c
leave
ret 0xc
Function at 0x409937
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x477138]
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 0x409a10
push 0x206
lea eax, [ebp + 0x1b2]
push esi
push eax
mov word [ebp + 0x1b0], si
call fcn.0043a680
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 0x409a10
push edi
xor edi, edi
cmp dword [ebp - 0x58], esi
jbe 0x409a0f
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 0x4099e8
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.0043a3c0
add ebp, 0x3bc
leave
ret
Function at 0x409dcc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x477138]
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 0x409f58
push 0x206
lea eax, [ebp + 0x3b6]
push edi
push eax
mov word [ebp + 0x3b4], di
call fcn.0043a680
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 0x409f58
mov dword [ebp - 0x50], edi
jbe 0x409f58
push esi
mov esi, 0x45d780
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 0x409f48
cmp word [ebp + 0x5bc], 0x51
jne 0x409ee0
cmp word [ebp + 0x5be], 0x51
jne 0x409ee0
cmp word [ebp + 0x5c0], 0x32
jne 0x409ee0
cmp word [ebp + 0x5c2], 0x30
je 0x409ef7
lea eax, [ebp + 0x5bc]
push 0x45da98
push eax
call fcn.0043d48d
test eax, eax
pop ecx
pop ecx
jne 0x409f18
mov ecx, dword [ebp - 0x58]
push ebx
call fcn.00401501
mov ecx, dword [ebp - 0x58]
push esi
call fcn.00408fb2
mov ecx, dword [ebp - 0x58]
lea eax, [ebp + 0x5bc]
push eax
call fcn.00408fb2
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0043cc36
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.0043cc0c
lea eax, [ebp + 0x5bc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043cc0c
lea eax, [ebp - 0x48]
push eax
call fcn.00409937
add esp, 0x1c
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x4c]
jb 0x409e8b
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.0043a3c0
add ebp, 0x7c0
leave
ret

Function at 0x40a336
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 0x40a366
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 0x40a366
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
leave
ret
xor eax, eax
xor edx, edx
leave
ret
Function at 0x40c028
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
push edi
jb 0x40c037
mov eax, dword [esi + 0x24]
jmp 0x40c03a
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 0x40c05f
xor eax, eax
jmp 0x40c0a0
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 0x40c05b
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 0x40c05b
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 0x40c05b
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x40c6d3
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 0x40c6e5
xor al, al
jmp 0x40c75e
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 0x40c701
xor eax, eax
inc eax
test ecx, ecx
jbe 0x40c75a
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 0x40c71c
pop edi
mov al, 1
pop ebx
pop esi
leave
ret 0x10

Function at 0x40c864
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x40c87f
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 0x40c86c
ret 0xc

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40ccbd
cmp word [eax], 0
je 0x40ccbd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ccbd
test al, 0x10
jne 0x40ccbd
xor eax, eax
inc eax
jmp 0x40ccbf
xor eax, eax
ret 4
Function at 0x40cd5f
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 0x40cda7
cmp dword [ebp + 0xc], 1
je 0x40cda5
cmp dword [ebp + 0xc], 2
je 0x40cda5
push 0xd
pop eax
jmp 0x40cda7
xor eax, eax
pop ebp
ret 0xc

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

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

Function at 0x40daaa
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 8
mov eax, 0x4594c8
call fcn.0043a3cf
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.0043a680
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 0x40dba7
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040cab3
push 0x45d780
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040d6a4
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040d6a4
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40db49
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x10]
push esi
push eax
call fcn.0040cc09
test eax, eax
je 0x40db9c
cmp dword [edi + 0x14], ebx
je 0x40db73
cmp dword [edi + 0x18], 8
jb 0x40db67
mov edi, dword [edi + 4]
jmp 0x40db6a
add edi, 4
call fcn.0040d927
test eax, eax
je 0x40db9c
cmp dword [esi + 0x18], 8
jb 0x40db7e
mov esi, dword [esi + 4]
jmp 0x40db81
add esi, 4
push esi
call fcn.0040cdc8
test eax, eax
pop ecx
je 0x40db9c
push ebx
push 1
lea ecx, [ebp]
call fcn.00407af6
xor eax, eax
inc eax
jmp 0x40dba9
push ebx
push 1
lea ecx, [ebp]
call fcn.00407af6
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.0043a3c0
add ebp, 0x228
leave
ret
Function at 0x413cee
Capabilities:
Copy file

Disassembly:
push 0x4c
mov eax, 0x459e48
call fcn.0043a3cf
lea ecx, [ebp - 0x58]
xor ebx, ebx
xor edi, edi
call fcn.004082a6
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0040917b
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 0x45f6a8
mov byte [ebp - 4], 2
call fcn.004086a4
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 0x413e1f
jmp 0x413d79
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], ebx
call fcn.004083c5
add edi, dword [ebp - 0x10]
test eax, eax
je 0x413d88
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x178]
test eax, eax
jne 0x413d63
lea ecx, [ebp - 0x58]
call fcn.0040833b
cmp edi, ebx
jbe 0x413e1f
lea ecx, [ebp - 0x58]
call fcn.0040842a
test eax, eax
je 0x413e1f
lea eax, [ebp - 0x1c]
push eax
call fcn.0040917b
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.0040917b
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.004082f8
mov eax, ebx
call fcn.0043a4a7
ret
Function at 0x414217
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.00402884
mov ecx, dword [esi + 0x74]
add ecx, 0x74
call fcn.00409a31
test eax, eax
jne 0x4142c0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00427c57
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0x14
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
lea edi, [esi + 0x84]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
push eax
push 0
push esi
mov ecx, edi
call fcn.0040b258
push 1
mov ecx, edi
call fcn.0040b210
push 0x45f840
mov ecx, edi
call fcn.0040b347
mov ecx, dword [esi + 0x74]
push 0
push 0x3e9
call fcn.004023a5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x413e33
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4142ed
mov ecx, dword [esi + 0x74]
mov edi, 0x3e9
push edi
call fcn.00426c84
test eax, eax
je 0x4142d5
mov eax, dword [eax + 0x20]
mov esi, dword [esi + 0x74]
test esi, esi
je 0x4142df
mov esi, dword [esi + 0x20]
push eax
push edi
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x415ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x415ae0
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.0044d698
add esp, 0xc
test eax, eax
jle 0x415b00
add dword [esi], eax
cmp dword [esi], edi
jb 0x415ae0
test eax, eax
pop ebp
jge 0x415b22
call fcn.0043f24c
mov eax, dword [eax]
push eax
call fcn.0043f1aa
push eax
push 0xffffffffffffffff
push ebx
call fcn.004164e0
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x415b2b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x418c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x418cce
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043d8b0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x418ca1
sub eax, ebx
jmp 0x418ca3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x418c92
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x418cc2
sub eax, ebx
jmp 0x418cc4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x418cb3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x418da2
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.004189d0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x418d19
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x418d2d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x418c56
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x418da2
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x418d71
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x418d54
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.0043a680
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x418da2
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x418d8b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.0043a680
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret