joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4171a8
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push 0x10e
push eax
push 0
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_char_const__]
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
push 0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
push str.FSUtil.dll
lea ecx, [ebp - 0x124]
call dword [0x4180f8]
push str.Program
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::Find_char_const__const]
test eax, eax
jne 0x40c043
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFilePath::exists_void_const]
test eax, eax
je 0x40c043
push 0
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator___int_]
lea eax, [ebp - 0x120]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
mov byte [eax], 0
jmp 0x40c055
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
lea ecx, [ebp - 0x128]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x124]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413da6
mov esp, ebp
pop ebp
ret

Function at 0x40c0b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.0040be60
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x4c]
cmp eax, 0x100000
jne 0x40c0d4
mov dword [esi + 0x2c], 0
mov eax, dword [0x42725c]
test eax, eax
je 0x40c11e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
push eax
call fcn.00412500
mov esi, eax
add esp, 4
test esi, esi
je 0x40c119
lea eax, [ebp - 4]
push eax
call fcn.0040c280
add esp, 4
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, dword [0x42725c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c230
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
push esi
call dword [eax + 0x3c]
push eax
call fcn.00412500
mov esi, eax
add esp, 4
test esi, esi
je 0x40c26f
lea eax, [ebp - 4]
push eax
call fcn.0040c280
add esp, 4
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c310
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417269
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x3c]
push eax
call fcn.00412500
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40c358
xor edx, edx
jmp 0x40c44e
lea eax, [ebp - 0x40]
push eax
call fcn.0040c280
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ebx
call fcn.00411ba0
add esp, 0x14
test eax, eax
jne 0x40c38c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c433
push dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
call fcn.00412820
mov edi, eax
add esp, 4
test edi, edi
je 0x40c405
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x30]
push esi
push dword [ebp - 0x3c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x30], 0x1e240
jne 0x40c405
cmp dword [ebp - 0x2c], 0
jne 0x40c405
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
jmp 0x40c40b
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
cmp edi, edx
jl 0x40c441
jg 0x40c433
cmp esi, eax
jbe 0x40c441
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413da6
mov esp, ebp
pop ebp
ret
Function at 0x40c470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c4a1
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40c492
jmp 0x40c4d2
lea eax, [ebp - 0x10c]
push eax
call fcn.0040bf50
add esp, 4
lea edx, [ebp - 0x108]
mov ecx, dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40c4b8
lea ecx, [ebp - 0x10c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x40c4eb
mov byte [eax], 0
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40c4f2
mov eax, dword [str._reference]
mov dword [ecx], eax
mov eax, dword [0x41bc3c]
mov dword [ecx + 4], eax
mov ax, word [0x41bc40]
mov word [ecx + 8], ax
mov al, byte [0x41bc42]
mov byte [ecx + 0xa], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00413da6
mov esp, ebp
pop ebp
ret
Function at 0x40d1c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4262b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x1388
test al, 1
jne 0x40d1e0
shr eax, 1
jmp 0x40d1e4
lea eax, [eax + eax*2]
inc eax
sub ecx, 1
jne 0x40d1d8
push ebx
push esi
add eax, 0x32abfa11
push eax
lea eax, [ebp - 0x68]
push str.SecurityInfo_X
push eax
call fcn.00407e20
lea eax, [ebp - 0x68]
push 0x41b89c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
xor ebx, ebx
add esp, 0x14
test esi, esi
setne bl
test esi, esi
je 0x40d237
push esi
push 0x64
lea eax, [ebp - 0x68]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00413da6
mov esp, ebp
pop ebp
ret
Function at 0x40d740
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417449
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 0x1c], 0
jg 0x40d7e2
cmp dword [0x4272b8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40d78c
call edi
mov dword [0x4272b8], eax
call edi
sub eax, dword [0x4272b8]
cmp eax, 0x4e20
jle 0x40d7b3
push 0x4000
lea eax, [esi + 0x1bc]
push eax
lea eax, [esi + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call edi
push eax
call fcn.0040d1c0
add esp, 4
push 0
push 0
push 0x12
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
push 0
push dword [eax + 4]
lea eax, [ebp + 8]
push dword [edi]
push eax
call fcn.0040d5b0
add esp, 0x10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AMapStringToPtr::Lookup_char_const___void___const]
test eax, eax
je 0x40d861
push 0
push 0x426e20
push 0x426e08
push 0
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x40d861
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov esi, dword [eax + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
jmp 0x40d7cc
Function at 0x40d8a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417479
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x1c], 0
jg 0x40d931
cmp dword [0x4272b8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40d8ec
call edi
mov dword [0x4272b8], eax
call edi
sub eax, dword [0x4272b8]
cmp eax, 0x4e20
jle 0x40d913
push 0x4000
lea eax, [esi + 0x1bc]
push eax
lea eax, [esi + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call edi
push eax
call fcn.0040d1c0
add esp, 4
push 0
push 0
push 0x12
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40da26
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
push 0
push dword [eax + 4]
lea eax, [ebp + 8]
push dword [edi]
push eax
call fcn.0040d5b0
add esp, 0x10
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AMapStringToPtr::Lookup_char_const___void___const]
test eax, eax
je 0x40d9b8
push 0
push 0x426e3c
push 0x426e08
push 0
push dword [ebp - 0x18]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x40d9b8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
jmp 0x40da26
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40da50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4174a9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 0x1c], 0
jg 0x40daf2
cmp dword [0x4272b8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40da9c
call edi
mov dword [0x4272b8], eax
call edi
sub eax, dword [0x4272b8]
cmp eax, 0x4e20
jle 0x40dac3
push 0x4000
lea eax, [esi + 0x1bc]
push eax
lea eax, [esi + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call edi
push eax
call fcn.0040d1c0
add esp, 4
push 0
push 0
push 0x12
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
push 0
push dword [eax + 4]
lea eax, [ebp + 8]
push dword [edi]
push eax
call fcn.0040d5b0
add esp, 0x10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AMapStringToPtr::Lookup_char_const___void___const]
test eax, eax
je 0x40db7e
push 0
push 0x426e58
push 0x426e08
push 0
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x40db7e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add eax, 8
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_class_AString_const__]
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
jmp 0x40dadc
Function at 0x40dbc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4174d9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x1c], 0
jg 0x40dc62
cmp dword [0x4272b8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40dc0c
call edi
mov dword [0x4272b8], eax
call edi
sub eax, dword [0x4272b8]
cmp eax, 0x4e20
jle 0x40dc33
push 0x4000
lea eax, [esi + 0x1bc]
push eax
lea eax, [esi + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call edi
push eax
call fcn.0040d1c0
add esp, 4
push 0
push 0
push 0x12
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_protected:_struct_AStringData____thiscall_AString::GetData_void_const]
push 0
push dword [eax + 4]
lea eax, [ebp + 8]
push dword [edi]
push eax
call fcn.0040d5b0
add esp, 0x10
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AMapStringToPtr::Lookup_char_const___void___const]
test eax, eax
jne 0x40dcaa
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
jmp 0x40dc4c
push 0
push 0x426e74
push 0x426e08
push 0
push dword [ebp - 0x18]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x40dc9f
mov esi, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_struct___POSITION____thiscall_APtrList::AddTail_void__]
test esi, esi
je 0x40dce2
push dword [esi + 8]
mov esi, dword [esi]
mov ecx, edi
call ebx
jmp 0x40dcd3
lea ecx, [ebp + 8]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40dd67
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push 4
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40dd85
cmp dword [esi], 0x4550
je 0x40dd8c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x20b
mov ecx, 0x108
cmp word [esi + 0x18], dx
mov eax, 0xf8
push ebx
cmove eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
xor edx, edx
xor edi, edi
xor ebx, ebx
mov dword [ecx], 0
cmp dx, word [esi + 6]
jae 0x40de09
add esi, 0x10
add esi, eax
nop
cmp dword [esi + 4], 0
je 0x40ddfa
test dword [esi + 0x14], 0x20000020
je 0x40ddfa
inc edi
cmp edi, 1
jne 0x40ddfa
mov eax, dword [esi]
push eax
mov dword [ecx], eax
call sub.mfc140.dll_Ordinal_265
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
push dword [esi]
mov ecx, dword [esi + 4]
add ecx, dword [ebp + 8]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [ebp - 4]
inc ebx
add esi, 0x28
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x40ddc0
xor eax, eax
cmp dword [ecx + 4], eax
pop edi
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push eax
push 0
lea eax, [ebp + 0x14]
mov dword [esi], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [edi], 0
push dword [ebp + 8]
mov dword [ebp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x10]
mov dword [edi], ecx
test eax, eax
jne 0x411c13
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x411c13
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411c13
pop edi
mov eax, 1
pop esi
pop ebp
ret
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi], 0
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x412b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push str.system.software_id
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [0x4273f0]
test eax, eax
je 0x412bb7
push dword [ebp - 4]
push eax
call dword [sym.imp.cloud.dll_artify_license_has_feature]
add esp, 8
test eax, eax
je 0x412bb7
push dword [ebp - 4]
push dword [0x4273f0]
call dword [sym.imp.cloud.dll_artify_license_get_feature_int]
add esp, 8
cmp eax, 0x80000000
je 0x412bb7
mov edi, eax
mov esi, 1
jmp 0x412bb9
xor esi, esi
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test esi, esi
je 0x412c4e
push edi
call fcn.00412500
mov esi, eax
add esp, 4
test esi, esi
je 0x412c4e
push dword [ebx + 4]
call fcn.00412820
mov edi, eax
add esp, 4
test edi, edi
je 0x412c47
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push 1
push edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 0x1e240
mov dword [ebp - 0x10], 0
mov dword [ebp + 0xc], 0x10
call fcn.0040bae0
mov ebx, eax
test ebx, ebx
je 0x412c40
push dword [ebp + 0xc]
push ebx
push 3
push 0
push str.XLog1
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call sub.mfc140.dll_Ordinal_266
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push str.system.software_id
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_char_const__]
mov eax, dword [0x4273f0]
test eax, eax
je 0x412cb7
push dword [ebp - 4]
push eax
call dword [sym.imp.cloud.dll_artify_license_has_feature]
add esp, 8
test eax, eax
je 0x412cb7
push dword [ebp - 4]
push dword [0x4273f0]
call dword [sym.imp.cloud.dll_artify_license_get_feature_int]
add esp, 8
cmp eax, 0x80000000
je 0x412cb7
mov edi, eax
mov esi, 1
jmp 0x412cb9
xor esi, esi
lea ecx, [ebp - 4]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test esi, esi
je 0x412d87
push edi
call fcn.00412500
mov esi, eax
add esp, 4
test esi, esi
je 0x412d87
push dword [ebx + 4]
call fcn.00412820
mov edi, eax
add esp, 4
test edi, edi
je 0x412d80
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push 1
push edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
mov ecx, ebx
mov dword [ebp - 8], 0x1e240
mov dword [ebp + 8], 8
call fcn.0040bae0
mov ebx, eax
test ebx, ebx
je 0x412d79
push dword [ebp + 8]
cmp dword [0x4262a4], 0x1004
mov ecx, str.XLog4
push ebx
push 3
push 0
mov eax, str.XLog3
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 0xc], 0
je 0x412d70
push dword [ebp + 8]
cmp dword [0x4262a4], 0x1004
mov ecx, str.XLog3
mov eax, str.XLog4
push ebx
cmovne eax, ecx
push eax
push esi
call fcn.00411c30
add esp, 0x10
push ebx
call sub.mfc140.dll_Ordinal_266
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4151e0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea edi, [esi + 4]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push edi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ASecurityMS.0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call ebx
test eax, eax
jne 0x41528f
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Dummy
push edi
call ebx
test eax, eax
jne 0x41528f
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.ScanvecAmiable_Dummy
push edi
call ebx
test eax, eax
je 0x41529d
mov ecx, esi
call fcn.00415cb0
mov ecx, esi
call fcn.00415bf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret