joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 8]
sub esp, 0x88
push eax
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x404d8a
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
push ecx
push edx
push str._I64d
lea eax, [ebp - 0x88]
push 0x40
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
lea eax, [ebp - 0x88]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404db2
sub eax, edx
sar eax, 1
push esi
mov esi, eax
call fcn.004044f0
mov ecx, dword [eax]
lea edx, [ebp - 0x88]
push edx
push str.Updating_key__to_time__s
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [esi + esi + 2]
push ecx
lea edx, [ebp - 0x88]
push edx
push 1
push 0
push str.Time3
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x404e34
push ebx
push edi
call fcn.004044f0
mov ebx, eax
mov edi, dword [ebx]
add edi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
push eax
push esi
push str.Failure_updating_last_sent_time_returned__d__GLE__d_
push ebx
call ecx
add esp, 0x10
pop edi
pop ebx
mov eax, 0x8000
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [eax + eax]
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
push 0
push 0
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
push str.Location
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x404e9d
push esi
push edi
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push ebx
push str.Unable_to_get_path_from_key_returned__d__GLE__d_
push edi
call edx
add esp, 0x10
pop edi
pop esi
mov eax, 0x8000
pop ebx
pop ebp
ret 0xc
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x404eb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [ebp + 8]
push esi
push edi
push 0xf003f
mov edi, ecx
push eax
mov dword [ebp - 0x10], edi
call fcn.00404cf0
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x40503f
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40503f
cmp dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
jbe 0x405038
push ebx
jmp 0x404f16
mov edi, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x218]
push edx
push eax
push esi
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x404f67
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push ebx
push str.Unable_to_enumerate_registry_keys_returned__d__GLE__d_
push edi
call eax
mov esi, dword [ebp - 8]
add esp, 0x10
jmp 0x405025
mov edx, dword [0x42ece0]
lea ecx, [ebp + 8]
push ecx
or edx, 0xf003f
push edx
push 0
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x404fc2
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push ebx
lea ecx, [ebp - 0x218]
push ecx
push str.Unable_to_open_registry_key__s_returned__d__GLE__d_
push edi
call edx
mov esi, dword [ebp - 8]
add esp, 0x14
jmp 0x405025
mov eax, dword [ebp + 8]
push eax
push 0x105
lea ecx, [ebp - 0x424]
push ecx
mov ecx, edi
call fcn.00404e40
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405025
call fcn.004044f0
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [ebp - 0x218]
push ecx
push str.Deleting_key__s
push eax
call edx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 4]
add eax, 1
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jb 0x404f13
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4065f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
test esi, esi
mov dword [ebp - 0x10], ebx
je 0x406613
mov eax, dword [ebx + 8]
mov ecx, eax
sub ecx, esi
sar ecx, 3
jne 0x40661d
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, eax
push edi
mov dword [ebp - 4], esi
je 0x40669f
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push str.Location
push eax
mov dword [ebp - 8], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x40667c
call fcn.004044f0
mov ebx, eax
mov esi, dword [ebx]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push edi
push str.Unable_to_get_path_from_key_returned__d__GLE__d_
push ebx
call eax
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push ecx
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4066aa
add esi, 8
cmp esi, dword [ebx + 8]
mov dword [ebp - 4], esi
jne 0x406625
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407a50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [0x42ece0]
push ebx
push esi
push edi
push 0
lea eax, [ebp - 4]
push eax
push 0
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
push str.SoftwareBentleyLicensing1.1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
je 0x407abc
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push ebx
push str.SoftwareBentleyLicensing1.1
push str.Unable_to_create_key__s_returned__d__GLE__d_
push edi
call edx
add esp, 0x14
jmp 0x407ad7
cmp byte [0x42ecdc], 0
je 0x407ad7
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x42ece4
call fcn.00407000
mov esi, dword [ebp - 4]
test esi, esi
jne 0x407afb
call fcn.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
push str.Cannot_write_to_HKLM___cant_create_HKLM_key
call eax
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll__time64]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
lea ecx, [ebp - 0x418]
push str._I64d
push ecx
call fcn.004038d0
lea eax, [ebp - 0x418]
add esp, 0x14
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b30
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push str.NoteTime
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1fe
lea ecx, [ebp - 0x216]
push 0
push ecx
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.NoteTime
push esi
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [0x42ecdc], 0
mov edi, eax
mov dword [ebp - 4], esi
je 0x407bb8
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x42ece4
call fcn.00407450
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x407c08
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x418]
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407bf6
test ax, ax
je 0x407bf2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407bf6
add ecx, 4
add edx, 4
test ax, ax
jne 0x407bd0
xor eax, eax
jmp 0x407bfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407c08
xor esi, esi
mov edi, 0x420c00
jmp 0x407c10
or esi, 0xffffffff
mov edi, 0x420bf8
call fcn.004044f0
mov edx, dword [eax]
push edi
push str.can_write_to_HKLM____s
push eax
mov eax, dword [edx + 0x48]
call eax
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
movzx edi, word [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 4]
add edi, edi
add edi, edi
add edi, edi
mov ecx, dword [eax + edi]
push ecx
push 0x105
lea edx, [ebp - 0x22c]
push edx
mov ecx, esi
call fcn.00404e40
call fcn.004044f0
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [esi + 4]
movsx edx, word [edx + edi + 4]
push edx
push str.Purging_dead_key__d___s_
push eax
mov eax, dword [ecx + 0x48]
call eax
add esp, 0x10
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407c30
test al, al
jne 0x407dba
mov ebx, SysReAllocString
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 4]
movsx ecx, word [eax + edi + 4]
push ecx
lea edx, [ebp - 0x20]
push 0x41e56c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0xf003f
push ebx
mov ecx, esi
call fcn.00404cf0
mov ebx, eax
test ebx, ebx
jne 0x407e03
pop edi
pop esi
mov eax, 0x8000
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 4]
mov word [ecx + edi + 4], 0xffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
call fcn.00407340
add esp, 4
test eax, eax
mov dword [ebp - 4], eax
jne 0x407f5e
mov eax, 0x8000
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004044f0
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x407f75
mov ecx, dword [edi]
jmp 0x407f77
mov ecx, edi
mov edx, dword [eax]
push ebx
mov ebx, dword [ebp + 8]
push ecx
push ebx
push str.Setting__s___s
push eax
mov eax, dword [edx + 0x40]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [esi + 0x18], 8
lea eax, [eax + eax + 2]
jb 0x407f9c
mov edi, dword [edi]
mov esi, dword [ebp - 4]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x408008
call fcn.004044f0
mov ebx, eax
mov esi, dword [ebx]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
push eax
push edi
push ecx
push str.Failure_updating__s_returned__d__GLE__d_
push ebx
call edx
mov esi, dword [ebp - 4]
add esp, 0x14
cmp byte [0x42ecdc], 0
mov dword [ebp - 4], esi
je 0x407ff5
lea eax, [ebp - 4]
push eax
mov ecx, 0x42ece4
call fcn.00407450
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 0x8000
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x42ecdc], 0
mov dword [ebp - 4], esi
je 0x408022
lea ecx, [ebp - 4]
push ecx
mov ecx, 0x42ece4
call fcn.00407450
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 1
call fcn.00407340
mov edi, eax
add esp, 4
test edi, edi
jne 0x40813f
mov eax, 0x8000
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004044f0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push esi
push str.Setting__s___d
push eax
mov eax, dword [ecx + 0x40]
call eax
add esp, 0x10
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov dword [ebp - 4], eax
je 0x4081cc
push ebx
call fcn.004044f0
mov ebx, eax
mov esi, dword [ebx]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push str.Failure_updating__s_returned__GLE__d_
push ebx
call ecx
add esp, 0x14
cmp byte [0x42ecdc], 0
mov dword [ebp - 4], edi
pop ebx
je 0x4081ba
lea edx, [ebp - 4]
push edx
mov ecx, 0x42ece4
call fcn.00407450
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 0x8000
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [0x42ecdc], 0
mov dword [ebp - 4], edi
je 0x4081e6
lea eax, [ebp - 4]
push eax
mov ecx, 0x42ece4
call fcn.00407450
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a0a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c044
push eax
mov eax, 0x1e2c
mov dword fs:[0], esp
call fcn.0041b480
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - method.Bentley::SelectServer::Client::RegKey.virtual_0], vtable.Bentley::SelectServer::Client::RegKey.0
mov word [ebp - 0x1e34], bx
mov dword [ebp - 0x34], ebx
call fcn.00407c30
neg al
mov byte [ebp - 0x30], bl
sbb eax, eax
neg eax
add eax, 0x80000001
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1e38]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409880
push str.Overrides
lea ecx, [ebp - 0x1e38]
call fcn.00409610
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
push esi
lea ecx, [ebp - 0x1e38]
mov byte [ebp - 4], 1
call fcn.00405b50
test eax, eax
je 0x40a16d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x1e38]
mov dword [ebp - 4], 0xffffffff
call fcn.00409bb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.004044f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push esi
push str.Clearing__s
push eax
call edx
add esp, 0xc
lea ecx, [ebp - 0x1e38]
call fcn.004096f0
test eax, eax
je 0x40a199
mov esi, 0x8000
jmp 0x40a1af
mov eax, dword [ebp - 0x34]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb eax, eax
and eax, 0x8000
mov esi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x1e38]
mov dword [ebp - 4], 0xffffffff
call fcn.00409bb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40aee0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 8]
push esi
push 0xf003f
push eax
call fcn.00404cf0
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x40b045
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40b03e
cmp dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
jbe 0x40b03e
push ebx
push edi
lea esp, [esp]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x21c]
push edx
push eax
push esi
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
je 0x40af91
call fcn.004044f0
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push ebx
push str.Unable_to_enumerate_registry_keys_returned__d__GLE__d_
push edi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x40b02a
mov edx, dword [0x42ece0]
lea ecx, [ebp - 8]
push ecx
or edx, 0xf003f
push edx
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
call fcn.004044f0
test ebx, ebx
je 0x40afec
mov edi, eax
mov esi, dword [edi]
add esi, 0x28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push ebx
lea ecx, [ebp - 0x21c]
push ecx
push str.Unable_to_open_registry_key__s_returned__d__GLE__d_
push edi
call edx
mov esi, dword [ebp + 8]
add esp, 0x14
jmp 0x40b02a
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push str.Adding_key__s_to_vector
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [ebp - 8]
push 0xa
lea edx, [ebp - 0x21c]
push 0
push edx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.MSVCR80.dll_wcstol]
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x14], ax
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
call fcn.0040a9d0
mov eax, dword [ebp - 4]
add eax, 1
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jb 0x40af40
pop edi
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c280
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c1bb
push eax
mov eax, 0x1e14
mov dword fs:[0], esp
call fcn.0041b480
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push str.Country
lea ecx, [ebp - 0xd]
call fcn.0040b7e0
test eax, eax
jne 0x40c325
push esi
call fcn.0040fee0
add esp, 4
cmp dword [esi + 0x14], 0
jne 0x40c323
lea ecx, [ebp - 0x1e20]
call fcn.00409b70
push str.SoftwareBentleyLicensing1.1
lea ecx, [ebp - 0x1e20]
mov dword [ebp - 4], 0
call fcn.00409610
push esi
push str.Country
lea ecx, [ebp - 0x1e20]
call fcn.00409130
lea ecx, [ebp - 0x1e20]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00409bb0
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d280
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041b480
push esi
lea eax, [ebp - 4]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0040c0e0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 8
test eax, eax
jne 0x40d2ba
cmp dword [ebp - 4], 0
je 0x40d2ba
call fcn.0040d1b0
jmp 0x40d32e
push 0x800
lea ecx, [ebp - 0x1004]
push ecx
push str.MS_LMDEBUGLOGFILE
call esi
test eax, eax
jle 0x40d305
cmp eax, 0x800
jae 0x40d305
lea edx, [ebp - 0x1004]
push edx
call sym.Bentley.lictransmit.exe_LicenseClient_SetErrorLogPath
call fcn.004044f0
mov ecx, dword [eax]
lea edx, [ebp - 0x1004]
push edx
push str.MS_LMDEBUGLOGFILE
push str._s___s
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x14
push 0x800
lea ecx, [ebp - 0x1004]
push ecx
push str.MS_LMDEBUGLOGLEVEL
call esi
test eax, eax
jle 0x40d32e
cmp eax, 0x800
jae 0x40d32e
lea ecx, [ebp - 0x1004]
call fcn.0040d000
push 0x800
lea edx, [ebp - 0x1004]
push edx
push str.MS_LMFORCESEND
call esi
test eax, eax
pop esi
jle 0x40d384
cmp eax, 0x800
jae 0x40d384
push ebx
push 0xa
lea eax, [ebp - 0x1004]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstol]
test eax, eax
setne bl
call fcn.004044f0
mov ecx, dword [eax]
movzx edx, bl
push edx
push str.Send_logs_forced_by_config:__d
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x18
mov byte [0x42ef2a], bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40db20
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
mul esi
mov ecx, edx
shr ecx, 1
push edi
lea eax, [ecx + ecx*2]
mov edi, esi
sub edi, eax
mov eax, 3
sub eax, edi
cdq
mov ebx, 3
idiv ebx
lea ebx, [edx + ecx*4 + 1]
cmp dword [ebp + 0x14], ebx
jae 0x40db79
call fcn.004044f0
mov edx, dword [ebp + 0x14]
mov ecx, dword [eax]
push ebx
push edx
push str.Data_buffer_too_small_in_b64__d____d
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0x10
pop edi
pop esi
mov eax, 0x8000
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub esi, edi
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 8]
je 0x40dc0c
lea esp, [esp]
movzx edx, byte [ecx + esi]
shr edx, 2
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], dx
movzx edx, byte [esi + ecx]
movzx ebx, byte [ecx + esi + 1]
add ecx, 1
shl edx, 4
shr ebx, 4
or edx, ebx
and edx, 0x3f
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], dx
movzx ebx, byte [ecx + esi]
movzx edx, byte [esi + ecx + 1]
add eax, 2
shr edx, 6
add ebx, ebx
add ebx, ebx
or edx, ebx
and edx, 0x3f
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add eax, 2
mov word [eax], dx
movzx edx, byte [esi + ecx + 1]
and edx, 0x3f
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add eax, 2
mov word [eax], dx
add ecx, 2
add eax, 2
cmp ecx, dword [ebp + 0x14]
jb 0x40db90
test edi, edi
je 0x40dc73
movzx edx, byte [ecx + esi]
shr edx, 2
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], dx
movzx edx, byte [ecx + esi]
movzx ebx, byte [ecx + esi + 1]
add ecx, 1
shl edx, 4
shr ebx, 4
or edx, ebx
and edx, 0x3f
movzx edx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add eax, 2
mov word [eax], dx
add eax, 2
cmp edi, 1
jne 0x40dc56
mov word [eax], 0x3d
jmp 0x40dc68
movzx ecx, byte [ecx + esi]
and ecx, 0xf
mov dx, word [ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], dx
add eax, 2
mov word [eax], 0x3d
add eax, 2
pop edi
pop esi
mov word [eax], 0
xor eax, eax
pop ebx
pop ebp
ret 0x10