joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040246f
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
xor ebx, ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x4025f4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040246f
inc ebx
cmp ebx, 0xa
pop ecx
jl 0x4025d4
push esi
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret

Function at 0x402601
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x532620
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402628
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.0040202b
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x402649
push esi
call fcn.00401e1c
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4026a8
push 0x5c
push esi
call fcn.0041667d
cmp eax, ebx
pop ecx
pop ecx
je 0x40265e
cmp byte [eax + 1], bl
jne 0x40265e
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.00416e4b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402693
push esi
call fcn.0040246f
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00401e1c
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.0040202b
test eax, eax
jne 0x4026bf
cmp dword [esp + 0x14], ebx
jne 0x4026bb
push 0x10
push 9
push ebx
call fcn.0040216e
add esp, 0xc
xor eax, eax
jmp 0x4026c2
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40284c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40291f
cmp dword [ebp + 0xc], ebx
je 0x40291f
push edi
push 0x40
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x110], bl
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x429688
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push 0x104
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 1
call fcn.004023bb
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x402914
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x42967c
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call fcn.00415f70
test eax, eax
pop ecx
je 0x40290b
cmp esi, 0x7fffffff
ja 0x40290b
push 0x429678
push esi
push dword [ebp + 0xc]
call fcn.004023e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
call fcn.00415f70
pop ecx
jmp 0x402921
xor eax, eax
pop ebx
leave
ret
Function at 0x4029cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
or dword [ebp - 4], 0xffffffff
push ebx
push edi
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp - 0x218], bl
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
mov eax, 0x104
call fcn.00402924
test eax, eax
pop ecx
pop ecx
je 0x402ac7
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0x4296ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x114], bl
mov dword [ebp - 4], eax
je 0x402ac7
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push 0x4296a8
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004178d8
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
ja 0x402aca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push 0x4296a0
push eax
call fcn.004178d8
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, ebx
ja 0x402aca
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push 0x42969c
push eax
call fcn.004178d8
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, ebx
ja 0x402aca
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
leave
ret
Function at 0x402be2
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
mov esi, 0x105
je 0x402c4a
cmp byte [edi], bl
je 0x402c4a
push 0x5c
push edi
call fcn.00416dd0
test eax, eax
pop ecx
pop ecx
jne 0x402c74
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0041667d
cmp eax, ebx
pop ecx
pop ecx
je 0x402c47
mov byte [eax + 1], bl
push edi
jmp 0x402c5e
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4295e4
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004023e2
lea eax, [ebp - 0x10c]
mov dword [ebp + 0xc], eax
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d7c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
shl ecx, 0xa
cmp eax, ecx
jbe 0x402d4e
cmp eax, 0xffffffff
je 0x402d4e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41
pop ecx
xor eax, eax
push esi
push dword [ebp + 0xc]
mov byte [ebp - 0x214], bl
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push 0x2e
push eax
call fcn.0041667d
cmp eax, ebx
pop ecx
pop ecx
je 0x402cf5
mov byte [eax], bl
push 0x4296b0
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.004023e2
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00415f70
pop ecx
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402eb4
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x40
xor eax, eax
mov byte [ebp - 0x108], 0
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x429724
mov eax, 0x104
mov edi, 0x42971c
call fcn.00402924
test eax, eax
mov edi, dword [ebp + 8]
pop ecx
pop ecx
je 0x402f19
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push edi
push 0x4296ac
push 0x429714
push 0x42970c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
jne 0x402fae
push ebx
push dword [ebp + 0xc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
mov dword [ebp + 8], eax
call fcn.0041667d
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x402f9d
mov eax, dword [ebp + 8]
push esi
sub eax, ebx
add eax, edi
push eax
lea esi, [ebx + 9]
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.00416340
push 9
push str.logfiles
push ebx
call fcn.00416000
add esp, 0x18
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov byte [esi], 0x5c
je 0x402f88
test al, 0x10
je 0x402f88
mov eax, dword [ebp + 8]
mov byte [eax + edi + 9], 0
jmp 0x402f9c
push dword [ebp - 4]
push esi
push ebx
call fcn.00416340
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [eax + edi], 0
pop esi
push 0x4295e4
push 0x104
push edi
call fcn.004023e2
pop ebx
pop edi
leave
ret
Function at 0x402fb1
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4271c2
call fcn.00416d0c
sub esp, 0x14
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
jne 0x402fef
push str.CreateFile_failed._n
call fcn.004179b0
pop ecx
jmp 0x4030a7
push edi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x403028
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x429728
call fcn.004179b0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4030a6
push dword [ebp - 0x20]
call fcn.004179ab
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push esi
push eax
call fcn.00416d70
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x10
push esi
push esi
push esi
push ebx
mov dword [ebp - 0x14], esi
call edi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x4302c4]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.00402014
add esp, 0xc
push esi
push esi
push esi
push ebx
call edi
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.004179a6
xor esi, esi
pop ecx
inc esi
pop edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401bad
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403561
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x4302b8]
cmp eax, 0xffffffff
jne 0x403582
call fcn.00401e85
cmp dword [0x4302b8], 0
jmp 0x403584
test eax, eax
je 0x4036b2
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x30c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x429790
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.00416f1b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
call fcn.004023a0
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004166f0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00416700
add esp, 0x10
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403665
push esi
push str.C:Temp
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041667d
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x403684
cmp byte [eax + 1], 0
jne 0x403684
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.00416700
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.004034dc
add esp, 0x18
leave
ret
Function at 0x4039bc
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x427201
call fcn.00416d0c
sub esp, 0x390
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x298], bl
lea edi, [ebp - 0x297]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x532620
stosb byte es:[edi], al
lea eax, [ebp - 0x298]
push str._sCompsVer.inf
push eax
call fcn.004167e8
add esp, 0xc
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x194], bl
lea edi, [ebp - 0x193]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x298]
push eax
push 0x104
lea eax, [ebp - 0x194]
push eax
push 0x429854
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040188b
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], 0x3d
call fcn.00402753
cmp eax, 0xffffffff
je 0x403bc2
mov byte [ebp + eax - 0x194], bl
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040186e
mov eax, dword [ebp - 0x60]
dec eax
push eax
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x74]
call fcn.004038b7
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov edi, esi
jae 0x403a9f
lea edi, [ebp - 0x34]
mov esi, edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402b0b
push 0x417adf
push edi
push dword [eax]
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00402b74
add esp, 0x14
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x39c], bl
lea edi, [ebp - 0x39b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x429824
push SysReAllocString
mov dword [ebp - 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403bb7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ForbidInstall
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x403bb7
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x90]
call fcn.0040188b
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], 0xf
call fcn.0040154f
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040394a
pop ecx
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402b27
test eax, eax
jl 0x403b9e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x58]
call fcn.0040156b
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.0040156b
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.0040156b
jmp 0x403bc4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040156b
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.0040156b
push ebx
lea ecx, [ebp - 0x38]
push 1
call fcn.0040156b
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040156b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404306
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push str.WinMain
push str._s_Start
call fcn.00403561
mov eax, dword [esp + 0x1c]
mov esi, 0x4296ac
push esi
push esi
push str.installbegin
push esi
mov ebx, str.true
push ebx
push 0x4299dc
mov edi, str.res_watch_install
push edi
mov dword [0x53282c], eax
call fcn.0041fa70
add esp, 0x24
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x532844], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40438b
push dword [0x532844]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x532844]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x2711
jmp 0x4044db
call fcn.00401f79
test eax, eax
je 0x4043b3
push esi
push esi
push str.IsInstalled
push esi
push ebx
push 0x4299a4
push edi
call fcn.0041fa70
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4044db
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x4299a0
lea edi, [esp + 0x10]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
movsb byte es:[edi], byte [esi]
call fcn.00401f38
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4044b3
lea eax, [edi - 1]
mov dword [0x532830], eax
mov ebp, 0x42999c
mov ebx, 0x532728
mov esi, str.SILENT
push esi
call fcn.00417113
push eax
push esi
push edi
call fcn.00416fcd
add esp, 0x10
test eax, eax
je 0x404492
mov esi, str.SILENCE
push esi
call fcn.00417113
push eax
push esi
push edi
call fcn.00416fcd
add esp, 0x10
test eax, eax
je 0x404492
push ebp
call fcn.00417113
push eax
push ebp
push edi
call fcn.00416fcd
add esp, 0x10
test eax, eax
jne 0x40449c
push ebp
call fcn.00417113
mov esi, eax
add esi, edi
mov al, byte [esi]
cmp al, 0x27
pop ecx
je 0x404469
cmp al, 0x22
je 0x404469
push 0x20
push esi
call fcn.00416dd0
test eax, eax
pop ecx
pop ecx
jne 0x40447a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404486
movsx eax, al
push eax
inc esi
push esi
call fcn.00416dd0
test eax, eax
pop ecx
pop ecx
je 0x4044e2
sub eax, esi
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x53283c], 1
jmp 0x40449c
mov dword [0x532838], 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00401f38
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4043ef
push 0
mov dword [0x532838], 1
call fcn.00403c30
push str.WinMain
push str._s_End
call fcn.00403561
mov eax, dword [0x532848]
pop ecx
pop ecx
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
mov eax, 0x271a
jmp 0x4044da
Function at 0x404525
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x104], bl
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x208], bl
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041667d
cmp eax, ebx
pop ecx
pop ecx
je 0x4045d2
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004166f0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.00416700
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push ebx
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [0x430348], eax
setne al
jmp 0x4045d4
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x4055c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x430348]
cmp eax, 0xffffffff
jne 0x4055e1
call fcn.00404525
cmp dword [0x430348], 0
jmp 0x4055e3
test eax, eax
je 0x405711
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x30c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x429790
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.00416f1b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
call fcn.004023a0
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004166f0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00416700
add esp, 0x10
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4056c4
push esi
push str.C:Temp
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041667d
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x4056e3
cmp byte [eax + 1], 0
jne 0x4056e3
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.00416700
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.004034dc
add esp, 0x18
leave
ret
Function at 0x4076e6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4076ff
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x407722
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x407727
inc esi
cmp esi, dword [ebp - 4]
jb 0x407719
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x40781b
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40775d
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x40778a
cmp cl, 0xff
je 0x40778a
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x407714
dec ecx
shl edx, cl
and edx, 7
je 0x407743
movzx ecx, byte [edx + 0x429dd8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x429dd0], 0
mov cl, byte [ebx + 4]
je 0x407785
test cl, cl
je 0x407785
cmp cl, 0xff
jne 0x407743
mov dword [ebp + 0xc], eax
jmp 0x407752
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x4077b3
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4077ba
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4077ee
movzx edi, byte [edx + 0x429dd8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4077d9
cmp al, 0xff
jne 0x4077eb
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x4077a5
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x407714
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40b39e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x532a40], 0
jne 0x40b3d8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040ae80
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00407443
pop ecx
test esi, esi
pop esi
jmp 0x40b3e6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b3ec
mov al, 1
leave
ret
xor al, al
leave
ret