joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e7b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10005d1f
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003e7ec
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1003e3f5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1003e84a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x1003e86e
cmp dword [edi + 0x74], 0
jne 0x1003e86e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.10005d1f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003e80b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1006f17a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1006f194
call fcn.10005d1f
mov esi, dword [eax + 0xc]
push dword [0x101623c0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1006f1b2
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1006f1aa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1006f1df
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1006f1ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1006f0a8
mov esi, eax
jmp 0x1006f1d1

Function at 0x100b9e84
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.100b9b43
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100b9ece
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000badc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100045d7
jmp 0x100b9ed9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000b6a6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100b9edf
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10014781
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100b9f1c
call fcn.100b9b43
mov dword [esi + 0xc], 1
jmp 0x100b9f21
call fcn.100b9b43
cmp dword [esi], 0
je 0x100b9f6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x100b9f42
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000badc
jmp 0x100b9f54
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.100029b3
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100045d7
jmp 0x100b9f8e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100b9f8e
push dword [esi]
push dword [ebp + 8]
call fcn.1000b6a6
pop esi
pop ebp
ret 0xc

Function at 0x100bb34b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100ef561
call fcn.10005750
cmp dword [eax + 0x14], 0
jne 0x100bb368
mov ecx, esi
pop esi
jmp fcn.100bae50
pop esi
ret

Function at 0x100be533
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10026c6b
call fcn.10005750
cmp dword [eax + 0x14], 0
jne 0x100be550
mov ecx, esi
pop esi
jmp fcn.100bdf06
pop esi
ret

Function at 0x100d088b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d08a3
mov edi, dword [esi + 0xc]
jmp 0x100d08e3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100d08bc
call fcn.1000a55d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d08d1
call fcn.1000a55d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d08e3
call fcn.1000a55d
call fcn.10005d1f
cmp dword [eax + 0x3c], 0
je 0x100d08f8
push edi
mov ecx, ebx
call fcn.100cf751
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d07a5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d0916
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d0922
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f4e20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015d4d0]
jne 0x100f4e2a
repz ret
jmp fcn.100fb644
Function at 0x101077d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015d4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100fb979
and dword [ebp - 0x14], 0
cmp dword [0x10164b88], 0
mov dword [ebp - 0x18], eax
jne 0x10107883
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1010792b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1010792b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1013fc04
push ebx
mov dword [0x10164b88], eax
call edi
push eax
call esi
push 0x1013fbf0
push ebx
mov dword [0x10164b8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10164b90], eax
call edi
push eax
call esi
mov dword [0x10164b98], eax
test eax, eax
je 0x10107883
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10164b94], eax
mov eax, dword [0x10164b94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x101078dc
cmp dword [0x10164b98], ecx
je 0x101078dc
push eax
call esi
push dword [0x10164b98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x101078dc
test ebx, ebx
je 0x101078dc
call edi
test eax, eax
je 0x101078d3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x101078d3
test byte [ebp - 8], 1
jne 0x101078dc
or dword [ebp + 0x10], 0x200000
jmp 0x1010790f
mov eax, dword [0x10164b8c]
cmp eax, dword [ebp - 0x18]
je 0x1010790f
push eax
call esi
test eax, eax
je 0x1010790f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1010790f
mov eax, dword [0x10164b90]
cmp eax, dword [ebp - 0x18]
je 0x1010790f
push eax
call esi
test eax, eax
je 0x1010790f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10164b88]
call esi
test eax, eax
je 0x1010792b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1010792d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f4e20
leave
ret
Function at 0x4015a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov cx, word [0x4ea730]
mov eax, dword [str.abcdef]
mov dl, byte [0x4ea732]
push esi
mov esi, dword [esp + 0x10]
mov word [esp + 8], cx
xor ecx, ecx
mov dword [esp + 4], eax
mov cl, byte [esi]
mov eax, 0x66666667
mov byte [esp + 0xa], dl
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
lea edx, [edx + edx*4]
shl edx, 1
sub ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
xor ecx, ecx
mov cl, byte [esi + 1]
mov eax, 0xd1b71759
mov dword [edx], ecx
xor ecx, ecx
mov cx, word [esi + 2]
mul ecx
shr edx, 0xd
js 0x401611
cmp edx, 5
jle 0x401613
xor edx, edx
mov eax, edx
neg eax
shl eax, 2
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
add ecx, eax
cmp ecx, 0xa
jae 0x40163d
movsx edx, byte [esp + edx + 4]
push edx
push ecx
push str.000_u_c
jmp 0x40166b
cmp ecx, 0x64
jae 0x401650
movsx edx, byte [esp + edx + 4]
push edx
push ecx
push str.00_u_c
jmp 0x40166b
movsx edx, byte [esp + edx + 4]
cmp ecx, 0x3e8
push edx
push ecx
jae 0x401666
push str.0_u_c
jmp 0x40166b
push str._u_c
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [esi + 4]
xor eax, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov al, byte [esi + 5]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov dx, word [esi + 6]
pop esi
mov dword [eax], edx
add esp, 8
ret 0x20
Function at 0x401fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d1176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 1
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x10]
mov byte [esp + 0x130], 2
push eax
push esi
push edi
call fcn.00401a60
add esp, 0xc
test al, al
je 0x4020df
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402088
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push str.Install
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402078
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004d0c62
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40212c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push esi
lea eax, [esp + 0xc]
push str.Error_in_ReadInstallFolderFromRegistry:_n_nCan_not_query_data_from_registry__code_ld_._nMust_be_able_to_query_data_from:_n_n
push eax
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 8]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
jmp 0x402127
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push esi
push edi
lea eax, [esp + 0x10]
push str.Error_in_ReadInstallFolderFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push eax
mov byte [esp + 0x140], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0x10
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
call fcn.004d0c74
mov esi, dword [esp + 0x138]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call fcn.004d0c74
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 0
call fcn.004d0c74
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x402190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d11d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 1
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x10]
mov byte [esp + 0x130], 2
push eax
push esi
push edi
call fcn.00401a60
add esp, 0xc
test al, al
je 0x402321
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4022ca
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push str.License
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022ba
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004d0c62
mov al, byte [esp + 0x144]
test al, al
je 0x4022ba
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4022ba
inc eax
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 3
call fcn.004d0c8c
lea ecx, [esp + 8]
mov byte [esp + 0x130], 2
call fcn.004d0c74
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40236e
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [esp + 0xc]
push str.Error_in_ReadLicenseFolderFromRegistry:_n_nCan_not_query_data_from_registry__code_ld_._nMust_be_able_to_query_data_from:_n_n
push ecx
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
jmp 0x402369
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push esi
push edi
lea ecx, [esp + 0x10]
push str.Error_in_ReadLicenseFolderFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push ecx
mov byte [esp + 0x140], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x10
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
call fcn.004d0c74
mov esi, dword [esp + 0x138]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call fcn.004d0c74
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 0
call fcn.004d0c74
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x4023d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d1201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x130]
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x10]
mov dword [esp + 0x124], ebx
push eax
push esi
push edi
call fcn.00401a60
add esp, 0xc
test al, al
je 0x4024e5
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x40249a
mov eax, dword [esp + 0x134]
push 0x104
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x18]
push 0x104
push edx
push 1
push ebx
push str.License
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
jne 0x40248a
mov bl, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402526
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push esi
lea edx, [esp + 0x10]
push str.Error_in_WriteLicenseFolderToRegistry:_n_nCan_not_write_data_to_registry__code_ld_._nMust_be_able_to_write_data_to:_n_n
push edx
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x124], bl
lea ecx, [esp + 0xc]
jmp 0x402521
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push esi
push edi
lea edx, [esp + 0x14]
push str.Error_in_WriteLicenseFolderToRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push edx
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0x10
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x124], bl
lea ecx, [esp + 0xc]
call fcn.004d0c74
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d0c74
mov ecx, dword [esp + 0x11c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x402560
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d1228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], ebx
push eax
push esi
push edi
call fcn.00401a60
add esp, 0xc
test al, al
je 0x402639
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4025f4
mov eax, dword [esp + 0x10]
push str.License
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
jne 0x4025e4
mov bl, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402674
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
push esi
lea edx, [esp + 0x2c]
push str.Error_in_RemoveLicenseFolderFromRegistry:_n_nCan_not_delete_data_in_registry__code_ld_._nMust_be_able_to_delete_data_in:_n_n
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x28]
jmp 0x40266f
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
push esi
push edi
lea edx, [esp + 0x30]
push str.Error_in_RemoveLicenseFolderFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push edx
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x10
push ebx
push ebx
push eax
call sub.MFC42.DLL_AfxMessageBox
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x28]
call fcn.004d0c74
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d0c74
mov ecx, dword [esp + 0x14]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x402fe0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [esp + 0x10], ecx
movsx edi, word [esp + 0x1c]
xor edx, edx
mov ecx, 0x4e926c
mov dword [esp + 0x1c], 0x12
movsx esi, dx
xor ebx, ebx
add ecx, 4
lea eax, [esi + 1]
cdq
idiv edi
lea eax, [esi + 2]
mov bl, byte [edx + ebp]
cdq
idiv edi
mov bh, byte [esi + ebp]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ebp]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv edi
xor eax, eax
shl ebx, 8
mov al, byte [edx + ebp]
or ebx, eax
mov eax, dword [ecx - 4]
xor eax, ebx
mov dword [ecx - 4], eax
lea eax, [esi + 4]
cdq
idiv edi
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x403001
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov esi, 0x4e9270
mov edi, 9
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.004026a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x403066
mov esi, 0x4e92b8
mov ebp, 4
mov edi, 0x80
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebx
call fcn.004026a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esi, 8
dec edi
jne 0x403099
dec ebp
jne 0x403094
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
pop ecx
ret 8

Function at 0x403470
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x4034c0
push ebp
push edi
or esi, 0xffffffff
call dword [sym.imp.MSVCRT.dll_rewind]
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
push edi
call ebp
add esp, 4
cmp eax, 0xffffffff
je 0x4034b5
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x4ea2b4]
xor esi, eax
mov al, byte [edi + 0xc]
test al, 0x10
je 0x403490
push edi
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
pop ebp
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x4034d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
or eax, 0xffffffff
mov esi, dword [ecx]
xor ecx, ecx
mov edi, dword [esi - 8]
test edi, edi
jle 0x403506
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ea2b4]
xor eax, edx
inc ecx
cmp ecx, edi
jl 0x4034e5
pop ebx
pop edi
pop esi
not eax
ret
Function at 0x406710
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d1497
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
lea eax, [esp + 0x18]
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esi, 0x9c
lea ecx, [esp + 0x10]
push esi
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x124], 0
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x4ed358
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x12c], 2
push eax
call sub.MFC42.DLL_operator_1
push str.101162.ini
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 8
call fcn.004d0c74
lea ecx, [esp + 8]
mov byte [esp + 0x124], 7
call fcn.004d0c74
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 6
call fcn.004d0c74
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 5
call fcn.004d0c74
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0xffffffff
call fcn.004d0c74
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret