joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405960
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40599b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop ecx
ret 0xc
mov ecx, dword [esp + 0x14]
movzx edx, word [esp + 0x10]
push ebx
push esi
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x4059e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ecx
ret 0xc

Function at 0x4060d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x427550]
mov edx, dword [ebp + 8]
xor eax, ebp
test edx, edx
push esi
mov dword [esp + 0x110], eax
push edi
je 0x40618e
cmp byte [edx], 0
je 0x40618e
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov ecx, eax
mov esi, 0x105
sub edx, ecx
nop
mov cl, byte [edx + eax]
test cl, cl
je 0x40612f
mov byte [eax], cl
inc eax
dec esi
jne 0x406120
jmp 0x406133
test esi, esi
jne 0x406134
dec eax
lea edx, [esp + 8]
push 0x5c
push edx
mov byte [eax], 0
call fcn.0041366a
mov esi, eax
add esp, 8
test esi, esi
je 0x406173
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [esp + 0xc]
push eax
mov byte [esi], 0
call edi
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.0041366a
mov esi, eax
add esp, 8
test esi, esi
jne 0x406152
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x114]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00413041
mov esp, ebp
pop ebp
ret 4

Function at 0x4062e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x427550]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0xe]
movzx edx, word [esp + 0xa]
movzx eax, word [esp + 8]
push ecx
push edx
push eax
push str._04d_02d_02d
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00405f70
mov eax, dword [esi + 0xdc]
add esp, 0x18
cmp eax, 0x10
jb 0x40635a
mov esi, dword [esi + 0xc8]
jmp 0x406360
add esi, 0xc8
push esi
push 0
lea edx, [esp + 0x20]
push edx
push str.RELIVE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.00413041
mov esp, ebp
pop ebp
ret
Function at 0x406700
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406765
push ebp
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop ebp
je 0x40678a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 2
jbe 0x406793
cmp esi, 0x7fffffff
mov byte [edi + 2], 0
ja 0x40678a
push str.Program_Files
push esi
push edi
call fcn.00405fa0
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x407100
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4202f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x427550]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x124], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [ebx + 0x6c]
mov edi, 0x10
cmp eax, edi
jb 0x40716c
mov eax, dword [ebx + 0x58]
jmp 0x40716f
lea eax, [ebx + 0x58]
push eax
push 0
push str.COUNT
push str.REBOOTRUN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [0x4283f4]
mov esi, eax
mov ecx, 0x4283f4
inc esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x14]
push 0x42168c
push eax
mov dword [esp + 0x140], 0
call fcn.00407070
mov eax, dword [ebx + 0x6c]
add esp, 0xc
cmp eax, edi
jb 0x4071c4
mov eax, dword [ebx + 0x58]
jmp 0x4071c7
lea eax, [ebx + 0x58]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push ecx
push str.COUNT
push str.REBOOTRUN
call edi
mov edx, dword [0x4283f4]
mov ecx, 0x4283f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 0x18]
push str.ITEM_d
push eax
mov byte [esp + 0x140], 1
call fcn.00407070
mov eax, dword [ebx + 0x6c]
add esp, 0xc
cmp eax, 0x10
jb 0x40721c
mov ebx, dword [ebx + 0x58]
jmp 0x40721f
add ebx, 0x58
mov esi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.REBOOTRUN
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407253
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40727c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret
Function at 0x4072b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x427550]
xor eax, ebp
push ebx
mov dword [esp + 0x21c], eax
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0xdc], 0x10
jb 0x4072fb
mov eax, dword [esi + 0xc8]
jmp 0x407301
lea eax, [esi + 0xc8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x104
lea eax, [esp + 0x120]
push eax
push 0x42158d
push str.Time
push str.RELIVE
call ebx
test eax, eax
jne 0x407380
mov eax, dword [esi + 0x220]
test eax, eax
lea ecx, [esi + 0x188]
je 0x40735d
push 0x19
push str.Temp_Relive.ini_no_exist
call fcn.00405070
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
push 0x14
push str.Relive.ini_no_exist
call fcn.00405070
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0x130], 0x10
jb 0x4073a6
mov eax, dword [esi + 0x11c]
jmp 0x4073ac
lea eax, [esi + 0x11c]
push eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0x42158d
push str.Time
push str.Update
call ebx
test eax, eax
jne 0x4073f5
push 0x14
push str.Update.log_no_exist
lea ecx, [esi + 0x188]
call fcn.00405070
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push eax
mov ecx, esi
call fcn.00405b40
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret

Function at 0x4079b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x427550]
xor eax, ebp
mov dword [esp + 0x10c], eax
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0xdc], 0x10
jb 0x4079f4
mov eax, dword [esi + 0xc8]
jmp 0x4079fa
lea eax, [esi + 0xc8]
push eax
push 0x104
lea eax, [esp + 0x10]
push eax
push str.2013_01_24_00:00
push str.Time
push str.RELIVE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a23
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x1c0]
call fcn.00405070
mov ecx, dword [esp + 0x114]
cmp edi, 0xa
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00413041
mov esp, ebp
pop ebp
ret
Function at 0x407e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420484
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
push edi
mov dword [esp + 0x10], esi
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], ebx
mov byte [esi + 0x90], bl
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xac], bl
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xc8], bl
mov dword [esi + 0xf8], eax
mov dword [esi + 0xf4], ebx
mov byte [esi + 0xe4], bl
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], ebx
mov byte [esi + 0x100], bl
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ebx
mov byte [esi + 0x11c], bl
mov dword [esi + 0x14c], eax
mov dword [esi + 0x148], ebx
mov byte [esi + 0x138], bl
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], ebx
mov byte [esi + 0x154], bl
lea edi, [esi + 0x16c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ebp, [esi + 0x188]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1b8], ebx
mov byte [esi + 0x1a8], bl
mov dword [esi + 0x1d8], eax
mov dword [esi + 0x1d4], ebx
mov byte [esi + 0x1c4], bl
mov dword [esi + 0x1f4], eax
mov dword [esi + 0x1f0], ebx
mov byte [esi + 0x1e0], bl
mov dword [esi + 0x210], eax
mov dword [esi + 0x20c], ebx
mov byte [esi + 0x1fc], bl
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
mov byte [esp + 0x1c], 0x12
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x238], eax
lea ecx, [esi + 0x23c]
mov byte [esp + 0x1c], 0x13
call fcn.0040bc10
push ebx
push 0x42158d
mov ecx, ebp
mov byte [esp + 0x24], 0x14
call fcn.004033b0
push 7
push str.RAV2011
mov ecx, edi
mov dword [esi + 0x214], ebx
call fcn.004033b0
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x230], ebx
mov dword [esi + 0x234], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408000
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4204a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0xffffffffffffffff
push 0
lea edi, [ebx + 0x70]
push ebx
mov ecx, edi
call fcn.004032c0
push 0xf
push str.XMLSSetup.xml
mov ecx, edi
call fcn.00405070
mov eax, dword [edi + 0x18]
mov ebp, 0x10
cmp eax, ebp
jb 0x40804a
mov eax, dword [edi + 4]
jmp 0x40804d
lea eax, [edi + 4]
push eax
mov ecx, ebx
call fcn.004060d0
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x1c]
lea esi, [ebx + 0x150]
push eax
mov ecx, esi
call fcn.004032c0
push 0x1a
push str.BackupRAV_RAV_setup.xml
mov ecx, esi
call fcn.00405070
cmp dword [esi + 0x18], ebp
jb 0x408082
mov eax, dword [esi + 4]
jmp 0x408085
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408103
mov edx, dword [0x4283f4]
mov ecx, 0x4283f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.Setup.xml_no_exist_err_d
push eax
call fcn.00407070
mov esi, dword [esp + 0x1c]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4080d0
sub eax, edx
push eax
push esi
lea ecx, [ebx + 0x188]
call fcn.00405070
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4081be
cmp dword [edi + 0x18], ebp
jb 0x40810d
mov ecx, dword [edi + 4]
jmp 0x408110
lea ecx, [edi + 4]
cmp dword [esi + 0x18], ebp
jb 0x40811a
mov eax, dword [esi + 4]
jmp 0x40811d
lea eax, [esi + 4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4081dd
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
cmp dword [edi + 0x18], ebp
mov dword [esp + 0x1c], 1
jb 0x408155
mov edi, dword [edi + 4]
jmp 0x408158
add edi, 4
cmp dword [esi + 0x18], ebp
jb 0x408162
mov esi, dword [esi + 4]
jmp 0x408165
add esi, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push str.Copy_failed_Setup.xml__err_d_from__s_to__s
push ecx
call fcn.00407070
mov esi, dword [esp + 0x24]
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408190
sub eax, edx
push eax
push esi
lea ecx, [ebx + 0x188]
call fcn.00405070
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4081c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
mov dword [ebx + 0x21c], eax
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408480
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4204d8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
call fcn.00408200
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x1c]
lea esi, [edi + 0xa8]
push eax
mov ecx, esi
call fcn.004032c0
push 0x15
push str.BackupRAVLabel.dat
mov ecx, esi
call fcn.00405070
cmp dword [esi + 0x18], 0x10
jb 0x4084cf
mov eax, dword [esi + 4]
jmp 0x4084d2
lea eax, [esi + 4]
push eax
mov ecx, edi
call fcn.004060d0
cmp dword [esi + 0x18], 0x10
jb 0x4084e5
mov esi, dword [esi + 4]
jmp 0x4084e8
add esi, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40859b
mov edx, dword [0x4283f4]
mov ecx, 0x4283f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.Open_to_Write_Label_Faild__d
push eax
call fcn.00407070
mov esi, dword [esp + 0x14]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x408550
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408550
sub eax, edx
push eax
push esi
lea ecx, [edi + 0x188]
call fcn.00405070
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408588
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [edi + 0x22c]
test eax, eax
push 0
je 0x4085b8
lea eax, [esp + 0x10]
push eax
push 0x8c
push str.Y_RPRrsFJjYHIwMwcFU9LBgBGGJkTy0OCTYGKyUpQG5fdFRfRW9kTz8YHxQMPFEfHClkTz8DQBhaBF44NnIidTxdMxtECVwoOww8aColSGxZdWFnNBtUBj4uNQ0qczQ0MwldAmFnvA
jmp 0x4085c7
lea ecx, [esp + 0x10]
push ecx
push 0x8c
push str.xyydGyO1aCkOFQhtPko0GhNcVn1teSZTRykPHS50DnFRQ1QJB3hteTRFUQsFClpCUjZteTReDgdTMlVleG0rQzcAfQRNP1d1dRM1XiF4BnNQQ2o6egRdMDVzexIjRT9pfRZUNGo68g
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [edi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408990
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x420568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.SOFTWARERisingRepire
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x408ac9
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.NORMALUNINSTALL
mov edi, eax
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x408ac9
cmp dword [esp + 0x14], 4
jne 0x408ac9
mov eax, dword [esp + 0xc]
add eax, 0xffffff1a
cmp eax, 0xb
ja case.0x408a3a.232
movzx edx, byte [eax + 0x408b08]
jmp dword [edx*4 + 0x408af4]
push str.RAV2011
lea ecx, [esi + 0x16c]
call fcn.00407de0
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
jmp case.0x408a3a.232
push str.RAV2011
lea ecx, [esi + 0x16c]
call fcn.00407de0
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], 1
jmp case.0x408a3a.232
push str.RAVV16
lea ecx, [esi + 0x16c]
call fcn.00407de0
mov dword [esi + 0x22c], 1
mov dword [esi + 0x230], ebx
jmp case.0x408a3a.232
push str.RAVV16
lea ecx, [esi + 0x16c]
mov dword [esi + 0x230], 1
call fcn.00407de0
mov dword [esi + 0x22c], 1
jmp case.0x408a3a.232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
mov esi, dword [esi + 0x230]
je 0x408ae0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x409640
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4205e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4283f4]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4283f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
jne 0x409685
xor ecx, ecx
jmp 0x409699
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409690
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00406dc0
lea ecx, [esp + 0xc]
call fcn.00406fa0
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
or edi, 0xffffffff
test eax, eax
jl 0x4096df
push 0x421b9c
push esi
call fcn.00413787
add esp, 8
test eax, eax
je 0x4096df
sub eax, esi
cmp eax, edi
je 0x4096df
mov dword [ebx + 0x224], 1
jmp 0x409733
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x409733
push 0x421b98
push esi
call fcn.00413787
add esp, 8
test eax, eax
je 0x40970a
sub eax, esi
cmp eax, edi
je 0x40970a
mov dword [ebx + 0x220], 1
jmp 0x409733
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x409733
push 0x421b94
push esi
call fcn.00413787
add esp, 8
test eax, eax
je 0x409733
sub eax, esi
cmp eax, edi
je 0x409733
mov dword [ebx + 0x228], 1
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40974e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x409760
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push esi
mov esi, ecx
call fcn.00409640
mov ecx, esi
pop esi
jmp fcn.00408ce0
Function at 0x40b0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4207e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [0x427550]
xor eax, ebp
push ebx
mov dword [esp + 0x164], eax
push esi
xor ebx, ebx
mov eax, 0xf
push edi
mov esi, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x17c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x180], 1
call fcn.00407420
cmp dword [esi + 0x220], ebx
jne 0x40b178
lea ecx, [esp + 0x44]
push ecx
lea edx, [esi + 0x134]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00407be0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 2
call fcn.004032c0
cmp dword [esp + 0x24], 0x10
mov byte [esp + 0x17c], 1
jb 0x40b1e4
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x40b1dc
mov byte [esp + 0x60], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x60]
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00407c80
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 3
call fcn.004032c0
cmp dword [esp + 0x24], 0x10
mov byte [esp + 0x17c], 1
jb 0x40b1e4
mov eax, dword [esp + 0x10]
push eax
call fcn.00412c1d
add esp, 4
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40b1f3
lea eax, [esp + 0x2c]
push str.FILE_DOWN
push 0x66
push eax
mov ecx, esi
call fcn.00405960
test eax, eax
jne 0x40b297
mov byte [esp + 0x60], bl
mov ecx, 0x40
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00407c80
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 4
call fcn.004032c0
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x17c], 1
jb 0x40b27a
mov edx, dword [esp + 0x10]
push edx
call fcn.00412c1d
add esp, 4
cmp dword [esp + 0x40], edi
mov eax, dword [esp + 0x2c]
jae 0x40b288
lea eax, [esp + 0x2c]
push str.FILE_DOWN
push 0x66
push eax
mov ecx, esi
call fcn.00405960
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.0040a6e0
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp eax, esi
jb 0x40b2bd
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00412c1d
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x40b2e0
mov edx, dword [esp + 0x48]
push edx
call fcn.00412c1d
add esp, 4
mov ecx, dword [esp + 0x174]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret