Function at 0x509494
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519f2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1188
call fcn.0050f9a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
xor edi, edi
mov eax, 0x528927
lea esi, [ebp - 0x58]
call fcn.004125a0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x38], al
lea edi, [eax + 1]
mov eax, 0x5336e8
lea esi, [ebp - 0x38]
call fcn.004125a0
mov byte [ebp - 4], 1
mov dword [ebx + 4], 0
mov byte [ebp - 4], 2
mov eax, 0x52f22c
lea ecx, [ebp - 0x80]
call fcn.0040fae0
mov byte [ebp - 4], 3
mov eax, 0x528d74
lea ecx, [ebp - 0xb8]
call fcn.0040fae0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.004efe70
mov byte [ebp - 4], 5
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.004f07a0
add esp, 0x10
mov byte [ebp - 4], 7
lea esi, [ebp - 0xf0]
call fcn.004150b0
mov byte [ebp - 4], 8
lea esi, [ebp - 0xb8]
call fcn.004150b0
mov ecx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x90]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jbe 0x509029
push 0x528d74
push esi
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00413af0
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x90]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x148]
push edx
mov ecx, eax
call fcn.00413df0
mov byte [ebp - 4], 0xa
push str.___
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x90]
add ecx, 0x70
push ecx
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, eax
call fcn.00413df0
add esp, 8
mov byte [ebp - 4], 0xc
mov edi, eax
lea esi, [ebp - 0x80]
call fcn.00411aa0
mov byte [ebp - 4], 0xb
lea esi, [ebp - 0xf0]
call fcn.004150b0
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x128]
call fcn.004150b0
mov byte [ebp - 4], 9
lea esi, [ebp - 0x148]
call fcn.004150b0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x10c]
call fcn.004150b0
cmp dword [0x1579a94], 0
jne 0x509039
mov ecx, ebx
call fcn.00507e10
mov edi, 0x14
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], 0x15
mov dword [ebp - 0xc0], 0x1e
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0x1c], 0
push str.NODE
push 0x400
lea edx, [ebp - 0xd94]
push edx
mov esi, dword [sym.imp.MSVCR100.dll_strcpy_s]
call esi
add esp, 0xc
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov eax, dword [ebp + 0x14]
imul eax, eax, 0x15180
cdq
add dword [ebp - 0x64], eax
adc dword [ebp - 0x60], edx
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.MSVCR100.dll__localtime64_s]
mov eax, dword [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x408]
inc ecx
push ecx
mov edx, dword [ebp - 0x404]
add edx, 0x76c
push edx
push str._4.4d__2.2d__2.2d
lea edx, [ebp - 0x18c]
call fcn.004524e0
add esp, 0x18
mov ecx, dword [ebp + 8]
cmp ecx, 0x2d4
jg 0x509593
je 0x509506
lea eax, [ecx + 1]
cmp eax, 0x83
ja case.0x509110.0
movzx eax, byte [eax + 0x50a688]
jmp dword [eax*4 + 0x50a660]
mov dword [ebp - 0x18], 4
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x894]
push eax
call fcn.0044b190
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x148]
push edx
mov ecx, eax
call fcn.00413e60
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x18c]
push ecx
push eax
lea edx, [ebp - 0x128]
push edx
call fcn.00413ed0
add esp, 0x14
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x10
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0xf0]
call fcn.004150e0
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x128]
call fcn.004150e0
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x148]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x894]
call fcn.004150e0
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0x50a724]
jmp dword [ecx*4 + 0x50a70c]
mov dword [ebp - 0x18], 0x22
push str.EXEC
push 0x400
lea eax, [ebp - 0xd94]
push eax
call esi
add esp, 0xc
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call fcn.0044b190
add esp, 0xc
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x958]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x12
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x11
lea esi, [ebp - 0x958]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x8cc]
call fcn.004150e0
mov dword [ebp - 0x1c], 1
mov byte [ebp - 0x3c], 0
jmp 0x5091c9
mov dword [ebp - 0x18], 8
push str.ALERT
push 0x400
lea eax, [ebp - 0xd94]
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebx + 0x14]
push edx
lea eax, [ebp - 0x744]
push eax
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x13
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x744]
jmp 0x5091c4
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp - 0x4f8]
push eax
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x14
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x4c0]
push edx
call fcn.00413ed0
add esp, 0xc
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x4dc]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x16
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x15
lea esi, [ebp - 0x4dc]
call fcn.004150e0
mov byte [ebp - 4], 0x14
lea esi, [ebp - 0x4c0]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x4f8]
jmp 0x5091c4
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x5a0]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x17
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x568]
push edx
call fcn.00413ed0
add esp, 0xc
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x530]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x19
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x18
lea esi, [ebp - 0x530]
call fcn.004150e0
mov byte [ebp - 4], 0x17
lea esi, [ebp - 0x568]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x5a0]
call fcn.004150e0
mov dword [ebp - 0x1c], 2
mov byte [ebp - 0x3c], 1
jmp 0x5091c9
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x680]
push edx
call fcn.0044b190
add esp, 0xc
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x648]
push edx
mov ecx, eax
call fcn.00413e60
mov byte [ebp - 4], 0x1b
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x610]
push edx
call fcn.00413ed0
add esp, 0x14
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x5d8]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x1d
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x1c
lea esi, [ebp - 0x5d8]
call fcn.004150e0
mov byte [ebp - 4], 0x1b
lea esi, [ebp - 0x610]
call fcn.004150e0
mov byte [ebp - 4], 0x1a
lea esi, [ebp - 0x648]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x680]
call fcn.004150e0
mov dword [ebp - 0x1c], 3
jmp 0x5091c9
mov dword [ebp - 0x18], 9
push str.ALERT
push 0x400
lea eax, [ebp - 0xd94]
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebx + 0x14]
push edx
lea eax, [ebp - 0x6b8]
push eax
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x1e
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x6b8]
jmp 0x5091c4
lea ecx, [ebp - 0x58]
push ecx
mov eax, 0x528927
call fcn.0040f9e0
mov dword [ebp - 0x18], 0x8000
mov dword [ebp - 0x1c], 0xa
jmp 0x5091c9
mov dword [ebp - 0x18], 7
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x760]
push ecx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x1f
lea edx, [ebx + 0x14]
push edx
push eax
lea eax, [ebp - 0x728]
push eax
call fcn.00413ed0
add esp, 0xc
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x6f0]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x21
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x20
lea esi, [ebp - 0x6f0]
call fcn.004150e0
mov byte [ebp - 4], 0x1f
lea esi, [ebp - 0x728]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x760]
jmp 0x5091c4
cmp ecx, 0x399
jg 0x50972a
je 0x5096ef
mov eax, ecx
sub eax, 0x384
je 0x5096b4
sub eax, 0xa
je 0x509651
sub eax, 0xa
jne case.0x509110.0
mov dword [ebp - 0x18], 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x808]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x25
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x7d0]
push edx
call fcn.00413ed0
add esp, 0xc
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x798]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x27
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0x798]
call fcn.004150e0
mov byte [ebp - 4], 0x25
lea esi, [ebp - 0x7d0]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x808]
jmp 0x5091c4
mov dword [ebp - 0x18], 0xd
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x8b0]
push edx
call fcn.0044b190
add esp, 0xc
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x840]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x24
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x23
lea esi, [ebp - 0x840]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x8b0]
jmp 0x5091c4
mov dword [ebp - 0x18], 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp - 0x8e8]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x22
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x8e8]
jmp 0x5091c4
mov dword [ebp - 0x18], 0xa
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp - 0x920]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x28
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x920]
jmp 0x5091c4
mov eax, ecx
sub eax, 0x3a2
je 0x509851
dec eax
je 0x5097ee
sub eax, 0x1f85
je 0x5097e2
cmp ecx, 0x2bc
jl 0x50988c
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x4a4]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x2c
lea ecx, [ebx + 0x14]
push ecx
push eax
lea edx, [ebp - 0x974]
push edx
call fcn.00413ed0
add esp, 0xc
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x46c]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x2e
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x2d
lea esi, [ebp - 0x46c]
call fcn.004150e0
mov byte [ebp - 4], 0x2c
lea esi, [ebp - 0x974]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x4a4]
jmp 0x5091c4
mov dword [ebp - 0x18], 0xe
jmp 0x5091c9
mov dword [ebp - 0x18], 0x18
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x314]
push edx
call fcn.0044b190
add esp, 0xc
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x1fc]
push edx
mov ecx, eax
call fcn.00413e60
add esp, 8
mov byte [ebp - 4], 0x2b
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 0x2a
lea esi, [ebp - 0x1fc]
call fcn.004150e0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x314]
jmp 0x5091c4
mov dword [ebp - 0x18], 6
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x14]
push ecx
lea edx, [ebp - 0x1a8]
push edx
call fcn.00434640
add esp, 0xc
mov byte [ebp - 4], 0x29
mov edi, eax
lea esi, [ebp - 0x58]
call fcn.004117d0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x1a8]
jmp 0x5091c4
push ecx
lea eax, [ebp - 0x1fc]
push eax
call fcn.004ef520
mov byte [ebp - 4], 0x2f
push eax
lea ecx, [ebp - 0x314]
push ecx
mov edx, str.________ReportID
call fcn.00413910
mov bl, 0x30
mov byte [ebp - 4], bl
push str._should_be_sent_as_XML
push eax
lea edx, [ebp - 0x1a8]
push edx
call fcn.004139a0
add esp, 0x1c
mov byte [ebp - 4], 0x31
push 0
push 1
push eax
push 0x2b9
push str.Xmi2Csv::ConvertToCsv
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x1a8]
call fcn.004150b0
mov byte [ebp - 4], 0x2f
lea esi, [ebp - 0x314]
call fcn.004150b0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x1fc]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x90]
call fcn.0040fcb0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x80]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x38]
call fcn.004150e0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x58]
call fcn.004150e0
mov eax, 0xfffffe6c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14