joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2473e
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0x50
push 0x2d398
call fcn.00027450
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x1a], 0
cmp dword [ebp + 0x10], esi
je 0x248f4
cmp dword [ebp + 0x14], esi
je 0x248f4
cmp dword [ebp + 0xc], esi
je 0x248f4
push dword [ebp + 0xc]
call fcn.00019b48
cmp eax, esi
je 0x24798
cmp eax, 1
je 0x24798
cmp eax, 2
je 0x24794
cmp eax, 3
jne 0x248f4
mov bl, 1
jmp 0x2479a
xor bl, bl
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov ecx, dword [ebp + 8]
cmp ecx, eax
jne 0x247b4
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
jmp 0x24828
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x408
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
cmp eax, esi
jge 0x247f8
mov byte [ebp - 0x19], 0
jmp 0x248f4
push esi
lea eax, [ebp - 0x20]
push eax
push esi
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
push dword [eax]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, esi
jne 0x248f4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 0x1a], 1
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0x24], edi
cmp bl, 1
jne 0x24874
mov eax, dword [ebp + 0x18]
dec eax
cmp edi, eax
jge 0x24869
mov eax, dword [ebp + 0x10]
lea esi, [eax + edi*2]
push 2
push 2
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
movzx eax, word [esi]
mov ecx, dword [ebp + 0x14]
mov word [ecx + edi*2], ax
xor ecx, ecx
cmp cx, ax
je 0x24867
inc edi
mov dword [ebp - 0x24], edi
xor esi, esi
jmp 0x24835
xor esi, esi
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + edi*2], ax
jmp 0x248c3
mov ebx, dword [ebp + 0x18]
lea eax, [ebx - 1]
cmp edi, eax
jge 0x2489a
mov eax, dword [ebp + 0x10]
lea esi, [eax + edi]
push 1
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
cmp byte [esi], 0
je 0x2489a
inc edi
mov dword [ebp - 0x24], edi
jmp 0x24877
lea esi, [ebx + ebx]
push esi
push 0
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push edi
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ntoskrnl.exe_RtlMultiByteToUnicodeN]
xor esi, esi
test eax, eax
jne 0x248c7
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x248e4
cmp byte [ebp - 0x1a], 1
jne 0x248f4
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
je 0x24901
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, byte [ebp - 0x19]
call fcn.00027495
ret 0x14
Function at 0x2533c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x400
xor eax, eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x2535d
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x2535f
shr ecx, 1
dec edx
jne 0x2534e
mov dword [ebp + eax*4 - 0x400], ecx
inc eax
cmp eax, 0x100
jb 0x25349
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x2539e
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x2537c
pop esi
not eax
leave
ret 8
Function at 0x3573e
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00035705
pop ebp
jmp fcn.0001c038
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401037
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401068
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401064
cmp esi, eax
jae 0x401068
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401054
cmp esi, eax
jb 0x40106e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4012a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
cmp eax, 0x4731d4
je 0x40139e
test esi, esi
je 0x40139e
push edi
push 0x103
push eax
lea ecx, [esp + 0x1d]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], al
call fcn.00446e10
push 0x4731d4
push str.SOFTWARERising_s
mov ecx, 0x104
lea edi, [esp + 0x28]
call fcn.00401200
add esp, 0x14
lea edx, [esp + 4]
push edx
push 0x20019
push 0
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
test eax, eax
jne 0x401376
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.datapath
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401351
sub eax, edx
je 0x40136c
push 0x473148
push esi
mov eax, 0x104
call fcn.00401170
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
jmp 0x401380
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401380
sub eax, edx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004426a0
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004426a0
add esp, 0x118
ret

Function at 0x4013c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call fcn.00446e10
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x40145a
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401403
sub eax, edx
cmp eax, 2
jb 0x40145a
lea esi, [esp + 4]
call fcn.004012a0
push str.RAV.INI
mov edx, esi
push edx
mov eax, 0x104
call fcn.00401170
mov eax, esi
push eax
push 0x200
push str.LOGSIZE
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004426a0
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004426a0
add esp, 0x108
ret
Function at 0x401480
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov dword [esp + 0x14], 0xffffffff
mov byte [esp + 0x128], bl
call fcn.00446e10
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x4015c1
mov eax, str.RAV.INI
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014e0
sub eax, edx
cmp eax, 2
jb 0x4015c1
push esi
lea esi, [esp + 0x120]
call fcn.004012a0
push str.RAV.INI
mov edx, esi
push edx
mov eax, 0x104
call fcn.00401170
push 0x104
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.00446e10
add esp, 0xc
mov ecx, esi
push ecx
push 0x104
lea edx, [esp + 0x20]
push edx
push 0x473127
push edi
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0xc], eax
pop esi
cmp byte [esp + 0x14], bl
je 0x4015c1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x473158
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.00442a5c
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x4015c3
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push str.0X_X
push ecx
call fcn.00442a5c
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x4015c3
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
push 0x473164
push eax
call fcn.00442a5c
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
ja 0x4015c3
mov eax, ebp
mov ecx, dword [esp + 0x220]
pop ebp
pop ebx
xor ecx, esp
call fcn.004426a0
add esp, 0x21c
ret

Function at 0x4015e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call fcn.00446e10
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x401684
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401623
sub eax, edx
cmp eax, 2
jb 0x401684
lea esi, [esp + 4]
call fcn.004012a0
push str.RAV.INI
mov edx, esi
push edx
mov eax, 0x104
call fcn.00401170
mov eax, esi
push eax
push 0x105
push 0x4870e8
push 0x473127
push str.LOGNAME
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004426a0
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004426a0
add esp, 0x108
ret
Function at 0x4016a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
xor ebx, ebx
mov byte [edi], bl
mov ecx, dword [0x47316c]
mov edx, dword [0x473170]
mov eax, dword [str.SOFTWARERising_]
push 0xf4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x473174]
mov dword [esp + 0x18], ecx
mov cl, byte [0x473178]
lea edx, [esp + 0x25]
push ebx
push edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call fcn.00446e10
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401710
sub eax, edx
mov edx, eax
lea eax, [esp + 0x10]
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401723
mov ecx, 0x105
sub ecx, edx
push ecx
sub eax, esi
push 0x4731d4
lea edx, [esp + eax + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 8]
push eax
push 1
push ebx
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x4017af
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push edi
lea eax, [esp + 0x14]
push eax
push ebx
push str.installpath
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017a4
push 0x5c
push edi
call fcn.00443381
add esp, 8
cmp eax, ebx
je 0x40179f
cmp byte [eax + 1], bl
jne 0x40179f
mov byte [eax], bl
mov ebx, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004426a0
add esp, 0x118
ret
Function at 0x402040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.004015e0
cmp byte [0x4870e8], 0
jne 0x4020fd
push ebx
push esi
push 0x105
push 0x4870e8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4870e8
mov ebx, eax
call fcn.00443381
mov esi, eax
add esp, 8
test esi, esi
je 0x4020e7
push ebp
mov eax, ebx
push edi
sub eax, esi
lea ebp, [eax + 0x4870e8]
push ebp
lea edi, [esi + 9]
push esi
push edi
call fcn.00442a80
mov ecx, dword [str.logfiles]
mov dword [esi], ecx
mov edx, dword [0x4732ac]
mov dword [esi + 4], edx
mov al, byte [0x4732b0]
add esp, 0xc
push 0x4870e8
mov byte [esi + 8], al
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [edi], 0x5c
cmp eax, 0xffffffff
je 0x4020d3
test al, 0x10
je 0x4020d3
mov byte [ebx + 0x4870f1], 0
jmp 0x4020e5
push ebp
push edi
push esi
call fcn.00442a80
add esp, 0xc
mov byte [ebx + 0x4870e8], 0
pop edi
pop ebp
push str..log
push 0x4870e8
mov eax, 0x104
call fcn.00401170
pop esi
pop ebx
ret
Function at 0x402140
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46ebbb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.Software_rising_rav
push reloc.OLEAUT32.dll_SysReAllocString
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402223
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.00446e10
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.Version
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402218
lea eax, [esp + 0x20]
push 0x473304
push eax
mov byte [esp + 0x2a], bl
call fcn.004436db
add esp, 8
test eax, eax
jne 0x402218
push str.Success_IsExistRavV16...
push 0x80
call fcn.00431310
add esp, 8
lea ebp, [ebx + 1]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.00446e10
add esp, 0xc
lea edi, [esp + 0x124]
call fcn.004016a0
test eax, eax
je 0x4022bc
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, edi
push eax
push str._s_rsmain.exe
lea edi, [esp + 0x1c]
mov dword [esp + 0x23c], ebx
call fcn.004035e0
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402295
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x4022cb
test ebx, ebx
je 0x4022cb
mov eax, 1
jmp 0x4022cd
xor eax, eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004426a0
add esp, 0x224
ret
Function at 0x402300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push edi
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.Software_rising_rav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023ff
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.Version
push eax
call edi
test eax, eax
jne 0x4023f4
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.00441dab
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
push 0
push esi
call fcn.00446e10
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Version
push edx
call edi
test eax, eax
jne 0x4023d7
mov edx, esi
call fcn.004031f0
mov eax, dword [ebx]
push eax
push str.m_strVersionOld_s
push 0x80
call fcn.00431310
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00443398
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00443398
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x402410
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x46ebf8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x402477
mov ecx, edi
lea eax, [esp + 0x10]
call fcn.004034e0
mov esi, dword [esp + 0x10]
cmp dword [esi - 8], edi
jge 0x402486
push 0x80070057
call fcn.00401000
push edi
push esi
mov dword [esi - 0xc], edi
push ebp
mov byte [esi + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442f3d
add esp, 8
cmp eax, ebp
jl 0x40247c
cmp eax, dword [esi - 8]
jg 0x40247c
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebp
ja 0x402516
push 0x473348
push 0x80
call fcn.00431310
add esp, 8
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push edi
call fcn.00441dab
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebp, eax
push ebp
push edi
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x402555
push ebp
call fcn.00443398
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4024f5
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
xor eax, eax
push 0x473148
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x402586
push ebp
call fcn.00443398
add esp, 4
jmp 0x4024dd
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 8]
movzx edx, word [ecx + 0xa]
movzx edi, word [ecx + 0xe]
movzx ecx, word [ecx + 0xc]
cmp eax, 0x11
jne 0x4025a4
lea edx, [eax + 8]
xor eax, eax
push ecx
push edi
push eax
push edx
push str._02u._02u._02u._02u
mov edi, ebx
call fcn.004035e0
mov ecx, dword [ebx]
add esp, 0x14
push ecx
push str.NEW_Version__s
push 0x80
call fcn.00431310
add esp, 0xc
push ebp
call fcn.00443398
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4025f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x402620
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
lea eax, [esp + 8]
push eax
mov ecx, 0x473127
call fcn.00403130
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00446e10
add esp, 0xc
lea edx, [esp + 4]
push edx
push str.SOFTWARE_rising_ris
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402741
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push str.installpath
push ecx
call esi
test eax, eax
jne 0x402741
cmp dword [esp + 0xc], eax
je 0x402741
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.installpath
push ecx
call esi
test eax, eax
jne 0x402741
lea eax, [esp + 0x14]
dec eax
jmp 0x4026e0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026e0
mov edx, dword [str._rsmain.exe]
mov ecx, dword [0x473394]
mov dword [eax], edx
mov edx, dword [0x473398]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402741
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
call fcn.004031d0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004426a0
add esp, 0x118
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40276c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004426a0
add esp, 0x118
ret
Function at 0x402790
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46ebbb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.Software_rising_rav
push reloc.OLEAUT32.dll_SysReAllocString
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402873
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.00446e10
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.Version
push edx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402868
lea eax, [esp + 0x20]
push 0x47339c
push eax
mov byte [esp + 0x2a], bl
call fcn.004436db
add esp, 8
test eax, eax
jne 0x402868
push str.Success_IsExistRavV17...
push 0x80
call fcn.00431310
add esp, 8
lea ebp, [ebx + 1]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.00446e10
add esp, 0xc
lea edi, [esp + 0x124]
call fcn.004016a0
test eax, eax
je 0x40290c
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, edi
push eax
push str._s_rsmain.exe
lea edi, [esp + 0x1c]
mov dword [esp + 0x23c], ebx
call fcn.004035e0
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4028e5
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40290c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x40291b
test ebx, ebx
je 0x40291b
mov eax, 1
jmp 0x40291d
xor eax, eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004426a0
add esp, 0x224
ret