joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540db0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x40ec67
mov esi, dword [eax]
jmp 0x40ec69
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x40ec85
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40ec74
mov eax, dword [ebx + 0x18]
and eax, edx
lea ecx, [eax*8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov edi, dword [eax + ecx]
cmp edi, dword [ebx + 4]
jne 0x40eca4
mov esi, dword [ebx + 4]
jmp 0x40ecaa
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x40eccc
mov edi, edi
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
call fcn.00407260
test eax, eax
sete al
test al, al
jne 0x40ed1a
cmp esi, edi
jne 0x40ecb0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40ecf9
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x40ed8c
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x40edae
mov edx, dword [ebp + 0x10]
lea edi, [edx + 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x40ed4b
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00403300
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x40ed61
mov edi, dword [edi]
xor eax, eax
push edx
mov word [edi], ax
call fcn.00451480
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x40ed94
mov dword [ecx], edi
jmp 0x40edae
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40edae
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0040e200
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 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 0xc
Function at 0x410a10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7ffffffe
push ecx
push ecx
mov esi, 0x208
lea ecx, [ebp - 0x418]
mov edx, esi
or ebx, 0xffffffff
call fcn.00408260
lea eax, [ebp - 0x66c]
mov edx, esi
push eax
lea ecx, [ebp - 0x418]
call fcn.00408320
test eax, eax
js 0x410a7d
mov eax, dword [ebp - 0x66c]
sub esi, eax
push 0x7fffffff
push 0x566f38
push ecx
lea ecx, [ebp - 0x418]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00408260
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410aab
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x63c]
push eax
call fcn.0051ead4
add esp, 4
mov esi, eax
call fcn.00519ffa
cmp dword [eax], 0x22
je 0x410ac8
mov ebx, esi
mov eax, dword [ebp - 0x654]
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], ecx
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x670]
mov dword [ebp - 0x66c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x410b3a
mov eax, dword [ebp - 0x670]
mov dword [ebp - 0x678], eax
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x63c]
push eax
call fcn.0051ead4
add esp, 4
mov esi, eax
call fcn.00519ffa
cmp dword [eax], 0x22
je 0x410b3a
mov ebx, esi
lea eax, [ebp - 0x668]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x410b5a
mov ecx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x654]
jmp 0x410ae0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x410b80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540f68
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x81
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x60], edi
cmp edi, 0xffffffff
jne 0x410be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x58]
add eax, 0x40
mov dword [ebp - 0x5c], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
test esi, esi
jne 0x410c29
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x410c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x410c26
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x40]
add eax, 2
push eax
call fcn.004feec5
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x5c], 0
test esi, esi
jne 0x410d1d
mov eax, dword [eax]
mov edx, ebx
push ecx
lea ecx, [ebp - 0x5c]
inc eax
push ecx
push eax
mov ecx, edi
call fcn.00430d70
add esp, 0xc
test eax, eax
jne 0x410c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x410d1d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x410d1d
sub esp, 0xc
mov byte [eax + ebx], 0
lea ecx, [ebp - 0x54]
call fcn.00416cc0
push ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.0041c5d0
cmp dword [ebp - 0x24], 0
je 0x410cbf
mov esi, 0xd
jmp 0x410ce7
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push ecx
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x548398]
mov ecx, dword [ebp - 0x58]
call esi
mov esi, eax
test esi, esi
jne 0x410ce7
mov eax, dword [ebp - 0x58]
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x410d05
mov ecx, eax
call fcn.004181d0
push 0x14
push dword [ebp - 0x60]
call fcn.004fe530
add esp, 8
push dword [ebp - 0x34]
call fcn.0051e536
add esp, 4
push 1
push dword [ebp - 0x38]
call fcn.004fe530
add esp, 8
test edi, edi
je 0x410d2d
cmp edi, 0xffffffff
je 0x410d2d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x410d3a
push ebx
call fcn.004fdfa4
add esp, 4
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 - 0x18]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 4
Function at 0x412090
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5411c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x10], ebx
call fcn.004feec5
add esp, 4
xor edi, edi
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov eax, dword [ebp + 8]
jae 0x4120e1
lea eax, [ebp + 8]
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push 1
push ebx
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41212c
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
cmp byte [esi], 0
jne 0x412112
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00403aa0
jmp 0x412134
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412117
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00403aa0
jmp 0x412134
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x412141
push esi
call fcn.004fdfa4
add esp, 4
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x412156
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00403980
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a40
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esi + 0xe], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0x400
mov byte [ebp - 4], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
cmp dword [esi + 0x10], eax
jne 0x416d5d
push 0x14
call fcn.004fdf4e
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4182c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540b36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5868f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004fdf4e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004ea91e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420b70
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x424], eax
cmp dword [0x58b96c], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x420ba6
mov eax, str.SoftwareQualys
jmp 0x420be0
cmp word [0x58d4b8], 0
jne 0x420bdb
cmp dword [0x58b970], 8
mov eax, dword [0x58b95c]
jae 0x420bc3
mov eax, 0x58b95c
push eax
push str.SoftwareQualys
push str._sQualysAgent_s
push 0x58d4b8
call fcn.00431650
add esp, 0x10
mov eax, 0x58d4b8
lea ecx, [esp + 0xc]
push ecx
push 0x20106
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x420cbc
test edi, edi
je 0x420c9e
mov ecx, edi
call fcn.004088a0
add eax, eax
push eax
push edi
push 1
push esi
push str.StatusHandlerFile
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x420cc9
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00407db0
mov dword [esp + 0x10], str.AzureASC.cpp
mov dword [esp + 0x14], str.AscSetStatusHandlerFile
mov dword [esp + 0x18], 0x25
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
lea eax, [esp + 0x30]
push eax
push str.Could_not_set_reset_the_StatusHandler_value:__s
push 0
push 2
lea eax, [esp + 0x28]
push 0x568e18
push eax
call fcn.00424820
add esp, 0x20
jmp 0x420cc9
push str.StatusHandlerFile
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x420c29
xor esi, esi
jmp 0x420cc9
test edi, edi
jne 0x420cc9
lea eax, [esi - 2]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x420cd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x420cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 8], 0
mov word [edi], ax
cmp dword [0x58b96c], eax
jne 0x420d2e
mov eax, str.SoftwareQualys
jmp 0x420d67
cmp word [0x58d4b8], ax
jne 0x420d62
cmp dword [0x58b970], 8
mov eax, dword [0x58b95c]
jae 0x420d4a
mov eax, 0x58b95c
push eax
push str.SoftwareQualys
push str._sQualysAgent_s
push 0x58d4b8
call fcn.00431650
add esp, 0x10
mov eax, 0x58d4b8
lea ecx, [esp + 8]
push ecx
push 0x20119
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x420e24
lea eax, [esp + 0xc]
push eax
push edi
push esi
push esi
push str.StatusHandlerFile
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x420e18
cmp esi, 2
je 0x420e18
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00407db0
mov dword [esp + 0x10], str.AzureASC.cpp
mov dword [esp + 0x14], str.AscGetStatusHandlerFile
mov dword [esp + 0x18], 0x56
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
lea eax, [esp + 0x30]
push eax
push str.Could_not_read_the_StatusHandler_file:__s
push 0
push 2
lea eax, [esp + 0x28]
push 0x568e8c
push eax
call fcn.00424820
add esp, 0x20
jmp 0x420e24
mov eax, dword [esp + 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [esp + 8]
test eax, eax
je 0x420e33
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x4267e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push 0
push str.TraceLevel
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [esp + 0x10], str.TraceHelper.cpp
mov dword [esp + 0x14], str.CRegLogValue::RegTraceLevel
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
test esi, esi
je 0x42687a
mov dword [esp + 0x18], 0x728
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
push str.Failed_to_read_registry_TraceLevel_value
push 0
lea eax, [esp + 0x20]
push 0x56a660
push eax
call fcn.004243f0
add esp, 0x18
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
cmp eax, 6
ja 0x4268cf
mov dword [0x58b4c0], eax
mov dword [esp + 0x18], 0x72f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push str.Current_trace_level_from_registry:__d
push 0
push 0x56a6b4
push eax
call fcn.004243f0
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 0x733
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push str.Invalid_trace_level_set_in_the_registry:__d_continues_with_the_default_trace_level.
push 0
push 0x56a768
push eax
call fcn.004243f0
add esp, 0x1c
mov esi, 0xd
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426920
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push 0x561db8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x426956
push str.Failed_to_open_Logs_registry_key
jmp 0x426a4b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push str.ArchiveCount
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42699a
push str.Failed_to_read_registry_MaxArchiveCount_value
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Failed_to_read_ArchiveCount_registry_key
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4269a7
mov eax, dword [ebp - 8]
cmp eax, 0xa
je 0x4269a7
mov dword [0x58b4c8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.LogFileSize
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4269eb
push str.Failed_to_read_registry_LogFileSize_value
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Failed_to_read_LogFileSize_registry_key
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4269fa
mov eax, dword [ebp - 8]
cmp eax, 0xa00000
je 0x4269fa
mov dword [0x58b4c4], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.LogsInMaster
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x426a35
push str.Failed_to_read_registry_LogsInMaster_value
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x426a42
mov eax, dword [ebp - 8]
cmp eax, 2
ja 0x426a42
mov dword [0x587304], eax
test esi, esi
je 0x426a51
push str.Failed_to_read_LogsInMaster_registry_key
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x426a5f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 1
push 0
push 0x561db8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x426b06
cmp esi, 2
je 0x426b20
cmp esi, 3
je 0x426b20
mov dword [esp + 8], str.TraceHelper.cpp
mov dword [esp + 0xc], str.CRegLogValue::GetRegTraceLogValue
mov dword [esp + 0x10], 0x7a5
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
push str.Failed_to_open_Logs_registry_key
push 0
lea eax, [esp + 0x18]
push 0x56a99c
push eax
call fcn.004243f0
add esp, 0x18
jmp 0x426b20
mov ecx, dword [esp + 4]
call fcn.004267e0
mov esi, eax
test esi, esi
je 0x426b20
push str.Failed_to_read_TraceLevel_registry_key
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
test eax, eax
je 0x426b2f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426b40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542581
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xe0]
mov ebx, dword [ebp + 8]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
call fcn.004287c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ecx + 0x10], 2
push dword [ecx + 0xc]
call fcn.00410430
mov edx, str.There_were
lea ecx, [ebp - 0xd0]
call fcn.0042b410
push esi
mov ecx, eax
call fcn.004288b0
mov edx, str._trace_statements_disallowed_with_thread__
mov ecx, eax
call fcn.0042b410
push edi
mov ecx, eax
call fcn.004288b0
mov edx, str.___trace_token:
mov ecx, eax
call fcn.0042b410
mov edx, ebx
mov ecx, eax
call fcn.0042b410
mov edx, 0x56aa00
mov ecx, eax
call fcn.0042b410
mov edx, dword [ebp - 0x30]
mov ecx, eax
call fcn.0042b410
mov edx, 0x56a9fc
mov ecx, eax
call fcn.0042b410
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004287a0
cmp dword [eax + 0x14], 8
jb 0x426c33
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x426c4f
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403300
lea ecx, [ebp - 0x78]
call fcn.0040b4b0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.004ea6b2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x426cd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5425c1
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xe0]
mov ebx, dword [ebp + 8]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
call fcn.004287c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ecx + 0x10], 2
push dword [ecx + 0xc]
call fcn.00410430
mov edx, str.Suppressing_trace_statement_since_trace_limit:__
lea ecx, [ebp - 0xd0]
call fcn.0042b410
push esi
mov ecx, eax
call fcn.004288b0
mov edx, str.__has_been_reached__with_thread__
mov ecx, eax
call fcn.0042b410
push edi
mov ecx, eax
call fcn.004288b0
mov edx, str.___trace_token:
mov ecx, eax
call fcn.0042b410
mov edx, ebx
mov ecx, eax
call fcn.0042b410
mov edx, 0x56aa00
mov ecx, eax
call fcn.0042b410
mov edx, dword [ebp - 0x30]
mov ecx, eax
call fcn.0042b410
mov edx, 0x56a9fc
mov ecx, eax
call fcn.0042b410
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004287a0
cmp dword [eax + 0x14], 8
jb 0x426dc3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x426ddf
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403300
lea ecx, [ebp - 0x78]
call fcn.0040b4b0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.004ea6b2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret