joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 0
jmp 0x4011c6
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jae 0x401278
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x68
mov eax, dword [edx + 0x487008]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401273
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x68
mov edx, dword [ecx + 0x487010]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x68
mov dword [ecx + 0x48702c], eax
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x68
cmp dword [edx + 0x48702c], 0
je 0x401273
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x68
mov edx, dword [ecx + 0x48702c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x20
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x68
add ecx, 0x487050
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x68
add edx, 0x487008
push edx
call fcn.0041b920
add esp, 0xc
jmp 0x4011bd
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16a0
call fcn.00447370
call fcn.00401310
mov eax, dword [ebp + 8]
push eax
call fcn.00401770
add esp, 4
mov dword [ebp - 4], 0
jmp 0x4012c0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xa
jge 0x4012ee
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4012ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.00401770
add esp, 4
jmp 0x4012b7
call fcn.00401310
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x4015f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
push eax
push 0x4756fc
lea ecx, [ebp - 0x218]
push ecx
call fcn.00447420
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x58b870
call fcn.00409100
add esp, 8
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.004472f0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x4017b4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x4017bc
or eax, 0xffffffff
jmp 0x40190d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x209
jbe 0x4017d7
mov eax, 0x6f
jmp 0x40190d
mov eax, dword [ebp + 8]
push eax
push str._s.
push 0x209
lea ecx, [ebp - 0x218]
push ecx
call fcn.00401920
add esp, 0x10
mov dword [ebp - 0x360], 0
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffffff
jne 0x401828
xor eax, eax
jmp 0x40190d
cmp dword [ebp - 0x360], 0
jne 0x4018f4
push 0x47570c
lea ecx, [ebp - 0x32c]
push ecx
call fcn.004474c0
add esp, 8
test eax, eax
je 0x4018c2
push 0x475708
lea edx, [ebp - 0x32c]
push edx
call fcn.004474c0
add esp, 8
test eax, eax
je 0x4018c2
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x475700
push 0x209
lea edx, [ebp - 0x218]
push edx
call fcn.00401920
add esp, 0x14
cmp dword [ebp - 0x358], 0x10
jne 0x4018a3
lea eax, [ebp - 0x218]
push eax
call fcn.00401770
add esp, 4
jmp 0x4018c2
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4018ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4018ef
mov dword [ebp - 0x360], 1
jmp 0x401828
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x401cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcf8
call fcn.00401a00
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push str.SOFTWARE_risingRAV
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401d47
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.Is3MPackage
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401d43
mov eax, 1
jmp 0x401d49
xor eax, eax
jmp 0x401d49
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401d50
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdcc
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401a00
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x114]
push ecx
push str.SOFTWARE_risingRAV
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401e6d
call fcn.00401310
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x118]
push edx
push 0
push 0
push 0
push 0x475744
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e6d
cmp dword [ebp - 0x118], 0
jne 0x401e01
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401e81
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x475744
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e6d
call fcn.00401a00
push str._rsmain.exe
lea eax, [ebp - 0x110]
push eax
call fcn.004477f0
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401e6d
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x401e81
call fcn.00401310
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x402550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x402576
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x402576
mov eax, 1
jmp 0x402578
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x402580
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4025b0
or eax, 0xffffffff
jmp 0x40263c
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
jbe 0x4025cc
or eax, 0xffffffff
jmp 0x40263c
mov dword [ebp - 0x10], 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 0x100000
push 0x48ae20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40262f
cmp dword [ebp - 4], 0
ja 0x40260b
jmp 0x40262f
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x48ae20
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x4025e5
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x402640
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x100000
push 0x48ae20
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40267c
or eax, 0xffffffff
jmp 0x40272b
mov dword [ebp - 0x1c], 0x48ae20
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x402699
or eax, 0xffffffff
jmp 0x40272b
mov edx, dword [0x48ae5c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x48ae20], 0x4550
je 0x4026b6
or eax, 0xffffffff
jmp 0x40272b
mov ecx, dword [ebp - 0x14]
add ecx, 0x48ae24
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 0xe0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov word [ebp - 0x20], cx
jmp 0x4026f1
mov dx, word [ebp - 0x20]
add dx, 1
mov word [ebp - 0x20], dx
movsx eax, word [ebp - 0x20]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
cmp eax, edx
jge 0x402728
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jbe 0x40271d
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x28
mov dword [ebp - 0x10], edx
jmp 0x4026e5
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4029a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4029d6
xor eax, eax
jmp 0x402a3d
mov ecx, dword [ebp + 0x10]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [0x58b29c]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x58b29c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x58b29c]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 8], eax
call fcn.00422690
movzx eax, al
test eax, eax
jne 0x402b74
jmp 0x402d3d
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.004472f0
add esp, 0xc
mov byte [ebp - 0x328], 0
push 0x103
push 0
lea edx, [ebp - 0x327]
push edx
call fcn.004472f0
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x32c], ecx
push 0x475830
mov edx, dword [ebp - 0x32c]
push edx
call fcn.0044855f
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x348], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x104
sub edx, eax
sub edx, 1
mov dword [ebp - 0x344], edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x218]
mov dword [ebp - 0x340], ecx
cmp dword [ebp - 0x344], 0x7fffffff
jbe 0x402c29
mov dword [ebp - 0x330], 0x80070057
jmp 0x402c4d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
mov edx, dword [ebp - 0x340]
push edx
call fcn.00401970
mov dword [ebp - 0x330], eax
mov dword [ebp - 4], 0
push str._RsInstall_
lea eax, [ebp - 0x328]
push eax
call fcn.004477e0
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x328]
push edx
call fcn.004477f0
add esp, 8
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.004472f0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402cd5
push 0x104
push str.C:Temp
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea ecx, [ebp - 0x110]
push ecx
call fcn.00448407
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x402d0c
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx + 1]
test eax, eax
jne 0x402d0c
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0
push str.Rs7zSfx.log
lea edx, [ebp - 0x110]
push edx
call fcn.004477f0
add esp, 8
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 1
push 0x80
call fcn.00402d50
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x403320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.004033b0
add esp, 0x10
test eax, eax
je 0x403399
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret

Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x40350f
cmp dword [ebp + 0xc], 0
jne 0x403516
xor eax, eax
jmp 0x4035fc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004472f0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x47588c
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.00401920
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x118]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4035f0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x475880
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004482c0
add esp, 4
test eax, eax
je 0x4035e6
cmp dword [ebp + 0x10], 0x7fffffff
jbe 0x4035ce
mov dword [ebp - 0x11c], 0x80070057
jmp 0x4035e6
push 0x47587c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403210
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call fcn.004482c0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x403610
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.004033b0
add esp, 0x10
test eax, eax
je 0x40376f
mov byte [ebp - 0x228], 0
push 0x104
push 0
lea ecx, [ebp - 0x227]
push ecx
call fcn.004472f0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x4758ac
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
movsx eax, byte [ebp - 0x228]
test eax, eax
jne 0x4036ca
mov eax, dword [ebp + 0x10]
jmp 0x403772
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x118]
push edx
push 0x4758a8
lea eax, [ebp - 0x228]
push eax
call fcn.00448602
add esp, 0xc
cmp dword [ebp - 0x118], 0
jbe 0x403717
mov eax, dword [ebp - 0x118]
jmp 0x403772
lea ecx, [ebp - 0x11c]
push ecx
push 0x4758a0
lea edx, [ebp - 0x228]
push edx
call fcn.00448602
add esp, 0xc
cmp dword [ebp - 0x11c], 0
jbe 0x403743
mov eax, dword [ebp - 0x11c]
jmp 0x403772
lea eax, [ebp - 0x114]
push eax
push 0x4756fc
lea ecx, [ebp - 0x228]
push ecx
call fcn.00448602
add esp, 0xc
cmp dword [ebp - 0x114], 0
jbe 0x40376f
mov eax, dword [ebp - 0x114]
jmp 0x403772
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x475878
push str.RAV.INI
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4758ac
push str.LOGNAME
push str.DEBUG
call fcn.00403e00
add esp, 0x1c
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x403df6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], eax
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00448407
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403dca
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, ecx
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
call fcn.00448700
add esp, 0xc
push 9
push str.logfiles
mov edx, dword [ebp - 8]
push edx
call fcn.004478e0
add esp, 0xc
mov eax, dword [ebp - 8]
mov byte [eax + 9], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov byte [edx + 9], 0x5c
cmp dword [ebp - 0xc], 0xffffffff
je 0x403da2
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x403da2
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx + 9], 0
jmp 0x403dca
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, edx
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00448700
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, 0x104
cmp ecx, 0x7fffffff
jbe 0x403de0
mov dword [ebp - 0x10], 0x80070057
jmp 0x403df6
push 0x4756c0
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.00403210
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret

Function at 0x403e00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004472f0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x20]
push eax
call fcn.004033b0
add esp, 0x10
test eax, eax
je 0x403e81
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret
Function at 0x403ea0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4040b4
push 0x4754c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x4040b4
cmp dword [ebp - 0x9c], 4
jne 0x403fca
cmp dword [ebp - 0x98], 0
jne 0x403fca
push 0x475970
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x403fc5
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0xac], 0
push 0x58ae20
lea edx, [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x1b8]
push eax
call fcn.00448a80
add esp, 8
mov byte [eax + 1], 0
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0x1bc]
push edx
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
lea edx, [ebp - 0x1b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x1c0]
imul eax, dword [ebp - 0x1c4]
imul eax, dword [ebp - 0x1bc]
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x4040b4
push str.GetDiskFreeSpaceExA
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0
je 0x4040b4
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2d0], 0
push 0x103
push 0
lea ecx, [ebp - 0x2cf]
push ecx
call fcn.004472f0
add esp, 0xc
push 0x58ae20
lea edx, [ebp - 0x2d0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x2d0]
push eax
call fcn.00448a80
add esp, 8
mov byte [eax + 1], 0
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x2e8]
push edx
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
call dword [ebp - 0x1c8]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x4040b4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret