joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push esi
mov esi, dword [esp + 0x124]
xor ebx, ebx
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 8]
push eax
push 1
push ebx
push str.SOFTWARERisingRav
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a1a
push edi
mov ecx, 0x41
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.installpath
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x403a0f
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x42307c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403a0a
mov ecx, dword [esi]
push 0
mov edx, dword [ecx - 8]
mov ecx, esi
dec edx
push edx
call sub.MFC42.DLL_CString::SetAt
mov ebx, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop ebx
add esp, 0x118
ret 4

Function at 0x404390
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b3c8
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push 2
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x10]
jae 0x4043e6
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x405670
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x110
test edx, edx
push esi
je 0x40575e
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x40575e
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push str.SOFTWARERising_s
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405747
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x128]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40573b
push ebp
push 0x42307c
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x110
ret
xor eax, eax
pop esi
add esp, 0x110
ret
Function at 0x408f70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
test ebp, ebp
push edi
jne 0x408f92
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call esi
add esp, 0x14
test eax, eax
je 0x408fdd
lea edx, [esp + 0x10]
push 0x5c
push edx
call esi
add esp, 8
mov byte [eax], 0
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 5
push eax
push esi
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x409129
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 5]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
je 0x4090de
or ecx, 0xffffffff
mov edi, 0x423448
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x423718
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4090f8
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
push ebx
jae 0x409121
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x40af30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x427ce4]
cmp eax, 0x1c00
jle 0x40af67
lea eax, [esp]
push 0
push eax
push 0x425ce0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
push 0x425ce0
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x427ce4], eax
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [eax + 0x425ce0]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x427ce4], eax
pop ecx
ret

Function at 0x40af90
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x34]
mov eax, 0x40000000
xor edx, edx
mov esi, 0
div edi
mov ebp, esi
mov dword [esp + 0x10], 1
mov ebx, eax
shl ebx, 2
je 0x40b02b
mov edx, esi
lea ecx, [esp + 0x14]
imul edx, edi
push 0x1c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b01c
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x40b01c
xor edx, edx
div edi
add esi, eax
mov eax, dword [esp + 0x24]
cmp eax, 0x1000
jne 0x40b027
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x40b027
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push ecx
push eax
push edx
mov ebp, eax
call fcn.0040b040
add esp, 0xc
test al, al
je 0x40b027
inc dword [esp + 0x10]
jmp 0x40b027
mov eax, 0x10000
xor edx, edx
div edi
add esi, eax
cmp esi, ebx
jb 0x40afc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x40b410
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0x3f0
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0xcc]
push edx
push eax
call fcn.0040b380
mov esi, dword [esp + 0x40c]
add esp, 0xc
lea ecx, [esp + 0xc8]
push ecx
push str.Error_occurred_at__s._r_n
push esi
call fcn.0040af30
add esp, 0xc
lea edx, [esp + 0x1f4]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1f4]
push 0x206
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
ja 0x40b498
lea eax, [esp + 0x1f4]
push str.Unknown
push eax
call ebx
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x12c]
lea edx, [esp + 0x12c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0xc6
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40b4d6
lea eax, [esp + 0x12c]
push str.Unknown
push eax
call ebx
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x1f4]
push ecx
push edx
push str._s__run_by__s._r_n
push esi
call fcn.0040af30
lea eax, [esp + 0x70]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0xa8]
push ecx
push edx
call fcn.0040bc20
add esp, 0x1c
lea eax, [esp + 0x60]
lea ecx, [esp + 0x94]
push eax
push ecx
push str.Operating_system:___s___s_._r_n
push esi
call fcn.0040af30
add esp, 0x10
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push str._d_processor_s___type__d._r_n
push esi
call fcn.0040af30
add esp, 0x10
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x1c]
push eax
push str._d___memory_in_use._r_n
push esi
call fcn.0040af30
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.0040af30
mov edx, dword [esp + 0x30]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.0040af30
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push esi
call fcn.0040af30
mov ecx, dword [esp + 0x38]
add esp, 0xc
add ecx, 0xfffff
shr ecx, 0x14
push ecx
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.0040af30
mov edx, dword [esp + 0x3c]
add esp, 0xc
add edx, 0xfffff
shr edx, 0x14
push edx
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.0040af30
mov eax, dword [esp + 0x40]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.0040af30
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x3f0
ret
Function at 0x40b620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov edx, dword [esp + 0xc4]
mov dword [esp], 0x40010005
mov dword [esp + 4], str.a_Control_C
mov dword [esp + 8], 0x40010008
mov dword [esp + 0xc], str.a_Control_Break
mov dword [esp + 0x10], 0x80000002
mov dword [esp + 0x14], str.a_Datatype_Misalignment
mov dword [esp + 0x18], 0x80000003
mov dword [esp + 0x1c], str.a_Breakpoint
mov dword [esp + 0x20], 0xc0000005
mov dword [esp + 0x24], str.an_Access_Violation
mov dword [esp + 0x28], 0xc0000006
mov dword [esp + 0x2c], str.an_In_Page_Error
mov dword [esp + 0x30], 0xc0000017
mov dword [esp + 0x34], str.a_No_Memory
mov dword [esp + 0x38], 0xc000001d
mov dword [esp + 0x3c], str.an_Illegal_Instruction
mov dword [esp + 0x40], 0xc0000025
mov dword [esp + 0x44], str.a_Noncontinuable_Exception
mov dword [esp + 0x48], 0xc0000026
mov dword [esp + 0x4c], str.an_Invalid_Disposition
mov dword [esp + 0x50], 0xc000008c
mov dword [esp + 0x54], str.a_Array_Bounds_Exceeded
mov dword [esp + 0x58], 0xc000008d
mov dword [esp + 0x5c], str.a_Float_Denormal_Operand
mov dword [esp + 0x60], 0xc000008e
mov dword [esp + 0x64], str.a_Float_Divide_by_Zero
mov dword [esp + 0x68], 0xc000008f
mov dword [esp + 0x6c], str.a_Float_Inexact_Result
mov dword [esp + 0x70], 0xc0000090
mov dword [esp + 0x74], str.a_Float_Invalid_Operation
mov dword [esp + 0x78], 0xc0000091
mov dword [esp + 0x7c], str.a_Float_Overflow
mov dword [esp + 0x80], 0xc0000092
mov dword [esp + 0x84], str.a_Float_Stack_Check
mov dword [esp + 0x88], 0xc0000093
mov dword [esp + 0x8c], str.a_Float_Underflow
mov dword [esp + 0x90], 0xc0000094
mov dword [esp + 0x94], str.an_Integer_Divide_by_Zero
mov dword [esp + 0x98], 0xc0000095
mov dword [esp + 0x9c], str.an_Integer_Overflow
mov dword [esp + 0xa0], 0xc0000096
mov dword [esp + 0xa4], str.a_Privileged_Instruction
mov dword [esp + 0xa8], 0xc00000fd
mov dword [esp + 0xac], str.a_Stack_Overflow
mov dword [esp + 0xb0], 0xc0000142
mov dword [esp + 0xb4], str.a_DLL_Initialization_Failed
mov dword [esp + 0xb8], 0xe06d7363
mov dword [esp + 0xbc], str.a_Microsoft_C_Exception
xor eax, eax
lea ecx, [esp]
cmp edx, dword [ecx]
je 0x40b7fc
inc eax
add ecx, 8
cmp eax, 0x18
jb 0x40b7e3
mov eax, str.an_Unknown_exception_type
add esp, 0xc0
ret
mov eax, dword [esp + eax*8 + 4]
add esp, 0xc0
ret
Function at 0x40bfa0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x38
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push eax
lea ebp, [esi + 0x28]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0b6
push edi
lea edi, [ebx + 1]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
je 0x40c0b6
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040c230
test eax, eax
je 0x40c0b6
mov eax, dword [esp + 0x18]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x20]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x24]
shr edx, 0x10
shr ecx, 0x10
mov word [esi + 0xc], dx
mov word [esi + 0x10], cx
mov ecx, dword [esp + 0x30]
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x2c]
shr edx, 0x10
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x230]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
push ecx
push 0x42367c
mov ecx, esi
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.0040c280
lea edx, [esi + 0x640]
mov ecx, esi
push edx
push 0x42366c
call fcn.0040c280
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push str.ProductName
call fcn.0040c280
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x410550
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x429100
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_wvsprintfA]
lea edx, [esp]
push 0
push edx
push 0x429100
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push 0x429100
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret

Function at 0x410620
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x400
mov ecx, eax
push ebx
push ebp
mov ebp, dword [esp + 0x40c]
push esi
mov edx, ecx
push edi
mov esi, ebp
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dl, byte [esp + eax + 0x10]
xor ecx, ecx
test eax, eax
jle 0x410665
mov bl, byte [esp + ecx + 0x10]
xor bl, dl
mov byte [esp + ecx + 0x10], bl
inc ecx
cmp ecx, eax
jl 0x410656
mov dl, byte [esp + eax + 0xf]
mov esi, 1
cmp eax, esi
mov byte [ebp], dl
jle 0x41068b
lea edi, [esp + 0x10]
dec edi
mov cl, byte [edi + esi]
mov bl, cl
xor bl, dl
mov dl, cl
mov byte [esi + ebp], bl
inc esi
cmp esi, eax
jl 0x41067a
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x410a20
Capabilities:
Read .ini file

Disassembly:
push ecx
mov ecx, dword [0x4290f8]
mov dword [esp], 1
lea edx, [esp]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
test eax, eax
jne 0x410ab1
mov ecx, 0x4284f8
call fcn.00410d50
test eax, eax
je 0x410ab1
push 0x425abc
push 1
push str.WorkMode
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x40
mov dword [esp], eax
je 0x410a74
mov eax, 1
mov dword [esp], eax
push eax
call fcn.00410a00
add esp, 4
mov ecx, 0x4284f8
call sub.MFC42.DLL_CWinThread::GetMainWnd
test eax, eax
je 0x410a8e
mov eax, dword [eax + 0x20]
mov ecx, dword [0x4290f8]
push esi
push 0
push eax
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x4290f8]
push eax
call dword [esi + 0xc]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x411ee0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call ebx
add esp, 8
test eax, eax
je 0x411f94
lea edx, [esp + 0xc]
push 0x5c
push edx
call ebx
mov edx, eax
mov edi, str.NetConfig.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x110]
lea ecx, [esp + 0xc]
push ecx
push 0x100
push esi
push str.Rav.ini
push 0x42492c
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2e
push esi
call ebx
add esp, 8
test eax, eax
je 0x411f94
push 0x2e
push esi
call ebx
add esp, 8
mov byte [eax], 0
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x411fb0
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41bc98
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
mov eax, dword [0x4290fc]
mov esi, ecx
je 0x41217c
cmp eax, ebp
je 0x411ff8
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x412030
push ebp
push ebp
lea ecx, [esp + 0x20]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x412030
lea edx, [esp + 0x18]
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov eax, dword [0x42902c]
cmp eax, 0xa
mov eax, str.LocalA898B599_0C91_4df9_A9F1_144B434F0B82
jge 0x412044
mov eax, str.A898B599_0C91_4df9_A9F1_144B434F0B82
push eax
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4290fc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4121a2
mov ecx, dword [0x4290fc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4290fc], ebp
mov eax, dword [esi + 0xcc]
cmp eax, ebp
jne 0x412167
push ebx
push edi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x10]
mov dword [esp + 0x3c], ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401190
mov eax, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x44]
push eax
push str.RfwMain_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.USER32.dll_GetPropA]
add esp, 0xc
mov edx, dword [esp + 0x44]
push 0x425abc
push 0
push edx
push str.WINHANDLE
call edi
mov esi, eax
test esi, esi
je 0x4120fe
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4120fe
push str.RisingRfwWnd
push esi
call ebx
test eax, eax
jne 0x412141
push 0x4259b8
push 0
push str.rfwmain
push str.WINHANDLE
call edi
mov esi, eax
test esi, esi
je 0x41212e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41212e
push str.RisingRfwWnd
push esi
call ebx
test eax, eax
jne 0x412141
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x3c
jl 0x4120ce
jmp 0x412154
push 0
push 0xad3
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
cmp eax, ebp
jne 0x412195
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4290fc], ebp
mov ecx, dword [esp + 0x2c]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4124c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x41bcf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
mov eax, dword [esp + 0x134]
xor ebx, ebx
mov dword [esp + 0x12c], ebx
cmp dword [eax - 8], ebx
je 0x412648
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x134], 1
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
cmp ebp, 1
jb 0x412638
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412638
mov ecx, ebp
push edi
mov edx, ecx
xor eax, eax
mov edi, esi
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x140]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
pop edi
test eax, 0xfffffffc
jbe 0x41262e
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ecx]
test ah, 0x80
mov dword [esp + 0xc], eax
je 0x4125c4
mov dword [esp + 0xc], 0x409
mov word [ecx + 2], 0x4e4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dx, word [ecx + 2]
push edx
push eax
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x100
lea edx, [esp + 0x40]
push 0x42367c
push edx
mov byte [eax + 1], bl
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
add esp, 0x24
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x138]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x134]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret