Function at 0x42d372
Capabilities:
Contain obfuscated stackstrings
Enumerate files on windows
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x7d4]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x7d4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jne 0x42d3d2
jmp 0x42d999
mov dword [ebp - 0x9c], 0x4975222c
mov dword [ebp - 0xe4], 0x223a2244
mov dword [ebp - 0xc], 0x64727022
mov dword [ebp - 0x14], 0x3a226469
mov dword [ebp - 8], 0x70795475
mov dword [ebp - 0x10], 0x223a2265
dec dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
movsx eax, byte [ebp + eax - 0x7d4]
cmp eax, 0x5c
je 0x42d447
inc dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
mov byte [ebp + eax - 0x7d4], 0x5c
inc dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
mov byte [ebp + eax - 0x7d4], 0
mov esi, str.BentleyLicensingLogs_
lea edi, [ebp - 0x7d4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x7d4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x3c4]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [0x45e03c], 0
je 0x42d4bd
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
push str._r_n__X_BXUF_scanning___s_
call fcn.00452380
add esp, 0xc
lea edi, [ebp - 0x7d4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x3c4]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, 0x478990
lea edi, [ebp - 0x3c4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov ax, word [edx + 8]
mov word [edi + 8], ax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x7d8], eax
cmp dword [ebp - 0x7d8], 0xffffffff
je 0x42d999
push str.BeLicSvc_header.log
lea eax, [ebp - 0x4dc]
push eax
call fcn.00452540
add esp, 8
test eax, eax
je 0x42d961
push str.BeLicSvc
lea eax, [ebp - 0x4dc]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x42d961
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x7d4]
push eax
push 0x4789bc
push 0x2c8
lea eax, [ebp - 0x3c4]
push eax
call fcn.00452660
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push bind
lea eax, [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c8], eax
cmp dword [0x45e03c], 0
je 0x42d5e6
lea eax, [ebp - 0x3c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x3c8]
push eax
push str._r_n_Open___X__GLE_d___s_
call fcn.00452380
add esp, 0x10
cmp dword [ebp - 0x3c8], 0xffffffff
je 0x42d961
push 0
mov eax, dword [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xf00000
jae 0x42d936
cmp dword [0x462ed0], 0
jne 0x42d631
push 0xf00000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x462ed0], eax
cmp dword [0x462ed0], 0
jne 0x42d664
cmp dword [0x45e03c], 0
je 0x42d65f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nEXCEPTION_BXUMAXPTR_NULL__d_
call fcn.00452380
add esp, 8
jmp 0x42d931
mov dword [ebp - 0xfc], 0
push 0
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x462ed0]
push eax
mov eax, dword [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xfc], eax
je 0x42d6c9
cmp dword [0x45e03c], 0
je 0x42d6c9
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nREAD_FILE_BXU__d___d_br_d_
call fcn.00452380
add esp, 0x10
mov dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0xf8]
cmp dword [ebp - 0xfc], eax
jbe 0x42d931
mov byte [ebp - 0x98], 0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 0x9c]
cmp dword [eax + ecx], edx
jne 0x42d926
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 0xe4]
cmp dword [eax + ecx], edx
jne 0x42d926
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
add eax, dword [0x462ed0]
lea edi, [ebp - 0x98]
mov esi, eax
mov ecx, 0x1f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x15], 0
add dword [ebp - 0xf8], 0x10
mov byte [ebp - 0xf0], 0
mov byte [ebp - 0xe0], 0
mov eax, dword [ebp - 0xf8]
add eax, 0x190
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp - 0x50c]
cmp dword [ebp - 0xf8], eax
jae 0x42d8d3
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 0xc]
cmp dword [eax + ecx], edx
jne 0x42d828
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 0x14]
cmp dword [eax + ecx], edx
jne 0x42d828
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
add eax, dword [0x462ed0]
lea ecx, [ebp - 0xf0]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
push 0x478a20
lea eax, [ebp - 0xf0]
push eax
call fcn.00453660
add esp, 8
mov dword [ebp - 0x7dc], eax
mov eax, dword [ebp - 0x7dc]
mov byte [ebp + eax - 0xf0], 0
movsx eax, byte [ebp - 0xe0]
test eax, eax
je 0x42d828
mov eax, dword [ebp - 0x50c]
inc eax
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 8]
cmp dword [eax + ecx], edx
jne 0x42d8c8
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
mov ecx, dword [0x462ed0]
mov edx, dword [ebp - 0x10]
cmp dword [eax + ecx], edx
jne 0x42d8c8
add dword [ebp - 0xf8], 4
mov eax, dword [ebp - 0xf8]
add eax, dword [0x462ed0]
lea edi, [ebp - 0xe0]
mov esi, eax
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x478a24
lea eax, [ebp - 0xe0]
push eax
call fcn.00453660
add esp, 8
mov dword [ebp - 0x7e0], eax
mov eax, dword [ebp - 0x7e0]
mov byte [ebp + eax - 0xe0], 0
movsx eax, byte [ebp - 0xf0]
test eax, eax
je 0x42d8c8
mov eax, dword [ebp - 0x50c]
inc eax
mov dword [ebp - 0xf8], eax
inc dword [ebp - 0xf8]
jmp 0x42d778
movsx eax, byte [ebp - 0x98]
test eax, eax
je 0x42d926
movsx eax, byte [ebp - 0xf0]
test eax, eax
je 0x42d926
movsx eax, byte [ebp - 0xe0]
test eax, eax
je 0x42d926
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004536a0
add esp, 4
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0042d197
add esp, 0xc
inc dword [ebp - 0xf8]
jmp 0x42d6d3
jmp 0x42d954
cmp dword [0x45e03c], 0
je 0x42d954
mov eax, dword [ebp - 4]
push eax
push str._r_nEXCEPTION_BXUMAX___d_
call fcn.00452380
add esp, 8
mov eax, dword [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x508]
push eax
mov eax, dword [ebp - 0x7d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42d994
mov eax, dword [ebp - 0x7d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x7d8], 0xffffffff
jmp 0x42d529
pop edi
pop esi
pop ebx
leave
ret