joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bcf5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x48be0f
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48bd2c
xor eax, eax
jmp 0x48be3e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x48bd4f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48bd25
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48bd25
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x493ccc
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x48bd25
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp dword [edx], edi
jne 0x48bdeb
cmp dword [ecx], edi
jne 0x48bdeb
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0x2000
push dword [ecx]
push dword [edx]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x48be14
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x48be29
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebp, ecx
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x2710
jae 0x40103f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x432600
call fcn.0040ad20
test eax, eax
je 0x40103e
push 0x64
call ebx
call esi
sub eax, edi
cmp eax, 0x2710
jb 0x401021
pop ebx
push 1
mov ecx, 0x432600
call fcn.0040ad30
pop edi
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x403230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f356
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], vtable.CProxy_IRhinoLicenseEvents_class_CRhinoLicense_.0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x34]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x38]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 4
call fcn.0040e800
push str.CRhinoLicense::CRhinoLicense
mov byte [esp + 0x18], 5
call fcn.004090a0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x404000
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x404020
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x404036
push 0x80004005
call fcn.00402120
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x404060
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x404078
push 0x80004005
call fcn.00402120
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404085
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x404f10
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x432578]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x404f7e
test ecx, ecx
je 0x404f70
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x404f8c
test ecx, ecx
je 0x405031
push ecx
jmp 0x40502b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x404ffe
jmp 0x404fc0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00404f10
mov edi, eax
test edi, edi
jne 0x40504d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x404fc0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405015
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405031
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041e2c0
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40505c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405033
Function at 0x4082b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x41f7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x432578]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x4325b0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
jne 0x40833d
call fcn.00403e70
mov esi, eax
jmp 0x408426
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x408359
call fcn.00403e70
jmp 0x40841d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x408372
call fcn.00403e70
jmp 0x40841d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4083a8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x408396
lea ecx, [ebp]
call fcn.004048d0
lea ecx, [ebp - 0x1c]
call fcn.00404850
mov eax, 0x8007000e
jmp 0x408442
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004064e0
mov dword [ebp - 4], 1
jmp 0x4083d2
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4083e0
mov esi, 0x8007000e
jmp 0x40841f
call dword [0x4325b0]
mov ecx, dword [ebp - 0x18]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408401
call fcn.00403e70
jmp 0x40841d
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407aa0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x408440
lea ecx, [ebp]
call fcn.004048d0
jmp 0x408440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0041e2c0
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
jne 0x409ce3
xor al, al
pop edi
add esp, 8
ret
push 0x4326bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x1d], 0
jne 0x409dcc
push ebx
push ebp
push esi
mov byte [edi + 0x1d], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [edi + 0xc]
cmp dword [edi + 4], 1
mov dword [edi + 0x18], eax
jne 0x409d8e
mov eax, dword [0x4326e8]
mov ebp, dword [eax]
mov esi, 0x4326e4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov ebx, eax
test esi, esi
je 0x409d33
cmp esi, 0x4326e4
je 0x409d39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, ebx
je 0x409d9a
test esi, esi
jne 0x409d47
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [esi + 4]
jne 0x409d52
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x10], edi
lea ecx, [esp + 0x10]
je 0x409d6a
call fcn.00409340
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x409d27
call fcn.004096b0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4326e0]
mov edx, dword [esi]
push eax
mov eax, dword [edi + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409d9a
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push eax
call ecx
add esp, 4
cmp byte [0x4326d5], 0
pop esi
pop ebp
pop ebx
jne 0x409dcc
push 0x4326bc
mov byte [0x4326d5], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x4326dc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
pop edi
add esp, 8
ret
push 0x4326bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
add esp, 8
ret

Function at 0x40a7a0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 1
jne 0x40a7af
xor al, al
pop esi
ret 0xc
push 0x4326bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x10]
mov dword [esi + 0x10], ecx
push eax
mov ecx, 0x4326f0
mov dword [esi + 4], 0
mov dword [esi + 0x14], edx
mov dword [esp + 0x14], esi
call fcn.0040a640
cmp dword [0x4326d8], 0
jne 0x40a83d
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push 0x409de0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0
mov dword [0x4326d8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [0x4326d8]
push 1
push edx
mov dword [0x4326dc], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4326d8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x4326bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x1c], 1
mov al, 1
pop esi
ret 0xc
Function at 0x40caa0
Capabilities:
Access peb ldr_data
Create mailslot

Disassembly:
push 0xffffffffffffffff
push 0x41fd79
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
push str..mailslot_s
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push edx
push eax
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [esi], eax
lea ecx, [esp + 8]
mov esi, edx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x40cbb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0xc

Function at 0x40cc90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x40d730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x420167
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CRmaLicense.0
push str.CRmaLicense::CRmaLicense___n
push 0x5d
push str.._rmalicense.cpp
push 0
mov dword [esp + 0x28], 0xa
call dword [0x4246c8]
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x18], 9
call fcn.0041acc0
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x18], 8
call fcn.0040b020
lea ecx, [esi + 0x2c8]
mov byte [esp + 0x18], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edi, [esi + 0x298]
lea ecx, [edi + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, edi
call fcn.004199b0
lea ecx, [esi + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40db30
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41ff73
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x30], 3
call fcn.0040cf30
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040d120
push str.CLSID_
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
lea edx, [esp + 0x30]
push edx
push 0x20019
push edi
push eax
push SysReAllocString
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dc79
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov edi, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
push esi
mov dword [esp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dc79
cmp dword [esp + 0x34], 4
jne 0x40dc79
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
setne dl
lea ecx, [esp + 0x10]
mov byte [eax], dl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test esi, esi
je 0x40dc63
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test edi, edi
je 0x40dca2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x40e800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x420167
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CRmaLicense.0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 7
call fcn.0041c3a0
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x18], 8
call fcn.00410c30
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x18], 9
call fcn.0041ade0
fldz
fst qword [esi + 0x31c]
mov dword [esi + 0x324], edi
push str.CRmaLicense::CRmaLicense_void__n
fst qword [esi + 0x328]
mov dword [esi + 0x330], edi
fstp qword [esi + 0x338]
push 0x48
mov dword [esi + 0x340], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push str.._rmalicense.cpp
push edi
mov ecx, esi
mov byte [esp + 0x28], 0xa
call edx
mov ecx, esi
call fcn.0040d620
push 0x409
mov ecx, esi
call fcn.0040d820
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40f400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x420167
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CRmaLicense.0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 7
call fcn.0041c3a0
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x18], 8
call fcn.00410c30
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x18], 9
call fcn.0041ade0
fldz
fst qword [esi + 0x31c]
mov dword [esi + 0x324], edi
push 0x425c20
fst qword [esi + 0x328]
mov dword [esi + 0x330], edi
fstp qword [esi + 0x338]
push 0x57
mov dword [esi + 0x340], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push str.._rmalicense.cpp
push edi
mov ecx, esi
mov byte [esp + 0x28], 0xa
call edx
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.004030d0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x410ce0
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4203fc
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x432578]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov eax, dword [0x432578]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x23c]
push 0x104
lea eax, [esp + 0x24]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x410db2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 3
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
add esp, 0x24
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push 0x426370
push ecx
mov dword [esp + 0x240], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x410da8
mov bl, 1
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0041e2c0
add esp, 0x22c
ret